configure 616 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for c-ares-test -.
  4. #
  5. # Report bugs to <->.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  9. # Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. as_nop=:
  20. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  21. then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else $as_nop
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  36. # Reset variables that may have inherited troublesome values from
  37. # the environment.
  38. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  39. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  40. # side effect of setting IFS to empty, thus disabling word splitting.)
  41. # Quoting is to prevent editors from complaining about space-tab.
  42. as_nl='
  43. '
  44. export as_nl
  45. IFS=" "" $as_nl"
  46. PS1='$ '
  47. PS2='> '
  48. PS4='+ '
  49. # Ensure predictable behavior from utilities with locale-dependent output.
  50. LC_ALL=C
  51. export LC_ALL
  52. LANGUAGE=C
  53. export LANGUAGE
  54. # We cannot yet rely on "unset" to work, but we need these variables
  55. # to be unset--not just set to an empty or harmless value--now, to
  56. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  57. # also avoids known problems related to "unset" and subshell syntax
  58. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  59. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  60. do eval test \${$as_var+y} \
  61. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  62. done
  63. # Ensure that fds 0, 1, and 2 are open.
  64. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  65. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  66. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  67. # The user is always right.
  68. if ${PATH_SEPARATOR+false} :; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Find who we are. Look in the path if we contain no directory separator.
  76. as_myself=
  77. case $0 in #((
  78. *[\\/]* ) as_myself=$0 ;;
  79. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  80. for as_dir in $PATH
  81. do
  82. IFS=$as_save_IFS
  83. case $as_dir in #(((
  84. '') as_dir=./ ;;
  85. */) ;;
  86. *) as_dir=$as_dir/ ;;
  87. esac
  88. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  89. done
  90. IFS=$as_save_IFS
  91. ;;
  92. esac
  93. # We did not find ourselves, most probably we were run as `sh COMMAND'
  94. # in which case we are not to be found in the path.
  95. if test "x$as_myself" = x; then
  96. as_myself=$0
  97. fi
  98. if test ! -f "$as_myself"; then
  99. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  100. exit 1
  101. fi
  102. # Use a proper internal environment variable to ensure we don't fall
  103. # into an infinite loop, continuously re-executing ourselves.
  104. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  105. _as_can_reexec=no; export _as_can_reexec;
  106. # We cannot yet assume a decent shell, so we have to provide a
  107. # neutralization value for shells without unset; and this also
  108. # works around shells that cannot unset nonexistent variables.
  109. # Preserve -v and -x to the replacement shell.
  110. BASH_ENV=/dev/null
  111. ENV=/dev/null
  112. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  113. case $- in # ((((
  114. *v*x* | *x*v* ) as_opts=-vx ;;
  115. *v* ) as_opts=-v ;;
  116. *x* ) as_opts=-x ;;
  117. * ) as_opts= ;;
  118. esac
  119. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  120. # Admittedly, this is quite paranoid, since all the known shells bail
  121. # out after a failed `exec'.
  122. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  123. exit 255
  124. fi
  125. # We don't want this to propagate to other subprocesses.
  126. { _as_can_reexec=; unset _as_can_reexec;}
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="as_nop=:
  129. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  130. then :
  131. emulate sh
  132. NULLCMD=:
  133. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  134. # is contrary to our usage. Disable this feature.
  135. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  136. setopt NO_GLOB_SUBST
  137. else \$as_nop
  138. case \`(set -o) 2>/dev/null\` in #(
  139. *posix*) :
  140. set -o posix ;; #(
  141. *) :
  142. ;;
  143. esac
  144. fi
  145. "
  146. as_required="as_fn_return () { (exit \$1); }
  147. as_fn_success () { as_fn_return 0; }
  148. as_fn_failure () { as_fn_return 1; }
  149. as_fn_ret_success () { return 0; }
  150. as_fn_ret_failure () { return 1; }
  151. exitcode=0
  152. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  153. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  154. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  155. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  156. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  157. then :
  158. else \$as_nop
  159. exitcode=1; echo positional parameters were not saved.
  160. fi
  161. test x\$exitcode = x0 || exit 1
  162. blah=\$(echo \$(echo blah))
  163. test x\"\$blah\" = xblah || exit 1
  164. test -x / || exit 1"
  165. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  166. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  167. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  168. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  169. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  170. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  171. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  172. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  173. PATH=/empty FPATH=/empty; export PATH FPATH
  174. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  175. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  176. test \$(( 1 + 1 )) = 2 || exit 1"
  177. if (eval "$as_required") 2>/dev/null
  178. then :
  179. as_have_required=yes
  180. else $as_nop
  181. as_have_required=no
  182. fi
  183. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  184. then :
  185. else $as_nop
  186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  187. as_found=false
  188. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  189. do
  190. IFS=$as_save_IFS
  191. case $as_dir in #(((
  192. '') as_dir=./ ;;
  193. */) ;;
  194. *) as_dir=$as_dir/ ;;
  195. esac
  196. as_found=:
  197. case $as_dir in #(
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. # Try only shells that exist, to save several forks.
  201. as_shell=$as_dir$as_base
  202. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  203. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  204. then :
  205. CONFIG_SHELL=$as_shell as_have_required=yes
  206. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  207. then :
  208. break 2
  209. fi
  210. fi
  211. done;;
  212. esac
  213. as_found=false
  214. done
  215. IFS=$as_save_IFS
  216. if $as_found
  217. then :
  218. else $as_nop
  219. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  221. then :
  222. CONFIG_SHELL=$SHELL as_have_required=yes
  223. fi
  224. fi
  225. if test "x$CONFIG_SHELL" != x
  226. then :
  227. export CONFIG_SHELL
  228. # We cannot yet assume a decent shell, so we have to provide a
  229. # neutralization value for shells without unset; and this also
  230. # works around shells that cannot unset nonexistent variables.
  231. # Preserve -v and -x to the replacement shell.
  232. BASH_ENV=/dev/null
  233. ENV=/dev/null
  234. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  235. case $- in # ((((
  236. *v*x* | *x*v* ) as_opts=-vx ;;
  237. *v* ) as_opts=-v ;;
  238. *x* ) as_opts=-x ;;
  239. * ) as_opts= ;;
  240. esac
  241. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  242. # Admittedly, this is quite paranoid, since all the known shells bail
  243. # out after a failed `exec'.
  244. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  245. exit 255
  246. fi
  247. if test x$as_have_required = xno
  248. then :
  249. printf "%s\n" "$0: This script requires a shell more modern than all"
  250. printf "%s\n" "$0: the shells that I found on your system."
  251. if test ${ZSH_VERSION+y} ; then
  252. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  253. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  254. else
  255. printf "%s\n" "$0: Please tell [email protected] and - about your
  256. $0: system, including any error possibly output before this
  257. $0: message. Then install a modern shell, or manually run
  258. $0: the script under such a shell if you do have one."
  259. fi
  260. exit 1
  261. fi
  262. fi
  263. fi
  264. SHELL=${CONFIG_SHELL-/bin/sh}
  265. export SHELL
  266. # Unset more variables known to interfere with behavior of common tools.
  267. CLICOLOR_FORCE= GREP_OPTIONS=
  268. unset CLICOLOR_FORCE GREP_OPTIONS
  269. ## --------------------- ##
  270. ## M4sh Shell Functions. ##
  271. ## --------------------- ##
  272. # as_fn_unset VAR
  273. # ---------------
  274. # Portably unset VAR.
  275. as_fn_unset ()
  276. {
  277. { eval $1=; unset $1;}
  278. }
  279. as_unset=as_fn_unset
  280. # as_fn_set_status STATUS
  281. # -----------------------
  282. # Set $? to STATUS, without forking.
  283. as_fn_set_status ()
  284. {
  285. return $1
  286. } # as_fn_set_status
  287. # as_fn_exit STATUS
  288. # -----------------
  289. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  290. as_fn_exit ()
  291. {
  292. set +e
  293. as_fn_set_status $1
  294. exit $1
  295. } # as_fn_exit
  296. # as_fn_nop
  297. # ---------
  298. # Do nothing but, unlike ":", preserve the value of $?.
  299. as_fn_nop ()
  300. {
  301. return $?
  302. }
  303. as_nop=as_fn_nop
  304. # as_fn_mkdir_p
  305. # -------------
  306. # Create "$as_dir" as a directory, including parents if necessary.
  307. as_fn_mkdir_p ()
  308. {
  309. case $as_dir in #(
  310. -*) as_dir=./$as_dir;;
  311. esac
  312. test -d "$as_dir" || eval $as_mkdir_p || {
  313. as_dirs=
  314. while :; do
  315. case $as_dir in #(
  316. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  317. *) as_qdir=$as_dir;;
  318. esac
  319. as_dirs="'$as_qdir' $as_dirs"
  320. as_dir=`$as_dirname -- "$as_dir" ||
  321. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  322. X"$as_dir" : 'X\(//\)[^/]' \| \
  323. X"$as_dir" : 'X\(//\)$' \| \
  324. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  325. printf "%s\n" X"$as_dir" |
  326. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)[^/].*/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\/\)$/{
  335. s//\1/
  336. q
  337. }
  338. /^X\(\/\).*/{
  339. s//\1/
  340. q
  341. }
  342. s/.*/./; q'`
  343. test -d "$as_dir" && break
  344. done
  345. test -z "$as_dirs" || eval "mkdir $as_dirs"
  346. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  347. } # as_fn_mkdir_p
  348. # as_fn_executable_p FILE
  349. # -----------------------
  350. # Test if FILE is an executable regular file.
  351. as_fn_executable_p ()
  352. {
  353. test -f "$1" && test -x "$1"
  354. } # as_fn_executable_p
  355. # as_fn_append VAR VALUE
  356. # ----------------------
  357. # Append the text in VALUE to the end of the definition contained in VAR. Take
  358. # advantage of any shell optimizations that allow amortized linear growth over
  359. # repeated appends, instead of the typical quadratic growth present in naive
  360. # implementations.
  361. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  362. then :
  363. eval 'as_fn_append ()
  364. {
  365. eval $1+=\$2
  366. }'
  367. else $as_nop
  368. as_fn_append ()
  369. {
  370. eval $1=\$$1\$2
  371. }
  372. fi # as_fn_append
  373. # as_fn_arith ARG...
  374. # ------------------
  375. # Perform arithmetic evaluation on the ARGs, and store the result in the
  376. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  377. # must be portable across $(()) and expr.
  378. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  379. then :
  380. eval 'as_fn_arith ()
  381. {
  382. as_val=$(( $* ))
  383. }'
  384. else $as_nop
  385. as_fn_arith ()
  386. {
  387. as_val=`expr "$@" || test $? -eq 1`
  388. }
  389. fi # as_fn_arith
  390. # as_fn_nop
  391. # ---------
  392. # Do nothing but, unlike ":", preserve the value of $?.
  393. as_fn_nop ()
  394. {
  395. return $?
  396. }
  397. as_nop=as_fn_nop
  398. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  399. # ----------------------------------------
  400. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  401. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  402. # script with STATUS, using 1 if that was 0.
  403. as_fn_error ()
  404. {
  405. as_status=$1; test $as_status -eq 0 && as_status=1
  406. if test "$4"; then
  407. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  408. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  409. fi
  410. printf "%s\n" "$as_me: error: $2" >&2
  411. as_fn_exit $as_status
  412. } # as_fn_error
  413. if expr a : '\(a\)' >/dev/null 2>&1 &&
  414. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  415. as_expr=expr
  416. else
  417. as_expr=false
  418. fi
  419. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  420. as_basename=basename
  421. else
  422. as_basename=false
  423. fi
  424. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  425. as_dirname=dirname
  426. else
  427. as_dirname=false
  428. fi
  429. as_me=`$as_basename -- "$0" ||
  430. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  431. X"$0" : 'X\(//\)$' \| \
  432. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  433. printf "%s\n" X/"$0" |
  434. sed '/^.*\/\([^/][^/]*\)\/*$/{
  435. s//\1/
  436. q
  437. }
  438. /^X\/\(\/\/\)$/{
  439. s//\1/
  440. q
  441. }
  442. /^X\/\(\/\).*/{
  443. s//\1/
  444. q
  445. }
  446. s/.*/./; q'`
  447. # Avoid depending upon Character Ranges.
  448. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  449. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  450. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  451. as_cr_digits='0123456789'
  452. as_cr_alnum=$as_cr_Letters$as_cr_digits
  453. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  454. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  455. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  456. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  457. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  458. sed -n '
  459. p
  460. /[$]LINENO/=
  461. ' <$as_myself |
  462. sed '
  463. s/[$]LINENO.*/&-/
  464. t lineno
  465. b
  466. :lineno
  467. N
  468. :loop
  469. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  470. t loop
  471. s/-\n.*//
  472. ' >$as_me.lineno &&
  473. chmod +x "$as_me.lineno" ||
  474. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  475. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  476. # already done that, so ensure we don't try to do so again and fall
  477. # in an infinite loop. This has already happened in practice.
  478. _as_can_reexec=no; export _as_can_reexec
  479. # Don't try to exec as it changes $[0], causing all sort of problems
  480. # (the dirname of $[0] is not the place where we might find the
  481. # original and so on. Autoconf is especially sensitive to this).
  482. . "./$as_me.lineno"
  483. # Exit status is that of the last command.
  484. exit
  485. }
  486. # Determine whether it's possible to make 'echo' print without a newline.
  487. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  488. # for compatibility with existing Makefiles.
  489. ECHO_C= ECHO_N= ECHO_T=
  490. case `echo -n x` in #(((((
  491. -n*)
  492. case `echo 'xy\c'` in
  493. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  494. xy) ECHO_C='\c';;
  495. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  496. ECHO_T=' ';;
  497. esac;;
  498. *)
  499. ECHO_N='-n';;
  500. esac
  501. # For backward compatibility with old third-party macros, we provide
  502. # the shell variables $as_echo and $as_echo_n. New code should use
  503. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  504. as_echo='printf %s\n'
  505. as_echo_n='printf %s'
  506. rm -f conf$$ conf$$.exe conf$$.file
  507. if test -d conf$$.dir; then
  508. rm -f conf$$.dir/conf$$.file
  509. else
  510. rm -f conf$$.dir
  511. mkdir conf$$.dir 2>/dev/null
  512. fi
  513. if (echo >conf$$.file) 2>/dev/null; then
  514. if ln -s conf$$.file conf$$ 2>/dev/null; then
  515. as_ln_s='ln -s'
  516. # ... but there are two gotchas:
  517. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  518. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  519. # In both cases, we have to default to `cp -pR'.
  520. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  521. as_ln_s='cp -pR'
  522. elif ln conf$$.file conf$$ 2>/dev/null; then
  523. as_ln_s=ln
  524. else
  525. as_ln_s='cp -pR'
  526. fi
  527. else
  528. as_ln_s='cp -pR'
  529. fi
  530. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  531. rmdir conf$$.dir 2>/dev/null
  532. if mkdir -p . 2>/dev/null; then
  533. as_mkdir_p='mkdir -p "$as_dir"'
  534. else
  535. test -d ./-p && rmdir ./-p
  536. as_mkdir_p=false
  537. fi
  538. as_test_x='test -x'
  539. as_executable_p=as_fn_executable_p
  540. # Sed expression to map a string onto a valid CPP name.
  541. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  542. # Sed expression to map a string onto a valid variable name.
  543. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  544. SHELL=${CONFIG_SHELL-/bin/sh}
  545. test -n "$DJDIR" || exec 7<&0 </dev/null
  546. exec 6>&1
  547. # Name of the host.
  548. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  549. # so uname gets run too.
  550. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  551. #
  552. # Initializations.
  553. #
  554. ac_default_prefix=/usr/local
  555. ac_clean_files=
  556. ac_config_libobj_dir=.
  557. LIBOBJS=
  558. cross_compiling=no
  559. subdirs=
  560. MFLAGS=
  561. MAKEFLAGS=
  562. # Identity of this package.
  563. PACKAGE_NAME='c-ares-test'
  564. PACKAGE_TARNAME='c-ares-test'
  565. PACKAGE_VERSION='-'
  566. PACKAGE_STRING='c-ares-test -'
  567. PACKAGE_BUGREPORT='-'
  568. PACKAGE_URL=''
  569. ac_unique_file="ares-test.cc"
  570. # Factoring default headers for most tests.
  571. ac_includes_default="\
  572. #include <stddef.h>
  573. #ifdef HAVE_STDIO_H
  574. # include <stdio.h>
  575. #endif
  576. #ifdef HAVE_STDLIB_H
  577. # include <stdlib.h>
  578. #endif
  579. #ifdef HAVE_STRING_H
  580. # include <string.h>
  581. #endif
  582. #ifdef HAVE_INTTYPES_H
  583. # include <inttypes.h>
  584. #endif
  585. #ifdef HAVE_STDINT_H
  586. # include <stdint.h>
  587. #endif
  588. #ifdef HAVE_STRINGS_H
  589. # include <strings.h>
  590. #endif
  591. #ifdef HAVE_SYS_TYPES_H
  592. # include <sys/types.h>
  593. #endif
  594. #ifdef HAVE_SYS_STAT_H
  595. # include <sys/stat.h>
  596. #endif
  597. #ifdef HAVE_UNISTD_H
  598. # include <unistd.h>
  599. #endif"
  600. ac_header_c_list=
  601. ac_subst_vars='am__EXEEXT_FALSE
  602. am__EXEEXT_TRUE
  603. LTLIBOBJS
  604. LIBOBJS
  605. CODE_COVERAGE_LIBS
  606. CODE_COVERAGE_CXXFLAGS
  607. CODE_COVERAGE_CFLAGS
  608. CODE_COVERAGE_CPPFLAGS
  609. GENHTML
  610. LCOV
  611. GCOV
  612. ifnGNUmake
  613. ifGNUmake
  614. CODE_COVERAGE_ENABLED
  615. CODE_COVERAGE_ENABLED_FALSE
  616. CODE_COVERAGE_ENABLED_TRUE
  617. PTHREAD_CFLAGS
  618. PTHREAD_LIBS
  619. PTHREAD_CC
  620. ax_pthread_config
  621. LIBTOOL_DEPS
  622. CXXCPP
  623. LT_SYS_LIBRARY_PATH
  624. OTOOL64
  625. OTOOL
  626. LIPO
  627. NMEDIT
  628. DSYMUTIL
  629. MANIFEST_TOOL
  630. RANLIB
  631. ac_ct_AR
  632. AR
  633. DLLTOOL
  634. OBJDUMP
  635. LN_S
  636. NM
  637. ac_ct_DUMPBIN
  638. DUMPBIN
  639. LD
  640. FGREP
  641. EGREP
  642. GREP
  643. SED
  644. am__fastdepCC_FALSE
  645. am__fastdepCC_TRUE
  646. CCDEPMODE
  647. ac_ct_CC
  648. CFLAGS
  649. CC
  650. host_os
  651. host_vendor
  652. host_cpu
  653. host
  654. build_os
  655. build_vendor
  656. build_cpu
  657. build
  658. LIBTOOL
  659. HAVE_CXX11
  660. am__fastdepCXX_FALSE
  661. am__fastdepCXX_TRUE
  662. CXXDEPMODE
  663. am__nodep
  664. AMDEPBACKSLASH
  665. AMDEP_FALSE
  666. AMDEP_TRUE
  667. am__include
  668. DEPDIR
  669. OBJEXT
  670. EXEEXT
  671. ac_ct_CXX
  672. CPPFLAGS
  673. LDFLAGS
  674. CXXFLAGS
  675. CXX
  676. AM_BACKSLASH
  677. AM_DEFAULT_VERBOSITY
  678. AM_DEFAULT_V
  679. AM_V
  680. CSCOPE
  681. ETAGS
  682. CTAGS
  683. am__untar
  684. am__tar
  685. AMTAR
  686. am__leading_dot
  687. SET_MAKE
  688. AWK
  689. mkdir_p
  690. MKDIR_P
  691. INSTALL_STRIP_PROGRAM
  692. STRIP
  693. install_sh
  694. MAKEINFO
  695. AUTOHEADER
  696. AUTOMAKE
  697. AUTOCONF
  698. ACLOCAL
  699. VERSION
  700. PACKAGE
  701. CYGPATH_W
  702. am__isrc
  703. INSTALL_DATA
  704. INSTALL_SCRIPT
  705. INSTALL_PROGRAM
  706. target_alias
  707. host_alias
  708. build_alias
  709. LIBS
  710. ECHO_T
  711. ECHO_N
  712. ECHO_C
  713. DEFS
  714. mandir
  715. localedir
  716. libdir
  717. psdir
  718. pdfdir
  719. dvidir
  720. htmldir
  721. infodir
  722. docdir
  723. oldincludedir
  724. includedir
  725. runstatedir
  726. localstatedir
  727. sharedstatedir
  728. sysconfdir
  729. datadir
  730. datarootdir
  731. libexecdir
  732. sbindir
  733. bindir
  734. program_transform_name
  735. prefix
  736. exec_prefix
  737. PACKAGE_URL
  738. PACKAGE_BUGREPORT
  739. PACKAGE_STRING
  740. PACKAGE_VERSION
  741. PACKAGE_TARNAME
  742. PACKAGE_NAME
  743. PATH_SEPARATOR
  744. SHELL
  745. am__quote'
  746. ac_subst_files=''
  747. ac_user_opts='
  748. enable_option_checking
  749. enable_silent_rules
  750. enable_dependency_tracking
  751. enable_shared
  752. enable_static
  753. with_pic
  754. enable_fast_install
  755. with_aix_soname
  756. with_gnu_ld
  757. with_sysroot
  758. enable_libtool_lock
  759. with_gcov
  760. enable_code_coverage
  761. '
  762. ac_precious_vars='build_alias
  763. host_alias
  764. target_alias
  765. CXX
  766. CXXFLAGS
  767. LDFLAGS
  768. LIBS
  769. CPPFLAGS
  770. CCC
  771. CC
  772. CFLAGS
  773. LT_SYS_LIBRARY_PATH
  774. CXXCPP'
  775. # Initialize some variables set by options.
  776. ac_init_help=
  777. ac_init_version=false
  778. ac_unrecognized_opts=
  779. ac_unrecognized_sep=
  780. # The variables have the same names as the options, with
  781. # dashes changed to underlines.
  782. cache_file=/dev/null
  783. exec_prefix=NONE
  784. no_create=
  785. no_recursion=
  786. prefix=NONE
  787. program_prefix=NONE
  788. program_suffix=NONE
  789. program_transform_name=s,x,x,
  790. silent=
  791. site=
  792. srcdir=
  793. verbose=
  794. x_includes=NONE
  795. x_libraries=NONE
  796. # Installation directory options.
  797. # These are left unexpanded so users can "make install exec_prefix=/foo"
  798. # and all the variables that are supposed to be based on exec_prefix
  799. # by default will actually change.
  800. # Use braces instead of parens because sh, perl, etc. also accept them.
  801. # (The list follows the same order as the GNU Coding Standards.)
  802. bindir='${exec_prefix}/bin'
  803. sbindir='${exec_prefix}/sbin'
  804. libexecdir='${exec_prefix}/libexec'
  805. datarootdir='${prefix}/share'
  806. datadir='${datarootdir}'
  807. sysconfdir='${prefix}/etc'
  808. sharedstatedir='${prefix}/com'
  809. localstatedir='${prefix}/var'
  810. runstatedir='${localstatedir}/run'
  811. includedir='${prefix}/include'
  812. oldincludedir='/usr/include'
  813. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  814. infodir='${datarootdir}/info'
  815. htmldir='${docdir}'
  816. dvidir='${docdir}'
  817. pdfdir='${docdir}'
  818. psdir='${docdir}'
  819. libdir='${exec_prefix}/lib'
  820. localedir='${datarootdir}/locale'
  821. mandir='${datarootdir}/man'
  822. ac_prev=
  823. ac_dashdash=
  824. for ac_option
  825. do
  826. # If the previous option needs an argument, assign it.
  827. if test -n "$ac_prev"; then
  828. eval $ac_prev=\$ac_option
  829. ac_prev=
  830. continue
  831. fi
  832. case $ac_option in
  833. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  834. *=) ac_optarg= ;;
  835. *) ac_optarg=yes ;;
  836. esac
  837. case $ac_dashdash$ac_option in
  838. --)
  839. ac_dashdash=yes ;;
  840. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  841. ac_prev=bindir ;;
  842. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  843. bindir=$ac_optarg ;;
  844. -build | --build | --buil | --bui | --bu)
  845. ac_prev=build_alias ;;
  846. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  847. build_alias=$ac_optarg ;;
  848. -cache-file | --cache-file | --cache-fil | --cache-fi \
  849. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  850. ac_prev=cache_file ;;
  851. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  852. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  853. cache_file=$ac_optarg ;;
  854. --config-cache | -C)
  855. cache_file=config.cache ;;
  856. -datadir | --datadir | --datadi | --datad)
  857. ac_prev=datadir ;;
  858. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  859. datadir=$ac_optarg ;;
  860. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  861. | --dataroo | --dataro | --datar)
  862. ac_prev=datarootdir ;;
  863. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  864. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  865. datarootdir=$ac_optarg ;;
  866. -disable-* | --disable-*)
  867. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  868. # Reject names that are not valid shell variable names.
  869. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  870. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  871. ac_useropt_orig=$ac_useropt
  872. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  873. case $ac_user_opts in
  874. *"
  875. "enable_$ac_useropt"
  876. "*) ;;
  877. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  878. ac_unrecognized_sep=', ';;
  879. esac
  880. eval enable_$ac_useropt=no ;;
  881. -docdir | --docdir | --docdi | --doc | --do)
  882. ac_prev=docdir ;;
  883. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  884. docdir=$ac_optarg ;;
  885. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  886. ac_prev=dvidir ;;
  887. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  888. dvidir=$ac_optarg ;;
  889. -enable-* | --enable-*)
  890. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  891. # Reject names that are not valid shell variable names.
  892. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  893. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  894. ac_useropt_orig=$ac_useropt
  895. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  896. case $ac_user_opts in
  897. *"
  898. "enable_$ac_useropt"
  899. "*) ;;
  900. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  901. ac_unrecognized_sep=', ';;
  902. esac
  903. eval enable_$ac_useropt=\$ac_optarg ;;
  904. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  905. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  906. | --exec | --exe | --ex)
  907. ac_prev=exec_prefix ;;
  908. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  909. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  910. | --exec=* | --exe=* | --ex=*)
  911. exec_prefix=$ac_optarg ;;
  912. -gas | --gas | --ga | --g)
  913. # Obsolete; use --with-gas.
  914. with_gas=yes ;;
  915. -help | --help | --hel | --he | -h)
  916. ac_init_help=long ;;
  917. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  918. ac_init_help=recursive ;;
  919. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  920. ac_init_help=short ;;
  921. -host | --host | --hos | --ho)
  922. ac_prev=host_alias ;;
  923. -host=* | --host=* | --hos=* | --ho=*)
  924. host_alias=$ac_optarg ;;
  925. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  926. ac_prev=htmldir ;;
  927. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  928. | --ht=*)
  929. htmldir=$ac_optarg ;;
  930. -includedir | --includedir | --includedi | --included | --include \
  931. | --includ | --inclu | --incl | --inc)
  932. ac_prev=includedir ;;
  933. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  934. | --includ=* | --inclu=* | --incl=* | --inc=*)
  935. includedir=$ac_optarg ;;
  936. -infodir | --infodir | --infodi | --infod | --info | --inf)
  937. ac_prev=infodir ;;
  938. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  939. infodir=$ac_optarg ;;
  940. -libdir | --libdir | --libdi | --libd)
  941. ac_prev=libdir ;;
  942. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  943. libdir=$ac_optarg ;;
  944. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  945. | --libexe | --libex | --libe)
  946. ac_prev=libexecdir ;;
  947. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  948. | --libexe=* | --libex=* | --libe=*)
  949. libexecdir=$ac_optarg ;;
  950. -localedir | --localedir | --localedi | --localed | --locale)
  951. ac_prev=localedir ;;
  952. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  953. localedir=$ac_optarg ;;
  954. -localstatedir | --localstatedir | --localstatedi | --localstated \
  955. | --localstate | --localstat | --localsta | --localst | --locals)
  956. ac_prev=localstatedir ;;
  957. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  958. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  959. localstatedir=$ac_optarg ;;
  960. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  961. ac_prev=mandir ;;
  962. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  963. mandir=$ac_optarg ;;
  964. -nfp | --nfp | --nf)
  965. # Obsolete; use --without-fp.
  966. with_fp=no ;;
  967. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  968. | --no-cr | --no-c | -n)
  969. no_create=yes ;;
  970. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  971. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  972. no_recursion=yes ;;
  973. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  974. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  975. | --oldin | --oldi | --old | --ol | --o)
  976. ac_prev=oldincludedir ;;
  977. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  978. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  979. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  980. oldincludedir=$ac_optarg ;;
  981. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  982. ac_prev=prefix ;;
  983. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  984. prefix=$ac_optarg ;;
  985. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  986. | --program-pre | --program-pr | --program-p)
  987. ac_prev=program_prefix ;;
  988. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  989. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  990. program_prefix=$ac_optarg ;;
  991. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  992. | --program-suf | --program-su | --program-s)
  993. ac_prev=program_suffix ;;
  994. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  995. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  996. program_suffix=$ac_optarg ;;
  997. -program-transform-name | --program-transform-name \
  998. | --program-transform-nam | --program-transform-na \
  999. | --program-transform-n | --program-transform- \
  1000. | --program-transform | --program-transfor \
  1001. | --program-transfo | --program-transf \
  1002. | --program-trans | --program-tran \
  1003. | --progr-tra | --program-tr | --program-t)
  1004. ac_prev=program_transform_name ;;
  1005. -program-transform-name=* | --program-transform-name=* \
  1006. | --program-transform-nam=* | --program-transform-na=* \
  1007. | --program-transform-n=* | --program-transform-=* \
  1008. | --program-transform=* | --program-transfor=* \
  1009. | --program-transfo=* | --program-transf=* \
  1010. | --program-trans=* | --program-tran=* \
  1011. | --progr-tra=* | --program-tr=* | --program-t=*)
  1012. program_transform_name=$ac_optarg ;;
  1013. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1014. ac_prev=pdfdir ;;
  1015. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1016. pdfdir=$ac_optarg ;;
  1017. -psdir | --psdir | --psdi | --psd | --ps)
  1018. ac_prev=psdir ;;
  1019. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1020. psdir=$ac_optarg ;;
  1021. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1022. | -silent | --silent | --silen | --sile | --sil)
  1023. silent=yes ;;
  1024. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1025. | --runstate | --runstat | --runsta | --runst | --runs \
  1026. | --run | --ru | --r)
  1027. ac_prev=runstatedir ;;
  1028. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1029. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1030. | --run=* | --ru=* | --r=*)
  1031. runstatedir=$ac_optarg ;;
  1032. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1033. ac_prev=sbindir ;;
  1034. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1035. | --sbi=* | --sb=*)
  1036. sbindir=$ac_optarg ;;
  1037. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1038. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1039. | --sharedst | --shareds | --shared | --share | --shar \
  1040. | --sha | --sh)
  1041. ac_prev=sharedstatedir ;;
  1042. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1043. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1044. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1045. | --sha=* | --sh=*)
  1046. sharedstatedir=$ac_optarg ;;
  1047. -site | --site | --sit)
  1048. ac_prev=site ;;
  1049. -site=* | --site=* | --sit=*)
  1050. site=$ac_optarg ;;
  1051. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1052. ac_prev=srcdir ;;
  1053. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1054. srcdir=$ac_optarg ;;
  1055. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1056. | --syscon | --sysco | --sysc | --sys | --sy)
  1057. ac_prev=sysconfdir ;;
  1058. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1059. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1060. sysconfdir=$ac_optarg ;;
  1061. -target | --target | --targe | --targ | --tar | --ta | --t)
  1062. ac_prev=target_alias ;;
  1063. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1064. target_alias=$ac_optarg ;;
  1065. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1066. verbose=yes ;;
  1067. -version | --version | --versio | --versi | --vers | -V)
  1068. ac_init_version=: ;;
  1069. -with-* | --with-*)
  1070. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1071. # Reject names that are not valid shell variable names.
  1072. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1073. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1074. ac_useropt_orig=$ac_useropt
  1075. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1076. case $ac_user_opts in
  1077. *"
  1078. "with_$ac_useropt"
  1079. "*) ;;
  1080. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1081. ac_unrecognized_sep=', ';;
  1082. esac
  1083. eval with_$ac_useropt=\$ac_optarg ;;
  1084. -without-* | --without-*)
  1085. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1086. # Reject names that are not valid shell variable names.
  1087. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1088. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1089. ac_useropt_orig=$ac_useropt
  1090. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1091. case $ac_user_opts in
  1092. *"
  1093. "with_$ac_useropt"
  1094. "*) ;;
  1095. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1096. ac_unrecognized_sep=', ';;
  1097. esac
  1098. eval with_$ac_useropt=no ;;
  1099. --x)
  1100. # Obsolete; use --with-x.
  1101. with_x=yes ;;
  1102. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1103. | --x-incl | --x-inc | --x-in | --x-i)
  1104. ac_prev=x_includes ;;
  1105. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1106. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1107. x_includes=$ac_optarg ;;
  1108. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1109. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1110. ac_prev=x_libraries ;;
  1111. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1112. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1113. x_libraries=$ac_optarg ;;
  1114. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1115. Try \`$0 --help' for more information"
  1116. ;;
  1117. *=*)
  1118. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1119. # Reject names that are not valid shell variable names.
  1120. case $ac_envvar in #(
  1121. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1122. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1123. esac
  1124. eval $ac_envvar=\$ac_optarg
  1125. export $ac_envvar ;;
  1126. *)
  1127. # FIXME: should be removed in autoconf 3.0.
  1128. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1129. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1130. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1131. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1132. ;;
  1133. esac
  1134. done
  1135. if test -n "$ac_prev"; then
  1136. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1137. as_fn_error $? "missing argument to $ac_option"
  1138. fi
  1139. if test -n "$ac_unrecognized_opts"; then
  1140. case $enable_option_checking in
  1141. no) ;;
  1142. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1143. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1144. esac
  1145. fi
  1146. # Check all directory arguments for consistency.
  1147. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1148. datadir sysconfdir sharedstatedir localstatedir includedir \
  1149. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1150. libdir localedir mandir runstatedir
  1151. do
  1152. eval ac_val=\$$ac_var
  1153. # Remove trailing slashes.
  1154. case $ac_val in
  1155. */ )
  1156. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1157. eval $ac_var=\$ac_val;;
  1158. esac
  1159. # Be sure to have absolute directory names.
  1160. case $ac_val in
  1161. [\\/$]* | ?:[\\/]* ) continue;;
  1162. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1163. esac
  1164. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1165. done
  1166. # There might be people who depend on the old broken behavior: `$host'
  1167. # used to hold the argument of --host etc.
  1168. # FIXME: To remove some day.
  1169. build=$build_alias
  1170. host=$host_alias
  1171. target=$target_alias
  1172. # FIXME: To remove some day.
  1173. if test "x$host_alias" != x; then
  1174. if test "x$build_alias" = x; then
  1175. cross_compiling=maybe
  1176. elif test "x$build_alias" != "x$host_alias"; then
  1177. cross_compiling=yes
  1178. fi
  1179. fi
  1180. ac_tool_prefix=
  1181. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1182. test "$silent" = yes && exec 6>/dev/null
  1183. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1184. ac_ls_di=`ls -di .` &&
  1185. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1186. as_fn_error $? "working directory cannot be determined"
  1187. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1188. as_fn_error $? "pwd does not report name of working directory"
  1189. # Find the source files, if location was not specified.
  1190. if test -z "$srcdir"; then
  1191. ac_srcdir_defaulted=yes
  1192. # Try the directory containing this script, then the parent directory.
  1193. ac_confdir=`$as_dirname -- "$as_myself" ||
  1194. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1195. X"$as_myself" : 'X\(//\)[^/]' \| \
  1196. X"$as_myself" : 'X\(//\)$' \| \
  1197. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1198. printf "%s\n" X"$as_myself" |
  1199. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1200. s//\1/
  1201. q
  1202. }
  1203. /^X\(\/\/\)[^/].*/{
  1204. s//\1/
  1205. q
  1206. }
  1207. /^X\(\/\/\)$/{
  1208. s//\1/
  1209. q
  1210. }
  1211. /^X\(\/\).*/{
  1212. s//\1/
  1213. q
  1214. }
  1215. s/.*/./; q'`
  1216. srcdir=$ac_confdir
  1217. if test ! -r "$srcdir/$ac_unique_file"; then
  1218. srcdir=..
  1219. fi
  1220. else
  1221. ac_srcdir_defaulted=no
  1222. fi
  1223. if test ! -r "$srcdir/$ac_unique_file"; then
  1224. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1225. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1226. fi
  1227. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1228. ac_abs_confdir=`(
  1229. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1230. pwd)`
  1231. # When building in place, set srcdir=.
  1232. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1233. srcdir=.
  1234. fi
  1235. # Remove unnecessary trailing slashes from srcdir.
  1236. # Double slashes in file names in object file debugging info
  1237. # mess up M-x gdb in Emacs.
  1238. case $srcdir in
  1239. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1240. esac
  1241. for ac_var in $ac_precious_vars; do
  1242. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1243. eval ac_env_${ac_var}_value=\$${ac_var}
  1244. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1245. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1246. done
  1247. #
  1248. # Report the --help message.
  1249. #
  1250. if test "$ac_init_help" = "long"; then
  1251. # Omit some internal or obsolete options to make the list less imposing.
  1252. # This message is too long to be a string in the A/UX 3.1 sh.
  1253. cat <<_ACEOF
  1254. \`configure' configures c-ares-test - to adapt to many kinds of systems.
  1255. Usage: $0 [OPTION]... [VAR=VALUE]...
  1256. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1257. VAR=VALUE. See below for descriptions of some of the useful variables.
  1258. Defaults for the options are specified in brackets.
  1259. Configuration:
  1260. -h, --help display this help and exit
  1261. --help=short display options specific to this package
  1262. --help=recursive display the short help of all the included packages
  1263. -V, --version display version information and exit
  1264. -q, --quiet, --silent do not print \`checking ...' messages
  1265. --cache-file=FILE cache test results in FILE [disabled]
  1266. -C, --config-cache alias for \`--cache-file=config.cache'
  1267. -n, --no-create do not create output files
  1268. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1269. Installation directories:
  1270. --prefix=PREFIX install architecture-independent files in PREFIX
  1271. [$ac_default_prefix]
  1272. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1273. [PREFIX]
  1274. By default, \`make install' will install all the files in
  1275. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1276. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1277. for instance \`--prefix=\$HOME'.
  1278. For better control, use the options below.
  1279. Fine tuning of the installation directories:
  1280. --bindir=DIR user executables [EPREFIX/bin]
  1281. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1282. --libexecdir=DIR program executables [EPREFIX/libexec]
  1283. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1284. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1285. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1286. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1287. --libdir=DIR object code libraries [EPREFIX/lib]
  1288. --includedir=DIR C header files [PREFIX/include]
  1289. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1290. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1291. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1292. --infodir=DIR info documentation [DATAROOTDIR/info]
  1293. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1294. --mandir=DIR man documentation [DATAROOTDIR/man]
  1295. --docdir=DIR documentation root [DATAROOTDIR/doc/c-ares-test]
  1296. --htmldir=DIR html documentation [DOCDIR]
  1297. --dvidir=DIR dvi documentation [DOCDIR]
  1298. --pdfdir=DIR pdf documentation [DOCDIR]
  1299. --psdir=DIR ps documentation [DOCDIR]
  1300. _ACEOF
  1301. cat <<\_ACEOF
  1302. Program names:
  1303. --program-prefix=PREFIX prepend PREFIX to installed program names
  1304. --program-suffix=SUFFIX append SUFFIX to installed program names
  1305. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1306. System types:
  1307. --build=BUILD configure for building on BUILD [guessed]
  1308. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1309. _ACEOF
  1310. fi
  1311. if test -n "$ac_init_help"; then
  1312. case $ac_init_help in
  1313. short | recursive ) echo "Configuration of c-ares-test -:";;
  1314. esac
  1315. cat <<\_ACEOF
  1316. Optional Features:
  1317. --disable-option-checking ignore unrecognized --enable/--with options
  1318. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1319. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1320. --enable-silent-rules less verbose build output (undo: "make V=1")
  1321. --disable-silent-rules verbose build output (undo: "make V=0")
  1322. --enable-dependency-tracking
  1323. do not reject slow dependency extractors
  1324. --disable-dependency-tracking
  1325. speeds up one-time build
  1326. --enable-shared[=PKGS] build shared libraries [default=yes]
  1327. --enable-static[=PKGS] build static libraries [default=yes]
  1328. --enable-fast-install[=PKGS]
  1329. optimize for fast installation [default=yes]
  1330. --disable-libtool-lock avoid locking (might break parallel builds)
  1331. --enable-code-coverage Whether to enable code coverage support
  1332. Optional Packages:
  1333. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1334. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1335. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1336. both]
  1337. --with-aix-soname=aix|svr4|both
  1338. shared library versioning (aka "SONAME") variant to
  1339. provide on AIX, [default=aix].
  1340. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1341. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1342. compiler's sysroot if not specified).
  1343. --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
  1344. Some influential environment variables:
  1345. CXX C++ compiler command
  1346. CXXFLAGS C++ compiler flags
  1347. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1348. nonstandard directory <lib dir>
  1349. LIBS libraries to pass to the linker, e.g. -l<library>
  1350. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1351. you have headers in a nonstandard directory <include dir>
  1352. CC C compiler command
  1353. CFLAGS C compiler flags
  1354. LT_SYS_LIBRARY_PATH
  1355. User-defined run-time library search path.
  1356. CXXCPP C++ preprocessor
  1357. Use these variables to override the choices made by `configure' or to help
  1358. it to find libraries and programs with nonstandard names/locations.
  1359. Report bugs to <->.
  1360. _ACEOF
  1361. ac_status=$?
  1362. fi
  1363. if test "$ac_init_help" = "recursive"; then
  1364. # If there are subdirs, report their specific --help.
  1365. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1366. test -d "$ac_dir" ||
  1367. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1368. continue
  1369. ac_builddir=.
  1370. case "$ac_dir" in
  1371. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1372. *)
  1373. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1374. # A ".." for each directory in $ac_dir_suffix.
  1375. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1376. case $ac_top_builddir_sub in
  1377. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1378. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1379. esac ;;
  1380. esac
  1381. ac_abs_top_builddir=$ac_pwd
  1382. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1383. # for backward compatibility:
  1384. ac_top_builddir=$ac_top_build_prefix
  1385. case $srcdir in
  1386. .) # We are building in place.
  1387. ac_srcdir=.
  1388. ac_top_srcdir=$ac_top_builddir_sub
  1389. ac_abs_top_srcdir=$ac_pwd ;;
  1390. [\\/]* | ?:[\\/]* ) # Absolute name.
  1391. ac_srcdir=$srcdir$ac_dir_suffix;
  1392. ac_top_srcdir=$srcdir
  1393. ac_abs_top_srcdir=$srcdir ;;
  1394. *) # Relative name.
  1395. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1396. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1397. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1398. esac
  1399. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1400. cd "$ac_dir" || { ac_status=$?; continue; }
  1401. # Check for configure.gnu first; this name is used for a wrapper for
  1402. # Metaconfig's "Configure" on case-insensitive file systems.
  1403. if test -f "$ac_srcdir/configure.gnu"; then
  1404. echo &&
  1405. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1406. elif test -f "$ac_srcdir/configure"; then
  1407. echo &&
  1408. $SHELL "$ac_srcdir/configure" --help=recursive
  1409. else
  1410. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1411. fi || ac_status=$?
  1412. cd "$ac_pwd" || { ac_status=$?; break; }
  1413. done
  1414. fi
  1415. test -n "$ac_init_help" && exit $ac_status
  1416. if $ac_init_version; then
  1417. cat <<\_ACEOF
  1418. c-ares-test configure -
  1419. generated by GNU Autoconf 2.71
  1420. Copyright (C) 2021 Free Software Foundation, Inc.
  1421. This configure script is free software; the Free Software Foundation
  1422. gives unlimited permission to copy, distribute and modify it.
  1423. _ACEOF
  1424. exit
  1425. fi
  1426. ## ------------------------ ##
  1427. ## Autoconf initialization. ##
  1428. ## ------------------------ ##
  1429. # ac_fn_cxx_try_compile LINENO
  1430. # ----------------------------
  1431. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1432. ac_fn_cxx_try_compile ()
  1433. {
  1434. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1435. rm -f conftest.$ac_objext conftest.beam
  1436. if { { ac_try="$ac_compile"
  1437. case "(($ac_try" in
  1438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1439. *) ac_try_echo=$ac_try;;
  1440. esac
  1441. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1442. printf "%s\n" "$ac_try_echo"; } >&5
  1443. (eval "$ac_compile") 2>conftest.err
  1444. ac_status=$?
  1445. if test -s conftest.err; then
  1446. grep -v '^ *+' conftest.err >conftest.er1
  1447. cat conftest.er1 >&5
  1448. mv -f conftest.er1 conftest.err
  1449. fi
  1450. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1451. test $ac_status = 0; } && {
  1452. test -z "$ac_cxx_werror_flag" ||
  1453. test ! -s conftest.err
  1454. } && test -s conftest.$ac_objext
  1455. then :
  1456. ac_retval=0
  1457. else $as_nop
  1458. printf "%s\n" "$as_me: failed program was:" >&5
  1459. sed 's/^/| /' conftest.$ac_ext >&5
  1460. ac_retval=1
  1461. fi
  1462. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1463. as_fn_set_status $ac_retval
  1464. } # ac_fn_cxx_try_compile
  1465. # ac_fn_c_try_compile LINENO
  1466. # --------------------------
  1467. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1468. ac_fn_c_try_compile ()
  1469. {
  1470. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1471. rm -f conftest.$ac_objext conftest.beam
  1472. if { { ac_try="$ac_compile"
  1473. case "(($ac_try" in
  1474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1475. *) ac_try_echo=$ac_try;;
  1476. esac
  1477. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1478. printf "%s\n" "$ac_try_echo"; } >&5
  1479. (eval "$ac_compile") 2>conftest.err
  1480. ac_status=$?
  1481. if test -s conftest.err; then
  1482. grep -v '^ *+' conftest.err >conftest.er1
  1483. cat conftest.er1 >&5
  1484. mv -f conftest.er1 conftest.err
  1485. fi
  1486. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1487. test $ac_status = 0; } && {
  1488. test -z "$ac_c_werror_flag" ||
  1489. test ! -s conftest.err
  1490. } && test -s conftest.$ac_objext
  1491. then :
  1492. ac_retval=0
  1493. else $as_nop
  1494. printf "%s\n" "$as_me: failed program was:" >&5
  1495. sed 's/^/| /' conftest.$ac_ext >&5
  1496. ac_retval=1
  1497. fi
  1498. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1499. as_fn_set_status $ac_retval
  1500. } # ac_fn_c_try_compile
  1501. # ac_fn_c_try_link LINENO
  1502. # -----------------------
  1503. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1504. ac_fn_c_try_link ()
  1505. {
  1506. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1507. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1508. if { { ac_try="$ac_link"
  1509. case "(($ac_try" in
  1510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1511. *) ac_try_echo=$ac_try;;
  1512. esac
  1513. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1514. printf "%s\n" "$ac_try_echo"; } >&5
  1515. (eval "$ac_link") 2>conftest.err
  1516. ac_status=$?
  1517. if test -s conftest.err; then
  1518. grep -v '^ *+' conftest.err >conftest.er1
  1519. cat conftest.er1 >&5
  1520. mv -f conftest.er1 conftest.err
  1521. fi
  1522. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1523. test $ac_status = 0; } && {
  1524. test -z "$ac_c_werror_flag" ||
  1525. test ! -s conftest.err
  1526. } && test -s conftest$ac_exeext && {
  1527. test "$cross_compiling" = yes ||
  1528. test -x conftest$ac_exeext
  1529. }
  1530. then :
  1531. ac_retval=0
  1532. else $as_nop
  1533. printf "%s\n" "$as_me: failed program was:" >&5
  1534. sed 's/^/| /' conftest.$ac_ext >&5
  1535. ac_retval=1
  1536. fi
  1537. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1538. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1539. # interfere with the next link command; also delete a directory that is
  1540. # left behind by Apple's compiler. We do this before executing the actions.
  1541. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1542. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1543. as_fn_set_status $ac_retval
  1544. } # ac_fn_c_try_link
  1545. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1546. # -------------------------------------------------------
  1547. # Tests whether HEADER exists and can be compiled using the include files in
  1548. # INCLUDES, setting the cache variable VAR accordingly.
  1549. ac_fn_c_check_header_compile ()
  1550. {
  1551. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1553. printf %s "checking for $2... " >&6; }
  1554. if eval test \${$3+y}
  1555. then :
  1556. printf %s "(cached) " >&6
  1557. else $as_nop
  1558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1559. /* end confdefs.h. */
  1560. $4
  1561. #include <$2>
  1562. _ACEOF
  1563. if ac_fn_c_try_compile "$LINENO"
  1564. then :
  1565. eval "$3=yes"
  1566. else $as_nop
  1567. eval "$3=no"
  1568. fi
  1569. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1570. fi
  1571. eval ac_res=\$$3
  1572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1573. printf "%s\n" "$ac_res" >&6; }
  1574. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1575. } # ac_fn_c_check_header_compile
  1576. # ac_fn_c_check_func LINENO FUNC VAR
  1577. # ----------------------------------
  1578. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1579. ac_fn_c_check_func ()
  1580. {
  1581. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1583. printf %s "checking for $2... " >&6; }
  1584. if eval test \${$3+y}
  1585. then :
  1586. printf %s "(cached) " >&6
  1587. else $as_nop
  1588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1589. /* end confdefs.h. */
  1590. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1591. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1592. #define $2 innocuous_$2
  1593. /* System header to define __stub macros and hopefully few prototypes,
  1594. which can conflict with char $2 (); below. */
  1595. #include <limits.h>
  1596. #undef $2
  1597. /* Override any GCC internal prototype to avoid an error.
  1598. Use char because int might match the return type of a GCC
  1599. builtin and then its argument prototype would still apply. */
  1600. #ifdef __cplusplus
  1601. extern "C"
  1602. #endif
  1603. char $2 ();
  1604. /* The GNU C library defines this for functions which it implements
  1605. to always fail with ENOSYS. Some functions are actually named
  1606. something starting with __ and the normal name is an alias. */
  1607. #if defined __stub_$2 || defined __stub___$2
  1608. choke me
  1609. #endif
  1610. int
  1611. main (void)
  1612. {
  1613. return $2 ();
  1614. ;
  1615. return 0;
  1616. }
  1617. _ACEOF
  1618. if ac_fn_c_try_link "$LINENO"
  1619. then :
  1620. eval "$3=yes"
  1621. else $as_nop
  1622. eval "$3=no"
  1623. fi
  1624. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1625. conftest$ac_exeext conftest.$ac_ext
  1626. fi
  1627. eval ac_res=\$$3
  1628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1629. printf "%s\n" "$ac_res" >&6; }
  1630. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1631. } # ac_fn_c_check_func
  1632. # ac_fn_cxx_try_cpp LINENO
  1633. # ------------------------
  1634. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1635. ac_fn_cxx_try_cpp ()
  1636. {
  1637. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1638. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1639. case "(($ac_try" in
  1640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1641. *) ac_try_echo=$ac_try;;
  1642. esac
  1643. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1644. printf "%s\n" "$ac_try_echo"; } >&5
  1645. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1646. ac_status=$?
  1647. if test -s conftest.err; then
  1648. grep -v '^ *+' conftest.err >conftest.er1
  1649. cat conftest.er1 >&5
  1650. mv -f conftest.er1 conftest.err
  1651. fi
  1652. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1653. test $ac_status = 0; } > conftest.i && {
  1654. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1655. test ! -s conftest.err
  1656. }
  1657. then :
  1658. ac_retval=0
  1659. else $as_nop
  1660. printf "%s\n" "$as_me: failed program was:" >&5
  1661. sed 's/^/| /' conftest.$ac_ext >&5
  1662. ac_retval=1
  1663. fi
  1664. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1665. as_fn_set_status $ac_retval
  1666. } # ac_fn_cxx_try_cpp
  1667. # ac_fn_cxx_try_link LINENO
  1668. # -------------------------
  1669. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1670. ac_fn_cxx_try_link ()
  1671. {
  1672. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1673. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1674. if { { ac_try="$ac_link"
  1675. case "(($ac_try" in
  1676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1677. *) ac_try_echo=$ac_try;;
  1678. esac
  1679. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1680. printf "%s\n" "$ac_try_echo"; } >&5
  1681. (eval "$ac_link") 2>conftest.err
  1682. ac_status=$?
  1683. if test -s conftest.err; then
  1684. grep -v '^ *+' conftest.err >conftest.er1
  1685. cat conftest.er1 >&5
  1686. mv -f conftest.er1 conftest.err
  1687. fi
  1688. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1689. test $ac_status = 0; } && {
  1690. test -z "$ac_cxx_werror_flag" ||
  1691. test ! -s conftest.err
  1692. } && test -s conftest$ac_exeext && {
  1693. test "$cross_compiling" = yes ||
  1694. test -x conftest$ac_exeext
  1695. }
  1696. then :
  1697. ac_retval=0
  1698. else $as_nop
  1699. printf "%s\n" "$as_me: failed program was:" >&5
  1700. sed 's/^/| /' conftest.$ac_ext >&5
  1701. ac_retval=1
  1702. fi
  1703. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1704. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1705. # interfere with the next link command; also delete a directory that is
  1706. # left behind by Apple's compiler. We do this before executing the actions.
  1707. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1708. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1709. as_fn_set_status $ac_retval
  1710. } # ac_fn_cxx_try_link
  1711. # ac_fn_c_try_run LINENO
  1712. # ----------------------
  1713. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1714. # executables *can* be run.
  1715. ac_fn_c_try_run ()
  1716. {
  1717. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1718. if { { ac_try="$ac_link"
  1719. case "(($ac_try" in
  1720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1721. *) ac_try_echo=$ac_try;;
  1722. esac
  1723. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1724. printf "%s\n" "$ac_try_echo"; } >&5
  1725. (eval "$ac_link") 2>&5
  1726. ac_status=$?
  1727. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1728. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1729. { { case "(($ac_try" in
  1730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1731. *) ac_try_echo=$ac_try;;
  1732. esac
  1733. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1734. printf "%s\n" "$ac_try_echo"; } >&5
  1735. (eval "$ac_try") 2>&5
  1736. ac_status=$?
  1737. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1738. test $ac_status = 0; }; }
  1739. then :
  1740. ac_retval=0
  1741. else $as_nop
  1742. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1743. printf "%s\n" "$as_me: failed program was:" >&5
  1744. sed 's/^/| /' conftest.$ac_ext >&5
  1745. ac_retval=$ac_status
  1746. fi
  1747. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1748. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1749. as_fn_set_status $ac_retval
  1750. } # ac_fn_c_try_run
  1751. ac_configure_args_raw=
  1752. for ac_arg
  1753. do
  1754. case $ac_arg in
  1755. *\'*)
  1756. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1757. esac
  1758. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1759. done
  1760. case $ac_configure_args_raw in
  1761. *$as_nl*)
  1762. ac_safe_unquote= ;;
  1763. *)
  1764. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1765. ac_unsafe_a="$ac_unsafe_z#~"
  1766. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1767. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1768. esac
  1769. cat >config.log <<_ACEOF
  1770. This file contains any messages produced by compilers while
  1771. running configure, to aid debugging if configure makes a mistake.
  1772. It was created by c-ares-test $as_me -, which was
  1773. generated by GNU Autoconf 2.71. Invocation command line was
  1774. $ $0$ac_configure_args_raw
  1775. _ACEOF
  1776. exec 5>>config.log
  1777. {
  1778. cat <<_ASUNAME
  1779. ## --------- ##
  1780. ## Platform. ##
  1781. ## --------- ##
  1782. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1783. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1784. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1785. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1786. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1787. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1788. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1789. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1790. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1791. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1792. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1793. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1794. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1795. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1796. _ASUNAME
  1797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1798. for as_dir in $PATH
  1799. do
  1800. IFS=$as_save_IFS
  1801. case $as_dir in #(((
  1802. '') as_dir=./ ;;
  1803. */) ;;
  1804. *) as_dir=$as_dir/ ;;
  1805. esac
  1806. printf "%s\n" "PATH: $as_dir"
  1807. done
  1808. IFS=$as_save_IFS
  1809. } >&5
  1810. cat >&5 <<_ACEOF
  1811. ## ----------- ##
  1812. ## Core tests. ##
  1813. ## ----------- ##
  1814. _ACEOF
  1815. # Keep a trace of the command line.
  1816. # Strip out --no-create and --no-recursion so they do not pile up.
  1817. # Strip out --silent because we don't want to record it for future runs.
  1818. # Also quote any args containing shell meta-characters.
  1819. # Make two passes to allow for proper duplicate-argument suppression.
  1820. ac_configure_args=
  1821. ac_configure_args0=
  1822. ac_configure_args1=
  1823. ac_must_keep_next=false
  1824. for ac_pass in 1 2
  1825. do
  1826. for ac_arg
  1827. do
  1828. case $ac_arg in
  1829. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1830. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1831. | -silent | --silent | --silen | --sile | --sil)
  1832. continue ;;
  1833. *\'*)
  1834. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1835. esac
  1836. case $ac_pass in
  1837. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1838. 2)
  1839. as_fn_append ac_configure_args1 " '$ac_arg'"
  1840. if test $ac_must_keep_next = true; then
  1841. ac_must_keep_next=false # Got value, back to normal.
  1842. else
  1843. case $ac_arg in
  1844. *=* | --config-cache | -C | -disable-* | --disable-* \
  1845. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1846. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1847. | -with-* | --with-* | -without-* | --without-* | --x)
  1848. case "$ac_configure_args0 " in
  1849. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1850. esac
  1851. ;;
  1852. -* ) ac_must_keep_next=true ;;
  1853. esac
  1854. fi
  1855. as_fn_append ac_configure_args " '$ac_arg'"
  1856. ;;
  1857. esac
  1858. done
  1859. done
  1860. { ac_configure_args0=; unset ac_configure_args0;}
  1861. { ac_configure_args1=; unset ac_configure_args1;}
  1862. # When interrupted or exit'd, cleanup temporary files, and complete
  1863. # config.log. We remove comments because anyway the quotes in there
  1864. # would cause problems or look ugly.
  1865. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1866. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1867. trap 'exit_status=$?
  1868. # Sanitize IFS.
  1869. IFS=" "" $as_nl"
  1870. # Save into config.log some information that might help in debugging.
  1871. {
  1872. echo
  1873. printf "%s\n" "## ---------------- ##
  1874. ## Cache variables. ##
  1875. ## ---------------- ##"
  1876. echo
  1877. # The following way of writing the cache mishandles newlines in values,
  1878. (
  1879. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1880. eval ac_val=\$$ac_var
  1881. case $ac_val in #(
  1882. *${as_nl}*)
  1883. case $ac_var in #(
  1884. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1885. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1886. esac
  1887. case $ac_var in #(
  1888. _ | IFS | as_nl) ;; #(
  1889. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1890. *) { eval $ac_var=; unset $ac_var;} ;;
  1891. esac ;;
  1892. esac
  1893. done
  1894. (set) 2>&1 |
  1895. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1896. *${as_nl}ac_space=\ *)
  1897. sed -n \
  1898. "s/'\''/'\''\\\\'\'''\''/g;
  1899. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1900. ;; #(
  1901. *)
  1902. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1903. ;;
  1904. esac |
  1905. sort
  1906. )
  1907. echo
  1908. printf "%s\n" "## ----------------- ##
  1909. ## Output variables. ##
  1910. ## ----------------- ##"
  1911. echo
  1912. for ac_var in $ac_subst_vars
  1913. do
  1914. eval ac_val=\$$ac_var
  1915. case $ac_val in
  1916. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1917. esac
  1918. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1919. done | sort
  1920. echo
  1921. if test -n "$ac_subst_files"; then
  1922. printf "%s\n" "## ------------------- ##
  1923. ## File substitutions. ##
  1924. ## ------------------- ##"
  1925. echo
  1926. for ac_var in $ac_subst_files
  1927. do
  1928. eval ac_val=\$$ac_var
  1929. case $ac_val in
  1930. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1931. esac
  1932. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1933. done | sort
  1934. echo
  1935. fi
  1936. if test -s confdefs.h; then
  1937. printf "%s\n" "## ----------- ##
  1938. ## confdefs.h. ##
  1939. ## ----------- ##"
  1940. echo
  1941. cat confdefs.h
  1942. echo
  1943. fi
  1944. test "$ac_signal" != 0 &&
  1945. printf "%s\n" "$as_me: caught signal $ac_signal"
  1946. printf "%s\n" "$as_me: exit $exit_status"
  1947. } >&5
  1948. rm -f core *.core core.conftest.* &&
  1949. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1950. exit $exit_status
  1951. ' 0
  1952. for ac_signal in 1 2 13 15; do
  1953. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1954. done
  1955. ac_signal=0
  1956. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1957. rm -f -r conftest* confdefs.h
  1958. printf "%s\n" "/* confdefs.h */" > confdefs.h
  1959. # Predefined preprocessor variables.
  1960. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  1961. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  1962. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  1963. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  1964. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  1965. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  1966. # Let the site file select an alternate cache file if it wants to.
  1967. # Prefer an explicitly selected file to automatically selected ones.
  1968. if test -n "$CONFIG_SITE"; then
  1969. ac_site_files="$CONFIG_SITE"
  1970. elif test "x$prefix" != xNONE; then
  1971. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  1972. else
  1973. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1974. fi
  1975. for ac_site_file in $ac_site_files
  1976. do
  1977. case $ac_site_file in #(
  1978. */*) :
  1979. ;; #(
  1980. *) :
  1981. ac_site_file=./$ac_site_file ;;
  1982. esac
  1983. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  1984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1985. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  1986. sed 's/^/| /' "$ac_site_file" >&5
  1987. . "$ac_site_file" \
  1988. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1989. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  1990. as_fn_error $? "failed to load site script $ac_site_file
  1991. See \`config.log' for more details" "$LINENO" 5; }
  1992. fi
  1993. done
  1994. if test -r "$cache_file"; then
  1995. # Some versions of bash will fail to source /dev/null (special files
  1996. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1997. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1999. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2000. case $cache_file in
  2001. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2002. *) . "./$cache_file";;
  2003. esac
  2004. fi
  2005. else
  2006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2007. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2008. >$cache_file
  2009. fi
  2010. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2011. ac_cxx_conftest_cxx98_globals='
  2012. // Does the compiler advertise C++98 conformance?
  2013. #if !defined __cplusplus || __cplusplus < 199711L
  2014. # error "Compiler does not advertise C++98 conformance"
  2015. #endif
  2016. // These inclusions are to reject old compilers that
  2017. // lack the unsuffixed header files.
  2018. #include <cstdlib>
  2019. #include <exception>
  2020. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2021. extern void assert (int);
  2022. namespace std {
  2023. extern int strcmp (const char *, const char *);
  2024. }
  2025. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2026. using std::exception;
  2027. using std::strcmp;
  2028. namespace {
  2029. void test_exception_syntax()
  2030. {
  2031. try {
  2032. throw "test";
  2033. } catch (const char *s) {
  2034. // Extra parentheses suppress a warning when building autoconf itself,
  2035. // due to lint rules shared with more typical C programs.
  2036. assert (!(strcmp) (s, "test"));
  2037. }
  2038. }
  2039. template <typename T> struct test_template
  2040. {
  2041. T const val;
  2042. explicit test_template(T t) : val(t) {}
  2043. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2044. };
  2045. } // anonymous namespace
  2046. '
  2047. # Test code for whether the C++ compiler supports C++98 (body of main)
  2048. ac_cxx_conftest_cxx98_main='
  2049. assert (argc);
  2050. assert (! argv[0]);
  2051. {
  2052. test_exception_syntax ();
  2053. test_template<double> tt (2.0);
  2054. assert (tt.add (4) == 6.0);
  2055. assert (true && !false);
  2056. }
  2057. '
  2058. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2059. ac_cxx_conftest_cxx11_globals='
  2060. // Does the compiler advertise C++ 2011 conformance?
  2061. #if !defined __cplusplus || __cplusplus < 201103L
  2062. # error "Compiler does not advertise C++11 conformance"
  2063. #endif
  2064. namespace cxx11test
  2065. {
  2066. constexpr int get_val() { return 20; }
  2067. struct testinit
  2068. {
  2069. int i;
  2070. double d;
  2071. };
  2072. class delegate
  2073. {
  2074. public:
  2075. delegate(int n) : n(n) {}
  2076. delegate(): delegate(2354) {}
  2077. virtual int getval() { return this->n; };
  2078. protected:
  2079. int n;
  2080. };
  2081. class overridden : public delegate
  2082. {
  2083. public:
  2084. overridden(int n): delegate(n) {}
  2085. virtual int getval() override final { return this->n * 2; }
  2086. };
  2087. class nocopy
  2088. {
  2089. public:
  2090. nocopy(int i): i(i) {}
  2091. nocopy() = default;
  2092. nocopy(const nocopy&) = delete;
  2093. nocopy & operator=(const nocopy&) = delete;
  2094. private:
  2095. int i;
  2096. };
  2097. // for testing lambda expressions
  2098. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2099. {
  2100. return f(v);
  2101. }
  2102. // for testing variadic templates and trailing return types
  2103. template <typename V> auto sum(V first) -> V
  2104. {
  2105. return first;
  2106. }
  2107. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2108. {
  2109. return first + sum(rest...);
  2110. }
  2111. }
  2112. '
  2113. # Test code for whether the C++ compiler supports C++11 (body of main)
  2114. ac_cxx_conftest_cxx11_main='
  2115. {
  2116. // Test auto and decltype
  2117. auto a1 = 6538;
  2118. auto a2 = 48573953.4;
  2119. auto a3 = "String literal";
  2120. int total = 0;
  2121. for (auto i = a3; *i; ++i) { total += *i; }
  2122. decltype(a2) a4 = 34895.034;
  2123. }
  2124. {
  2125. // Test constexpr
  2126. short sa[cxx11test::get_val()] = { 0 };
  2127. }
  2128. {
  2129. // Test initializer lists
  2130. cxx11test::testinit il = { 4323, 435234.23544 };
  2131. }
  2132. {
  2133. // Test range-based for
  2134. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2135. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2136. for (auto &x : array) { x += 23; }
  2137. }
  2138. {
  2139. // Test lambda expressions
  2140. using cxx11test::eval;
  2141. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2142. double d = 2.0;
  2143. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2144. assert (d == 5.0);
  2145. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2146. assert (d == 5.0);
  2147. }
  2148. {
  2149. // Test use of variadic templates
  2150. using cxx11test::sum;
  2151. auto a = sum(1);
  2152. auto b = sum(1, 2);
  2153. auto c = sum(1.0, 2.0, 3.0);
  2154. }
  2155. {
  2156. // Test constructor delegation
  2157. cxx11test::delegate d1;
  2158. cxx11test::delegate d2();
  2159. cxx11test::delegate d3(45);
  2160. }
  2161. {
  2162. // Test override and final
  2163. cxx11test::overridden o1(55464);
  2164. }
  2165. {
  2166. // Test nullptr
  2167. char *c = nullptr;
  2168. }
  2169. {
  2170. // Test template brackets
  2171. test_template<::test_template<int>> v(test_template<int>(12));
  2172. }
  2173. {
  2174. // Unicode literals
  2175. char const *utf8 = u8"UTF-8 string \u2500";
  2176. char16_t const *utf16 = u"UTF-8 string \u2500";
  2177. char32_t const *utf32 = U"UTF-32 string \u2500";
  2178. }
  2179. '
  2180. # Test code for whether the C compiler supports C++11 (complete).
  2181. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2182. ${ac_cxx_conftest_cxx11_globals}
  2183. int
  2184. main (int argc, char **argv)
  2185. {
  2186. int ok = 0;
  2187. ${ac_cxx_conftest_cxx98_main}
  2188. ${ac_cxx_conftest_cxx11_main}
  2189. return ok;
  2190. }
  2191. "
  2192. # Test code for whether the C compiler supports C++98 (complete).
  2193. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2194. int
  2195. main (int argc, char **argv)
  2196. {
  2197. int ok = 0;
  2198. ${ac_cxx_conftest_cxx98_main}
  2199. return ok;
  2200. }
  2201. "
  2202. # Test code for whether the C compiler supports C89 (global declarations)
  2203. ac_c_conftest_c89_globals='
  2204. /* Does the compiler advertise C89 conformance?
  2205. Do not test the value of __STDC__, because some compilers set it to 0
  2206. while being otherwise adequately conformant. */
  2207. #if !defined __STDC__
  2208. # error "Compiler does not advertise C89 conformance"
  2209. #endif
  2210. #include <stddef.h>
  2211. #include <stdarg.h>
  2212. struct stat;
  2213. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2214. struct buf { int x; };
  2215. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2216. static char *e (p, i)
  2217. char **p;
  2218. int i;
  2219. {
  2220. return p[i];
  2221. }
  2222. static char *f (char * (*g) (char **, int), char **p, ...)
  2223. {
  2224. char *s;
  2225. va_list v;
  2226. va_start (v,p);
  2227. s = g (p, va_arg (v,int));
  2228. va_end (v);
  2229. return s;
  2230. }
  2231. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2232. function prototypes and stuff, but not \xHH hex character constants.
  2233. These do not provoke an error unfortunately, instead are silently treated
  2234. as an "x". The following induces an error, until -std is added to get
  2235. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2236. array size at least. It is necessary to write \x00 == 0 to get something
  2237. that is true only with -std. */
  2238. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2239. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2240. inside strings and character constants. */
  2241. #define FOO(x) '\''x'\''
  2242. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2243. int test (int i, double x);
  2244. struct s1 {int (*f) (int a);};
  2245. struct s2 {int (*f) (double a);};
  2246. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2247. int, int);'
  2248. # Test code for whether the C compiler supports C89 (body of main).
  2249. ac_c_conftest_c89_main='
  2250. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2251. '
  2252. # Test code for whether the C compiler supports C99 (global declarations)
  2253. ac_c_conftest_c99_globals='
  2254. // Does the compiler advertise C99 conformance?
  2255. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2256. # error "Compiler does not advertise C99 conformance"
  2257. #endif
  2258. #include <stdbool.h>
  2259. extern int puts (const char *);
  2260. extern int printf (const char *, ...);
  2261. extern int dprintf (int, const char *, ...);
  2262. extern void *malloc (size_t);
  2263. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2264. // dprintf is used instead of fprintf to avoid needing to declare
  2265. // FILE and stderr.
  2266. #define debug(...) dprintf (2, __VA_ARGS__)
  2267. #define showlist(...) puts (#__VA_ARGS__)
  2268. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2269. static void
  2270. test_varargs_macros (void)
  2271. {
  2272. int x = 1234;
  2273. int y = 5678;
  2274. debug ("Flag");
  2275. debug ("X = %d\n", x);
  2276. showlist (The first, second, and third items.);
  2277. report (x>y, "x is %d but y is %d", x, y);
  2278. }
  2279. // Check long long types.
  2280. #define BIG64 18446744073709551615ull
  2281. #define BIG32 4294967295ul
  2282. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2283. #if !BIG_OK
  2284. #error "your preprocessor is broken"
  2285. #endif
  2286. #if BIG_OK
  2287. #else
  2288. #error "your preprocessor is broken"
  2289. #endif
  2290. static long long int bignum = -9223372036854775807LL;
  2291. static unsigned long long int ubignum = BIG64;
  2292. struct incomplete_array
  2293. {
  2294. int datasize;
  2295. double data[];
  2296. };
  2297. struct named_init {
  2298. int number;
  2299. const wchar_t *name;
  2300. double average;
  2301. };
  2302. typedef const char *ccp;
  2303. static inline int
  2304. test_restrict (ccp restrict text)
  2305. {
  2306. // See if C++-style comments work.
  2307. // Iterate through items via the restricted pointer.
  2308. // Also check for declarations in for loops.
  2309. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2310. continue;
  2311. return 0;
  2312. }
  2313. // Check varargs and va_copy.
  2314. static bool
  2315. test_varargs (const char *format, ...)
  2316. {
  2317. va_list args;
  2318. va_start (args, format);
  2319. va_list args_copy;
  2320. va_copy (args_copy, args);
  2321. const char *str = "";
  2322. int number = 0;
  2323. float fnumber = 0;
  2324. while (*format)
  2325. {
  2326. switch (*format++)
  2327. {
  2328. case '\''s'\'': // string
  2329. str = va_arg (args_copy, const char *);
  2330. break;
  2331. case '\''d'\'': // int
  2332. number = va_arg (args_copy, int);
  2333. break;
  2334. case '\''f'\'': // float
  2335. fnumber = va_arg (args_copy, double);
  2336. break;
  2337. default:
  2338. break;
  2339. }
  2340. }
  2341. va_end (args_copy);
  2342. va_end (args);
  2343. return *str && number && fnumber;
  2344. }
  2345. '
  2346. # Test code for whether the C compiler supports C99 (body of main).
  2347. ac_c_conftest_c99_main='
  2348. // Check bool.
  2349. _Bool success = false;
  2350. success |= (argc != 0);
  2351. // Check restrict.
  2352. if (test_restrict ("String literal") == 0)
  2353. success = true;
  2354. char *restrict newvar = "Another string";
  2355. // Check varargs.
  2356. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2357. test_varargs_macros ();
  2358. // Check flexible array members.
  2359. struct incomplete_array *ia =
  2360. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2361. ia->datasize = 10;
  2362. for (int i = 0; i < ia->datasize; ++i)
  2363. ia->data[i] = i * 1.234;
  2364. // Check named initializers.
  2365. struct named_init ni = {
  2366. .number = 34,
  2367. .name = L"Test wide string",
  2368. .average = 543.34343,
  2369. };
  2370. ni.number = 58;
  2371. int dynamic_array[ni.number];
  2372. dynamic_array[0] = argv[0][0];
  2373. dynamic_array[ni.number - 1] = 543;
  2374. // work around unused variable warnings
  2375. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2376. || dynamic_array[ni.number - 1] != 543);
  2377. '
  2378. # Test code for whether the C compiler supports C11 (global declarations)
  2379. ac_c_conftest_c11_globals='
  2380. // Does the compiler advertise C11 conformance?
  2381. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2382. # error "Compiler does not advertise C11 conformance"
  2383. #endif
  2384. // Check _Alignas.
  2385. char _Alignas (double) aligned_as_double;
  2386. char _Alignas (0) no_special_alignment;
  2387. extern char aligned_as_int;
  2388. char _Alignas (0) _Alignas (int) aligned_as_int;
  2389. // Check _Alignof.
  2390. enum
  2391. {
  2392. int_alignment = _Alignof (int),
  2393. int_array_alignment = _Alignof (int[100]),
  2394. char_alignment = _Alignof (char)
  2395. };
  2396. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2397. // Check _Noreturn.
  2398. int _Noreturn does_not_return (void) { for (;;) continue; }
  2399. // Check _Static_assert.
  2400. struct test_static_assert
  2401. {
  2402. int x;
  2403. _Static_assert (sizeof (int) <= sizeof (long int),
  2404. "_Static_assert does not work in struct");
  2405. long int y;
  2406. };
  2407. // Check UTF-8 literals.
  2408. #define u8 syntax error!
  2409. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2410. // Check duplicate typedefs.
  2411. typedef long *long_ptr;
  2412. typedef long int *long_ptr;
  2413. typedef long_ptr long_ptr;
  2414. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2415. struct anonymous
  2416. {
  2417. union {
  2418. struct { int i; int j; };
  2419. struct { int k; long int l; } w;
  2420. };
  2421. int m;
  2422. } v1;
  2423. '
  2424. # Test code for whether the C compiler supports C11 (body of main).
  2425. ac_c_conftest_c11_main='
  2426. _Static_assert ((offsetof (struct anonymous, i)
  2427. == offsetof (struct anonymous, w.k)),
  2428. "Anonymous union alignment botch");
  2429. v1.i = 2;
  2430. v1.w.k = 5;
  2431. ok |= v1.i != 5;
  2432. '
  2433. # Test code for whether the C compiler supports C11 (complete).
  2434. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2435. ${ac_c_conftest_c99_globals}
  2436. ${ac_c_conftest_c11_globals}
  2437. int
  2438. main (int argc, char **argv)
  2439. {
  2440. int ok = 0;
  2441. ${ac_c_conftest_c89_main}
  2442. ${ac_c_conftest_c99_main}
  2443. ${ac_c_conftest_c11_main}
  2444. return ok;
  2445. }
  2446. "
  2447. # Test code for whether the C compiler supports C99 (complete).
  2448. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2449. ${ac_c_conftest_c99_globals}
  2450. int
  2451. main (int argc, char **argv)
  2452. {
  2453. int ok = 0;
  2454. ${ac_c_conftest_c89_main}
  2455. ${ac_c_conftest_c99_main}
  2456. return ok;
  2457. }
  2458. "
  2459. # Test code for whether the C compiler supports C89 (complete).
  2460. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2461. int
  2462. main (int argc, char **argv)
  2463. {
  2464. int ok = 0;
  2465. ${ac_c_conftest_c89_main}
  2466. return ok;
  2467. }
  2468. "
  2469. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2470. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2471. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2472. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2473. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2474. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2475. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2476. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2477. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2478. # Auxiliary files required by this configure script.
  2479. ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
  2480. # Locations in which to look for auxiliary files.
  2481. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
  2482. # Search for a directory containing all of the required auxiliary files,
  2483. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2484. # If we don't find one directory that contains all the files we need,
  2485. # we report the set of missing files from the *first* directory in
  2486. # $ac_aux_dir_candidates and give up.
  2487. ac_missing_aux_files=""
  2488. ac_first_candidate=:
  2489. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2491. as_found=false
  2492. for as_dir in $ac_aux_dir_candidates
  2493. do
  2494. IFS=$as_save_IFS
  2495. case $as_dir in #(((
  2496. '') as_dir=./ ;;
  2497. */) ;;
  2498. *) as_dir=$as_dir/ ;;
  2499. esac
  2500. as_found=:
  2501. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2502. ac_aux_dir_found=yes
  2503. ac_install_sh=
  2504. for ac_aux in $ac_aux_files
  2505. do
  2506. # As a special case, if "install-sh" is required, that requirement
  2507. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2508. # and $ac_install_sh is set appropriately for whichever one is found.
  2509. if test x"$ac_aux" = x"install-sh"
  2510. then
  2511. if test -f "${as_dir}install-sh"; then
  2512. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2513. ac_install_sh="${as_dir}install-sh -c"
  2514. elif test -f "${as_dir}install.sh"; then
  2515. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2516. ac_install_sh="${as_dir}install.sh -c"
  2517. elif test -f "${as_dir}shtool"; then
  2518. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2519. ac_install_sh="${as_dir}shtool install -c"
  2520. else
  2521. ac_aux_dir_found=no
  2522. if $ac_first_candidate; then
  2523. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2524. else
  2525. break
  2526. fi
  2527. fi
  2528. else
  2529. if test -f "${as_dir}${ac_aux}"; then
  2530. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2531. else
  2532. ac_aux_dir_found=no
  2533. if $ac_first_candidate; then
  2534. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2535. else
  2536. break
  2537. fi
  2538. fi
  2539. fi
  2540. done
  2541. if test "$ac_aux_dir_found" = yes; then
  2542. ac_aux_dir="$as_dir"
  2543. break
  2544. fi
  2545. ac_first_candidate=false
  2546. as_found=false
  2547. done
  2548. IFS=$as_save_IFS
  2549. if $as_found
  2550. then :
  2551. else $as_nop
  2552. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2553. fi
  2554. # These three variables are undocumented and unsupported,
  2555. # and are intended to be withdrawn in a future Autoconf release.
  2556. # They can cause serious problems if a builder's source tree is in a directory
  2557. # whose full name contains unusual characters.
  2558. if test -f "${ac_aux_dir}config.guess"; then
  2559. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2560. fi
  2561. if test -f "${ac_aux_dir}config.sub"; then
  2562. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2563. fi
  2564. if test -f "$ac_aux_dir/configure"; then
  2565. ac_configure="$SHELL ${ac_aux_dir}configure"
  2566. fi
  2567. # Check that the precious variables saved in the cache have kept the same
  2568. # value.
  2569. ac_cache_corrupted=false
  2570. for ac_var in $ac_precious_vars; do
  2571. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2572. eval ac_new_set=\$ac_env_${ac_var}_set
  2573. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2574. eval ac_new_val=\$ac_env_${ac_var}_value
  2575. case $ac_old_set,$ac_new_set in
  2576. set,)
  2577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2578. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2579. ac_cache_corrupted=: ;;
  2580. ,set)
  2581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2582. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2583. ac_cache_corrupted=: ;;
  2584. ,);;
  2585. *)
  2586. if test "x$ac_old_val" != "x$ac_new_val"; then
  2587. # differences in whitespace do not lead to failure.
  2588. ac_old_val_w=`echo x $ac_old_val`
  2589. ac_new_val_w=`echo x $ac_new_val`
  2590. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2592. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2593. ac_cache_corrupted=:
  2594. else
  2595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2596. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2597. eval $ac_var=\$ac_old_val
  2598. fi
  2599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2600. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  2601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2602. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  2603. fi;;
  2604. esac
  2605. # Pass precious variables to config.status.
  2606. if test "$ac_new_set" = set; then
  2607. case $ac_new_val in
  2608. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2609. *) ac_arg=$ac_var=$ac_new_val ;;
  2610. esac
  2611. case " $ac_configure_args " in
  2612. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2613. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2614. esac
  2615. fi
  2616. done
  2617. if $ac_cache_corrupted; then
  2618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2619. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2621. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2622. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  2623. and start over" "$LINENO" 5
  2624. fi
  2625. ## -------------------- ##
  2626. ## Main body of script. ##
  2627. ## -------------------- ##
  2628. ac_ext=c
  2629. ac_cpp='$CPP $CPPFLAGS'
  2630. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2631. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2632. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2633. am__api_version='1.16'
  2634. # Find a good install program. We prefer a C program (faster),
  2635. # so one script is as good as another. But avoid the broken or
  2636. # incompatible versions:
  2637. # SysV /etc/install, /usr/sbin/install
  2638. # SunOS /usr/etc/install
  2639. # IRIX /sbin/install
  2640. # AIX /bin/install
  2641. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2642. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2643. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2644. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2645. # OS/2's system install, which has a completely different semantic
  2646. # ./install, which can be erroneously created by make from ./install.sh.
  2647. # Reject install programs that cannot install multiple files.
  2648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2649. printf %s "checking for a BSD-compatible install... " >&6; }
  2650. if test -z "$INSTALL"; then
  2651. if test ${ac_cv_path_install+y}
  2652. then :
  2653. printf %s "(cached) " >&6
  2654. else $as_nop
  2655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2656. for as_dir in $PATH
  2657. do
  2658. IFS=$as_save_IFS
  2659. case $as_dir in #(((
  2660. '') as_dir=./ ;;
  2661. */) ;;
  2662. *) as_dir=$as_dir/ ;;
  2663. esac
  2664. # Account for fact that we put trailing slashes in our PATH walk.
  2665. case $as_dir in #((
  2666. ./ | /[cC]/* | \
  2667. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2668. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2669. /usr/ucb/* ) ;;
  2670. *)
  2671. # OSF1 and SCO ODT 3.0 have their own names for install.
  2672. # Don't use installbsd from OSF since it installs stuff as root
  2673. # by default.
  2674. for ac_prog in ginstall scoinst install; do
  2675. for ac_exec_ext in '' $ac_executable_extensions; do
  2676. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  2677. if test $ac_prog = install &&
  2678. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2679. # AIX install. It has an incompatible calling convention.
  2680. :
  2681. elif test $ac_prog = install &&
  2682. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2683. # program-specific install script used by HP pwplus--don't use.
  2684. :
  2685. else
  2686. rm -rf conftest.one conftest.two conftest.dir
  2687. echo one > conftest.one
  2688. echo two > conftest.two
  2689. mkdir conftest.dir
  2690. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  2691. test -s conftest.one && test -s conftest.two &&
  2692. test -s conftest.dir/conftest.one &&
  2693. test -s conftest.dir/conftest.two
  2694. then
  2695. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  2696. break 3
  2697. fi
  2698. fi
  2699. fi
  2700. done
  2701. done
  2702. ;;
  2703. esac
  2704. done
  2705. IFS=$as_save_IFS
  2706. rm -rf conftest.one conftest.two conftest.dir
  2707. fi
  2708. if test ${ac_cv_path_install+y}; then
  2709. INSTALL=$ac_cv_path_install
  2710. else
  2711. # As a last resort, use the slow shell script. Don't cache a
  2712. # value for INSTALL within a source directory, because that will
  2713. # break other packages using the cache if that directory is
  2714. # removed, or if the value is a relative name.
  2715. INSTALL=$ac_install_sh
  2716. fi
  2717. fi
  2718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2719. printf "%s\n" "$INSTALL" >&6; }
  2720. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2721. # It thinks the first close brace ends the variable substitution.
  2722. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2723. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2724. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2726. printf %s "checking whether build environment is sane... " >&6; }
  2727. # Reject unsafe characters in $srcdir or the absolute working directory
  2728. # name. Accept space and tab only in the latter.
  2729. am_lf='
  2730. '
  2731. case `pwd` in
  2732. *[\\\"\#\$\&\'\`$am_lf]*)
  2733. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2734. esac
  2735. case $srcdir in
  2736. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2737. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2738. esac
  2739. # Do 'set' in a subshell so we don't clobber the current shell's
  2740. # arguments. Must try -L first in case configure is actually a
  2741. # symlink; some systems play weird games with the mod time of symlinks
  2742. # (eg FreeBSD returns the mod time of the symlink's containing
  2743. # directory).
  2744. if (
  2745. am_has_slept=no
  2746. for am_try in 1 2; do
  2747. echo "timestamp, slept: $am_has_slept" > conftest.file
  2748. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2749. if test "$*" = "X"; then
  2750. # -L didn't work.
  2751. set X `ls -t "$srcdir/configure" conftest.file`
  2752. fi
  2753. if test "$*" != "X $srcdir/configure conftest.file" \
  2754. && test "$*" != "X conftest.file $srcdir/configure"; then
  2755. # If neither matched, then we have a broken ls. This can happen
  2756. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2757. # broken ls alias from the environment. This has actually
  2758. # happened. Such a system could not be considered "sane".
  2759. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2760. alias in your environment" "$LINENO" 5
  2761. fi
  2762. if test "$2" = conftest.file || test $am_try -eq 2; then
  2763. break
  2764. fi
  2765. # Just in case.
  2766. sleep 1
  2767. am_has_slept=yes
  2768. done
  2769. test "$2" = conftest.file
  2770. )
  2771. then
  2772. # Ok.
  2773. :
  2774. else
  2775. as_fn_error $? "newly created file is older than distributed files!
  2776. Check your system clock" "$LINENO" 5
  2777. fi
  2778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2779. printf "%s\n" "yes" >&6; }
  2780. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2781. # generated files are strictly newer.
  2782. am_sleep_pid=
  2783. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2784. ( sleep 1 ) &
  2785. am_sleep_pid=$!
  2786. fi
  2787. rm -f conftest.file
  2788. test "$program_prefix" != NONE &&
  2789. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2790. # Use a double $ so make ignores it.
  2791. test "$program_suffix" != NONE &&
  2792. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2793. # Double any \ or $.
  2794. # By default was `s,x,x', remove it if useless.
  2795. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2796. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  2797. # Expand $ac_aux_dir to an absolute path.
  2798. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2799. if test x"${MISSING+set}" != xset; then
  2800. MISSING="\${SHELL} '$am_aux_dir/missing'"
  2801. fi
  2802. # Use eval to expand $SHELL
  2803. if eval "$MISSING --is-lightweight"; then
  2804. am_missing_run="$MISSING "
  2805. else
  2806. am_missing_run=
  2807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2808. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2809. fi
  2810. if test x"${install_sh+set}" != xset; then
  2811. case $am_aux_dir in
  2812. *\ * | *\ *)
  2813. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2814. *)
  2815. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2816. esac
  2817. fi
  2818. # Installed binaries are usually stripped using 'strip' when the user
  2819. # run "make install-strip". However 'strip' might not be the right
  2820. # tool to use in cross-compilation environments, therefore Automake
  2821. # will honor the 'STRIP' environment variable to overrule this program.
  2822. if test "$cross_compiling" != no; then
  2823. if test -n "$ac_tool_prefix"; then
  2824. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2825. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2827. printf %s "checking for $ac_word... " >&6; }
  2828. if test ${ac_cv_prog_STRIP+y}
  2829. then :
  2830. printf %s "(cached) " >&6
  2831. else $as_nop
  2832. if test -n "$STRIP"; then
  2833. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2834. else
  2835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2836. for as_dir in $PATH
  2837. do
  2838. IFS=$as_save_IFS
  2839. case $as_dir in #(((
  2840. '') as_dir=./ ;;
  2841. */) ;;
  2842. *) as_dir=$as_dir/ ;;
  2843. esac
  2844. for ac_exec_ext in '' $ac_executable_extensions; do
  2845. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2846. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2847. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2848. break 2
  2849. fi
  2850. done
  2851. done
  2852. IFS=$as_save_IFS
  2853. fi
  2854. fi
  2855. STRIP=$ac_cv_prog_STRIP
  2856. if test -n "$STRIP"; then
  2857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2858. printf "%s\n" "$STRIP" >&6; }
  2859. else
  2860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2861. printf "%s\n" "no" >&6; }
  2862. fi
  2863. fi
  2864. if test -z "$ac_cv_prog_STRIP"; then
  2865. ac_ct_STRIP=$STRIP
  2866. # Extract the first word of "strip", so it can be a program name with args.
  2867. set dummy strip; ac_word=$2
  2868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2869. printf %s "checking for $ac_word... " >&6; }
  2870. if test ${ac_cv_prog_ac_ct_STRIP+y}
  2871. then :
  2872. printf %s "(cached) " >&6
  2873. else $as_nop
  2874. if test -n "$ac_ct_STRIP"; then
  2875. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2876. else
  2877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2878. for as_dir in $PATH
  2879. do
  2880. IFS=$as_save_IFS
  2881. case $as_dir in #(((
  2882. '') as_dir=./ ;;
  2883. */) ;;
  2884. *) as_dir=$as_dir/ ;;
  2885. esac
  2886. for ac_exec_ext in '' $ac_executable_extensions; do
  2887. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2888. ac_cv_prog_ac_ct_STRIP="strip"
  2889. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2890. break 2
  2891. fi
  2892. done
  2893. done
  2894. IFS=$as_save_IFS
  2895. fi
  2896. fi
  2897. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2898. if test -n "$ac_ct_STRIP"; then
  2899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2900. printf "%s\n" "$ac_ct_STRIP" >&6; }
  2901. else
  2902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2903. printf "%s\n" "no" >&6; }
  2904. fi
  2905. if test "x$ac_ct_STRIP" = x; then
  2906. STRIP=":"
  2907. else
  2908. case $cross_compiling:$ac_tool_warned in
  2909. yes:)
  2910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2911. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2912. ac_tool_warned=yes ;;
  2913. esac
  2914. STRIP=$ac_ct_STRIP
  2915. fi
  2916. else
  2917. STRIP="$ac_cv_prog_STRIP"
  2918. fi
  2919. fi
  2920. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  2922. printf %s "checking for a race-free mkdir -p... " >&6; }
  2923. if test -z "$MKDIR_P"; then
  2924. if test ${ac_cv_path_mkdir+y}
  2925. then :
  2926. printf %s "(cached) " >&6
  2927. else $as_nop
  2928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2929. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2930. do
  2931. IFS=$as_save_IFS
  2932. case $as_dir in #(((
  2933. '') as_dir=./ ;;
  2934. */) ;;
  2935. *) as_dir=$as_dir/ ;;
  2936. esac
  2937. for ac_prog in mkdir gmkdir; do
  2938. for ac_exec_ext in '' $ac_executable_extensions; do
  2939. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  2940. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2941. 'mkdir ('*'coreutils) '* | \
  2942. 'BusyBox '* | \
  2943. 'mkdir (fileutils) '4.1*)
  2944. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  2945. break 3;;
  2946. esac
  2947. done
  2948. done
  2949. done
  2950. IFS=$as_save_IFS
  2951. fi
  2952. test -d ./--version && rmdir ./--version
  2953. if test ${ac_cv_path_mkdir+y}; then
  2954. MKDIR_P="$ac_cv_path_mkdir -p"
  2955. else
  2956. # As a last resort, use the slow shell script. Don't cache a
  2957. # value for MKDIR_P within a source directory, because that will
  2958. # break other packages using the cache if that directory is
  2959. # removed, or if the value is a relative name.
  2960. MKDIR_P="$ac_install_sh -d"
  2961. fi
  2962. fi
  2963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2964. printf "%s\n" "$MKDIR_P" >&6; }
  2965. for ac_prog in gawk mawk nawk awk
  2966. do
  2967. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2968. set dummy $ac_prog; ac_word=$2
  2969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2970. printf %s "checking for $ac_word... " >&6; }
  2971. if test ${ac_cv_prog_AWK+y}
  2972. then :
  2973. printf %s "(cached) " >&6
  2974. else $as_nop
  2975. if test -n "$AWK"; then
  2976. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2977. else
  2978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2979. for as_dir in $PATH
  2980. do
  2981. IFS=$as_save_IFS
  2982. case $as_dir in #(((
  2983. '') as_dir=./ ;;
  2984. */) ;;
  2985. *) as_dir=$as_dir/ ;;
  2986. esac
  2987. for ac_exec_ext in '' $ac_executable_extensions; do
  2988. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2989. ac_cv_prog_AWK="$ac_prog"
  2990. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2991. break 2
  2992. fi
  2993. done
  2994. done
  2995. IFS=$as_save_IFS
  2996. fi
  2997. fi
  2998. AWK=$ac_cv_prog_AWK
  2999. if test -n "$AWK"; then
  3000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3001. printf "%s\n" "$AWK" >&6; }
  3002. else
  3003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3004. printf "%s\n" "no" >&6; }
  3005. fi
  3006. test -n "$AWK" && break
  3007. done
  3008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3009. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3010. set x ${MAKE-make}
  3011. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3012. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  3013. then :
  3014. printf %s "(cached) " >&6
  3015. else $as_nop
  3016. cat >conftest.make <<\_ACEOF
  3017. SHELL = /bin/sh
  3018. all:
  3019. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3020. _ACEOF
  3021. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3022. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3023. *@@@%%%=?*=@@@%%%*)
  3024. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3025. *)
  3026. eval ac_cv_prog_make_${ac_make}_set=no;;
  3027. esac
  3028. rm -f conftest.make
  3029. fi
  3030. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3032. printf "%s\n" "yes" >&6; }
  3033. SET_MAKE=
  3034. else
  3035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3036. printf "%s\n" "no" >&6; }
  3037. SET_MAKE="MAKE=${MAKE-make}"
  3038. fi
  3039. rm -rf .tst 2>/dev/null
  3040. mkdir .tst 2>/dev/null
  3041. if test -d .tst; then
  3042. am__leading_dot=.
  3043. else
  3044. am__leading_dot=_
  3045. fi
  3046. rmdir .tst 2>/dev/null
  3047. # Check whether --enable-silent-rules was given.
  3048. if test ${enable_silent_rules+y}
  3049. then :
  3050. enableval=$enable_silent_rules;
  3051. fi
  3052. case $enable_silent_rules in # (((
  3053. yes) AM_DEFAULT_VERBOSITY=0;;
  3054. no) AM_DEFAULT_VERBOSITY=1;;
  3055. *) AM_DEFAULT_VERBOSITY=1;;
  3056. esac
  3057. am_make=${MAKE-make}
  3058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3059. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3060. if test ${am_cv_make_support_nested_variables+y}
  3061. then :
  3062. printf %s "(cached) " >&6
  3063. else $as_nop
  3064. if printf "%s\n" 'TRUE=$(BAR$(V))
  3065. BAR0=false
  3066. BAR1=true
  3067. V=1
  3068. am__doit:
  3069. @$(TRUE)
  3070. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3071. am_cv_make_support_nested_variables=yes
  3072. else
  3073. am_cv_make_support_nested_variables=no
  3074. fi
  3075. fi
  3076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3077. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3078. if test $am_cv_make_support_nested_variables = yes; then
  3079. AM_V='$(V)'
  3080. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3081. else
  3082. AM_V=$AM_DEFAULT_VERBOSITY
  3083. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3084. fi
  3085. AM_BACKSLASH='\'
  3086. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3087. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3088. # is not polluted with repeated "-I."
  3089. am__isrc=' -I$(srcdir)'
  3090. # test to see if srcdir already configured
  3091. if test -f $srcdir/config.status; then
  3092. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3093. fi
  3094. fi
  3095. # test whether we have cygpath
  3096. if test -z "$CYGPATH_W"; then
  3097. if (cygpath --version) >/dev/null 2>/dev/null; then
  3098. CYGPATH_W='cygpath -w'
  3099. else
  3100. CYGPATH_W=echo
  3101. fi
  3102. fi
  3103. # Define the identity of the package.
  3104. PACKAGE='c-ares-test'
  3105. VERSION='-'
  3106. # Some tools Automake needs.
  3107. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3108. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3109. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3110. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3111. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3112. # For better backward compatibility. To be removed once Automake 1.9.x
  3113. # dies out for good. For more background, see:
  3114. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3115. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3116. mkdir_p='$(MKDIR_P)'
  3117. # We need awk for the "check" target (and possibly the TAP driver). The
  3118. # system "awk" is bad on some platforms.
  3119. # Always define AMTAR for backward compatibility. Yes, it's still used
  3120. # in the wild :-( We should find a proper way to deprecate it ...
  3121. AMTAR='$${TAR-tar}'
  3122. # We'll loop over all known methods to create a tar archive until one works.
  3123. _am_tools='gnutar pax cpio none'
  3124. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3125. # Variables for tags utilities; see am/tags.am
  3126. if test -z "$CTAGS"; then
  3127. CTAGS=ctags
  3128. fi
  3129. if test -z "$ETAGS"; then
  3130. ETAGS=etags
  3131. fi
  3132. if test -z "$CSCOPE"; then
  3133. CSCOPE=cscope
  3134. fi
  3135. # POSIX will say in a future version that running "rm -f" with no argument
  3136. # is OK; and we want to be able to make that assumption in our Makefile
  3137. # recipes. So use an aggressive probe to check that the usage we want is
  3138. # actually supported "in the wild" to an acceptable degree.
  3139. # See automake bug#10828.
  3140. # To make any issue more visible, cause the running configure to be aborted
  3141. # by default if the 'rm' program in use doesn't match our expectations; the
  3142. # user can still override this though.
  3143. if rm -f && rm -fr && rm -rf; then : OK; else
  3144. cat >&2 <<'END'
  3145. Oops!
  3146. Your 'rm' program seems unable to run without file operands specified
  3147. on the command line, even when the '-f' option is present. This is contrary
  3148. to the behaviour of most rm programs out there, and not conforming with
  3149. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3150. Please tell [email protected] about your system, including the value
  3151. of your $PATH and any error possibly output before this message. This
  3152. can help us improve future automake versions.
  3153. END
  3154. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3155. echo 'Configuration will proceed anyway, since you have set the' >&2
  3156. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3157. echo >&2
  3158. else
  3159. cat >&2 <<'END'
  3160. Aborting the configuration process, to ensure you take notice of the issue.
  3161. You can download and install GNU coreutils to get an 'rm' implementation
  3162. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3163. If you want to complete the configuration process using your problematic
  3164. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3165. to "yes", and re-run configure.
  3166. END
  3167. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3168. fi
  3169. fi
  3170. # Check whether --enable-silent-rules was given.
  3171. if test ${enable_silent_rules+y}
  3172. then :
  3173. enableval=$enable_silent_rules;
  3174. fi
  3175. case $enable_silent_rules in # (((
  3176. yes) AM_DEFAULT_VERBOSITY=0;;
  3177. no) AM_DEFAULT_VERBOSITY=1;;
  3178. *) AM_DEFAULT_VERBOSITY=0;;
  3179. esac
  3180. am_make=${MAKE-make}
  3181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3182. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3183. if test ${am_cv_make_support_nested_variables+y}
  3184. then :
  3185. printf %s "(cached) " >&6
  3186. else $as_nop
  3187. if printf "%s\n" 'TRUE=$(BAR$(V))
  3188. BAR0=false
  3189. BAR1=true
  3190. V=1
  3191. am__doit:
  3192. @$(TRUE)
  3193. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3194. am_cv_make_support_nested_variables=yes
  3195. else
  3196. am_cv_make_support_nested_variables=no
  3197. fi
  3198. fi
  3199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3200. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3201. if test $am_cv_make_support_nested_variables = yes; then
  3202. AM_V='$(V)'
  3203. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3204. else
  3205. AM_V=$AM_DEFAULT_VERBOSITY
  3206. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3207. fi
  3208. AM_BACKSLASH='\'
  3209. ac_ext=cpp
  3210. ac_cpp='$CXXCPP $CPPFLAGS'
  3211. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3212. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3213. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3214. if test -z "$CXX"; then
  3215. if test -n "$CCC"; then
  3216. CXX=$CCC
  3217. else
  3218. if test -n "$ac_tool_prefix"; then
  3219. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  3220. do
  3221. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3222. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3224. printf %s "checking for $ac_word... " >&6; }
  3225. if test ${ac_cv_prog_CXX+y}
  3226. then :
  3227. printf %s "(cached) " >&6
  3228. else $as_nop
  3229. if test -n "$CXX"; then
  3230. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3231. else
  3232. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3233. for as_dir in $PATH
  3234. do
  3235. IFS=$as_save_IFS
  3236. case $as_dir in #(((
  3237. '') as_dir=./ ;;
  3238. */) ;;
  3239. *) as_dir=$as_dir/ ;;
  3240. esac
  3241. for ac_exec_ext in '' $ac_executable_extensions; do
  3242. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3243. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3244. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3245. break 2
  3246. fi
  3247. done
  3248. done
  3249. IFS=$as_save_IFS
  3250. fi
  3251. fi
  3252. CXX=$ac_cv_prog_CXX
  3253. if test -n "$CXX"; then
  3254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3255. printf "%s\n" "$CXX" >&6; }
  3256. else
  3257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3258. printf "%s\n" "no" >&6; }
  3259. fi
  3260. test -n "$CXX" && break
  3261. done
  3262. fi
  3263. if test -z "$CXX"; then
  3264. ac_ct_CXX=$CXX
  3265. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  3266. do
  3267. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3268. set dummy $ac_prog; ac_word=$2
  3269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3270. printf %s "checking for $ac_word... " >&6; }
  3271. if test ${ac_cv_prog_ac_ct_CXX+y}
  3272. then :
  3273. printf %s "(cached) " >&6
  3274. else $as_nop
  3275. if test -n "$ac_ct_CXX"; then
  3276. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3277. else
  3278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3279. for as_dir in $PATH
  3280. do
  3281. IFS=$as_save_IFS
  3282. case $as_dir in #(((
  3283. '') as_dir=./ ;;
  3284. */) ;;
  3285. *) as_dir=$as_dir/ ;;
  3286. esac
  3287. for ac_exec_ext in '' $ac_executable_extensions; do
  3288. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3289. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3290. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3291. break 2
  3292. fi
  3293. done
  3294. done
  3295. IFS=$as_save_IFS
  3296. fi
  3297. fi
  3298. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3299. if test -n "$ac_ct_CXX"; then
  3300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3301. printf "%s\n" "$ac_ct_CXX" >&6; }
  3302. else
  3303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3304. printf "%s\n" "no" >&6; }
  3305. fi
  3306. test -n "$ac_ct_CXX" && break
  3307. done
  3308. if test "x$ac_ct_CXX" = x; then
  3309. CXX="g++"
  3310. else
  3311. case $cross_compiling:$ac_tool_warned in
  3312. yes:)
  3313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3314. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3315. ac_tool_warned=yes ;;
  3316. esac
  3317. CXX=$ac_ct_CXX
  3318. fi
  3319. fi
  3320. fi
  3321. fi
  3322. # Provide some information about the compiler.
  3323. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3324. set X $ac_compile
  3325. ac_compiler=$2
  3326. for ac_option in --version -v -V -qversion; do
  3327. { { ac_try="$ac_compiler $ac_option >&5"
  3328. case "(($ac_try" in
  3329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3330. *) ac_try_echo=$ac_try;;
  3331. esac
  3332. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3333. printf "%s\n" "$ac_try_echo"; } >&5
  3334. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3335. ac_status=$?
  3336. if test -s conftest.err; then
  3337. sed '10a\
  3338. ... rest of stderr output deleted ...
  3339. 10q' conftest.err >conftest.er1
  3340. cat conftest.er1 >&5
  3341. fi
  3342. rm -f conftest.er1 conftest.err
  3343. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3344. test $ac_status = 0; }
  3345. done
  3346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3347. /* end confdefs.h. */
  3348. int
  3349. main (void)
  3350. {
  3351. ;
  3352. return 0;
  3353. }
  3354. _ACEOF
  3355. ac_clean_files_save=$ac_clean_files
  3356. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3357. # Try to create an executable without -o first, disregard a.out.
  3358. # It will help us diagnose broken compilers, and finding out an intuition
  3359. # of exeext.
  3360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3361. printf %s "checking whether the C++ compiler works... " >&6; }
  3362. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3363. # The possible output files:
  3364. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3365. ac_rmfiles=
  3366. for ac_file in $ac_files
  3367. do
  3368. case $ac_file in
  3369. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3370. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3371. esac
  3372. done
  3373. rm -f $ac_rmfiles
  3374. if { { ac_try="$ac_link_default"
  3375. case "(($ac_try" in
  3376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3377. *) ac_try_echo=$ac_try;;
  3378. esac
  3379. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3380. printf "%s\n" "$ac_try_echo"; } >&5
  3381. (eval "$ac_link_default") 2>&5
  3382. ac_status=$?
  3383. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3384. test $ac_status = 0; }
  3385. then :
  3386. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3387. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3388. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3389. # so that the user can short-circuit this test for compilers unknown to
  3390. # Autoconf.
  3391. for ac_file in $ac_files ''
  3392. do
  3393. test -f "$ac_file" || continue
  3394. case $ac_file in
  3395. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3396. ;;
  3397. [ab].out )
  3398. # We found the default executable, but exeext='' is most
  3399. # certainly right.
  3400. break;;
  3401. *.* )
  3402. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3403. then :; else
  3404. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3405. fi
  3406. # We set ac_cv_exeext here because the later test for it is not
  3407. # safe: cross compilers may not add the suffix if given an `-o'
  3408. # argument, so we may need to know it at that point already.
  3409. # Even if this section looks crufty: it has the advantage of
  3410. # actually working.
  3411. break;;
  3412. * )
  3413. break;;
  3414. esac
  3415. done
  3416. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3417. else $as_nop
  3418. ac_file=''
  3419. fi
  3420. if test -z "$ac_file"
  3421. then :
  3422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3423. printf "%s\n" "no" >&6; }
  3424. printf "%s\n" "$as_me: failed program was:" >&5
  3425. sed 's/^/| /' conftest.$ac_ext >&5
  3426. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3427. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3428. as_fn_error 77 "C++ compiler cannot create executables
  3429. See \`config.log' for more details" "$LINENO" 5; }
  3430. else $as_nop
  3431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3432. printf "%s\n" "yes" >&6; }
  3433. fi
  3434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3435. printf %s "checking for C++ compiler default output file name... " >&6; }
  3436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3437. printf "%s\n" "$ac_file" >&6; }
  3438. ac_exeext=$ac_cv_exeext
  3439. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3440. ac_clean_files=$ac_clean_files_save
  3441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3442. printf %s "checking for suffix of executables... " >&6; }
  3443. if { { ac_try="$ac_link"
  3444. case "(($ac_try" in
  3445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3446. *) ac_try_echo=$ac_try;;
  3447. esac
  3448. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3449. printf "%s\n" "$ac_try_echo"; } >&5
  3450. (eval "$ac_link") 2>&5
  3451. ac_status=$?
  3452. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3453. test $ac_status = 0; }
  3454. then :
  3455. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3456. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3457. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3458. # `rm'.
  3459. for ac_file in conftest.exe conftest conftest.*; do
  3460. test -f "$ac_file" || continue
  3461. case $ac_file in
  3462. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3463. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3464. break;;
  3465. * ) break;;
  3466. esac
  3467. done
  3468. else $as_nop
  3469. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3470. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3471. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3472. See \`config.log' for more details" "$LINENO" 5; }
  3473. fi
  3474. rm -f conftest conftest$ac_cv_exeext
  3475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3476. printf "%s\n" "$ac_cv_exeext" >&6; }
  3477. rm -f conftest.$ac_ext
  3478. EXEEXT=$ac_cv_exeext
  3479. ac_exeext=$EXEEXT
  3480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3481. /* end confdefs.h. */
  3482. #include <stdio.h>
  3483. int
  3484. main (void)
  3485. {
  3486. FILE *f = fopen ("conftest.out", "w");
  3487. return ferror (f) || fclose (f) != 0;
  3488. ;
  3489. return 0;
  3490. }
  3491. _ACEOF
  3492. ac_clean_files="$ac_clean_files conftest.out"
  3493. # Check that the compiler produces executables we can run. If not, either
  3494. # the compiler is broken, or we cross compile.
  3495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3496. printf %s "checking whether we are cross compiling... " >&6; }
  3497. if test "$cross_compiling" != yes; then
  3498. { { ac_try="$ac_link"
  3499. case "(($ac_try" in
  3500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3501. *) ac_try_echo=$ac_try;;
  3502. esac
  3503. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3504. printf "%s\n" "$ac_try_echo"; } >&5
  3505. (eval "$ac_link") 2>&5
  3506. ac_status=$?
  3507. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3508. test $ac_status = 0; }
  3509. if { ac_try='./conftest$ac_cv_exeext'
  3510. { { case "(($ac_try" in
  3511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3512. *) ac_try_echo=$ac_try;;
  3513. esac
  3514. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3515. printf "%s\n" "$ac_try_echo"; } >&5
  3516. (eval "$ac_try") 2>&5
  3517. ac_status=$?
  3518. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3519. test $ac_status = 0; }; }; then
  3520. cross_compiling=no
  3521. else
  3522. if test "$cross_compiling" = maybe; then
  3523. cross_compiling=yes
  3524. else
  3525. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3526. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3527. as_fn_error 77 "cannot run C++ compiled programs.
  3528. If you meant to cross compile, use \`--host'.
  3529. See \`config.log' for more details" "$LINENO" 5; }
  3530. fi
  3531. fi
  3532. fi
  3533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3534. printf "%s\n" "$cross_compiling" >&6; }
  3535. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3536. ac_clean_files=$ac_clean_files_save
  3537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3538. printf %s "checking for suffix of object files... " >&6; }
  3539. if test ${ac_cv_objext+y}
  3540. then :
  3541. printf %s "(cached) " >&6
  3542. else $as_nop
  3543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3544. /* end confdefs.h. */
  3545. int
  3546. main (void)
  3547. {
  3548. ;
  3549. return 0;
  3550. }
  3551. _ACEOF
  3552. rm -f conftest.o conftest.obj
  3553. if { { ac_try="$ac_compile"
  3554. case "(($ac_try" in
  3555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3556. *) ac_try_echo=$ac_try;;
  3557. esac
  3558. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3559. printf "%s\n" "$ac_try_echo"; } >&5
  3560. (eval "$ac_compile") 2>&5
  3561. ac_status=$?
  3562. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3563. test $ac_status = 0; }
  3564. then :
  3565. for ac_file in conftest.o conftest.obj conftest.*; do
  3566. test -f "$ac_file" || continue;
  3567. case $ac_file in
  3568. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3569. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3570. break;;
  3571. esac
  3572. done
  3573. else $as_nop
  3574. printf "%s\n" "$as_me: failed program was:" >&5
  3575. sed 's/^/| /' conftest.$ac_ext >&5
  3576. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3577. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3578. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3579. See \`config.log' for more details" "$LINENO" 5; }
  3580. fi
  3581. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3582. fi
  3583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3584. printf "%s\n" "$ac_cv_objext" >&6; }
  3585. OBJEXT=$ac_cv_objext
  3586. ac_objext=$OBJEXT
  3587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  3588. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  3589. if test ${ac_cv_cxx_compiler_gnu+y}
  3590. then :
  3591. printf %s "(cached) " >&6
  3592. else $as_nop
  3593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3594. /* end confdefs.h. */
  3595. int
  3596. main (void)
  3597. {
  3598. #ifndef __GNUC__
  3599. choke me
  3600. #endif
  3601. ;
  3602. return 0;
  3603. }
  3604. _ACEOF
  3605. if ac_fn_cxx_try_compile "$LINENO"
  3606. then :
  3607. ac_compiler_gnu=yes
  3608. else $as_nop
  3609. ac_compiler_gnu=no
  3610. fi
  3611. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3612. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3613. fi
  3614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3615. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  3616. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3617. if test $ac_compiler_gnu = yes; then
  3618. GXX=yes
  3619. else
  3620. GXX=
  3621. fi
  3622. ac_test_CXXFLAGS=${CXXFLAGS+y}
  3623. ac_save_CXXFLAGS=$CXXFLAGS
  3624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3625. printf %s "checking whether $CXX accepts -g... " >&6; }
  3626. if test ${ac_cv_prog_cxx_g+y}
  3627. then :
  3628. printf %s "(cached) " >&6
  3629. else $as_nop
  3630. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3631. ac_cxx_werror_flag=yes
  3632. ac_cv_prog_cxx_g=no
  3633. CXXFLAGS="-g"
  3634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3635. /* end confdefs.h. */
  3636. int
  3637. main (void)
  3638. {
  3639. ;
  3640. return 0;
  3641. }
  3642. _ACEOF
  3643. if ac_fn_cxx_try_compile "$LINENO"
  3644. then :
  3645. ac_cv_prog_cxx_g=yes
  3646. else $as_nop
  3647. CXXFLAGS=""
  3648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3649. /* end confdefs.h. */
  3650. int
  3651. main (void)
  3652. {
  3653. ;
  3654. return 0;
  3655. }
  3656. _ACEOF
  3657. if ac_fn_cxx_try_compile "$LINENO"
  3658. then :
  3659. else $as_nop
  3660. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3661. CXXFLAGS="-g"
  3662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3663. /* end confdefs.h. */
  3664. int
  3665. main (void)
  3666. {
  3667. ;
  3668. return 0;
  3669. }
  3670. _ACEOF
  3671. if ac_fn_cxx_try_compile "$LINENO"
  3672. then :
  3673. ac_cv_prog_cxx_g=yes
  3674. fi
  3675. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3676. fi
  3677. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3678. fi
  3679. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3680. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3681. fi
  3682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3683. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  3684. if test $ac_test_CXXFLAGS; then
  3685. CXXFLAGS=$ac_save_CXXFLAGS
  3686. elif test $ac_cv_prog_cxx_g = yes; then
  3687. if test "$GXX" = yes; then
  3688. CXXFLAGS="-g -O2"
  3689. else
  3690. CXXFLAGS="-g"
  3691. fi
  3692. else
  3693. if test "$GXX" = yes; then
  3694. CXXFLAGS="-O2"
  3695. else
  3696. CXXFLAGS=
  3697. fi
  3698. fi
  3699. ac_prog_cxx_stdcxx=no
  3700. if test x$ac_prog_cxx_stdcxx = xno
  3701. then :
  3702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  3703. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  3704. if test ${ac_cv_prog_cxx_11+y}
  3705. then :
  3706. printf %s "(cached) " >&6
  3707. else $as_nop
  3708. ac_cv_prog_cxx_11=no
  3709. ac_save_CXX=$CXX
  3710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3711. /* end confdefs.h. */
  3712. $ac_cxx_conftest_cxx11_program
  3713. _ACEOF
  3714. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  3715. do
  3716. CXX="$ac_save_CXX $ac_arg"
  3717. if ac_fn_cxx_try_compile "$LINENO"
  3718. then :
  3719. ac_cv_prog_cxx_cxx11=$ac_arg
  3720. fi
  3721. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3722. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  3723. done
  3724. rm -f conftest.$ac_ext
  3725. CXX=$ac_save_CXX
  3726. fi
  3727. if test "x$ac_cv_prog_cxx_cxx11" = xno
  3728. then :
  3729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3730. printf "%s\n" "unsupported" >&6; }
  3731. else $as_nop
  3732. if test "x$ac_cv_prog_cxx_cxx11" = x
  3733. then :
  3734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3735. printf "%s\n" "none needed" >&6; }
  3736. else $as_nop
  3737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  3738. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  3739. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  3740. fi
  3741. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  3742. ac_prog_cxx_stdcxx=cxx11
  3743. fi
  3744. fi
  3745. if test x$ac_prog_cxx_stdcxx = xno
  3746. then :
  3747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  3748. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  3749. if test ${ac_cv_prog_cxx_98+y}
  3750. then :
  3751. printf %s "(cached) " >&6
  3752. else $as_nop
  3753. ac_cv_prog_cxx_98=no
  3754. ac_save_CXX=$CXX
  3755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3756. /* end confdefs.h. */
  3757. $ac_cxx_conftest_cxx98_program
  3758. _ACEOF
  3759. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  3760. do
  3761. CXX="$ac_save_CXX $ac_arg"
  3762. if ac_fn_cxx_try_compile "$LINENO"
  3763. then :
  3764. ac_cv_prog_cxx_cxx98=$ac_arg
  3765. fi
  3766. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3767. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  3768. done
  3769. rm -f conftest.$ac_ext
  3770. CXX=$ac_save_CXX
  3771. fi
  3772. if test "x$ac_cv_prog_cxx_cxx98" = xno
  3773. then :
  3774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3775. printf "%s\n" "unsupported" >&6; }
  3776. else $as_nop
  3777. if test "x$ac_cv_prog_cxx_cxx98" = x
  3778. then :
  3779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3780. printf "%s\n" "none needed" >&6; }
  3781. else $as_nop
  3782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  3783. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  3784. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  3785. fi
  3786. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  3787. ac_prog_cxx_stdcxx=cxx98
  3788. fi
  3789. fi
  3790. ac_ext=c
  3791. ac_cpp='$CPP $CPPFLAGS'
  3792. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3793. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3794. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3795. DEPDIR="${am__leading_dot}deps"
  3796. ac_config_commands="$ac_config_commands depfiles"
  3797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3798. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3799. cat > confinc.mk << 'END'
  3800. am__doit:
  3801. @echo this is the am__doit target >confinc.out
  3802. .PHONY: am__doit
  3803. END
  3804. am__include="#"
  3805. am__quote=
  3806. # BSD make does it like this.
  3807. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3808. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3809. echo 'include confinc.mk # ignored' > confmf.GNU
  3810. _am_result=no
  3811. for s in GNU BSD; do
  3812. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3813. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3814. ac_status=$?
  3815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3816. (exit $ac_status); }
  3817. case $?:`cat confinc.out 2>/dev/null` in #(
  3818. '0:this is the am__doit target') :
  3819. case $s in #(
  3820. BSD) :
  3821. am__include='.include' am__quote='"' ;; #(
  3822. *) :
  3823. am__include='include' am__quote='' ;;
  3824. esac ;; #(
  3825. *) :
  3826. ;;
  3827. esac
  3828. if test "$am__include" != "#"; then
  3829. _am_result="yes ($s style)"
  3830. break
  3831. fi
  3832. done
  3833. rm -f confinc.* confmf.*
  3834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3835. printf "%s\n" "${_am_result}" >&6; }
  3836. # Check whether --enable-dependency-tracking was given.
  3837. if test ${enable_dependency_tracking+y}
  3838. then :
  3839. enableval=$enable_dependency_tracking;
  3840. fi
  3841. if test "x$enable_dependency_tracking" != xno; then
  3842. am_depcomp="$ac_aux_dir/depcomp"
  3843. AMDEPBACKSLASH='\'
  3844. am__nodep='_no'
  3845. fi
  3846. if test "x$enable_dependency_tracking" != xno; then
  3847. AMDEP_TRUE=
  3848. AMDEP_FALSE='#'
  3849. else
  3850. AMDEP_TRUE='#'
  3851. AMDEP_FALSE=
  3852. fi
  3853. depcc="$CXX" am_compiler_list=
  3854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3855. printf %s "checking dependency style of $depcc... " >&6; }
  3856. if test ${am_cv_CXX_dependencies_compiler_type+y}
  3857. then :
  3858. printf %s "(cached) " >&6
  3859. else $as_nop
  3860. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3861. # We make a subdir and do the tests there. Otherwise we can end up
  3862. # making bogus files that we don't know about and never remove. For
  3863. # instance it was reported that on HP-UX the gcc test will end up
  3864. # making a dummy file named 'D' -- because '-MD' means "put the output
  3865. # in D".
  3866. rm -rf conftest.dir
  3867. mkdir conftest.dir
  3868. # Copy depcomp to subdir because otherwise we won't find it if we're
  3869. # using a relative directory.
  3870. cp "$am_depcomp" conftest.dir
  3871. cd conftest.dir
  3872. # We will build objects and dependencies in a subdirectory because
  3873. # it helps to detect inapplicable dependency modes. For instance
  3874. # both Tru64's cc and ICC support -MD to output dependencies as a
  3875. # side effect of compilation, but ICC will put the dependencies in
  3876. # the current directory while Tru64 will put them in the object
  3877. # directory.
  3878. mkdir sub
  3879. am_cv_CXX_dependencies_compiler_type=none
  3880. if test "$am_compiler_list" = ""; then
  3881. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3882. fi
  3883. am__universal=false
  3884. case " $depcc " in #(
  3885. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3886. esac
  3887. for depmode in $am_compiler_list; do
  3888. # Setup a source with many dependencies, because some compilers
  3889. # like to wrap large dependency lists on column 80 (with \), and
  3890. # we should not choose a depcomp mode which is confused by this.
  3891. #
  3892. # We need to recreate these files for each test, as the compiler may
  3893. # overwrite some of them when testing with obscure command lines.
  3894. # This happens at least with the AIX C compiler.
  3895. : > sub/conftest.c
  3896. for i in 1 2 3 4 5 6; do
  3897. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3898. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3899. # Solaris 10 /bin/sh.
  3900. echo '/* dummy */' > sub/conftst$i.h
  3901. done
  3902. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3903. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3904. # mode. It turns out that the SunPro C++ compiler does not properly
  3905. # handle '-M -o', and we need to detect this. Also, some Intel
  3906. # versions had trouble with output in subdirs.
  3907. am__obj=sub/conftest.${OBJEXT-o}
  3908. am__minus_obj="-o $am__obj"
  3909. case $depmode in
  3910. gcc)
  3911. # This depmode causes a compiler race in universal mode.
  3912. test "$am__universal" = false || continue
  3913. ;;
  3914. nosideeffect)
  3915. # After this tag, mechanisms are not by side-effect, so they'll
  3916. # only be used when explicitly requested.
  3917. if test "x$enable_dependency_tracking" = xyes; then
  3918. continue
  3919. else
  3920. break
  3921. fi
  3922. ;;
  3923. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3924. # This compiler won't grok '-c -o', but also, the minuso test has
  3925. # not run yet. These depmodes are late enough in the game, and
  3926. # so weak that their functioning should not be impacted.
  3927. am__obj=conftest.${OBJEXT-o}
  3928. am__minus_obj=
  3929. ;;
  3930. none) break ;;
  3931. esac
  3932. if depmode=$depmode \
  3933. source=sub/conftest.c object=$am__obj \
  3934. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3935. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3936. >/dev/null 2>conftest.err &&
  3937. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3938. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3939. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3940. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3941. # icc doesn't choke on unknown options, it will just issue warnings
  3942. # or remarks (even with -Werror). So we grep stderr for any message
  3943. # that says an option was ignored or not supported.
  3944. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3945. # icc: Command line warning: ignoring option '-M'; no argument required
  3946. # The diagnosis changed in icc 8.0:
  3947. # icc: Command line remark: option '-MP' not supported
  3948. if (grep 'ignoring option' conftest.err ||
  3949. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3950. am_cv_CXX_dependencies_compiler_type=$depmode
  3951. break
  3952. fi
  3953. fi
  3954. done
  3955. cd ..
  3956. rm -rf conftest.dir
  3957. else
  3958. am_cv_CXX_dependencies_compiler_type=none
  3959. fi
  3960. fi
  3961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3962. printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3963. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3964. if
  3965. test "x$enable_dependency_tracking" != xno \
  3966. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3967. am__fastdepCXX_TRUE=
  3968. am__fastdepCXX_FALSE='#'
  3969. else
  3970. am__fastdepCXX_TRUE='#'
  3971. am__fastdepCXX_FALSE=
  3972. fi
  3973. ax_cxx_compile_cxx11_required=true
  3974. ac_ext=cpp
  3975. ac_cpp='$CXXCPP $CPPFLAGS'
  3976. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3977. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3978. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3979. ac_success=no
  3980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
  3981. printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
  3982. if test ${ax_cv_cxx_compile_cxx11+y}
  3983. then :
  3984. printf %s "(cached) " >&6
  3985. else $as_nop
  3986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3987. /* end confdefs.h. */
  3988. template <typename T>
  3989. struct check
  3990. {
  3991. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  3992. };
  3993. struct Base {
  3994. virtual void f() {}
  3995. };
  3996. struct Child : public Base {
  3997. virtual void f() override {}
  3998. };
  3999. typedef check<check<bool>> right_angle_brackets;
  4000. int a;
  4001. decltype(a) b;
  4002. typedef check<int> check_type;
  4003. check_type c;
  4004. check_type&& cr = static_cast<check_type&&>(c);
  4005. auto d = a;
  4006. auto l = [](){};
  4007. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  4008. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
  4009. namespace test_template_alias_sfinae {
  4010. struct foo {};
  4011. template<typename T>
  4012. using member = typename T::member_type;
  4013. template<typename T>
  4014. void func(...) {}
  4015. template<typename T>
  4016. void func(member<T>*) {}
  4017. void test();
  4018. void test() {
  4019. func<foo>(0);
  4020. }
  4021. }
  4022. _ACEOF
  4023. if ac_fn_cxx_try_compile "$LINENO"
  4024. then :
  4025. ax_cv_cxx_compile_cxx11=yes
  4026. else $as_nop
  4027. ax_cv_cxx_compile_cxx11=no
  4028. fi
  4029. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4030. fi
  4031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
  4032. printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
  4033. if test x$ax_cv_cxx_compile_cxx11 = xyes; then
  4034. ac_success=yes
  4035. fi
  4036. if test x$ac_success = xno; then
  4037. for switch in -std=c++11 -std=c++0x; do
  4038. cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  4039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  4040. printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
  4041. if eval test \${$cachevar+y}
  4042. then :
  4043. printf %s "(cached) " >&6
  4044. else $as_nop
  4045. ac_save_CXXFLAGS="$CXXFLAGS"
  4046. CXXFLAGS="$CXXFLAGS $switch"
  4047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4048. /* end confdefs.h. */
  4049. template <typename T>
  4050. struct check
  4051. {
  4052. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  4053. };
  4054. struct Base {
  4055. virtual void f() {}
  4056. };
  4057. struct Child : public Base {
  4058. virtual void f() override {}
  4059. };
  4060. typedef check<check<bool>> right_angle_brackets;
  4061. int a;
  4062. decltype(a) b;
  4063. typedef check<int> check_type;
  4064. check_type c;
  4065. check_type&& cr = static_cast<check_type&&>(c);
  4066. auto d = a;
  4067. auto l = [](){};
  4068. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  4069. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
  4070. namespace test_template_alias_sfinae {
  4071. struct foo {};
  4072. template<typename T>
  4073. using member = typename T::member_type;
  4074. template<typename T>
  4075. void func(...) {}
  4076. template<typename T>
  4077. void func(member<T>*) {}
  4078. void test();
  4079. void test() {
  4080. func<foo>(0);
  4081. }
  4082. }
  4083. _ACEOF
  4084. if ac_fn_cxx_try_compile "$LINENO"
  4085. then :
  4086. eval $cachevar=yes
  4087. else $as_nop
  4088. eval $cachevar=no
  4089. fi
  4090. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4091. CXXFLAGS="$ac_save_CXXFLAGS"
  4092. fi
  4093. eval ac_res=\$$cachevar
  4094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4095. printf "%s\n" "$ac_res" >&6; }
  4096. if eval test x\$$cachevar = xyes; then
  4097. CXXFLAGS="$CXXFLAGS $switch"
  4098. ac_success=yes
  4099. break
  4100. fi
  4101. done
  4102. fi
  4103. ac_ext=c
  4104. ac_cpp='$CPP $CPPFLAGS'
  4105. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4106. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4107. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4108. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  4109. if test x$ac_success = xno; then
  4110. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  4111. fi
  4112. else
  4113. if test x$ac_success = xno; then
  4114. HAVE_CXX11=0
  4115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  4116. printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
  4117. else
  4118. HAVE_CXX11=1
  4119. printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
  4120. fi
  4121. fi
  4122. case `pwd` in
  4123. *\ * | *\ *)
  4124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4125. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4126. esac
  4127. macro_version='2.4.6'
  4128. macro_revision='2.4.6'
  4129. ltmain=$ac_aux_dir/ltmain.sh
  4130. # Make sure we can run config.sub.
  4131. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  4132. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  4133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4134. printf %s "checking build system type... " >&6; }
  4135. if test ${ac_cv_build+y}
  4136. then :
  4137. printf %s "(cached) " >&6
  4138. else $as_nop
  4139. ac_build_alias=$build_alias
  4140. test "x$ac_build_alias" = x &&
  4141. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  4142. test "x$ac_build_alias" = x &&
  4143. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4144. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  4145. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  4146. fi
  4147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4148. printf "%s\n" "$ac_cv_build" >&6; }
  4149. case $ac_cv_build in
  4150. *-*-*) ;;
  4151. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4152. esac
  4153. build=$ac_cv_build
  4154. ac_save_IFS=$IFS; IFS='-'
  4155. set x $ac_cv_build
  4156. shift
  4157. build_cpu=$1
  4158. build_vendor=$2
  4159. shift; shift
  4160. # Remember, the first character of IFS is used to create $*,
  4161. # except with old shells:
  4162. build_os=$*
  4163. IFS=$ac_save_IFS
  4164. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4166. printf %s "checking host system type... " >&6; }
  4167. if test ${ac_cv_host+y}
  4168. then :
  4169. printf %s "(cached) " >&6
  4170. else $as_nop
  4171. if test "x$host_alias" = x; then
  4172. ac_cv_host=$ac_cv_build
  4173. else
  4174. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  4175. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  4176. fi
  4177. fi
  4178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4179. printf "%s\n" "$ac_cv_host" >&6; }
  4180. case $ac_cv_host in
  4181. *-*-*) ;;
  4182. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4183. esac
  4184. host=$ac_cv_host
  4185. ac_save_IFS=$IFS; IFS='-'
  4186. set x $ac_cv_host
  4187. shift
  4188. host_cpu=$1
  4189. host_vendor=$2
  4190. shift; shift
  4191. # Remember, the first character of IFS is used to create $*,
  4192. # except with old shells:
  4193. host_os=$*
  4194. IFS=$ac_save_IFS
  4195. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4196. # Backslashify metacharacters that are still active within
  4197. # double-quoted strings.
  4198. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4199. # Same as above, but do not quote variable references.
  4200. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4201. # Sed substitution to delay expansion of an escaped shell variable in a
  4202. # double_quote_subst'ed string.
  4203. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4204. # Sed substitution to delay expansion of an escaped single quote.
  4205. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4206. # Sed substitution to avoid accidental globbing in evaled expressions
  4207. no_glob_subst='s/\*/\\\*/g'
  4208. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4209. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4210. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4212. printf %s "checking how to print strings... " >&6; }
  4213. # Test print first, because it will be a builtin if present.
  4214. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4215. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4216. ECHO='print -r --'
  4217. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4218. ECHO='printf %s\n'
  4219. else
  4220. # Use this function as a fallback that always works.
  4221. func_fallback_echo ()
  4222. {
  4223. eval 'cat <<_LTECHO_EOF
  4224. $1
  4225. _LTECHO_EOF'
  4226. }
  4227. ECHO='func_fallback_echo'
  4228. fi
  4229. # func_echo_all arg...
  4230. # Invoke $ECHO with all args, space-separated.
  4231. func_echo_all ()
  4232. {
  4233. $ECHO ""
  4234. }
  4235. case $ECHO in
  4236. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4237. printf "%s\n" "printf" >&6; } ;;
  4238. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4239. printf "%s\n" "print -r" >&6; } ;;
  4240. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4241. printf "%s\n" "cat" >&6; } ;;
  4242. esac
  4243. ac_ext=c
  4244. ac_cpp='$CPP $CPPFLAGS'
  4245. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4246. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4247. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4248. if test -n "$ac_tool_prefix"; then
  4249. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4250. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4252. printf %s "checking for $ac_word... " >&6; }
  4253. if test ${ac_cv_prog_CC+y}
  4254. then :
  4255. printf %s "(cached) " >&6
  4256. else $as_nop
  4257. if test -n "$CC"; then
  4258. ac_cv_prog_CC="$CC" # Let the user override the test.
  4259. else
  4260. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4261. for as_dir in $PATH
  4262. do
  4263. IFS=$as_save_IFS
  4264. case $as_dir in #(((
  4265. '') as_dir=./ ;;
  4266. */) ;;
  4267. *) as_dir=$as_dir/ ;;
  4268. esac
  4269. for ac_exec_ext in '' $ac_executable_extensions; do
  4270. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4271. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4272. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4273. break 2
  4274. fi
  4275. done
  4276. done
  4277. IFS=$as_save_IFS
  4278. fi
  4279. fi
  4280. CC=$ac_cv_prog_CC
  4281. if test -n "$CC"; then
  4282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4283. printf "%s\n" "$CC" >&6; }
  4284. else
  4285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4286. printf "%s\n" "no" >&6; }
  4287. fi
  4288. fi
  4289. if test -z "$ac_cv_prog_CC"; then
  4290. ac_ct_CC=$CC
  4291. # Extract the first word of "gcc", so it can be a program name with args.
  4292. set dummy gcc; ac_word=$2
  4293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4294. printf %s "checking for $ac_word... " >&6; }
  4295. if test ${ac_cv_prog_ac_ct_CC+y}
  4296. then :
  4297. printf %s "(cached) " >&6
  4298. else $as_nop
  4299. if test -n "$ac_ct_CC"; then
  4300. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4301. else
  4302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4303. for as_dir in $PATH
  4304. do
  4305. IFS=$as_save_IFS
  4306. case $as_dir in #(((
  4307. '') as_dir=./ ;;
  4308. */) ;;
  4309. *) as_dir=$as_dir/ ;;
  4310. esac
  4311. for ac_exec_ext in '' $ac_executable_extensions; do
  4312. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4313. ac_cv_prog_ac_ct_CC="gcc"
  4314. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4315. break 2
  4316. fi
  4317. done
  4318. done
  4319. IFS=$as_save_IFS
  4320. fi
  4321. fi
  4322. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4323. if test -n "$ac_ct_CC"; then
  4324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4325. printf "%s\n" "$ac_ct_CC" >&6; }
  4326. else
  4327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4328. printf "%s\n" "no" >&6; }
  4329. fi
  4330. if test "x$ac_ct_CC" = x; then
  4331. CC=""
  4332. else
  4333. case $cross_compiling:$ac_tool_warned in
  4334. yes:)
  4335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4336. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4337. ac_tool_warned=yes ;;
  4338. esac
  4339. CC=$ac_ct_CC
  4340. fi
  4341. else
  4342. CC="$ac_cv_prog_CC"
  4343. fi
  4344. if test -z "$CC"; then
  4345. if test -n "$ac_tool_prefix"; then
  4346. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4347. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4349. printf %s "checking for $ac_word... " >&6; }
  4350. if test ${ac_cv_prog_CC+y}
  4351. then :
  4352. printf %s "(cached) " >&6
  4353. else $as_nop
  4354. if test -n "$CC"; then
  4355. ac_cv_prog_CC="$CC" # Let the user override the test.
  4356. else
  4357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4358. for as_dir in $PATH
  4359. do
  4360. IFS=$as_save_IFS
  4361. case $as_dir in #(((
  4362. '') as_dir=./ ;;
  4363. */) ;;
  4364. *) as_dir=$as_dir/ ;;
  4365. esac
  4366. for ac_exec_ext in '' $ac_executable_extensions; do
  4367. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4368. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4369. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4370. break 2
  4371. fi
  4372. done
  4373. done
  4374. IFS=$as_save_IFS
  4375. fi
  4376. fi
  4377. CC=$ac_cv_prog_CC
  4378. if test -n "$CC"; then
  4379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4380. printf "%s\n" "$CC" >&6; }
  4381. else
  4382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4383. printf "%s\n" "no" >&6; }
  4384. fi
  4385. fi
  4386. fi
  4387. if test -z "$CC"; then
  4388. # Extract the first word of "cc", so it can be a program name with args.
  4389. set dummy cc; ac_word=$2
  4390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4391. printf %s "checking for $ac_word... " >&6; }
  4392. if test ${ac_cv_prog_CC+y}
  4393. then :
  4394. printf %s "(cached) " >&6
  4395. else $as_nop
  4396. if test -n "$CC"; then
  4397. ac_cv_prog_CC="$CC" # Let the user override the test.
  4398. else
  4399. ac_prog_rejected=no
  4400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4401. for as_dir in $PATH
  4402. do
  4403. IFS=$as_save_IFS
  4404. case $as_dir in #(((
  4405. '') as_dir=./ ;;
  4406. */) ;;
  4407. *) as_dir=$as_dir/ ;;
  4408. esac
  4409. for ac_exec_ext in '' $ac_executable_extensions; do
  4410. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4411. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4412. ac_prog_rejected=yes
  4413. continue
  4414. fi
  4415. ac_cv_prog_CC="cc"
  4416. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4417. break 2
  4418. fi
  4419. done
  4420. done
  4421. IFS=$as_save_IFS
  4422. if test $ac_prog_rejected = yes; then
  4423. # We found a bogon in the path, so make sure we never use it.
  4424. set dummy $ac_cv_prog_CC
  4425. shift
  4426. if test $# != 0; then
  4427. # We chose a different compiler from the bogus one.
  4428. # However, it has the same basename, so the bogon will be chosen
  4429. # first if we set CC to just the basename; use the full file name.
  4430. shift
  4431. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  4432. fi
  4433. fi
  4434. fi
  4435. fi
  4436. CC=$ac_cv_prog_CC
  4437. if test -n "$CC"; then
  4438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4439. printf "%s\n" "$CC" >&6; }
  4440. else
  4441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4442. printf "%s\n" "no" >&6; }
  4443. fi
  4444. fi
  4445. if test -z "$CC"; then
  4446. if test -n "$ac_tool_prefix"; then
  4447. for ac_prog in cl.exe
  4448. do
  4449. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4450. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4452. printf %s "checking for $ac_word... " >&6; }
  4453. if test ${ac_cv_prog_CC+y}
  4454. then :
  4455. printf %s "(cached) " >&6
  4456. else $as_nop
  4457. if test -n "$CC"; then
  4458. ac_cv_prog_CC="$CC" # Let the user override the test.
  4459. else
  4460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4461. for as_dir in $PATH
  4462. do
  4463. IFS=$as_save_IFS
  4464. case $as_dir in #(((
  4465. '') as_dir=./ ;;
  4466. */) ;;
  4467. *) as_dir=$as_dir/ ;;
  4468. esac
  4469. for ac_exec_ext in '' $ac_executable_extensions; do
  4470. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4471. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4472. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4473. break 2
  4474. fi
  4475. done
  4476. done
  4477. IFS=$as_save_IFS
  4478. fi
  4479. fi
  4480. CC=$ac_cv_prog_CC
  4481. if test -n "$CC"; then
  4482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4483. printf "%s\n" "$CC" >&6; }
  4484. else
  4485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4486. printf "%s\n" "no" >&6; }
  4487. fi
  4488. test -n "$CC" && break
  4489. done
  4490. fi
  4491. if test -z "$CC"; then
  4492. ac_ct_CC=$CC
  4493. for ac_prog in cl.exe
  4494. do
  4495. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4496. set dummy $ac_prog; ac_word=$2
  4497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4498. printf %s "checking for $ac_word... " >&6; }
  4499. if test ${ac_cv_prog_ac_ct_CC+y}
  4500. then :
  4501. printf %s "(cached) " >&6
  4502. else $as_nop
  4503. if test -n "$ac_ct_CC"; then
  4504. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4505. else
  4506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4507. for as_dir in $PATH
  4508. do
  4509. IFS=$as_save_IFS
  4510. case $as_dir in #(((
  4511. '') as_dir=./ ;;
  4512. */) ;;
  4513. *) as_dir=$as_dir/ ;;
  4514. esac
  4515. for ac_exec_ext in '' $ac_executable_extensions; do
  4516. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4517. ac_cv_prog_ac_ct_CC="$ac_prog"
  4518. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4519. break 2
  4520. fi
  4521. done
  4522. done
  4523. IFS=$as_save_IFS
  4524. fi
  4525. fi
  4526. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4527. if test -n "$ac_ct_CC"; then
  4528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4529. printf "%s\n" "$ac_ct_CC" >&6; }
  4530. else
  4531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4532. printf "%s\n" "no" >&6; }
  4533. fi
  4534. test -n "$ac_ct_CC" && break
  4535. done
  4536. if test "x$ac_ct_CC" = x; then
  4537. CC=""
  4538. else
  4539. case $cross_compiling:$ac_tool_warned in
  4540. yes:)
  4541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4542. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4543. ac_tool_warned=yes ;;
  4544. esac
  4545. CC=$ac_ct_CC
  4546. fi
  4547. fi
  4548. fi
  4549. if test -z "$CC"; then
  4550. if test -n "$ac_tool_prefix"; then
  4551. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  4552. set dummy ${ac_tool_prefix}clang; ac_word=$2
  4553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4554. printf %s "checking for $ac_word... " >&6; }
  4555. if test ${ac_cv_prog_CC+y}
  4556. then :
  4557. printf %s "(cached) " >&6
  4558. else $as_nop
  4559. if test -n "$CC"; then
  4560. ac_cv_prog_CC="$CC" # Let the user override the test.
  4561. else
  4562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4563. for as_dir in $PATH
  4564. do
  4565. IFS=$as_save_IFS
  4566. case $as_dir in #(((
  4567. '') as_dir=./ ;;
  4568. */) ;;
  4569. *) as_dir=$as_dir/ ;;
  4570. esac
  4571. for ac_exec_ext in '' $ac_executable_extensions; do
  4572. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4573. ac_cv_prog_CC="${ac_tool_prefix}clang"
  4574. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4575. break 2
  4576. fi
  4577. done
  4578. done
  4579. IFS=$as_save_IFS
  4580. fi
  4581. fi
  4582. CC=$ac_cv_prog_CC
  4583. if test -n "$CC"; then
  4584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4585. printf "%s\n" "$CC" >&6; }
  4586. else
  4587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4588. printf "%s\n" "no" >&6; }
  4589. fi
  4590. fi
  4591. if test -z "$ac_cv_prog_CC"; then
  4592. ac_ct_CC=$CC
  4593. # Extract the first word of "clang", so it can be a program name with args.
  4594. set dummy clang; ac_word=$2
  4595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4596. printf %s "checking for $ac_word... " >&6; }
  4597. if test ${ac_cv_prog_ac_ct_CC+y}
  4598. then :
  4599. printf %s "(cached) " >&6
  4600. else $as_nop
  4601. if test -n "$ac_ct_CC"; then
  4602. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4603. else
  4604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4605. for as_dir in $PATH
  4606. do
  4607. IFS=$as_save_IFS
  4608. case $as_dir in #(((
  4609. '') as_dir=./ ;;
  4610. */) ;;
  4611. *) as_dir=$as_dir/ ;;
  4612. esac
  4613. for ac_exec_ext in '' $ac_executable_extensions; do
  4614. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4615. ac_cv_prog_ac_ct_CC="clang"
  4616. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4617. break 2
  4618. fi
  4619. done
  4620. done
  4621. IFS=$as_save_IFS
  4622. fi
  4623. fi
  4624. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4625. if test -n "$ac_ct_CC"; then
  4626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4627. printf "%s\n" "$ac_ct_CC" >&6; }
  4628. else
  4629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4630. printf "%s\n" "no" >&6; }
  4631. fi
  4632. if test "x$ac_ct_CC" = x; then
  4633. CC=""
  4634. else
  4635. case $cross_compiling:$ac_tool_warned in
  4636. yes:)
  4637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4638. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4639. ac_tool_warned=yes ;;
  4640. esac
  4641. CC=$ac_ct_CC
  4642. fi
  4643. else
  4644. CC="$ac_cv_prog_CC"
  4645. fi
  4646. fi
  4647. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4648. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4649. as_fn_error $? "no acceptable C compiler found in \$PATH
  4650. See \`config.log' for more details" "$LINENO" 5; }
  4651. # Provide some information about the compiler.
  4652. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4653. set X $ac_compile
  4654. ac_compiler=$2
  4655. for ac_option in --version -v -V -qversion -version; do
  4656. { { ac_try="$ac_compiler $ac_option >&5"
  4657. case "(($ac_try" in
  4658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4659. *) ac_try_echo=$ac_try;;
  4660. esac
  4661. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4662. printf "%s\n" "$ac_try_echo"; } >&5
  4663. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4664. ac_status=$?
  4665. if test -s conftest.err; then
  4666. sed '10a\
  4667. ... rest of stderr output deleted ...
  4668. 10q' conftest.err >conftest.er1
  4669. cat conftest.er1 >&5
  4670. fi
  4671. rm -f conftest.er1 conftest.err
  4672. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4673. test $ac_status = 0; }
  4674. done
  4675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4676. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4677. if test ${ac_cv_c_compiler_gnu+y}
  4678. then :
  4679. printf %s "(cached) " >&6
  4680. else $as_nop
  4681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4682. /* end confdefs.h. */
  4683. int
  4684. main (void)
  4685. {
  4686. #ifndef __GNUC__
  4687. choke me
  4688. #endif
  4689. ;
  4690. return 0;
  4691. }
  4692. _ACEOF
  4693. if ac_fn_c_try_compile "$LINENO"
  4694. then :
  4695. ac_compiler_gnu=yes
  4696. else $as_nop
  4697. ac_compiler_gnu=no
  4698. fi
  4699. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4700. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4701. fi
  4702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4703. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4704. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4705. if test $ac_compiler_gnu = yes; then
  4706. GCC=yes
  4707. else
  4708. GCC=
  4709. fi
  4710. ac_test_CFLAGS=${CFLAGS+y}
  4711. ac_save_CFLAGS=$CFLAGS
  4712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4713. printf %s "checking whether $CC accepts -g... " >&6; }
  4714. if test ${ac_cv_prog_cc_g+y}
  4715. then :
  4716. printf %s "(cached) " >&6
  4717. else $as_nop
  4718. ac_save_c_werror_flag=$ac_c_werror_flag
  4719. ac_c_werror_flag=yes
  4720. ac_cv_prog_cc_g=no
  4721. CFLAGS="-g"
  4722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4723. /* end confdefs.h. */
  4724. int
  4725. main (void)
  4726. {
  4727. ;
  4728. return 0;
  4729. }
  4730. _ACEOF
  4731. if ac_fn_c_try_compile "$LINENO"
  4732. then :
  4733. ac_cv_prog_cc_g=yes
  4734. else $as_nop
  4735. CFLAGS=""
  4736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4737. /* end confdefs.h. */
  4738. int
  4739. main (void)
  4740. {
  4741. ;
  4742. return 0;
  4743. }
  4744. _ACEOF
  4745. if ac_fn_c_try_compile "$LINENO"
  4746. then :
  4747. else $as_nop
  4748. ac_c_werror_flag=$ac_save_c_werror_flag
  4749. CFLAGS="-g"
  4750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4751. /* end confdefs.h. */
  4752. int
  4753. main (void)
  4754. {
  4755. ;
  4756. return 0;
  4757. }
  4758. _ACEOF
  4759. if ac_fn_c_try_compile "$LINENO"
  4760. then :
  4761. ac_cv_prog_cc_g=yes
  4762. fi
  4763. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4764. fi
  4765. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4766. fi
  4767. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4768. ac_c_werror_flag=$ac_save_c_werror_flag
  4769. fi
  4770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4771. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4772. if test $ac_test_CFLAGS; then
  4773. CFLAGS=$ac_save_CFLAGS
  4774. elif test $ac_cv_prog_cc_g = yes; then
  4775. if test "$GCC" = yes; then
  4776. CFLAGS="-g -O2"
  4777. else
  4778. CFLAGS="-g"
  4779. fi
  4780. else
  4781. if test "$GCC" = yes; then
  4782. CFLAGS="-O2"
  4783. else
  4784. CFLAGS=
  4785. fi
  4786. fi
  4787. ac_prog_cc_stdc=no
  4788. if test x$ac_prog_cc_stdc = xno
  4789. then :
  4790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4791. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4792. if test ${ac_cv_prog_cc_c11+y}
  4793. then :
  4794. printf %s "(cached) " >&6
  4795. else $as_nop
  4796. ac_cv_prog_cc_c11=no
  4797. ac_save_CC=$CC
  4798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4799. /* end confdefs.h. */
  4800. $ac_c_conftest_c11_program
  4801. _ACEOF
  4802. for ac_arg in '' -std=gnu11
  4803. do
  4804. CC="$ac_save_CC $ac_arg"
  4805. if ac_fn_c_try_compile "$LINENO"
  4806. then :
  4807. ac_cv_prog_cc_c11=$ac_arg
  4808. fi
  4809. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4810. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4811. done
  4812. rm -f conftest.$ac_ext
  4813. CC=$ac_save_CC
  4814. fi
  4815. if test "x$ac_cv_prog_cc_c11" = xno
  4816. then :
  4817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4818. printf "%s\n" "unsupported" >&6; }
  4819. else $as_nop
  4820. if test "x$ac_cv_prog_cc_c11" = x
  4821. then :
  4822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4823. printf "%s\n" "none needed" >&6; }
  4824. else $as_nop
  4825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4826. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4827. CC="$CC $ac_cv_prog_cc_c11"
  4828. fi
  4829. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4830. ac_prog_cc_stdc=c11
  4831. fi
  4832. fi
  4833. if test x$ac_prog_cc_stdc = xno
  4834. then :
  4835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4836. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4837. if test ${ac_cv_prog_cc_c99+y}
  4838. then :
  4839. printf %s "(cached) " >&6
  4840. else $as_nop
  4841. ac_cv_prog_cc_c99=no
  4842. ac_save_CC=$CC
  4843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4844. /* end confdefs.h. */
  4845. $ac_c_conftest_c99_program
  4846. _ACEOF
  4847. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4848. do
  4849. CC="$ac_save_CC $ac_arg"
  4850. if ac_fn_c_try_compile "$LINENO"
  4851. then :
  4852. ac_cv_prog_cc_c99=$ac_arg
  4853. fi
  4854. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4855. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4856. done
  4857. rm -f conftest.$ac_ext
  4858. CC=$ac_save_CC
  4859. fi
  4860. if test "x$ac_cv_prog_cc_c99" = xno
  4861. then :
  4862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4863. printf "%s\n" "unsupported" >&6; }
  4864. else $as_nop
  4865. if test "x$ac_cv_prog_cc_c99" = x
  4866. then :
  4867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4868. printf "%s\n" "none needed" >&6; }
  4869. else $as_nop
  4870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4871. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4872. CC="$CC $ac_cv_prog_cc_c99"
  4873. fi
  4874. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4875. ac_prog_cc_stdc=c99
  4876. fi
  4877. fi
  4878. if test x$ac_prog_cc_stdc = xno
  4879. then :
  4880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4881. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4882. if test ${ac_cv_prog_cc_c89+y}
  4883. then :
  4884. printf %s "(cached) " >&6
  4885. else $as_nop
  4886. ac_cv_prog_cc_c89=no
  4887. ac_save_CC=$CC
  4888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4889. /* end confdefs.h. */
  4890. $ac_c_conftest_c89_program
  4891. _ACEOF
  4892. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4893. do
  4894. CC="$ac_save_CC $ac_arg"
  4895. if ac_fn_c_try_compile "$LINENO"
  4896. then :
  4897. ac_cv_prog_cc_c89=$ac_arg
  4898. fi
  4899. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4900. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4901. done
  4902. rm -f conftest.$ac_ext
  4903. CC=$ac_save_CC
  4904. fi
  4905. if test "x$ac_cv_prog_cc_c89" = xno
  4906. then :
  4907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4908. printf "%s\n" "unsupported" >&6; }
  4909. else $as_nop
  4910. if test "x$ac_cv_prog_cc_c89" = x
  4911. then :
  4912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4913. printf "%s\n" "none needed" >&6; }
  4914. else $as_nop
  4915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4916. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4917. CC="$CC $ac_cv_prog_cc_c89"
  4918. fi
  4919. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4920. ac_prog_cc_stdc=c89
  4921. fi
  4922. fi
  4923. ac_ext=c
  4924. ac_cpp='$CPP $CPPFLAGS'
  4925. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4926. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4927. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4928. ac_ext=c
  4929. ac_cpp='$CPP $CPPFLAGS'
  4930. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4931. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4932. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4934. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  4935. if test ${am_cv_prog_cc_c_o+y}
  4936. then :
  4937. printf %s "(cached) " >&6
  4938. else $as_nop
  4939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4940. /* end confdefs.h. */
  4941. int
  4942. main (void)
  4943. {
  4944. ;
  4945. return 0;
  4946. }
  4947. _ACEOF
  4948. # Make sure it works both with $CC and with simple cc.
  4949. # Following AC_PROG_CC_C_O, we do the test twice because some
  4950. # compilers refuse to overwrite an existing .o file with -o,
  4951. # though they will create one.
  4952. am_cv_prog_cc_c_o=yes
  4953. for am_i in 1 2; do
  4954. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4955. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4956. ac_status=$?
  4957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4958. (exit $ac_status); } \
  4959. && test -f conftest2.$ac_objext; then
  4960. : OK
  4961. else
  4962. am_cv_prog_cc_c_o=no
  4963. break
  4964. fi
  4965. done
  4966. rm -f core conftest*
  4967. unset am_i
  4968. fi
  4969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4970. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  4971. if test "$am_cv_prog_cc_c_o" != yes; then
  4972. # Losing compiler, so override with the script.
  4973. # FIXME: It is wrong to rewrite CC.
  4974. # But if we don't then we get into trouble of one sort or another.
  4975. # A longer-term fix would be to have automake use am__CC in this case,
  4976. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4977. CC="$am_aux_dir/compile $CC"
  4978. fi
  4979. ac_ext=c
  4980. ac_cpp='$CPP $CPPFLAGS'
  4981. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4982. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4983. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4984. depcc="$CC" am_compiler_list=
  4985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4986. printf %s "checking dependency style of $depcc... " >&6; }
  4987. if test ${am_cv_CC_dependencies_compiler_type+y}
  4988. then :
  4989. printf %s "(cached) " >&6
  4990. else $as_nop
  4991. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4992. # We make a subdir and do the tests there. Otherwise we can end up
  4993. # making bogus files that we don't know about and never remove. For
  4994. # instance it was reported that on HP-UX the gcc test will end up
  4995. # making a dummy file named 'D' -- because '-MD' means "put the output
  4996. # in D".
  4997. rm -rf conftest.dir
  4998. mkdir conftest.dir
  4999. # Copy depcomp to subdir because otherwise we won't find it if we're
  5000. # using a relative directory.
  5001. cp "$am_depcomp" conftest.dir
  5002. cd conftest.dir
  5003. # We will build objects and dependencies in a subdirectory because
  5004. # it helps to detect inapplicable dependency modes. For instance
  5005. # both Tru64's cc and ICC support -MD to output dependencies as a
  5006. # side effect of compilation, but ICC will put the dependencies in
  5007. # the current directory while Tru64 will put them in the object
  5008. # directory.
  5009. mkdir sub
  5010. am_cv_CC_dependencies_compiler_type=none
  5011. if test "$am_compiler_list" = ""; then
  5012. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5013. fi
  5014. am__universal=false
  5015. case " $depcc " in #(
  5016. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5017. esac
  5018. for depmode in $am_compiler_list; do
  5019. # Setup a source with many dependencies, because some compilers
  5020. # like to wrap large dependency lists on column 80 (with \), and
  5021. # we should not choose a depcomp mode which is confused by this.
  5022. #
  5023. # We need to recreate these files for each test, as the compiler may
  5024. # overwrite some of them when testing with obscure command lines.
  5025. # This happens at least with the AIX C compiler.
  5026. : > sub/conftest.c
  5027. for i in 1 2 3 4 5 6; do
  5028. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5029. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5030. # Solaris 10 /bin/sh.
  5031. echo '/* dummy */' > sub/conftst$i.h
  5032. done
  5033. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5034. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5035. # mode. It turns out that the SunPro C++ compiler does not properly
  5036. # handle '-M -o', and we need to detect this. Also, some Intel
  5037. # versions had trouble with output in subdirs.
  5038. am__obj=sub/conftest.${OBJEXT-o}
  5039. am__minus_obj="-o $am__obj"
  5040. case $depmode in
  5041. gcc)
  5042. # This depmode causes a compiler race in universal mode.
  5043. test "$am__universal" = false || continue
  5044. ;;
  5045. nosideeffect)
  5046. # After this tag, mechanisms are not by side-effect, so they'll
  5047. # only be used when explicitly requested.
  5048. if test "x$enable_dependency_tracking" = xyes; then
  5049. continue
  5050. else
  5051. break
  5052. fi
  5053. ;;
  5054. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5055. # This compiler won't grok '-c -o', but also, the minuso test has
  5056. # not run yet. These depmodes are late enough in the game, and
  5057. # so weak that their functioning should not be impacted.
  5058. am__obj=conftest.${OBJEXT-o}
  5059. am__minus_obj=
  5060. ;;
  5061. none) break ;;
  5062. esac
  5063. if depmode=$depmode \
  5064. source=sub/conftest.c object=$am__obj \
  5065. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5066. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5067. >/dev/null 2>conftest.err &&
  5068. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5069. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5070. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5071. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5072. # icc doesn't choke on unknown options, it will just issue warnings
  5073. # or remarks (even with -Werror). So we grep stderr for any message
  5074. # that says an option was ignored or not supported.
  5075. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5076. # icc: Command line warning: ignoring option '-M'; no argument required
  5077. # The diagnosis changed in icc 8.0:
  5078. # icc: Command line remark: option '-MP' not supported
  5079. if (grep 'ignoring option' conftest.err ||
  5080. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5081. am_cv_CC_dependencies_compiler_type=$depmode
  5082. break
  5083. fi
  5084. fi
  5085. done
  5086. cd ..
  5087. rm -rf conftest.dir
  5088. else
  5089. am_cv_CC_dependencies_compiler_type=none
  5090. fi
  5091. fi
  5092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5093. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  5094. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5095. if
  5096. test "x$enable_dependency_tracking" != xno \
  5097. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5098. am__fastdepCC_TRUE=
  5099. am__fastdepCC_FALSE='#'
  5100. else
  5101. am__fastdepCC_TRUE='#'
  5102. am__fastdepCC_FALSE=
  5103. fi
  5104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5105. printf %s "checking for a sed that does not truncate output... " >&6; }
  5106. if test ${ac_cv_path_SED+y}
  5107. then :
  5108. printf %s "(cached) " >&6
  5109. else $as_nop
  5110. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5111. for ac_i in 1 2 3 4 5 6 7; do
  5112. ac_script="$ac_script$as_nl$ac_script"
  5113. done
  5114. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5115. { ac_script=; unset ac_script;}
  5116. if test -z "$SED"; then
  5117. ac_path_SED_found=false
  5118. # Loop through the user's path and test for each of PROGNAME-LIST
  5119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5120. for as_dir in $PATH
  5121. do
  5122. IFS=$as_save_IFS
  5123. case $as_dir in #(((
  5124. '') as_dir=./ ;;
  5125. */) ;;
  5126. *) as_dir=$as_dir/ ;;
  5127. esac
  5128. for ac_prog in sed gsed
  5129. do
  5130. for ac_exec_ext in '' $ac_executable_extensions; do
  5131. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  5132. as_fn_executable_p "$ac_path_SED" || continue
  5133. # Check for GNU ac_path_SED and select it if it is found.
  5134. # Check for GNU $ac_path_SED
  5135. case `"$ac_path_SED" --version 2>&1` in
  5136. *GNU*)
  5137. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5138. *)
  5139. ac_count=0
  5140. printf %s 0123456789 >"conftest.in"
  5141. while :
  5142. do
  5143. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5144. mv "conftest.tmp" "conftest.in"
  5145. cp "conftest.in" "conftest.nl"
  5146. printf "%s\n" '' >> "conftest.nl"
  5147. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5148. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5149. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5150. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5151. # Best one so far, save it but keep looking for a better one
  5152. ac_cv_path_SED="$ac_path_SED"
  5153. ac_path_SED_max=$ac_count
  5154. fi
  5155. # 10*(2^10) chars as input seems more than enough
  5156. test $ac_count -gt 10 && break
  5157. done
  5158. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5159. esac
  5160. $ac_path_SED_found && break 3
  5161. done
  5162. done
  5163. done
  5164. IFS=$as_save_IFS
  5165. if test -z "$ac_cv_path_SED"; then
  5166. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5167. fi
  5168. else
  5169. ac_cv_path_SED=$SED
  5170. fi
  5171. fi
  5172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5173. printf "%s\n" "$ac_cv_path_SED" >&6; }
  5174. SED="$ac_cv_path_SED"
  5175. rm -f conftest.sed
  5176. test -z "$SED" && SED=sed
  5177. Xsed="$SED -e 1s/^X//"
  5178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5179. printf %s "checking for grep that handles long lines and -e... " >&6; }
  5180. if test ${ac_cv_path_GREP+y}
  5181. then :
  5182. printf %s "(cached) " >&6
  5183. else $as_nop
  5184. if test -z "$GREP"; then
  5185. ac_path_GREP_found=false
  5186. # Loop through the user's path and test for each of PROGNAME-LIST
  5187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5188. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5189. do
  5190. IFS=$as_save_IFS
  5191. case $as_dir in #(((
  5192. '') as_dir=./ ;;
  5193. */) ;;
  5194. *) as_dir=$as_dir/ ;;
  5195. esac
  5196. for ac_prog in grep ggrep
  5197. do
  5198. for ac_exec_ext in '' $ac_executable_extensions; do
  5199. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  5200. as_fn_executable_p "$ac_path_GREP" || continue
  5201. # Check for GNU ac_path_GREP and select it if it is found.
  5202. # Check for GNU $ac_path_GREP
  5203. case `"$ac_path_GREP" --version 2>&1` in
  5204. *GNU*)
  5205. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5206. *)
  5207. ac_count=0
  5208. printf %s 0123456789 >"conftest.in"
  5209. while :
  5210. do
  5211. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5212. mv "conftest.tmp" "conftest.in"
  5213. cp "conftest.in" "conftest.nl"
  5214. printf "%s\n" 'GREP' >> "conftest.nl"
  5215. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5216. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5217. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5218. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5219. # Best one so far, save it but keep looking for a better one
  5220. ac_cv_path_GREP="$ac_path_GREP"
  5221. ac_path_GREP_max=$ac_count
  5222. fi
  5223. # 10*(2^10) chars as input seems more than enough
  5224. test $ac_count -gt 10 && break
  5225. done
  5226. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5227. esac
  5228. $ac_path_GREP_found && break 3
  5229. done
  5230. done
  5231. done
  5232. IFS=$as_save_IFS
  5233. if test -z "$ac_cv_path_GREP"; then
  5234. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5235. fi
  5236. else
  5237. ac_cv_path_GREP=$GREP
  5238. fi
  5239. fi
  5240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5241. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  5242. GREP="$ac_cv_path_GREP"
  5243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5244. printf %s "checking for egrep... " >&6; }
  5245. if test ${ac_cv_path_EGREP+y}
  5246. then :
  5247. printf %s "(cached) " >&6
  5248. else $as_nop
  5249. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5250. then ac_cv_path_EGREP="$GREP -E"
  5251. else
  5252. if test -z "$EGREP"; then
  5253. ac_path_EGREP_found=false
  5254. # Loop through the user's path and test for each of PROGNAME-LIST
  5255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5256. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5257. do
  5258. IFS=$as_save_IFS
  5259. case $as_dir in #(((
  5260. '') as_dir=./ ;;
  5261. */) ;;
  5262. *) as_dir=$as_dir/ ;;
  5263. esac
  5264. for ac_prog in egrep
  5265. do
  5266. for ac_exec_ext in '' $ac_executable_extensions; do
  5267. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  5268. as_fn_executable_p "$ac_path_EGREP" || continue
  5269. # Check for GNU ac_path_EGREP and select it if it is found.
  5270. # Check for GNU $ac_path_EGREP
  5271. case `"$ac_path_EGREP" --version 2>&1` in
  5272. *GNU*)
  5273. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5274. *)
  5275. ac_count=0
  5276. printf %s 0123456789 >"conftest.in"
  5277. while :
  5278. do
  5279. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5280. mv "conftest.tmp" "conftest.in"
  5281. cp "conftest.in" "conftest.nl"
  5282. printf "%s\n" 'EGREP' >> "conftest.nl"
  5283. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5284. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5285. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5286. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5287. # Best one so far, save it but keep looking for a better one
  5288. ac_cv_path_EGREP="$ac_path_EGREP"
  5289. ac_path_EGREP_max=$ac_count
  5290. fi
  5291. # 10*(2^10) chars as input seems more than enough
  5292. test $ac_count -gt 10 && break
  5293. done
  5294. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5295. esac
  5296. $ac_path_EGREP_found && break 3
  5297. done
  5298. done
  5299. done
  5300. IFS=$as_save_IFS
  5301. if test -z "$ac_cv_path_EGREP"; then
  5302. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5303. fi
  5304. else
  5305. ac_cv_path_EGREP=$EGREP
  5306. fi
  5307. fi
  5308. fi
  5309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5310. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  5311. EGREP="$ac_cv_path_EGREP"
  5312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5313. printf %s "checking for fgrep... " >&6; }
  5314. if test ${ac_cv_path_FGREP+y}
  5315. then :
  5316. printf %s "(cached) " >&6
  5317. else $as_nop
  5318. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5319. then ac_cv_path_FGREP="$GREP -F"
  5320. else
  5321. if test -z "$FGREP"; then
  5322. ac_path_FGREP_found=false
  5323. # Loop through the user's path and test for each of PROGNAME-LIST
  5324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5325. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5326. do
  5327. IFS=$as_save_IFS
  5328. case $as_dir in #(((
  5329. '') as_dir=./ ;;
  5330. */) ;;
  5331. *) as_dir=$as_dir/ ;;
  5332. esac
  5333. for ac_prog in fgrep
  5334. do
  5335. for ac_exec_ext in '' $ac_executable_extensions; do
  5336. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  5337. as_fn_executable_p "$ac_path_FGREP" || continue
  5338. # Check for GNU ac_path_FGREP and select it if it is found.
  5339. # Check for GNU $ac_path_FGREP
  5340. case `"$ac_path_FGREP" --version 2>&1` in
  5341. *GNU*)
  5342. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5343. *)
  5344. ac_count=0
  5345. printf %s 0123456789 >"conftest.in"
  5346. while :
  5347. do
  5348. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5349. mv "conftest.tmp" "conftest.in"
  5350. cp "conftest.in" "conftest.nl"
  5351. printf "%s\n" 'FGREP' >> "conftest.nl"
  5352. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5353. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5354. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5355. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5356. # Best one so far, save it but keep looking for a better one
  5357. ac_cv_path_FGREP="$ac_path_FGREP"
  5358. ac_path_FGREP_max=$ac_count
  5359. fi
  5360. # 10*(2^10) chars as input seems more than enough
  5361. test $ac_count -gt 10 && break
  5362. done
  5363. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5364. esac
  5365. $ac_path_FGREP_found && break 3
  5366. done
  5367. done
  5368. done
  5369. IFS=$as_save_IFS
  5370. if test -z "$ac_cv_path_FGREP"; then
  5371. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5372. fi
  5373. else
  5374. ac_cv_path_FGREP=$FGREP
  5375. fi
  5376. fi
  5377. fi
  5378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5379. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  5380. FGREP="$ac_cv_path_FGREP"
  5381. test -z "$GREP" && GREP=grep
  5382. # Check whether --with-gnu-ld was given.
  5383. if test ${with_gnu_ld+y}
  5384. then :
  5385. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5386. else $as_nop
  5387. with_gnu_ld=no
  5388. fi
  5389. ac_prog=ld
  5390. if test yes = "$GCC"; then
  5391. # Check if gcc -print-prog-name=ld gives a path.
  5392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5393. printf %s "checking for ld used by $CC... " >&6; }
  5394. case $host in
  5395. *-*-mingw*)
  5396. # gcc leaves a trailing carriage return, which upsets mingw
  5397. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5398. *)
  5399. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5400. esac
  5401. case $ac_prog in
  5402. # Accept absolute paths.
  5403. [\\/]* | ?:[\\/]*)
  5404. re_direlt='/[^/][^/]*/\.\./'
  5405. # Canonicalize the pathname of ld
  5406. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5407. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5408. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5409. done
  5410. test -z "$LD" && LD=$ac_prog
  5411. ;;
  5412. "")
  5413. # If it fails, then pretend we aren't using GCC.
  5414. ac_prog=ld
  5415. ;;
  5416. *)
  5417. # If it is relative, then search for the first ld in PATH.
  5418. with_gnu_ld=unknown
  5419. ;;
  5420. esac
  5421. elif test yes = "$with_gnu_ld"; then
  5422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5423. printf %s "checking for GNU ld... " >&6; }
  5424. else
  5425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5426. printf %s "checking for non-GNU ld... " >&6; }
  5427. fi
  5428. if test ${lt_cv_path_LD+y}
  5429. then :
  5430. printf %s "(cached) " >&6
  5431. else $as_nop
  5432. if test -z "$LD"; then
  5433. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5434. for ac_dir in $PATH; do
  5435. IFS=$lt_save_ifs
  5436. test -z "$ac_dir" && ac_dir=.
  5437. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5438. lt_cv_path_LD=$ac_dir/$ac_prog
  5439. # Check to see if the program is GNU ld. I'd rather use --version,
  5440. # but apparently some variants of GNU ld only accept -v.
  5441. # Break only if it was the GNU/non-GNU ld that we prefer.
  5442. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5443. *GNU* | *'with BFD'*)
  5444. test no != "$with_gnu_ld" && break
  5445. ;;
  5446. *)
  5447. test yes != "$with_gnu_ld" && break
  5448. ;;
  5449. esac
  5450. fi
  5451. done
  5452. IFS=$lt_save_ifs
  5453. else
  5454. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5455. fi
  5456. fi
  5457. LD=$lt_cv_path_LD
  5458. if test -n "$LD"; then
  5459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5460. printf "%s\n" "$LD" >&6; }
  5461. else
  5462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5463. printf "%s\n" "no" >&6; }
  5464. fi
  5465. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5467. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  5468. if test ${lt_cv_prog_gnu_ld+y}
  5469. then :
  5470. printf %s "(cached) " >&6
  5471. else $as_nop
  5472. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5473. case `$LD -v 2>&1 </dev/null` in
  5474. *GNU* | *'with BFD'*)
  5475. lt_cv_prog_gnu_ld=yes
  5476. ;;
  5477. *)
  5478. lt_cv_prog_gnu_ld=no
  5479. ;;
  5480. esac
  5481. fi
  5482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5483. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  5484. with_gnu_ld=$lt_cv_prog_gnu_ld
  5485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5486. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5487. if test ${lt_cv_path_NM+y}
  5488. then :
  5489. printf %s "(cached) " >&6
  5490. else $as_nop
  5491. if test -n "$NM"; then
  5492. # Let the user override the test.
  5493. lt_cv_path_NM=$NM
  5494. else
  5495. lt_nm_to_check=${ac_tool_prefix}nm
  5496. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5497. lt_nm_to_check="$lt_nm_to_check nm"
  5498. fi
  5499. for lt_tmp_nm in $lt_nm_to_check; do
  5500. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5501. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5502. IFS=$lt_save_ifs
  5503. test -z "$ac_dir" && ac_dir=.
  5504. tmp_nm=$ac_dir/$lt_tmp_nm
  5505. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5506. # Check to see if the nm accepts a BSD-compat flag.
  5507. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5508. # nm: unknown option "B" ignored
  5509. # Tru64's nm complains that /dev/null is an invalid object file
  5510. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5511. case $build_os in
  5512. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5513. *) lt_bad_file=/dev/null ;;
  5514. esac
  5515. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5516. *$lt_bad_file* | *'Invalid file or object type'*)
  5517. lt_cv_path_NM="$tmp_nm -B"
  5518. break 2
  5519. ;;
  5520. *)
  5521. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5522. */dev/null*)
  5523. lt_cv_path_NM="$tmp_nm -p"
  5524. break 2
  5525. ;;
  5526. *)
  5527. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5528. continue # so that we can try to find one that supports BSD flags
  5529. ;;
  5530. esac
  5531. ;;
  5532. esac
  5533. fi
  5534. done
  5535. IFS=$lt_save_ifs
  5536. done
  5537. : ${lt_cv_path_NM=no}
  5538. fi
  5539. fi
  5540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5541. printf "%s\n" "$lt_cv_path_NM" >&6; }
  5542. if test no != "$lt_cv_path_NM"; then
  5543. NM=$lt_cv_path_NM
  5544. else
  5545. # Didn't find any BSD compatible name lister, look for dumpbin.
  5546. if test -n "$DUMPBIN"; then :
  5547. # Let the user override the test.
  5548. else
  5549. if test -n "$ac_tool_prefix"; then
  5550. for ac_prog in dumpbin "link -dump"
  5551. do
  5552. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5553. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5555. printf %s "checking for $ac_word... " >&6; }
  5556. if test ${ac_cv_prog_DUMPBIN+y}
  5557. then :
  5558. printf %s "(cached) " >&6
  5559. else $as_nop
  5560. if test -n "$DUMPBIN"; then
  5561. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5562. else
  5563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5564. for as_dir in $PATH
  5565. do
  5566. IFS=$as_save_IFS
  5567. case $as_dir in #(((
  5568. '') as_dir=./ ;;
  5569. */) ;;
  5570. *) as_dir=$as_dir/ ;;
  5571. esac
  5572. for ac_exec_ext in '' $ac_executable_extensions; do
  5573. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5574. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5575. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5576. break 2
  5577. fi
  5578. done
  5579. done
  5580. IFS=$as_save_IFS
  5581. fi
  5582. fi
  5583. DUMPBIN=$ac_cv_prog_DUMPBIN
  5584. if test -n "$DUMPBIN"; then
  5585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5586. printf "%s\n" "$DUMPBIN" >&6; }
  5587. else
  5588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5589. printf "%s\n" "no" >&6; }
  5590. fi
  5591. test -n "$DUMPBIN" && break
  5592. done
  5593. fi
  5594. if test -z "$DUMPBIN"; then
  5595. ac_ct_DUMPBIN=$DUMPBIN
  5596. for ac_prog in dumpbin "link -dump"
  5597. do
  5598. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5599. set dummy $ac_prog; ac_word=$2
  5600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5601. printf %s "checking for $ac_word... " >&6; }
  5602. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  5603. then :
  5604. printf %s "(cached) " >&6
  5605. else $as_nop
  5606. if test -n "$ac_ct_DUMPBIN"; then
  5607. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5608. else
  5609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5610. for as_dir in $PATH
  5611. do
  5612. IFS=$as_save_IFS
  5613. case $as_dir in #(((
  5614. '') as_dir=./ ;;
  5615. */) ;;
  5616. *) as_dir=$as_dir/ ;;
  5617. esac
  5618. for ac_exec_ext in '' $ac_executable_extensions; do
  5619. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5620. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5621. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5622. break 2
  5623. fi
  5624. done
  5625. done
  5626. IFS=$as_save_IFS
  5627. fi
  5628. fi
  5629. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5630. if test -n "$ac_ct_DUMPBIN"; then
  5631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5632. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  5633. else
  5634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5635. printf "%s\n" "no" >&6; }
  5636. fi
  5637. test -n "$ac_ct_DUMPBIN" && break
  5638. done
  5639. if test "x$ac_ct_DUMPBIN" = x; then
  5640. DUMPBIN=":"
  5641. else
  5642. case $cross_compiling:$ac_tool_warned in
  5643. yes:)
  5644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5645. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5646. ac_tool_warned=yes ;;
  5647. esac
  5648. DUMPBIN=$ac_ct_DUMPBIN
  5649. fi
  5650. fi
  5651. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5652. *COFF*)
  5653. DUMPBIN="$DUMPBIN -symbols -headers"
  5654. ;;
  5655. *)
  5656. DUMPBIN=:
  5657. ;;
  5658. esac
  5659. fi
  5660. if test : != "$DUMPBIN"; then
  5661. NM=$DUMPBIN
  5662. fi
  5663. fi
  5664. test -z "$NM" && NM=nm
  5665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5666. printf %s "checking the name lister ($NM) interface... " >&6; }
  5667. if test ${lt_cv_nm_interface+y}
  5668. then :
  5669. printf %s "(cached) " >&6
  5670. else $as_nop
  5671. lt_cv_nm_interface="BSD nm"
  5672. echo "int some_variable = 0;" > conftest.$ac_ext
  5673. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5674. (eval "$ac_compile" 2>conftest.err)
  5675. cat conftest.err >&5
  5676. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5677. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5678. cat conftest.err >&5
  5679. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5680. cat conftest.out >&5
  5681. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5682. lt_cv_nm_interface="MS dumpbin"
  5683. fi
  5684. rm -f conftest*
  5685. fi
  5686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5687. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  5688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5689. printf %s "checking whether ln -s works... " >&6; }
  5690. LN_S=$as_ln_s
  5691. if test "$LN_S" = "ln -s"; then
  5692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5693. printf "%s\n" "yes" >&6; }
  5694. else
  5695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5696. printf "%s\n" "no, using $LN_S" >&6; }
  5697. fi
  5698. # find the maximum length of command line arguments
  5699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5700. printf %s "checking the maximum length of command line arguments... " >&6; }
  5701. if test ${lt_cv_sys_max_cmd_len+y}
  5702. then :
  5703. printf %s "(cached) " >&6
  5704. else $as_nop
  5705. i=0
  5706. teststring=ABCD
  5707. case $build_os in
  5708. msdosdjgpp*)
  5709. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5710. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5711. # during glob expansion). Even if it were fixed, the result of this
  5712. # check would be larger than it should be.
  5713. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5714. ;;
  5715. gnu*)
  5716. # Under GNU Hurd, this test is not required because there is
  5717. # no limit to the length of command line arguments.
  5718. # Libtool will interpret -1 as no limit whatsoever
  5719. lt_cv_sys_max_cmd_len=-1;
  5720. ;;
  5721. cygwin* | mingw* | cegcc*)
  5722. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5723. # about 5 minutes as the teststring grows exponentially.
  5724. # Worse, since 9x/ME are not pre-emptively multitasking,
  5725. # you end up with a "frozen" computer, even though with patience
  5726. # the test eventually succeeds (with a max line length of 256k).
  5727. # Instead, let's just punt: use the minimum linelength reported by
  5728. # all of the supported platforms: 8192 (on NT/2K/XP).
  5729. lt_cv_sys_max_cmd_len=8192;
  5730. ;;
  5731. mint*)
  5732. # On MiNT this can take a long time and run out of memory.
  5733. lt_cv_sys_max_cmd_len=8192;
  5734. ;;
  5735. amigaos*)
  5736. # On AmigaOS with pdksh, this test takes hours, literally.
  5737. # So we just punt and use a minimum line length of 8192.
  5738. lt_cv_sys_max_cmd_len=8192;
  5739. ;;
  5740. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5741. # This has been around since 386BSD, at least. Likely further.
  5742. if test -x /sbin/sysctl; then
  5743. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5744. elif test -x /usr/sbin/sysctl; then
  5745. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5746. else
  5747. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5748. fi
  5749. # And add a safety zone
  5750. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5751. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5752. ;;
  5753. interix*)
  5754. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5755. lt_cv_sys_max_cmd_len=196608
  5756. ;;
  5757. os2*)
  5758. # The test takes a long time on OS/2.
  5759. lt_cv_sys_max_cmd_len=8192
  5760. ;;
  5761. osf*)
  5762. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5763. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5764. # nice to cause kernel panics so lets avoid the loop below.
  5765. # First set a reasonable default.
  5766. lt_cv_sys_max_cmd_len=16384
  5767. #
  5768. if test -x /sbin/sysconfig; then
  5769. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5770. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5771. esac
  5772. fi
  5773. ;;
  5774. sco3.2v5*)
  5775. lt_cv_sys_max_cmd_len=102400
  5776. ;;
  5777. sysv5* | sco5v6* | sysv4.2uw2*)
  5778. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5779. if test -n "$kargmax"; then
  5780. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5781. else
  5782. lt_cv_sys_max_cmd_len=32768
  5783. fi
  5784. ;;
  5785. *)
  5786. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5787. if test -n "$lt_cv_sys_max_cmd_len" && \
  5788. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5789. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5790. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5791. else
  5792. # Make teststring a little bigger before we do anything with it.
  5793. # a 1K string should be a reasonable start.
  5794. for i in 1 2 3 4 5 6 7 8; do
  5795. teststring=$teststring$teststring
  5796. done
  5797. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5798. # If test is not a shell built-in, we'll probably end up computing a
  5799. # maximum length that is only half of the actual maximum length, but
  5800. # we can't tell.
  5801. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5802. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5803. test 17 != "$i" # 1/2 MB should be enough
  5804. do
  5805. i=`expr $i + 1`
  5806. teststring=$teststring$teststring
  5807. done
  5808. # Only check the string length outside the loop.
  5809. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5810. teststring=
  5811. # Add a significant safety factor because C++ compilers can tack on
  5812. # massive amounts of additional arguments before passing them to the
  5813. # linker. It appears as though 1/2 is a usable value.
  5814. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5815. fi
  5816. ;;
  5817. esac
  5818. fi
  5819. if test -n "$lt_cv_sys_max_cmd_len"; then
  5820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5821. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  5822. else
  5823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5824. printf "%s\n" "none" >&6; }
  5825. fi
  5826. max_cmd_len=$lt_cv_sys_max_cmd_len
  5827. : ${CP="cp -f"}
  5828. : ${MV="mv -f"}
  5829. : ${RM="rm -f"}
  5830. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5831. lt_unset=unset
  5832. else
  5833. lt_unset=false
  5834. fi
  5835. # test EBCDIC or ASCII
  5836. case `echo X|tr X '\101'` in
  5837. A) # ASCII based system
  5838. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5839. lt_SP2NL='tr \040 \012'
  5840. lt_NL2SP='tr \015\012 \040\040'
  5841. ;;
  5842. *) # EBCDIC based system
  5843. lt_SP2NL='tr \100 \n'
  5844. lt_NL2SP='tr \r\n \100\100'
  5845. ;;
  5846. esac
  5847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5848. printf %s "checking how to convert $build file names to $host format... " >&6; }
  5849. if test ${lt_cv_to_host_file_cmd+y}
  5850. then :
  5851. printf %s "(cached) " >&6
  5852. else $as_nop
  5853. case $host in
  5854. *-*-mingw* )
  5855. case $build in
  5856. *-*-mingw* ) # actually msys
  5857. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5858. ;;
  5859. *-*-cygwin* )
  5860. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5861. ;;
  5862. * ) # otherwise, assume *nix
  5863. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5864. ;;
  5865. esac
  5866. ;;
  5867. *-*-cygwin* )
  5868. case $build in
  5869. *-*-mingw* ) # actually msys
  5870. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5871. ;;
  5872. *-*-cygwin* )
  5873. lt_cv_to_host_file_cmd=func_convert_file_noop
  5874. ;;
  5875. * ) # otherwise, assume *nix
  5876. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5877. ;;
  5878. esac
  5879. ;;
  5880. * ) # unhandled hosts (and "normal" native builds)
  5881. lt_cv_to_host_file_cmd=func_convert_file_noop
  5882. ;;
  5883. esac
  5884. fi
  5885. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5887. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  5888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5889. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  5890. if test ${lt_cv_to_tool_file_cmd+y}
  5891. then :
  5892. printf %s "(cached) " >&6
  5893. else $as_nop
  5894. #assume ordinary cross tools, or native build.
  5895. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5896. case $host in
  5897. *-*-mingw* )
  5898. case $build in
  5899. *-*-mingw* ) # actually msys
  5900. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5901. ;;
  5902. esac
  5903. ;;
  5904. esac
  5905. fi
  5906. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5908. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5910. printf %s "checking for $LD option to reload object files... " >&6; }
  5911. if test ${lt_cv_ld_reload_flag+y}
  5912. then :
  5913. printf %s "(cached) " >&6
  5914. else $as_nop
  5915. lt_cv_ld_reload_flag='-r'
  5916. fi
  5917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5918. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5919. reload_flag=$lt_cv_ld_reload_flag
  5920. case $reload_flag in
  5921. "" | " "*) ;;
  5922. *) reload_flag=" $reload_flag" ;;
  5923. esac
  5924. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5925. case $host_os in
  5926. cygwin* | mingw* | pw32* | cegcc*)
  5927. if test yes != "$GCC"; then
  5928. reload_cmds=false
  5929. fi
  5930. ;;
  5931. darwin*)
  5932. if test yes = "$GCC"; then
  5933. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5934. else
  5935. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5936. fi
  5937. ;;
  5938. esac
  5939. if test -n "$ac_tool_prefix"; then
  5940. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5941. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5943. printf %s "checking for $ac_word... " >&6; }
  5944. if test ${ac_cv_prog_OBJDUMP+y}
  5945. then :
  5946. printf %s "(cached) " >&6
  5947. else $as_nop
  5948. if test -n "$OBJDUMP"; then
  5949. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5950. else
  5951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5952. for as_dir in $PATH
  5953. do
  5954. IFS=$as_save_IFS
  5955. case $as_dir in #(((
  5956. '') as_dir=./ ;;
  5957. */) ;;
  5958. *) as_dir=$as_dir/ ;;
  5959. esac
  5960. for ac_exec_ext in '' $ac_executable_extensions; do
  5961. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5962. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5963. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5964. break 2
  5965. fi
  5966. done
  5967. done
  5968. IFS=$as_save_IFS
  5969. fi
  5970. fi
  5971. OBJDUMP=$ac_cv_prog_OBJDUMP
  5972. if test -n "$OBJDUMP"; then
  5973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5974. printf "%s\n" "$OBJDUMP" >&6; }
  5975. else
  5976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5977. printf "%s\n" "no" >&6; }
  5978. fi
  5979. fi
  5980. if test -z "$ac_cv_prog_OBJDUMP"; then
  5981. ac_ct_OBJDUMP=$OBJDUMP
  5982. # Extract the first word of "objdump", so it can be a program name with args.
  5983. set dummy objdump; ac_word=$2
  5984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5985. printf %s "checking for $ac_word... " >&6; }
  5986. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5987. then :
  5988. printf %s "(cached) " >&6
  5989. else $as_nop
  5990. if test -n "$ac_ct_OBJDUMP"; then
  5991. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5992. else
  5993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5994. for as_dir in $PATH
  5995. do
  5996. IFS=$as_save_IFS
  5997. case $as_dir in #(((
  5998. '') as_dir=./ ;;
  5999. */) ;;
  6000. *) as_dir=$as_dir/ ;;
  6001. esac
  6002. for ac_exec_ext in '' $ac_executable_extensions; do
  6003. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6004. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6005. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6006. break 2
  6007. fi
  6008. done
  6009. done
  6010. IFS=$as_save_IFS
  6011. fi
  6012. fi
  6013. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6014. if test -n "$ac_ct_OBJDUMP"; then
  6015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6016. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  6017. else
  6018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6019. printf "%s\n" "no" >&6; }
  6020. fi
  6021. if test "x$ac_ct_OBJDUMP" = x; then
  6022. OBJDUMP="false"
  6023. else
  6024. case $cross_compiling:$ac_tool_warned in
  6025. yes:)
  6026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6027. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6028. ac_tool_warned=yes ;;
  6029. esac
  6030. OBJDUMP=$ac_ct_OBJDUMP
  6031. fi
  6032. else
  6033. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6034. fi
  6035. test -z "$OBJDUMP" && OBJDUMP=objdump
  6036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6037. printf %s "checking how to recognize dependent libraries... " >&6; }
  6038. if test ${lt_cv_deplibs_check_method+y}
  6039. then :
  6040. printf %s "(cached) " >&6
  6041. else $as_nop
  6042. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6043. lt_cv_file_magic_test_file=
  6044. lt_cv_deplibs_check_method='unknown'
  6045. # Need to set the preceding variable on all platforms that support
  6046. # interlibrary dependencies.
  6047. # 'none' -- dependencies not supported.
  6048. # 'unknown' -- same as none, but documents that we really don't know.
  6049. # 'pass_all' -- all dependencies passed with no checks.
  6050. # 'test_compile' -- check by making test program.
  6051. # 'file_magic [[regex]]' -- check by looking for files in library path
  6052. # that responds to the $file_magic_cmd with a given extended regex.
  6053. # If you have 'file' or equivalent on your system and you're not sure
  6054. # whether 'pass_all' will *always* work, you probably want this one.
  6055. case $host_os in
  6056. aix[4-9]*)
  6057. lt_cv_deplibs_check_method=pass_all
  6058. ;;
  6059. beos*)
  6060. lt_cv_deplibs_check_method=pass_all
  6061. ;;
  6062. bsdi[45]*)
  6063. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6064. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6065. lt_cv_file_magic_test_file=/shlib/libc.so
  6066. ;;
  6067. cygwin*)
  6068. # func_win32_libid is a shell function defined in ltmain.sh
  6069. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6070. lt_cv_file_magic_cmd='func_win32_libid'
  6071. ;;
  6072. mingw* | pw32*)
  6073. # Base MSYS/MinGW do not provide the 'file' command needed by
  6074. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6075. # unless we find 'file', for example because we are cross-compiling.
  6076. if ( file / ) >/dev/null 2>&1; then
  6077. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6078. lt_cv_file_magic_cmd='func_win32_libid'
  6079. else
  6080. # Keep this pattern in sync with the one in func_win32_libid.
  6081. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  6082. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6083. fi
  6084. ;;
  6085. cegcc*)
  6086. # use the weaker test based on 'objdump'. See mingw*.
  6087. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6088. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6089. ;;
  6090. darwin* | rhapsody*)
  6091. lt_cv_deplibs_check_method=pass_all
  6092. ;;
  6093. freebsd* | dragonfly*)
  6094. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6095. case $host_cpu in
  6096. i*86 )
  6097. # Not sure whether the presence of OpenBSD here was a mistake.
  6098. # Let's accept both of them until this is cleared up.
  6099. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6100. lt_cv_file_magic_cmd=/usr/bin/file
  6101. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6102. ;;
  6103. esac
  6104. else
  6105. lt_cv_deplibs_check_method=pass_all
  6106. fi
  6107. ;;
  6108. haiku*)
  6109. lt_cv_deplibs_check_method=pass_all
  6110. ;;
  6111. hpux10.20* | hpux11*)
  6112. lt_cv_file_magic_cmd=/usr/bin/file
  6113. case $host_cpu in
  6114. ia64*)
  6115. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6116. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6117. ;;
  6118. hppa*64*)
  6119. 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]'
  6120. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6121. ;;
  6122. *)
  6123. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6124. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6125. ;;
  6126. esac
  6127. ;;
  6128. interix[3-9]*)
  6129. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6130. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6131. ;;
  6132. irix5* | irix6* | nonstopux*)
  6133. case $LD in
  6134. *-32|*"-32 ") libmagic=32-bit;;
  6135. *-n32|*"-n32 ") libmagic=N32;;
  6136. *-64|*"-64 ") libmagic=64-bit;;
  6137. *) libmagic=never-match;;
  6138. esac
  6139. lt_cv_deplibs_check_method=pass_all
  6140. ;;
  6141. # This must be glibc/ELF.
  6142. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6143. lt_cv_deplibs_check_method=pass_all
  6144. ;;
  6145. netbsd* | netbsdelf*-gnu)
  6146. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6147. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6148. else
  6149. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6150. fi
  6151. ;;
  6152. newos6*)
  6153. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6154. lt_cv_file_magic_cmd=/usr/bin/file
  6155. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6156. ;;
  6157. *nto* | *qnx*)
  6158. lt_cv_deplibs_check_method=pass_all
  6159. ;;
  6160. openbsd* | bitrig*)
  6161. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  6162. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6163. else
  6164. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6165. fi
  6166. ;;
  6167. osf3* | osf4* | osf5*)
  6168. lt_cv_deplibs_check_method=pass_all
  6169. ;;
  6170. rdos*)
  6171. lt_cv_deplibs_check_method=pass_all
  6172. ;;
  6173. solaris*)
  6174. lt_cv_deplibs_check_method=pass_all
  6175. ;;
  6176. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6177. lt_cv_deplibs_check_method=pass_all
  6178. ;;
  6179. sysv4 | sysv4.3*)
  6180. case $host_vendor in
  6181. motorola)
  6182. 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]'
  6183. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6184. ;;
  6185. ncr)
  6186. lt_cv_deplibs_check_method=pass_all
  6187. ;;
  6188. sequent)
  6189. lt_cv_file_magic_cmd='/bin/file'
  6190. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6191. ;;
  6192. sni)
  6193. lt_cv_file_magic_cmd='/bin/file'
  6194. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6195. lt_cv_file_magic_test_file=/lib/libc.so
  6196. ;;
  6197. siemens)
  6198. lt_cv_deplibs_check_method=pass_all
  6199. ;;
  6200. pc)
  6201. lt_cv_deplibs_check_method=pass_all
  6202. ;;
  6203. esac
  6204. ;;
  6205. tpf*)
  6206. lt_cv_deplibs_check_method=pass_all
  6207. ;;
  6208. os2*)
  6209. lt_cv_deplibs_check_method=pass_all
  6210. ;;
  6211. esac
  6212. fi
  6213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6214. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  6215. file_magic_glob=
  6216. want_nocaseglob=no
  6217. if test "$build" = "$host"; then
  6218. case $host_os in
  6219. mingw* | pw32*)
  6220. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6221. want_nocaseglob=yes
  6222. else
  6223. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6224. fi
  6225. ;;
  6226. esac
  6227. fi
  6228. file_magic_cmd=$lt_cv_file_magic_cmd
  6229. deplibs_check_method=$lt_cv_deplibs_check_method
  6230. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6231. if test -n "$ac_tool_prefix"; then
  6232. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6233. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6235. printf %s "checking for $ac_word... " >&6; }
  6236. if test ${ac_cv_prog_DLLTOOL+y}
  6237. then :
  6238. printf %s "(cached) " >&6
  6239. else $as_nop
  6240. if test -n "$DLLTOOL"; then
  6241. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6242. else
  6243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6244. for as_dir in $PATH
  6245. do
  6246. IFS=$as_save_IFS
  6247. case $as_dir in #(((
  6248. '') as_dir=./ ;;
  6249. */) ;;
  6250. *) as_dir=$as_dir/ ;;
  6251. esac
  6252. for ac_exec_ext in '' $ac_executable_extensions; do
  6253. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6254. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6255. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6256. break 2
  6257. fi
  6258. done
  6259. done
  6260. IFS=$as_save_IFS
  6261. fi
  6262. fi
  6263. DLLTOOL=$ac_cv_prog_DLLTOOL
  6264. if test -n "$DLLTOOL"; then
  6265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6266. printf "%s\n" "$DLLTOOL" >&6; }
  6267. else
  6268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6269. printf "%s\n" "no" >&6; }
  6270. fi
  6271. fi
  6272. if test -z "$ac_cv_prog_DLLTOOL"; then
  6273. ac_ct_DLLTOOL=$DLLTOOL
  6274. # Extract the first word of "dlltool", so it can be a program name with args.
  6275. set dummy dlltool; ac_word=$2
  6276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6277. printf %s "checking for $ac_word... " >&6; }
  6278. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  6279. then :
  6280. printf %s "(cached) " >&6
  6281. else $as_nop
  6282. if test -n "$ac_ct_DLLTOOL"; then
  6283. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6284. else
  6285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6286. for as_dir in $PATH
  6287. do
  6288. IFS=$as_save_IFS
  6289. case $as_dir in #(((
  6290. '') as_dir=./ ;;
  6291. */) ;;
  6292. *) as_dir=$as_dir/ ;;
  6293. esac
  6294. for ac_exec_ext in '' $ac_executable_extensions; do
  6295. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6296. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6297. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6298. break 2
  6299. fi
  6300. done
  6301. done
  6302. IFS=$as_save_IFS
  6303. fi
  6304. fi
  6305. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6306. if test -n "$ac_ct_DLLTOOL"; then
  6307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6308. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  6309. else
  6310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6311. printf "%s\n" "no" >&6; }
  6312. fi
  6313. if test "x$ac_ct_DLLTOOL" = x; then
  6314. DLLTOOL="false"
  6315. else
  6316. case $cross_compiling:$ac_tool_warned in
  6317. yes:)
  6318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6319. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6320. ac_tool_warned=yes ;;
  6321. esac
  6322. DLLTOOL=$ac_ct_DLLTOOL
  6323. fi
  6324. else
  6325. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6326. fi
  6327. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6329. printf %s "checking how to associate runtime and link libraries... " >&6; }
  6330. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  6331. then :
  6332. printf %s "(cached) " >&6
  6333. else $as_nop
  6334. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6335. case $host_os in
  6336. cygwin* | mingw* | pw32* | cegcc*)
  6337. # two different shell functions defined in ltmain.sh;
  6338. # decide which one to use based on capabilities of $DLLTOOL
  6339. case `$DLLTOOL --help 2>&1` in
  6340. *--identify-strict*)
  6341. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6342. ;;
  6343. *)
  6344. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6345. ;;
  6346. esac
  6347. ;;
  6348. *)
  6349. # fallback: assume linklib IS sharedlib
  6350. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6351. ;;
  6352. esac
  6353. fi
  6354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6355. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6356. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6357. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6358. if test -n "$ac_tool_prefix"; then
  6359. for ac_prog in ar
  6360. do
  6361. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6362. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6364. printf %s "checking for $ac_word... " >&6; }
  6365. if test ${ac_cv_prog_AR+y}
  6366. then :
  6367. printf %s "(cached) " >&6
  6368. else $as_nop
  6369. if test -n "$AR"; then
  6370. ac_cv_prog_AR="$AR" # Let the user override the test.
  6371. else
  6372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6373. for as_dir in $PATH
  6374. do
  6375. IFS=$as_save_IFS
  6376. case $as_dir in #(((
  6377. '') as_dir=./ ;;
  6378. */) ;;
  6379. *) as_dir=$as_dir/ ;;
  6380. esac
  6381. for ac_exec_ext in '' $ac_executable_extensions; do
  6382. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6383. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6384. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6385. break 2
  6386. fi
  6387. done
  6388. done
  6389. IFS=$as_save_IFS
  6390. fi
  6391. fi
  6392. AR=$ac_cv_prog_AR
  6393. if test -n "$AR"; then
  6394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6395. printf "%s\n" "$AR" >&6; }
  6396. else
  6397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6398. printf "%s\n" "no" >&6; }
  6399. fi
  6400. test -n "$AR" && break
  6401. done
  6402. fi
  6403. if test -z "$AR"; then
  6404. ac_ct_AR=$AR
  6405. for ac_prog in ar
  6406. do
  6407. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6408. set dummy $ac_prog; ac_word=$2
  6409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6410. printf %s "checking for $ac_word... " >&6; }
  6411. if test ${ac_cv_prog_ac_ct_AR+y}
  6412. then :
  6413. printf %s "(cached) " >&6
  6414. else $as_nop
  6415. if test -n "$ac_ct_AR"; then
  6416. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6417. else
  6418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6419. for as_dir in $PATH
  6420. do
  6421. IFS=$as_save_IFS
  6422. case $as_dir in #(((
  6423. '') as_dir=./ ;;
  6424. */) ;;
  6425. *) as_dir=$as_dir/ ;;
  6426. esac
  6427. for ac_exec_ext in '' $ac_executable_extensions; do
  6428. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6429. ac_cv_prog_ac_ct_AR="$ac_prog"
  6430. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6431. break 2
  6432. fi
  6433. done
  6434. done
  6435. IFS=$as_save_IFS
  6436. fi
  6437. fi
  6438. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6439. if test -n "$ac_ct_AR"; then
  6440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6441. printf "%s\n" "$ac_ct_AR" >&6; }
  6442. else
  6443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6444. printf "%s\n" "no" >&6; }
  6445. fi
  6446. test -n "$ac_ct_AR" && break
  6447. done
  6448. if test "x$ac_ct_AR" = x; then
  6449. AR="false"
  6450. else
  6451. case $cross_compiling:$ac_tool_warned in
  6452. yes:)
  6453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6454. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6455. ac_tool_warned=yes ;;
  6456. esac
  6457. AR=$ac_ct_AR
  6458. fi
  6459. fi
  6460. : ${AR=ar}
  6461. : ${AR_FLAGS=cr}
  6462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6463. printf %s "checking for archiver @FILE support... " >&6; }
  6464. if test ${lt_cv_ar_at_file+y}
  6465. then :
  6466. printf %s "(cached) " >&6
  6467. else $as_nop
  6468. lt_cv_ar_at_file=no
  6469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6470. /* end confdefs.h. */
  6471. int
  6472. main (void)
  6473. {
  6474. ;
  6475. return 0;
  6476. }
  6477. _ACEOF
  6478. if ac_fn_c_try_compile "$LINENO"
  6479. then :
  6480. echo conftest.$ac_objext > conftest.lst
  6481. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6482. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6483. (eval $lt_ar_try) 2>&5
  6484. ac_status=$?
  6485. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6486. test $ac_status = 0; }
  6487. if test 0 -eq "$ac_status"; then
  6488. # Ensure the archiver fails upon bogus file names.
  6489. rm -f conftest.$ac_objext libconftest.a
  6490. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6491. (eval $lt_ar_try) 2>&5
  6492. ac_status=$?
  6493. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6494. test $ac_status = 0; }
  6495. if test 0 -ne "$ac_status"; then
  6496. lt_cv_ar_at_file=@
  6497. fi
  6498. fi
  6499. rm -f conftest.* libconftest.a
  6500. fi
  6501. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6502. fi
  6503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6504. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  6505. if test no = "$lt_cv_ar_at_file"; then
  6506. archiver_list_spec=
  6507. else
  6508. archiver_list_spec=$lt_cv_ar_at_file
  6509. fi
  6510. if test -n "$ac_tool_prefix"; then
  6511. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6512. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6514. printf %s "checking for $ac_word... " >&6; }
  6515. if test ${ac_cv_prog_STRIP+y}
  6516. then :
  6517. printf %s "(cached) " >&6
  6518. else $as_nop
  6519. if test -n "$STRIP"; then
  6520. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6521. else
  6522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6523. for as_dir in $PATH
  6524. do
  6525. IFS=$as_save_IFS
  6526. case $as_dir in #(((
  6527. '') as_dir=./ ;;
  6528. */) ;;
  6529. *) as_dir=$as_dir/ ;;
  6530. esac
  6531. for ac_exec_ext in '' $ac_executable_extensions; do
  6532. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6533. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6534. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6535. break 2
  6536. fi
  6537. done
  6538. done
  6539. IFS=$as_save_IFS
  6540. fi
  6541. fi
  6542. STRIP=$ac_cv_prog_STRIP
  6543. if test -n "$STRIP"; then
  6544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6545. printf "%s\n" "$STRIP" >&6; }
  6546. else
  6547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6548. printf "%s\n" "no" >&6; }
  6549. fi
  6550. fi
  6551. if test -z "$ac_cv_prog_STRIP"; then
  6552. ac_ct_STRIP=$STRIP
  6553. # Extract the first word of "strip", so it can be a program name with args.
  6554. set dummy strip; ac_word=$2
  6555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6556. printf %s "checking for $ac_word... " >&6; }
  6557. if test ${ac_cv_prog_ac_ct_STRIP+y}
  6558. then :
  6559. printf %s "(cached) " >&6
  6560. else $as_nop
  6561. if test -n "$ac_ct_STRIP"; then
  6562. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6563. else
  6564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6565. for as_dir in $PATH
  6566. do
  6567. IFS=$as_save_IFS
  6568. case $as_dir in #(((
  6569. '') as_dir=./ ;;
  6570. */) ;;
  6571. *) as_dir=$as_dir/ ;;
  6572. esac
  6573. for ac_exec_ext in '' $ac_executable_extensions; do
  6574. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6575. ac_cv_prog_ac_ct_STRIP="strip"
  6576. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6577. break 2
  6578. fi
  6579. done
  6580. done
  6581. IFS=$as_save_IFS
  6582. fi
  6583. fi
  6584. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6585. if test -n "$ac_ct_STRIP"; then
  6586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6587. printf "%s\n" "$ac_ct_STRIP" >&6; }
  6588. else
  6589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6590. printf "%s\n" "no" >&6; }
  6591. fi
  6592. if test "x$ac_ct_STRIP" = x; then
  6593. STRIP=":"
  6594. else
  6595. case $cross_compiling:$ac_tool_warned in
  6596. yes:)
  6597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6598. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6599. ac_tool_warned=yes ;;
  6600. esac
  6601. STRIP=$ac_ct_STRIP
  6602. fi
  6603. else
  6604. STRIP="$ac_cv_prog_STRIP"
  6605. fi
  6606. test -z "$STRIP" && STRIP=:
  6607. if test -n "$ac_tool_prefix"; then
  6608. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6609. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6611. printf %s "checking for $ac_word... " >&6; }
  6612. if test ${ac_cv_prog_RANLIB+y}
  6613. then :
  6614. printf %s "(cached) " >&6
  6615. else $as_nop
  6616. if test -n "$RANLIB"; then
  6617. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6618. else
  6619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6620. for as_dir in $PATH
  6621. do
  6622. IFS=$as_save_IFS
  6623. case $as_dir in #(((
  6624. '') as_dir=./ ;;
  6625. */) ;;
  6626. *) as_dir=$as_dir/ ;;
  6627. esac
  6628. for ac_exec_ext in '' $ac_executable_extensions; do
  6629. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6630. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6631. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6632. break 2
  6633. fi
  6634. done
  6635. done
  6636. IFS=$as_save_IFS
  6637. fi
  6638. fi
  6639. RANLIB=$ac_cv_prog_RANLIB
  6640. if test -n "$RANLIB"; then
  6641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6642. printf "%s\n" "$RANLIB" >&6; }
  6643. else
  6644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6645. printf "%s\n" "no" >&6; }
  6646. fi
  6647. fi
  6648. if test -z "$ac_cv_prog_RANLIB"; then
  6649. ac_ct_RANLIB=$RANLIB
  6650. # Extract the first word of "ranlib", so it can be a program name with args.
  6651. set dummy ranlib; ac_word=$2
  6652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6653. printf %s "checking for $ac_word... " >&6; }
  6654. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  6655. then :
  6656. printf %s "(cached) " >&6
  6657. else $as_nop
  6658. if test -n "$ac_ct_RANLIB"; then
  6659. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6660. else
  6661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6662. for as_dir in $PATH
  6663. do
  6664. IFS=$as_save_IFS
  6665. case $as_dir in #(((
  6666. '') as_dir=./ ;;
  6667. */) ;;
  6668. *) as_dir=$as_dir/ ;;
  6669. esac
  6670. for ac_exec_ext in '' $ac_executable_extensions; do
  6671. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6672. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6673. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6674. break 2
  6675. fi
  6676. done
  6677. done
  6678. IFS=$as_save_IFS
  6679. fi
  6680. fi
  6681. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6682. if test -n "$ac_ct_RANLIB"; then
  6683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6684. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  6685. else
  6686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6687. printf "%s\n" "no" >&6; }
  6688. fi
  6689. if test "x$ac_ct_RANLIB" = x; then
  6690. RANLIB=":"
  6691. else
  6692. case $cross_compiling:$ac_tool_warned in
  6693. yes:)
  6694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6695. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6696. ac_tool_warned=yes ;;
  6697. esac
  6698. RANLIB=$ac_ct_RANLIB
  6699. fi
  6700. else
  6701. RANLIB="$ac_cv_prog_RANLIB"
  6702. fi
  6703. test -z "$RANLIB" && RANLIB=:
  6704. # Determine commands to create old-style static archives.
  6705. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6706. old_postinstall_cmds='chmod 644 $oldlib'
  6707. old_postuninstall_cmds=
  6708. if test -n "$RANLIB"; then
  6709. case $host_os in
  6710. bitrig* | openbsd*)
  6711. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6712. ;;
  6713. *)
  6714. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6715. ;;
  6716. esac
  6717. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6718. fi
  6719. case $host_os in
  6720. darwin*)
  6721. lock_old_archive_extraction=yes ;;
  6722. *)
  6723. lock_old_archive_extraction=no ;;
  6724. esac
  6725. # If no C compiler was specified, use CC.
  6726. LTCC=${LTCC-"$CC"}
  6727. # If no C compiler flags were specified, use CFLAGS.
  6728. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6729. # Allow CC to be a program name with arguments.
  6730. compiler=$CC
  6731. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6733. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  6734. if test ${lt_cv_sys_global_symbol_pipe+y}
  6735. then :
  6736. printf %s "(cached) " >&6
  6737. else $as_nop
  6738. # These are sane defaults that work on at least a few old systems.
  6739. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6740. # Character class describing NM global symbol codes.
  6741. symcode='[BCDEGRST]'
  6742. # Regexp to match symbols that can be accessed directly from C.
  6743. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6744. # Define system-specific variables.
  6745. case $host_os in
  6746. aix*)
  6747. symcode='[BCDT]'
  6748. ;;
  6749. cygwin* | mingw* | pw32* | cegcc*)
  6750. symcode='[ABCDGISTW]'
  6751. ;;
  6752. hpux*)
  6753. if test ia64 = "$host_cpu"; then
  6754. symcode='[ABCDEGRST]'
  6755. fi
  6756. ;;
  6757. irix* | nonstopux*)
  6758. symcode='[BCDEGRST]'
  6759. ;;
  6760. osf*)
  6761. symcode='[BCDEGQRST]'
  6762. ;;
  6763. solaris*)
  6764. symcode='[BDRT]'
  6765. ;;
  6766. sco3.2v5*)
  6767. symcode='[DT]'
  6768. ;;
  6769. sysv4.2uw2*)
  6770. symcode='[DT]'
  6771. ;;
  6772. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6773. symcode='[ABDT]'
  6774. ;;
  6775. sysv4)
  6776. symcode='[DFNSTU]'
  6777. ;;
  6778. esac
  6779. # If we're using GNU nm, then use its standard symbol codes.
  6780. case `$NM -V 2>&1` in
  6781. *GNU* | *'with BFD'*)
  6782. symcode='[ABCDGIRSTW]' ;;
  6783. esac
  6784. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6785. # Gets list of data symbols to import.
  6786. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6787. # Adjust the below global symbol transforms to fixup imported variables.
  6788. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6789. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6790. lt_c_name_lib_hook="\
  6791. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6792. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6793. else
  6794. # Disable hooks by default.
  6795. lt_cv_sys_global_symbol_to_import=
  6796. lt_cdecl_hook=
  6797. lt_c_name_hook=
  6798. lt_c_name_lib_hook=
  6799. fi
  6800. # Transform an extracted symbol line into a proper C declaration.
  6801. # Some systems (esp. on ia64) link data and code symbols differently,
  6802. # so use this general approach.
  6803. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6804. $lt_cdecl_hook\
  6805. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6806. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6807. # Transform an extracted symbol line into symbol name and symbol address
  6808. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6809. $lt_c_name_hook\
  6810. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6811. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6812. # Transform an extracted symbol line into symbol name with lib prefix and
  6813. # symbol address.
  6814. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6815. $lt_c_name_lib_hook\
  6816. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6817. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6818. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6819. # Handle CRLF in mingw tool chain
  6820. opt_cr=
  6821. case $build_os in
  6822. mingw*)
  6823. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6824. ;;
  6825. esac
  6826. # Try without a prefix underscore, then with it.
  6827. for ac_symprfx in "" "_"; do
  6828. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6829. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6830. # Write the raw and C identifiers.
  6831. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6832. # Fake it for dumpbin and say T for any non-static function,
  6833. # D for any global variable and I for any imported variable.
  6834. # Also find C++ and __fastcall symbols from MSVC++,
  6835. # which start with @ or ?.
  6836. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6837. " {last_section=section; section=\$ 3};"\
  6838. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6839. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6840. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6841. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6842. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6843. " \$ 0!~/External *\|/{next};"\
  6844. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6845. " {if(hide[section]) next};"\
  6846. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6847. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6848. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6849. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6850. " ' prfx=^$ac_symprfx"
  6851. else
  6852. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6853. fi
  6854. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6855. # Check to see that the pipe works correctly.
  6856. pipe_works=no
  6857. rm -f conftest*
  6858. cat > conftest.$ac_ext <<_LT_EOF
  6859. #ifdef __cplusplus
  6860. extern "C" {
  6861. #endif
  6862. char nm_test_var;
  6863. void nm_test_func(void);
  6864. void nm_test_func(void){}
  6865. #ifdef __cplusplus
  6866. }
  6867. #endif
  6868. int main(){nm_test_var='a';nm_test_func();return(0);}
  6869. _LT_EOF
  6870. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6871. (eval $ac_compile) 2>&5
  6872. ac_status=$?
  6873. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6874. test $ac_status = 0; }; then
  6875. # Now try to grab the symbols.
  6876. nlist=conftest.nm
  6877. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  6878. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  6879. # Try sorting and uniquifying the output.
  6880. if sort "$nlist" | uniq > "$nlist"T; then
  6881. mv -f "$nlist"T "$nlist"
  6882. else
  6883. rm -f "$nlist"T
  6884. fi
  6885. # Make sure that we snagged all the symbols we need.
  6886. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6887. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6888. cat <<_LT_EOF > conftest.$ac_ext
  6889. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6890. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6891. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6892. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6893. # define LT_DLSYM_CONST
  6894. #elif defined __osf__
  6895. /* This system does not cope well with relocations in const data. */
  6896. # define LT_DLSYM_CONST
  6897. #else
  6898. # define LT_DLSYM_CONST const
  6899. #endif
  6900. #ifdef __cplusplus
  6901. extern "C" {
  6902. #endif
  6903. _LT_EOF
  6904. # Now generate the symbol file.
  6905. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6906. cat <<_LT_EOF >> conftest.$ac_ext
  6907. /* The mapping between symbol names and symbols. */
  6908. LT_DLSYM_CONST struct {
  6909. const char *name;
  6910. void *address;
  6911. }
  6912. lt__PROGRAM__LTX_preloaded_symbols[] =
  6913. {
  6914. { "@PROGRAM@", (void *) 0 },
  6915. _LT_EOF
  6916. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6917. cat <<\_LT_EOF >> conftest.$ac_ext
  6918. {0, (void *) 0}
  6919. };
  6920. /* This works around a problem in FreeBSD linker */
  6921. #ifdef FREEBSD_WORKAROUND
  6922. static const void *lt_preloaded_setup() {
  6923. return lt__PROGRAM__LTX_preloaded_symbols;
  6924. }
  6925. #endif
  6926. #ifdef __cplusplus
  6927. }
  6928. #endif
  6929. _LT_EOF
  6930. # Now try linking the two files.
  6931. mv conftest.$ac_objext conftstm.$ac_objext
  6932. lt_globsym_save_LIBS=$LIBS
  6933. lt_globsym_save_CFLAGS=$CFLAGS
  6934. LIBS=conftstm.$ac_objext
  6935. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6936. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6937. (eval $ac_link) 2>&5
  6938. ac_status=$?
  6939. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6940. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6941. pipe_works=yes
  6942. fi
  6943. LIBS=$lt_globsym_save_LIBS
  6944. CFLAGS=$lt_globsym_save_CFLAGS
  6945. else
  6946. echo "cannot find nm_test_func in $nlist" >&5
  6947. fi
  6948. else
  6949. echo "cannot find nm_test_var in $nlist" >&5
  6950. fi
  6951. else
  6952. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6953. fi
  6954. else
  6955. echo "$progname: failed program was:" >&5
  6956. cat conftest.$ac_ext >&5
  6957. fi
  6958. rm -rf conftest* conftst*
  6959. # Do not use the global_symbol_pipe unless it works.
  6960. if test yes = "$pipe_works"; then
  6961. break
  6962. else
  6963. lt_cv_sys_global_symbol_pipe=
  6964. fi
  6965. done
  6966. fi
  6967. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6968. lt_cv_sys_global_symbol_to_cdecl=
  6969. fi
  6970. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6972. printf "%s\n" "failed" >&6; }
  6973. else
  6974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6975. printf "%s\n" "ok" >&6; }
  6976. fi
  6977. # Response file support.
  6978. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6979. nm_file_list_spec='@'
  6980. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6981. nm_file_list_spec='@'
  6982. fi
  6983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6984. printf %s "checking for sysroot... " >&6; }
  6985. # Check whether --with-sysroot was given.
  6986. if test ${with_sysroot+y}
  6987. then :
  6988. withval=$with_sysroot;
  6989. else $as_nop
  6990. with_sysroot=no
  6991. fi
  6992. lt_sysroot=
  6993. case $with_sysroot in #(
  6994. yes)
  6995. if test yes = "$GCC"; then
  6996. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6997. fi
  6998. ;; #(
  6999. /*)
  7000. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  7001. ;; #(
  7002. no|'')
  7003. ;; #(
  7004. *)
  7005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  7006. printf "%s\n" "$with_sysroot" >&6; }
  7007. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  7008. ;;
  7009. esac
  7010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  7011. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  7012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  7013. printf %s "checking for a working dd... " >&6; }
  7014. if test ${ac_cv_path_lt_DD+y}
  7015. then :
  7016. printf %s "(cached) " >&6
  7017. else $as_nop
  7018. printf 0123456789abcdef0123456789abcdef >conftest.i
  7019. cat conftest.i conftest.i >conftest2.i
  7020. : ${lt_DD:=$DD}
  7021. if test -z "$lt_DD"; then
  7022. ac_path_lt_DD_found=false
  7023. # Loop through the user's path and test for each of PROGNAME-LIST
  7024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7025. for as_dir in $PATH
  7026. do
  7027. IFS=$as_save_IFS
  7028. case $as_dir in #(((
  7029. '') as_dir=./ ;;
  7030. */) ;;
  7031. *) as_dir=$as_dir/ ;;
  7032. esac
  7033. for ac_prog in dd
  7034. do
  7035. for ac_exec_ext in '' $ac_executable_extensions; do
  7036. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  7037. as_fn_executable_p "$ac_path_lt_DD" || continue
  7038. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7039. cmp -s conftest.i conftest.out \
  7040. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  7041. fi
  7042. $ac_path_lt_DD_found && break 3
  7043. done
  7044. done
  7045. done
  7046. IFS=$as_save_IFS
  7047. if test -z "$ac_cv_path_lt_DD"; then
  7048. :
  7049. fi
  7050. else
  7051. ac_cv_path_lt_DD=$lt_DD
  7052. fi
  7053. rm -f conftest.i conftest2.i conftest.out
  7054. fi
  7055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  7056. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  7057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  7058. printf %s "checking how to truncate binary pipes... " >&6; }
  7059. if test ${lt_cv_truncate_bin+y}
  7060. then :
  7061. printf %s "(cached) " >&6
  7062. else $as_nop
  7063. printf 0123456789abcdef0123456789abcdef >conftest.i
  7064. cat conftest.i conftest.i >conftest2.i
  7065. lt_cv_truncate_bin=
  7066. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7067. cmp -s conftest.i conftest.out \
  7068. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  7069. fi
  7070. rm -f conftest.i conftest2.i conftest.out
  7071. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  7072. fi
  7073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  7074. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  7075. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  7076. func_cc_basename ()
  7077. {
  7078. for cc_temp in $*""; do
  7079. case $cc_temp in
  7080. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7081. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7082. \-*) ;;
  7083. *) break;;
  7084. esac
  7085. done
  7086. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7087. }
  7088. # Check whether --enable-libtool-lock was given.
  7089. if test ${enable_libtool_lock+y}
  7090. then :
  7091. enableval=$enable_libtool_lock;
  7092. fi
  7093. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  7094. # Some flags need to be propagated to the compiler or linker for good
  7095. # libtool support.
  7096. case $host in
  7097. ia64-*-hpux*)
  7098. # Find out what ABI is being produced by ac_compile, and set mode
  7099. # options accordingly.
  7100. echo 'int i;' > conftest.$ac_ext
  7101. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7102. (eval $ac_compile) 2>&5
  7103. ac_status=$?
  7104. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7105. test $ac_status = 0; }; then
  7106. case `/usr/bin/file conftest.$ac_objext` in
  7107. *ELF-32*)
  7108. HPUX_IA64_MODE=32
  7109. ;;
  7110. *ELF-64*)
  7111. HPUX_IA64_MODE=64
  7112. ;;
  7113. esac
  7114. fi
  7115. rm -rf conftest*
  7116. ;;
  7117. *-*-irix6*)
  7118. # Find out what ABI is being produced by ac_compile, and set linker
  7119. # options accordingly.
  7120. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7121. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7122. (eval $ac_compile) 2>&5
  7123. ac_status=$?
  7124. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7125. test $ac_status = 0; }; then
  7126. if test yes = "$lt_cv_prog_gnu_ld"; then
  7127. case `/usr/bin/file conftest.$ac_objext` in
  7128. *32-bit*)
  7129. LD="${LD-ld} -melf32bsmip"
  7130. ;;
  7131. *N32*)
  7132. LD="${LD-ld} -melf32bmipn32"
  7133. ;;
  7134. *64-bit*)
  7135. LD="${LD-ld} -melf64bmip"
  7136. ;;
  7137. esac
  7138. else
  7139. case `/usr/bin/file conftest.$ac_objext` in
  7140. *32-bit*)
  7141. LD="${LD-ld} -32"
  7142. ;;
  7143. *N32*)
  7144. LD="${LD-ld} -n32"
  7145. ;;
  7146. *64-bit*)
  7147. LD="${LD-ld} -64"
  7148. ;;
  7149. esac
  7150. fi
  7151. fi
  7152. rm -rf conftest*
  7153. ;;
  7154. mips64*-*linux*)
  7155. # Find out what ABI is being produced by ac_compile, and set linker
  7156. # options accordingly.
  7157. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7158. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7159. (eval $ac_compile) 2>&5
  7160. ac_status=$?
  7161. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7162. test $ac_status = 0; }; then
  7163. emul=elf
  7164. case `/usr/bin/file conftest.$ac_objext` in
  7165. *32-bit*)
  7166. emul="${emul}32"
  7167. ;;
  7168. *64-bit*)
  7169. emul="${emul}64"
  7170. ;;
  7171. esac
  7172. case `/usr/bin/file conftest.$ac_objext` in
  7173. *MSB*)
  7174. emul="${emul}btsmip"
  7175. ;;
  7176. *LSB*)
  7177. emul="${emul}ltsmip"
  7178. ;;
  7179. esac
  7180. case `/usr/bin/file conftest.$ac_objext` in
  7181. *N32*)
  7182. emul="${emul}n32"
  7183. ;;
  7184. esac
  7185. LD="${LD-ld} -m $emul"
  7186. fi
  7187. rm -rf conftest*
  7188. ;;
  7189. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7190. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7191. # Find out what ABI is being produced by ac_compile, and set linker
  7192. # options accordingly. Note that the listed cases only cover the
  7193. # situations where additional linker options are needed (such as when
  7194. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7195. # vice versa); the common cases where no linker options are needed do
  7196. # not appear in the list.
  7197. echo 'int i;' > conftest.$ac_ext
  7198. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7199. (eval $ac_compile) 2>&5
  7200. ac_status=$?
  7201. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7202. test $ac_status = 0; }; then
  7203. case `/usr/bin/file conftest.o` in
  7204. *32-bit*)
  7205. case $host in
  7206. x86_64-*kfreebsd*-gnu)
  7207. LD="${LD-ld} -m elf_i386_fbsd"
  7208. ;;
  7209. x86_64-*linux*)
  7210. case `/usr/bin/file conftest.o` in
  7211. *x86-64*)
  7212. LD="${LD-ld} -m elf32_x86_64"
  7213. ;;
  7214. *)
  7215. LD="${LD-ld} -m elf_i386"
  7216. ;;
  7217. esac
  7218. ;;
  7219. powerpc64le-*linux*)
  7220. LD="${LD-ld} -m elf32lppclinux"
  7221. ;;
  7222. powerpc64-*linux*)
  7223. LD="${LD-ld} -m elf32ppclinux"
  7224. ;;
  7225. s390x-*linux*)
  7226. LD="${LD-ld} -m elf_s390"
  7227. ;;
  7228. sparc64-*linux*)
  7229. LD="${LD-ld} -m elf32_sparc"
  7230. ;;
  7231. esac
  7232. ;;
  7233. *64-bit*)
  7234. case $host in
  7235. x86_64-*kfreebsd*-gnu)
  7236. LD="${LD-ld} -m elf_x86_64_fbsd"
  7237. ;;
  7238. x86_64-*linux*)
  7239. LD="${LD-ld} -m elf_x86_64"
  7240. ;;
  7241. powerpcle-*linux*)
  7242. LD="${LD-ld} -m elf64lppc"
  7243. ;;
  7244. powerpc-*linux*)
  7245. LD="${LD-ld} -m elf64ppc"
  7246. ;;
  7247. s390*-*linux*|s390*-*tpf*)
  7248. LD="${LD-ld} -m elf64_s390"
  7249. ;;
  7250. sparc*-*linux*)
  7251. LD="${LD-ld} -m elf64_sparc"
  7252. ;;
  7253. esac
  7254. ;;
  7255. esac
  7256. fi
  7257. rm -rf conftest*
  7258. ;;
  7259. *-*-sco3.2v5*)
  7260. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7261. SAVE_CFLAGS=$CFLAGS
  7262. CFLAGS="$CFLAGS -belf"
  7263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7264. printf %s "checking whether the C compiler needs -belf... " >&6; }
  7265. if test ${lt_cv_cc_needs_belf+y}
  7266. then :
  7267. printf %s "(cached) " >&6
  7268. else $as_nop
  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 (void)
  7278. {
  7279. ;
  7280. return 0;
  7281. }
  7282. _ACEOF
  7283. if ac_fn_c_try_link "$LINENO"
  7284. then :
  7285. lt_cv_cc_needs_belf=yes
  7286. else $as_nop
  7287. lt_cv_cc_needs_belf=no
  7288. fi
  7289. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7290. conftest$ac_exeext conftest.$ac_ext
  7291. ac_ext=c
  7292. ac_cpp='$CPP $CPPFLAGS'
  7293. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7294. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7295. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7296. fi
  7297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7298. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  7299. if test yes != "$lt_cv_cc_needs_belf"; then
  7300. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7301. CFLAGS=$SAVE_CFLAGS
  7302. fi
  7303. ;;
  7304. *-*solaris*)
  7305. # Find out what ABI is being produced by ac_compile, and set linker
  7306. # options accordingly.
  7307. echo 'int i;' > conftest.$ac_ext
  7308. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7309. (eval $ac_compile) 2>&5
  7310. ac_status=$?
  7311. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7312. test $ac_status = 0; }; then
  7313. case `/usr/bin/file conftest.o` in
  7314. *64-bit*)
  7315. case $lt_cv_prog_gnu_ld in
  7316. yes*)
  7317. case $host in
  7318. i?86-*-solaris*|x86_64-*-solaris*)
  7319. LD="${LD-ld} -m elf_x86_64"
  7320. ;;
  7321. sparc*-*-solaris*)
  7322. LD="${LD-ld} -m elf64_sparc"
  7323. ;;
  7324. esac
  7325. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7326. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7327. LD=${LD-ld}_sol2
  7328. fi
  7329. ;;
  7330. *)
  7331. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7332. LD="${LD-ld} -64"
  7333. fi
  7334. ;;
  7335. esac
  7336. ;;
  7337. esac
  7338. fi
  7339. rm -rf conftest*
  7340. ;;
  7341. esac
  7342. need_locks=$enable_libtool_lock
  7343. if test -n "$ac_tool_prefix"; then
  7344. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7345. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7347. printf %s "checking for $ac_word... " >&6; }
  7348. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  7349. then :
  7350. printf %s "(cached) " >&6
  7351. else $as_nop
  7352. if test -n "$MANIFEST_TOOL"; then
  7353. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7354. else
  7355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7356. for as_dir in $PATH
  7357. do
  7358. IFS=$as_save_IFS
  7359. case $as_dir in #(((
  7360. '') as_dir=./ ;;
  7361. */) ;;
  7362. *) as_dir=$as_dir/ ;;
  7363. esac
  7364. for ac_exec_ext in '' $ac_executable_extensions; do
  7365. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7366. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7367. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7368. break 2
  7369. fi
  7370. done
  7371. done
  7372. IFS=$as_save_IFS
  7373. fi
  7374. fi
  7375. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7376. if test -n "$MANIFEST_TOOL"; then
  7377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7378. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  7379. else
  7380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7381. printf "%s\n" "no" >&6; }
  7382. fi
  7383. fi
  7384. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7385. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7386. # Extract the first word of "mt", so it can be a program name with args.
  7387. set dummy mt; ac_word=$2
  7388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7389. printf %s "checking for $ac_word... " >&6; }
  7390. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  7391. then :
  7392. printf %s "(cached) " >&6
  7393. else $as_nop
  7394. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7395. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7396. else
  7397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7398. for as_dir in $PATH
  7399. do
  7400. IFS=$as_save_IFS
  7401. case $as_dir in #(((
  7402. '') as_dir=./ ;;
  7403. */) ;;
  7404. *) as_dir=$as_dir/ ;;
  7405. esac
  7406. for ac_exec_ext in '' $ac_executable_extensions; do
  7407. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7408. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7409. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7410. break 2
  7411. fi
  7412. done
  7413. done
  7414. IFS=$as_save_IFS
  7415. fi
  7416. fi
  7417. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7418. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7420. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  7421. else
  7422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7423. printf "%s\n" "no" >&6; }
  7424. fi
  7425. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7426. MANIFEST_TOOL=":"
  7427. else
  7428. case $cross_compiling:$ac_tool_warned in
  7429. yes:)
  7430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7431. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7432. ac_tool_warned=yes ;;
  7433. esac
  7434. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7435. fi
  7436. else
  7437. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7438. fi
  7439. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7441. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7442. if test ${lt_cv_path_mainfest_tool+y}
  7443. then :
  7444. printf %s "(cached) " >&6
  7445. else $as_nop
  7446. lt_cv_path_mainfest_tool=no
  7447. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7448. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7449. cat conftest.err >&5
  7450. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7451. lt_cv_path_mainfest_tool=yes
  7452. fi
  7453. rm -f conftest*
  7454. fi
  7455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7456. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  7457. if test yes != "$lt_cv_path_mainfest_tool"; then
  7458. MANIFEST_TOOL=:
  7459. fi
  7460. case $host_os in
  7461. rhapsody* | darwin*)
  7462. if test -n "$ac_tool_prefix"; then
  7463. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7464. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7466. printf %s "checking for $ac_word... " >&6; }
  7467. if test ${ac_cv_prog_DSYMUTIL+y}
  7468. then :
  7469. printf %s "(cached) " >&6
  7470. else $as_nop
  7471. if test -n "$DSYMUTIL"; then
  7472. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7473. else
  7474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7475. for as_dir in $PATH
  7476. do
  7477. IFS=$as_save_IFS
  7478. case $as_dir in #(((
  7479. '') as_dir=./ ;;
  7480. */) ;;
  7481. *) as_dir=$as_dir/ ;;
  7482. esac
  7483. for ac_exec_ext in '' $ac_executable_extensions; do
  7484. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7485. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7486. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7487. break 2
  7488. fi
  7489. done
  7490. done
  7491. IFS=$as_save_IFS
  7492. fi
  7493. fi
  7494. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7495. if test -n "$DSYMUTIL"; then
  7496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7497. printf "%s\n" "$DSYMUTIL" >&6; }
  7498. else
  7499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7500. printf "%s\n" "no" >&6; }
  7501. fi
  7502. fi
  7503. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7504. ac_ct_DSYMUTIL=$DSYMUTIL
  7505. # Extract the first word of "dsymutil", so it can be a program name with args.
  7506. set dummy dsymutil; ac_word=$2
  7507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7508. printf %s "checking for $ac_word... " >&6; }
  7509. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  7510. then :
  7511. printf %s "(cached) " >&6
  7512. else $as_nop
  7513. if test -n "$ac_ct_DSYMUTIL"; then
  7514. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7515. else
  7516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7517. for as_dir in $PATH
  7518. do
  7519. IFS=$as_save_IFS
  7520. case $as_dir in #(((
  7521. '') as_dir=./ ;;
  7522. */) ;;
  7523. *) as_dir=$as_dir/ ;;
  7524. esac
  7525. for ac_exec_ext in '' $ac_executable_extensions; do
  7526. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7527. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7528. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7529. break 2
  7530. fi
  7531. done
  7532. done
  7533. IFS=$as_save_IFS
  7534. fi
  7535. fi
  7536. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7537. if test -n "$ac_ct_DSYMUTIL"; then
  7538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7539. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  7540. else
  7541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7542. printf "%s\n" "no" >&6; }
  7543. fi
  7544. if test "x$ac_ct_DSYMUTIL" = x; then
  7545. DSYMUTIL=":"
  7546. else
  7547. case $cross_compiling:$ac_tool_warned in
  7548. yes:)
  7549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7550. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7551. ac_tool_warned=yes ;;
  7552. esac
  7553. DSYMUTIL=$ac_ct_DSYMUTIL
  7554. fi
  7555. else
  7556. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7557. fi
  7558. if test -n "$ac_tool_prefix"; then
  7559. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7560. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7562. printf %s "checking for $ac_word... " >&6; }
  7563. if test ${ac_cv_prog_NMEDIT+y}
  7564. then :
  7565. printf %s "(cached) " >&6
  7566. else $as_nop
  7567. if test -n "$NMEDIT"; then
  7568. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7569. else
  7570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7571. for as_dir in $PATH
  7572. do
  7573. IFS=$as_save_IFS
  7574. case $as_dir in #(((
  7575. '') as_dir=./ ;;
  7576. */) ;;
  7577. *) as_dir=$as_dir/ ;;
  7578. esac
  7579. for ac_exec_ext in '' $ac_executable_extensions; do
  7580. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7581. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7582. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7583. break 2
  7584. fi
  7585. done
  7586. done
  7587. IFS=$as_save_IFS
  7588. fi
  7589. fi
  7590. NMEDIT=$ac_cv_prog_NMEDIT
  7591. if test -n "$NMEDIT"; then
  7592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7593. printf "%s\n" "$NMEDIT" >&6; }
  7594. else
  7595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7596. printf "%s\n" "no" >&6; }
  7597. fi
  7598. fi
  7599. if test -z "$ac_cv_prog_NMEDIT"; then
  7600. ac_ct_NMEDIT=$NMEDIT
  7601. # Extract the first word of "nmedit", so it can be a program name with args.
  7602. set dummy nmedit; ac_word=$2
  7603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7604. printf %s "checking for $ac_word... " >&6; }
  7605. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  7606. then :
  7607. printf %s "(cached) " >&6
  7608. else $as_nop
  7609. if test -n "$ac_ct_NMEDIT"; then
  7610. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7611. else
  7612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7613. for as_dir in $PATH
  7614. do
  7615. IFS=$as_save_IFS
  7616. case $as_dir in #(((
  7617. '') as_dir=./ ;;
  7618. */) ;;
  7619. *) as_dir=$as_dir/ ;;
  7620. esac
  7621. for ac_exec_ext in '' $ac_executable_extensions; do
  7622. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7623. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7624. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7625. break 2
  7626. fi
  7627. done
  7628. done
  7629. IFS=$as_save_IFS
  7630. fi
  7631. fi
  7632. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7633. if test -n "$ac_ct_NMEDIT"; then
  7634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7635. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  7636. else
  7637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7638. printf "%s\n" "no" >&6; }
  7639. fi
  7640. if test "x$ac_ct_NMEDIT" = x; then
  7641. NMEDIT=":"
  7642. else
  7643. case $cross_compiling:$ac_tool_warned in
  7644. yes:)
  7645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7646. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7647. ac_tool_warned=yes ;;
  7648. esac
  7649. NMEDIT=$ac_ct_NMEDIT
  7650. fi
  7651. else
  7652. NMEDIT="$ac_cv_prog_NMEDIT"
  7653. fi
  7654. if test -n "$ac_tool_prefix"; then
  7655. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7656. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7658. printf %s "checking for $ac_word... " >&6; }
  7659. if test ${ac_cv_prog_LIPO+y}
  7660. then :
  7661. printf %s "(cached) " >&6
  7662. else $as_nop
  7663. if test -n "$LIPO"; then
  7664. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7665. else
  7666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7667. for as_dir in $PATH
  7668. do
  7669. IFS=$as_save_IFS
  7670. case $as_dir in #(((
  7671. '') as_dir=./ ;;
  7672. */) ;;
  7673. *) as_dir=$as_dir/ ;;
  7674. esac
  7675. for ac_exec_ext in '' $ac_executable_extensions; do
  7676. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7677. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7678. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7679. break 2
  7680. fi
  7681. done
  7682. done
  7683. IFS=$as_save_IFS
  7684. fi
  7685. fi
  7686. LIPO=$ac_cv_prog_LIPO
  7687. if test -n "$LIPO"; then
  7688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7689. printf "%s\n" "$LIPO" >&6; }
  7690. else
  7691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7692. printf "%s\n" "no" >&6; }
  7693. fi
  7694. fi
  7695. if test -z "$ac_cv_prog_LIPO"; then
  7696. ac_ct_LIPO=$LIPO
  7697. # Extract the first word of "lipo", so it can be a program name with args.
  7698. set dummy lipo; ac_word=$2
  7699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7700. printf %s "checking for $ac_word... " >&6; }
  7701. if test ${ac_cv_prog_ac_ct_LIPO+y}
  7702. then :
  7703. printf %s "(cached) " >&6
  7704. else $as_nop
  7705. if test -n "$ac_ct_LIPO"; then
  7706. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7707. else
  7708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7709. for as_dir in $PATH
  7710. do
  7711. IFS=$as_save_IFS
  7712. case $as_dir in #(((
  7713. '') as_dir=./ ;;
  7714. */) ;;
  7715. *) as_dir=$as_dir/ ;;
  7716. esac
  7717. for ac_exec_ext in '' $ac_executable_extensions; do
  7718. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7719. ac_cv_prog_ac_ct_LIPO="lipo"
  7720. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7721. break 2
  7722. fi
  7723. done
  7724. done
  7725. IFS=$as_save_IFS
  7726. fi
  7727. fi
  7728. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7729. if test -n "$ac_ct_LIPO"; then
  7730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7731. printf "%s\n" "$ac_ct_LIPO" >&6; }
  7732. else
  7733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7734. printf "%s\n" "no" >&6; }
  7735. fi
  7736. if test "x$ac_ct_LIPO" = x; then
  7737. LIPO=":"
  7738. else
  7739. case $cross_compiling:$ac_tool_warned in
  7740. yes:)
  7741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7742. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7743. ac_tool_warned=yes ;;
  7744. esac
  7745. LIPO=$ac_ct_LIPO
  7746. fi
  7747. else
  7748. LIPO="$ac_cv_prog_LIPO"
  7749. fi
  7750. if test -n "$ac_tool_prefix"; then
  7751. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7752. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7754. printf %s "checking for $ac_word... " >&6; }
  7755. if test ${ac_cv_prog_OTOOL+y}
  7756. then :
  7757. printf %s "(cached) " >&6
  7758. else $as_nop
  7759. if test -n "$OTOOL"; then
  7760. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7761. else
  7762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7763. for as_dir in $PATH
  7764. do
  7765. IFS=$as_save_IFS
  7766. case $as_dir in #(((
  7767. '') as_dir=./ ;;
  7768. */) ;;
  7769. *) as_dir=$as_dir/ ;;
  7770. esac
  7771. for ac_exec_ext in '' $ac_executable_extensions; do
  7772. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7773. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7774. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7775. break 2
  7776. fi
  7777. done
  7778. done
  7779. IFS=$as_save_IFS
  7780. fi
  7781. fi
  7782. OTOOL=$ac_cv_prog_OTOOL
  7783. if test -n "$OTOOL"; then
  7784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7785. printf "%s\n" "$OTOOL" >&6; }
  7786. else
  7787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7788. printf "%s\n" "no" >&6; }
  7789. fi
  7790. fi
  7791. if test -z "$ac_cv_prog_OTOOL"; then
  7792. ac_ct_OTOOL=$OTOOL
  7793. # Extract the first word of "otool", so it can be a program name with args.
  7794. set dummy otool; ac_word=$2
  7795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7796. printf %s "checking for $ac_word... " >&6; }
  7797. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  7798. then :
  7799. printf %s "(cached) " >&6
  7800. else $as_nop
  7801. if test -n "$ac_ct_OTOOL"; then
  7802. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7803. else
  7804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7805. for as_dir in $PATH
  7806. do
  7807. IFS=$as_save_IFS
  7808. case $as_dir in #(((
  7809. '') as_dir=./ ;;
  7810. */) ;;
  7811. *) as_dir=$as_dir/ ;;
  7812. esac
  7813. for ac_exec_ext in '' $ac_executable_extensions; do
  7814. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7815. ac_cv_prog_ac_ct_OTOOL="otool"
  7816. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7817. break 2
  7818. fi
  7819. done
  7820. done
  7821. IFS=$as_save_IFS
  7822. fi
  7823. fi
  7824. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7825. if test -n "$ac_ct_OTOOL"; then
  7826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7827. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  7828. else
  7829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7830. printf "%s\n" "no" >&6; }
  7831. fi
  7832. if test "x$ac_ct_OTOOL" = x; then
  7833. OTOOL=":"
  7834. else
  7835. case $cross_compiling:$ac_tool_warned in
  7836. yes:)
  7837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7838. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7839. ac_tool_warned=yes ;;
  7840. esac
  7841. OTOOL=$ac_ct_OTOOL
  7842. fi
  7843. else
  7844. OTOOL="$ac_cv_prog_OTOOL"
  7845. fi
  7846. if test -n "$ac_tool_prefix"; then
  7847. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7848. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7850. printf %s "checking for $ac_word... " >&6; }
  7851. if test ${ac_cv_prog_OTOOL64+y}
  7852. then :
  7853. printf %s "(cached) " >&6
  7854. else $as_nop
  7855. if test -n "$OTOOL64"; then
  7856. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7857. else
  7858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7859. for as_dir in $PATH
  7860. do
  7861. IFS=$as_save_IFS
  7862. case $as_dir in #(((
  7863. '') as_dir=./ ;;
  7864. */) ;;
  7865. *) as_dir=$as_dir/ ;;
  7866. esac
  7867. for ac_exec_ext in '' $ac_executable_extensions; do
  7868. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7869. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7870. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7871. break 2
  7872. fi
  7873. done
  7874. done
  7875. IFS=$as_save_IFS
  7876. fi
  7877. fi
  7878. OTOOL64=$ac_cv_prog_OTOOL64
  7879. if test -n "$OTOOL64"; then
  7880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7881. printf "%s\n" "$OTOOL64" >&6; }
  7882. else
  7883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7884. printf "%s\n" "no" >&6; }
  7885. fi
  7886. fi
  7887. if test -z "$ac_cv_prog_OTOOL64"; then
  7888. ac_ct_OTOOL64=$OTOOL64
  7889. # Extract the first word of "otool64", so it can be a program name with args.
  7890. set dummy otool64; ac_word=$2
  7891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7892. printf %s "checking for $ac_word... " >&6; }
  7893. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7894. then :
  7895. printf %s "(cached) " >&6
  7896. else $as_nop
  7897. if test -n "$ac_ct_OTOOL64"; then
  7898. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7899. else
  7900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7901. for as_dir in $PATH
  7902. do
  7903. IFS=$as_save_IFS
  7904. case $as_dir in #(((
  7905. '') as_dir=./ ;;
  7906. */) ;;
  7907. *) as_dir=$as_dir/ ;;
  7908. esac
  7909. for ac_exec_ext in '' $ac_executable_extensions; do
  7910. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7911. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7912. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7913. break 2
  7914. fi
  7915. done
  7916. done
  7917. IFS=$as_save_IFS
  7918. fi
  7919. fi
  7920. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7921. if test -n "$ac_ct_OTOOL64"; then
  7922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7923. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7924. else
  7925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7926. printf "%s\n" "no" >&6; }
  7927. fi
  7928. if test "x$ac_ct_OTOOL64" = x; then
  7929. OTOOL64=":"
  7930. else
  7931. case $cross_compiling:$ac_tool_warned in
  7932. yes:)
  7933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7934. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7935. ac_tool_warned=yes ;;
  7936. esac
  7937. OTOOL64=$ac_ct_OTOOL64
  7938. fi
  7939. else
  7940. OTOOL64="$ac_cv_prog_OTOOL64"
  7941. fi
  7942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7943. printf %s "checking for -single_module linker flag... " >&6; }
  7944. if test ${lt_cv_apple_cc_single_mod+y}
  7945. then :
  7946. printf %s "(cached) " >&6
  7947. else $as_nop
  7948. lt_cv_apple_cc_single_mod=no
  7949. if test -z "$LT_MULTI_MODULE"; then
  7950. # By default we will add the -single_module flag. You can override
  7951. # by either setting the environment variable LT_MULTI_MODULE
  7952. # non-empty at configure time, or by adding -multi_module to the
  7953. # link flags.
  7954. rm -rf libconftest.dylib*
  7955. echo "int foo(void){return 1;}" > conftest.c
  7956. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7957. -dynamiclib -Wl,-single_module conftest.c" >&5
  7958. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7959. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7960. _lt_result=$?
  7961. # If there is a non-empty error log, and "single_module"
  7962. # appears in it, assume the flag caused a linker warning
  7963. if test -s conftest.err && $GREP single_module conftest.err; then
  7964. cat conftest.err >&5
  7965. # Otherwise, if the output was created with a 0 exit code from
  7966. # the compiler, it worked.
  7967. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7968. lt_cv_apple_cc_single_mod=yes
  7969. else
  7970. cat conftest.err >&5
  7971. fi
  7972. rm -rf libconftest.dylib*
  7973. rm -f conftest.*
  7974. fi
  7975. fi
  7976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7977. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7979. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7980. if test ${lt_cv_ld_exported_symbols_list+y}
  7981. then :
  7982. printf %s "(cached) " >&6
  7983. else $as_nop
  7984. lt_cv_ld_exported_symbols_list=no
  7985. save_LDFLAGS=$LDFLAGS
  7986. echo "_main" > conftest.sym
  7987. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7989. /* end confdefs.h. */
  7990. int
  7991. main (void)
  7992. {
  7993. ;
  7994. return 0;
  7995. }
  7996. _ACEOF
  7997. if ac_fn_c_try_link "$LINENO"
  7998. then :
  7999. lt_cv_ld_exported_symbols_list=yes
  8000. else $as_nop
  8001. lt_cv_ld_exported_symbols_list=no
  8002. fi
  8003. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8004. conftest$ac_exeext conftest.$ac_ext
  8005. LDFLAGS=$save_LDFLAGS
  8006. fi
  8007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8008. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  8009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  8010. printf %s "checking for -force_load linker flag... " >&6; }
  8011. if test ${lt_cv_ld_force_load+y}
  8012. then :
  8013. printf %s "(cached) " >&6
  8014. else $as_nop
  8015. lt_cv_ld_force_load=no
  8016. cat > conftest.c << _LT_EOF
  8017. int forced_loaded() { return 2;}
  8018. _LT_EOF
  8019. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8020. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8021. echo "$AR cr libconftest.a conftest.o" >&5
  8022. $AR cr libconftest.a conftest.o 2>&5
  8023. echo "$RANLIB libconftest.a" >&5
  8024. $RANLIB libconftest.a 2>&5
  8025. cat > conftest.c << _LT_EOF
  8026. int main() { return 0;}
  8027. _LT_EOF
  8028. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8029. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8030. _lt_result=$?
  8031. if test -s conftest.err && $GREP force_load conftest.err; then
  8032. cat conftest.err >&5
  8033. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  8034. lt_cv_ld_force_load=yes
  8035. else
  8036. cat conftest.err >&5
  8037. fi
  8038. rm -f conftest.err libconftest.a conftest conftest.c
  8039. rm -rf conftest.dSYM
  8040. fi
  8041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  8042. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  8043. case $host_os in
  8044. rhapsody* | darwin1.[012])
  8045. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  8046. darwin1.*)
  8047. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8048. darwin*) # darwin 5.x on
  8049. # if running on 10.5 or later, the deployment target defaults
  8050. # to the OS version, if on x86, and 10.4, the deployment
  8051. # target defaults to 10.4. Don't you love it?
  8052. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  8053. 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
  8054. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8055. 10.[012][,.]*)
  8056. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8057. 10.*|11.*)
  8058. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8059. esac
  8060. ;;
  8061. esac
  8062. if test yes = "$lt_cv_apple_cc_single_mod"; then
  8063. _lt_dar_single_mod='$single_module'
  8064. fi
  8065. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  8066. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  8067. else
  8068. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  8069. fi
  8070. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  8071. _lt_dsymutil='~$DSYMUTIL $lib || :'
  8072. else
  8073. _lt_dsymutil=
  8074. fi
  8075. ;;
  8076. esac
  8077. # func_munge_path_list VARIABLE PATH
  8078. # -----------------------------------
  8079. # VARIABLE is name of variable containing _space_ separated list of
  8080. # directories to be munged by the contents of PATH, which is string
  8081. # having a format:
  8082. # "DIR[:DIR]:"
  8083. # string "DIR[ DIR]" will be prepended to VARIABLE
  8084. # ":DIR[:DIR]"
  8085. # string "DIR[ DIR]" will be appended to VARIABLE
  8086. # "DIRP[:DIRP]::[DIRA:]DIRA"
  8087. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  8088. # "DIRA[ DIRA]" will be appended to VARIABLE
  8089. # "DIR[:DIR]"
  8090. # VARIABLE will be replaced by "DIR[ DIR]"
  8091. func_munge_path_list ()
  8092. {
  8093. case x$2 in
  8094. x)
  8095. ;;
  8096. *:)
  8097. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  8098. ;;
  8099. x:*)
  8100. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  8101. ;;
  8102. *::*)
  8103. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  8104. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  8105. ;;
  8106. *)
  8107. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  8108. ;;
  8109. esac
  8110. }
  8111. ac_header= ac_cache=
  8112. for ac_item in $ac_header_c_list
  8113. do
  8114. if test $ac_cache; then
  8115. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  8116. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  8117. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  8118. fi
  8119. ac_header= ac_cache=
  8120. elif test $ac_header; then
  8121. ac_cache=$ac_item
  8122. else
  8123. ac_header=$ac_item
  8124. fi
  8125. done
  8126. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  8127. then :
  8128. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  8129. fi
  8130. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8131. "
  8132. if test "x$ac_cv_header_dlfcn_h" = xyes
  8133. then :
  8134. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  8135. fi
  8136. func_stripname_cnf ()
  8137. {
  8138. case $2 in
  8139. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  8140. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  8141. esac
  8142. } # func_stripname_cnf
  8143. # Set options
  8144. enable_dlopen=no
  8145. enable_win32_dll=no
  8146. # Check whether --enable-shared was given.
  8147. if test ${enable_shared+y}
  8148. then :
  8149. enableval=$enable_shared; p=${PACKAGE-default}
  8150. case $enableval in
  8151. yes) enable_shared=yes ;;
  8152. no) enable_shared=no ;;
  8153. *)
  8154. enable_shared=no
  8155. # Look at the argument we got. We use all the common list separators.
  8156. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8157. for pkg in $enableval; do
  8158. IFS=$lt_save_ifs
  8159. if test "X$pkg" = "X$p"; then
  8160. enable_shared=yes
  8161. fi
  8162. done
  8163. IFS=$lt_save_ifs
  8164. ;;
  8165. esac
  8166. else $as_nop
  8167. enable_shared=yes
  8168. fi
  8169. # Check whether --enable-static was given.
  8170. if test ${enable_static+y}
  8171. then :
  8172. enableval=$enable_static; p=${PACKAGE-default}
  8173. case $enableval in
  8174. yes) enable_static=yes ;;
  8175. no) enable_static=no ;;
  8176. *)
  8177. enable_static=no
  8178. # Look at the argument we got. We use all the common list separators.
  8179. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8180. for pkg in $enableval; do
  8181. IFS=$lt_save_ifs
  8182. if test "X$pkg" = "X$p"; then
  8183. enable_static=yes
  8184. fi
  8185. done
  8186. IFS=$lt_save_ifs
  8187. ;;
  8188. esac
  8189. else $as_nop
  8190. enable_static=yes
  8191. fi
  8192. # Check whether --with-pic was given.
  8193. if test ${with_pic+y}
  8194. then :
  8195. withval=$with_pic; lt_p=${PACKAGE-default}
  8196. case $withval in
  8197. yes|no) pic_mode=$withval ;;
  8198. *)
  8199. pic_mode=default
  8200. # Look at the argument we got. We use all the common list separators.
  8201. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8202. for lt_pkg in $withval; do
  8203. IFS=$lt_save_ifs
  8204. if test "X$lt_pkg" = "X$lt_p"; then
  8205. pic_mode=yes
  8206. fi
  8207. done
  8208. IFS=$lt_save_ifs
  8209. ;;
  8210. esac
  8211. else $as_nop
  8212. pic_mode=default
  8213. fi
  8214. # Check whether --enable-fast-install was given.
  8215. if test ${enable_fast_install+y}
  8216. then :
  8217. enableval=$enable_fast_install; p=${PACKAGE-default}
  8218. case $enableval in
  8219. yes) enable_fast_install=yes ;;
  8220. no) enable_fast_install=no ;;
  8221. *)
  8222. enable_fast_install=no
  8223. # Look at the argument we got. We use all the common list separators.
  8224. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8225. for pkg in $enableval; do
  8226. IFS=$lt_save_ifs
  8227. if test "X$pkg" = "X$p"; then
  8228. enable_fast_install=yes
  8229. fi
  8230. done
  8231. IFS=$lt_save_ifs
  8232. ;;
  8233. esac
  8234. else $as_nop
  8235. enable_fast_install=yes
  8236. fi
  8237. shared_archive_member_spec=
  8238. case $host,$enable_shared in
  8239. power*-*-aix[5-9]*,yes)
  8240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8241. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  8242. # Check whether --with-aix-soname was given.
  8243. if test ${with_aix_soname+y}
  8244. then :
  8245. withval=$with_aix_soname; case $withval in
  8246. aix|svr4|both)
  8247. ;;
  8248. *)
  8249. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8250. ;;
  8251. esac
  8252. lt_cv_with_aix_soname=$with_aix_soname
  8253. else $as_nop
  8254. if test ${lt_cv_with_aix_soname+y}
  8255. then :
  8256. printf %s "(cached) " >&6
  8257. else $as_nop
  8258. lt_cv_with_aix_soname=aix
  8259. fi
  8260. with_aix_soname=$lt_cv_with_aix_soname
  8261. fi
  8262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8263. printf "%s\n" "$with_aix_soname" >&6; }
  8264. if test aix != "$with_aix_soname"; then
  8265. # For the AIX way of multilib, we name the shared archive member
  8266. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8267. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8268. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8269. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8270. if test 64 = "${OBJECT_MODE-32}"; then
  8271. shared_archive_member_spec=shr_64
  8272. else
  8273. shared_archive_member_spec=shr
  8274. fi
  8275. fi
  8276. ;;
  8277. *)
  8278. with_aix_soname=aix
  8279. ;;
  8280. esac
  8281. # This can be used to rebuild libtool when needed
  8282. LIBTOOL_DEPS=$ltmain
  8283. # Always use our own libtool.
  8284. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8285. test -z "$LN_S" && LN_S="ln -s"
  8286. if test -n "${ZSH_VERSION+set}"; then
  8287. setopt NO_GLOB_SUBST
  8288. fi
  8289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8290. printf %s "checking for objdir... " >&6; }
  8291. if test ${lt_cv_objdir+y}
  8292. then :
  8293. printf %s "(cached) " >&6
  8294. else $as_nop
  8295. rm -f .libs 2>/dev/null
  8296. mkdir .libs 2>/dev/null
  8297. if test -d .libs; then
  8298. lt_cv_objdir=.libs
  8299. else
  8300. # MS-DOS does not allow filenames that begin with a dot.
  8301. lt_cv_objdir=_libs
  8302. fi
  8303. rmdir .libs 2>/dev/null
  8304. fi
  8305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8306. printf "%s\n" "$lt_cv_objdir" >&6; }
  8307. objdir=$lt_cv_objdir
  8308. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  8309. case $host_os in
  8310. aix3*)
  8311. # AIX sometimes has problems with the GCC collect2 program. For some
  8312. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8313. # vanish in a puff of smoke.
  8314. if test set != "${COLLECT_NAMES+set}"; then
  8315. COLLECT_NAMES=
  8316. export COLLECT_NAMES
  8317. fi
  8318. ;;
  8319. esac
  8320. # Global variables:
  8321. ofile=libtool
  8322. can_build_shared=yes
  8323. # All known linkers require a '.a' archive for static linking (except MSVC,
  8324. # which needs '.lib').
  8325. libext=a
  8326. with_gnu_ld=$lt_cv_prog_gnu_ld
  8327. old_CC=$CC
  8328. old_CFLAGS=$CFLAGS
  8329. # Set sane defaults for various variables
  8330. test -z "$CC" && CC=cc
  8331. test -z "$LTCC" && LTCC=$CC
  8332. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8333. test -z "$LD" && LD=ld
  8334. test -z "$ac_objext" && ac_objext=o
  8335. func_cc_basename $compiler
  8336. cc_basename=$func_cc_basename_result
  8337. # Only perform the check for file, if the check method requires it
  8338. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8339. case $deplibs_check_method in
  8340. file_magic*)
  8341. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8343. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  8344. if test ${lt_cv_path_MAGIC_CMD+y}
  8345. then :
  8346. printf %s "(cached) " >&6
  8347. else $as_nop
  8348. case $MAGIC_CMD in
  8349. [\\/*] | ?:[\\/]*)
  8350. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8351. ;;
  8352. *)
  8353. lt_save_MAGIC_CMD=$MAGIC_CMD
  8354. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8355. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8356. for ac_dir in $ac_dummy; do
  8357. IFS=$lt_save_ifs
  8358. test -z "$ac_dir" && ac_dir=.
  8359. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8360. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8361. if test -n "$file_magic_test_file"; then
  8362. case $deplibs_check_method in
  8363. "file_magic "*)
  8364. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8365. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8366. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8367. $EGREP "$file_magic_regex" > /dev/null; then
  8368. :
  8369. else
  8370. cat <<_LT_EOF 1>&2
  8371. *** Warning: the command libtool uses to detect shared libraries,
  8372. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8373. *** The result is that libtool may fail to recognize shared libraries
  8374. *** as such. This will affect the creation of libtool libraries that
  8375. *** depend on shared libraries, but programs linked with such libtool
  8376. *** libraries will work regardless of this problem. Nevertheless, you
  8377. *** may want to report the problem to your system manager and/or to
  8378. *** [email protected]
  8379. _LT_EOF
  8380. fi ;;
  8381. esac
  8382. fi
  8383. break
  8384. fi
  8385. done
  8386. IFS=$lt_save_ifs
  8387. MAGIC_CMD=$lt_save_MAGIC_CMD
  8388. ;;
  8389. esac
  8390. fi
  8391. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8392. if test -n "$MAGIC_CMD"; then
  8393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8394. printf "%s\n" "$MAGIC_CMD" >&6; }
  8395. else
  8396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8397. printf "%s\n" "no" >&6; }
  8398. fi
  8399. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8400. if test -n "$ac_tool_prefix"; then
  8401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8402. printf %s "checking for file... " >&6; }
  8403. if test ${lt_cv_path_MAGIC_CMD+y}
  8404. then :
  8405. printf %s "(cached) " >&6
  8406. else $as_nop
  8407. case $MAGIC_CMD in
  8408. [\\/*] | ?:[\\/]*)
  8409. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8410. ;;
  8411. *)
  8412. lt_save_MAGIC_CMD=$MAGIC_CMD
  8413. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8414. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8415. for ac_dir in $ac_dummy; do
  8416. IFS=$lt_save_ifs
  8417. test -z "$ac_dir" && ac_dir=.
  8418. if test -f "$ac_dir/file"; then
  8419. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8420. if test -n "$file_magic_test_file"; then
  8421. case $deplibs_check_method in
  8422. "file_magic "*)
  8423. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8424. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8425. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8426. $EGREP "$file_magic_regex" > /dev/null; then
  8427. :
  8428. else
  8429. cat <<_LT_EOF 1>&2
  8430. *** Warning: the command libtool uses to detect shared libraries,
  8431. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8432. *** The result is that libtool may fail to recognize shared libraries
  8433. *** as such. This will affect the creation of libtool libraries that
  8434. *** depend on shared libraries, but programs linked with such libtool
  8435. *** libraries will work regardless of this problem. Nevertheless, you
  8436. *** may want to report the problem to your system manager and/or to
  8437. *** [email protected]
  8438. _LT_EOF
  8439. fi ;;
  8440. esac
  8441. fi
  8442. break
  8443. fi
  8444. done
  8445. IFS=$lt_save_ifs
  8446. MAGIC_CMD=$lt_save_MAGIC_CMD
  8447. ;;
  8448. esac
  8449. fi
  8450. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8451. if test -n "$MAGIC_CMD"; then
  8452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8453. printf "%s\n" "$MAGIC_CMD" >&6; }
  8454. else
  8455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8456. printf "%s\n" "no" >&6; }
  8457. fi
  8458. else
  8459. MAGIC_CMD=:
  8460. fi
  8461. fi
  8462. fi
  8463. ;;
  8464. esac
  8465. # Use C for the default configuration in the libtool script
  8466. lt_save_CC=$CC
  8467. ac_ext=c
  8468. ac_cpp='$CPP $CPPFLAGS'
  8469. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8470. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8471. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8472. # Source file extension for C test sources.
  8473. ac_ext=c
  8474. # Object file extension for compiled C test sources.
  8475. objext=o
  8476. objext=$objext
  8477. # Code to be used in simple compile tests
  8478. lt_simple_compile_test_code="int some_variable = 0;"
  8479. # Code to be used in simple link tests
  8480. lt_simple_link_test_code='int main(){return(0);}'
  8481. # If no C compiler was specified, use CC.
  8482. LTCC=${LTCC-"$CC"}
  8483. # If no C compiler flags were specified, use CFLAGS.
  8484. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8485. # Allow CC to be a program name with arguments.
  8486. compiler=$CC
  8487. # Save the default compiler, since it gets overwritten when the other
  8488. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8489. compiler_DEFAULT=$CC
  8490. # save warnings/boilerplate of simple test code
  8491. ac_outfile=conftest.$ac_objext
  8492. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8493. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8494. _lt_compiler_boilerplate=`cat conftest.err`
  8495. $RM conftest*
  8496. ac_outfile=conftest.$ac_objext
  8497. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8498. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8499. _lt_linker_boilerplate=`cat conftest.err`
  8500. $RM -r conftest*
  8501. ## CAVEAT EMPTOR:
  8502. ## There is no encapsulation within the following macros, do not change
  8503. ## the running order or otherwise move them around unless you know exactly
  8504. ## what you are doing...
  8505. if test -n "$compiler"; then
  8506. lt_prog_compiler_no_builtin_flag=
  8507. if test yes = "$GCC"; then
  8508. case $cc_basename in
  8509. nvcc*)
  8510. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8511. *)
  8512. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8513. esac
  8514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8515. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8516. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8517. then :
  8518. printf %s "(cached) " >&6
  8519. else $as_nop
  8520. lt_cv_prog_compiler_rtti_exceptions=no
  8521. ac_outfile=conftest.$ac_objext
  8522. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8523. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8524. # Insert the option either (1) after the last *FLAGS variable, or
  8525. # (2) before a word containing "conftest.", or (3) at the end.
  8526. # Note that $ac_compile itself does not contain backslashes and begins
  8527. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8528. # The option is referenced via a variable to avoid confusing sed.
  8529. lt_compile=`echo "$ac_compile" | $SED \
  8530. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8531. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8532. -e 's:$: $lt_compiler_flag:'`
  8533. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8534. (eval "$lt_compile" 2>conftest.err)
  8535. ac_status=$?
  8536. cat conftest.err >&5
  8537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8538. if (exit $ac_status) && test -s "$ac_outfile"; then
  8539. # The compiler can only warn and ignore the option if not recognized
  8540. # So say no if there are warnings other than the usual output.
  8541. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8542. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8543. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8544. lt_cv_prog_compiler_rtti_exceptions=yes
  8545. fi
  8546. fi
  8547. $RM conftest*
  8548. fi
  8549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8550. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8551. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8552. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8553. else
  8554. :
  8555. fi
  8556. fi
  8557. lt_prog_compiler_wl=
  8558. lt_prog_compiler_pic=
  8559. lt_prog_compiler_static=
  8560. if test yes = "$GCC"; then
  8561. lt_prog_compiler_wl='-Wl,'
  8562. lt_prog_compiler_static='-static'
  8563. case $host_os in
  8564. aix*)
  8565. # All AIX code is PIC.
  8566. if test ia64 = "$host_cpu"; then
  8567. # AIX 5 now supports IA64 processor
  8568. lt_prog_compiler_static='-Bstatic'
  8569. fi
  8570. lt_prog_compiler_pic='-fPIC'
  8571. ;;
  8572. amigaos*)
  8573. case $host_cpu in
  8574. powerpc)
  8575. # see comment about AmigaOS4 .so support
  8576. lt_prog_compiler_pic='-fPIC'
  8577. ;;
  8578. m68k)
  8579. # FIXME: we need at least 68020 code to build shared libraries, but
  8580. # adding the '-m68020' flag to GCC prevents building anything better,
  8581. # like '-m68040'.
  8582. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8583. ;;
  8584. esac
  8585. ;;
  8586. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8587. # PIC is the default for these OSes.
  8588. ;;
  8589. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8590. # This hack is so that the source file can tell whether it is being
  8591. # built for inclusion in a dll (and should export symbols for example).
  8592. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8593. # (--disable-auto-import) libraries
  8594. lt_prog_compiler_pic='-DDLL_EXPORT'
  8595. case $host_os in
  8596. os2*)
  8597. lt_prog_compiler_static='$wl-static'
  8598. ;;
  8599. esac
  8600. ;;
  8601. darwin* | rhapsody*)
  8602. # PIC is the default on this platform
  8603. # Common symbols not allowed in MH_DYLIB files
  8604. lt_prog_compiler_pic='-fno-common'
  8605. ;;
  8606. haiku*)
  8607. # PIC is the default for Haiku.
  8608. # The "-static" flag exists, but is broken.
  8609. lt_prog_compiler_static=
  8610. ;;
  8611. hpux*)
  8612. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8613. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8614. # sets the default TLS model and affects inlining.
  8615. case $host_cpu in
  8616. hppa*64*)
  8617. # +Z the default
  8618. ;;
  8619. *)
  8620. lt_prog_compiler_pic='-fPIC'
  8621. ;;
  8622. esac
  8623. ;;
  8624. interix[3-9]*)
  8625. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8626. # Instead, we relocate shared libraries at runtime.
  8627. ;;
  8628. msdosdjgpp*)
  8629. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8630. # on systems that don't support them.
  8631. lt_prog_compiler_can_build_shared=no
  8632. enable_shared=no
  8633. ;;
  8634. *nto* | *qnx*)
  8635. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8636. # it will coredump.
  8637. lt_prog_compiler_pic='-fPIC -shared'
  8638. ;;
  8639. sysv4*MP*)
  8640. if test -d /usr/nec; then
  8641. lt_prog_compiler_pic=-Kconform_pic
  8642. fi
  8643. ;;
  8644. *)
  8645. lt_prog_compiler_pic='-fPIC'
  8646. ;;
  8647. esac
  8648. case $cc_basename in
  8649. nvcc*) # Cuda Compiler Driver 2.2
  8650. lt_prog_compiler_wl='-Xlinker '
  8651. if test -n "$lt_prog_compiler_pic"; then
  8652. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8653. fi
  8654. ;;
  8655. esac
  8656. else
  8657. # PORTME Check for flag to pass linker flags through the system compiler.
  8658. case $host_os in
  8659. aix*)
  8660. lt_prog_compiler_wl='-Wl,'
  8661. if test ia64 = "$host_cpu"; then
  8662. # AIX 5 now supports IA64 processor
  8663. lt_prog_compiler_static='-Bstatic'
  8664. else
  8665. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8666. fi
  8667. ;;
  8668. darwin* | rhapsody*)
  8669. # PIC is the default on this platform
  8670. # Common symbols not allowed in MH_DYLIB files
  8671. lt_prog_compiler_pic='-fno-common'
  8672. case $cc_basename in
  8673. nagfor*)
  8674. # NAG Fortran compiler
  8675. lt_prog_compiler_wl='-Wl,-Wl,,'
  8676. lt_prog_compiler_pic='-PIC'
  8677. lt_prog_compiler_static='-Bstatic'
  8678. ;;
  8679. esac
  8680. ;;
  8681. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8682. # This hack is so that the source file can tell whether it is being
  8683. # built for inclusion in a dll (and should export symbols for example).
  8684. lt_prog_compiler_pic='-DDLL_EXPORT'
  8685. case $host_os in
  8686. os2*)
  8687. lt_prog_compiler_static='$wl-static'
  8688. ;;
  8689. esac
  8690. ;;
  8691. hpux9* | hpux10* | hpux11*)
  8692. lt_prog_compiler_wl='-Wl,'
  8693. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8694. # not for PA HP-UX.
  8695. case $host_cpu in
  8696. hppa*64*|ia64*)
  8697. # +Z the default
  8698. ;;
  8699. *)
  8700. lt_prog_compiler_pic='+Z'
  8701. ;;
  8702. esac
  8703. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8704. lt_prog_compiler_static='$wl-a ${wl}archive'
  8705. ;;
  8706. irix5* | irix6* | nonstopux*)
  8707. lt_prog_compiler_wl='-Wl,'
  8708. # PIC (with -KPIC) is the default.
  8709. lt_prog_compiler_static='-non_shared'
  8710. ;;
  8711. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8712. case $cc_basename in
  8713. # old Intel for x86_64, which still supported -KPIC.
  8714. ecc*)
  8715. lt_prog_compiler_wl='-Wl,'
  8716. lt_prog_compiler_pic='-KPIC'
  8717. lt_prog_compiler_static='-static'
  8718. ;;
  8719. # flang / f18. f95 an alias for gfortran or flang on Debian
  8720. flang* | f18* | f95*)
  8721. lt_prog_compiler_wl='-Wl,'
  8722. lt_prog_compiler_pic='-fPIC'
  8723. lt_prog_compiler_static='-static'
  8724. ;;
  8725. # icc used to be incompatible with GCC.
  8726. # ICC 10 doesn't accept -KPIC any more.
  8727. icc* | ifort*)
  8728. lt_prog_compiler_wl='-Wl,'
  8729. lt_prog_compiler_pic='-fPIC'
  8730. lt_prog_compiler_static='-static'
  8731. ;;
  8732. # Lahey Fortran 8.1.
  8733. lf95*)
  8734. lt_prog_compiler_wl='-Wl,'
  8735. lt_prog_compiler_pic='--shared'
  8736. lt_prog_compiler_static='--static'
  8737. ;;
  8738. nagfor*)
  8739. # NAG Fortran compiler
  8740. lt_prog_compiler_wl='-Wl,-Wl,,'
  8741. lt_prog_compiler_pic='-PIC'
  8742. lt_prog_compiler_static='-Bstatic'
  8743. ;;
  8744. tcc*)
  8745. # Fabrice Bellard et al's Tiny C Compiler
  8746. lt_prog_compiler_wl='-Wl,'
  8747. lt_prog_compiler_pic='-fPIC'
  8748. lt_prog_compiler_static='-static'
  8749. ;;
  8750. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8751. # Portland Group compilers (*not* the Pentium gcc compiler,
  8752. # which looks to be a dead project)
  8753. lt_prog_compiler_wl='-Wl,'
  8754. lt_prog_compiler_pic='-fpic'
  8755. lt_prog_compiler_static='-Bstatic'
  8756. ;;
  8757. ccc*)
  8758. lt_prog_compiler_wl='-Wl,'
  8759. # All Alpha code is PIC.
  8760. lt_prog_compiler_static='-non_shared'
  8761. ;;
  8762. xl* | bgxl* | bgf* | mpixl*)
  8763. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8764. lt_prog_compiler_wl='-Wl,'
  8765. lt_prog_compiler_pic='-qpic'
  8766. lt_prog_compiler_static='-qstaticlink'
  8767. ;;
  8768. *)
  8769. case `$CC -V 2>&1 | sed 5q` in
  8770. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8771. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8772. lt_prog_compiler_pic='-KPIC'
  8773. lt_prog_compiler_static='-Bstatic'
  8774. lt_prog_compiler_wl=''
  8775. ;;
  8776. *Sun\ F* | *Sun*Fortran*)
  8777. lt_prog_compiler_pic='-KPIC'
  8778. lt_prog_compiler_static='-Bstatic'
  8779. lt_prog_compiler_wl='-Qoption ld '
  8780. ;;
  8781. *Sun\ C*)
  8782. # Sun C 5.9
  8783. lt_prog_compiler_pic='-KPIC'
  8784. lt_prog_compiler_static='-Bstatic'
  8785. lt_prog_compiler_wl='-Wl,'
  8786. ;;
  8787. *Intel*\ [CF]*Compiler*)
  8788. lt_prog_compiler_wl='-Wl,'
  8789. lt_prog_compiler_pic='-fPIC'
  8790. lt_prog_compiler_static='-static'
  8791. ;;
  8792. *Portland\ Group*)
  8793. lt_prog_compiler_wl='-Wl,'
  8794. lt_prog_compiler_pic='-fpic'
  8795. lt_prog_compiler_static='-Bstatic'
  8796. ;;
  8797. esac
  8798. ;;
  8799. esac
  8800. ;;
  8801. newsos6)
  8802. lt_prog_compiler_pic='-KPIC'
  8803. lt_prog_compiler_static='-Bstatic'
  8804. ;;
  8805. *nto* | *qnx*)
  8806. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8807. # it will coredump.
  8808. lt_prog_compiler_pic='-fPIC -shared'
  8809. ;;
  8810. osf3* | osf4* | osf5*)
  8811. lt_prog_compiler_wl='-Wl,'
  8812. # All OSF/1 code is PIC.
  8813. lt_prog_compiler_static='-non_shared'
  8814. ;;
  8815. rdos*)
  8816. lt_prog_compiler_static='-non_shared'
  8817. ;;
  8818. solaris*)
  8819. lt_prog_compiler_pic='-KPIC'
  8820. lt_prog_compiler_static='-Bstatic'
  8821. case $cc_basename in
  8822. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8823. lt_prog_compiler_wl='-Qoption ld ';;
  8824. *)
  8825. lt_prog_compiler_wl='-Wl,';;
  8826. esac
  8827. ;;
  8828. sunos4*)
  8829. lt_prog_compiler_wl='-Qoption ld '
  8830. lt_prog_compiler_pic='-PIC'
  8831. lt_prog_compiler_static='-Bstatic'
  8832. ;;
  8833. sysv4 | sysv4.2uw2* | sysv4.3*)
  8834. lt_prog_compiler_wl='-Wl,'
  8835. lt_prog_compiler_pic='-KPIC'
  8836. lt_prog_compiler_static='-Bstatic'
  8837. ;;
  8838. sysv4*MP*)
  8839. if test -d /usr/nec; then
  8840. lt_prog_compiler_pic='-Kconform_pic'
  8841. lt_prog_compiler_static='-Bstatic'
  8842. fi
  8843. ;;
  8844. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8845. lt_prog_compiler_wl='-Wl,'
  8846. lt_prog_compiler_pic='-KPIC'
  8847. lt_prog_compiler_static='-Bstatic'
  8848. ;;
  8849. unicos*)
  8850. lt_prog_compiler_wl='-Wl,'
  8851. lt_prog_compiler_can_build_shared=no
  8852. ;;
  8853. uts4*)
  8854. lt_prog_compiler_pic='-pic'
  8855. lt_prog_compiler_static='-Bstatic'
  8856. ;;
  8857. *)
  8858. lt_prog_compiler_can_build_shared=no
  8859. ;;
  8860. esac
  8861. fi
  8862. case $host_os in
  8863. # For platforms that do not support PIC, -DPIC is meaningless:
  8864. *djgpp*)
  8865. lt_prog_compiler_pic=
  8866. ;;
  8867. *)
  8868. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8869. ;;
  8870. esac
  8871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8872. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8873. if test ${lt_cv_prog_compiler_pic+y}
  8874. then :
  8875. printf %s "(cached) " >&6
  8876. else $as_nop
  8877. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8878. fi
  8879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8880. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8881. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8882. #
  8883. # Check to make sure the PIC flag actually works.
  8884. #
  8885. if test -n "$lt_prog_compiler_pic"; then
  8886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8887. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8888. if test ${lt_cv_prog_compiler_pic_works+y}
  8889. then :
  8890. printf %s "(cached) " >&6
  8891. else $as_nop
  8892. lt_cv_prog_compiler_pic_works=no
  8893. ac_outfile=conftest.$ac_objext
  8894. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8895. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8896. # Insert the option either (1) after the last *FLAGS variable, or
  8897. # (2) before a word containing "conftest.", or (3) at the end.
  8898. # Note that $ac_compile itself does not contain backslashes and begins
  8899. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8900. # The option is referenced via a variable to avoid confusing sed.
  8901. lt_compile=`echo "$ac_compile" | $SED \
  8902. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8903. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8904. -e 's:$: $lt_compiler_flag:'`
  8905. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8906. (eval "$lt_compile" 2>conftest.err)
  8907. ac_status=$?
  8908. cat conftest.err >&5
  8909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8910. if (exit $ac_status) && test -s "$ac_outfile"; then
  8911. # The compiler can only warn and ignore the option if not recognized
  8912. # So say no if there are warnings other than the usual output.
  8913. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8914. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8915. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8916. lt_cv_prog_compiler_pic_works=yes
  8917. fi
  8918. fi
  8919. $RM conftest*
  8920. fi
  8921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8922. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8923. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8924. case $lt_prog_compiler_pic in
  8925. "" | " "*) ;;
  8926. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8927. esac
  8928. else
  8929. lt_prog_compiler_pic=
  8930. lt_prog_compiler_can_build_shared=no
  8931. fi
  8932. fi
  8933. #
  8934. # Check to make sure the static flag actually works.
  8935. #
  8936. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8938. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8939. if test ${lt_cv_prog_compiler_static_works+y}
  8940. then :
  8941. printf %s "(cached) " >&6
  8942. else $as_nop
  8943. lt_cv_prog_compiler_static_works=no
  8944. save_LDFLAGS=$LDFLAGS
  8945. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8946. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8947. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8948. # The linker can only warn and ignore the option if not recognized
  8949. # So say no if there are warnings
  8950. if test -s conftest.err; then
  8951. # Append any errors to the config.log.
  8952. cat conftest.err 1>&5
  8953. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8954. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8955. if diff conftest.exp conftest.er2 >/dev/null; then
  8956. lt_cv_prog_compiler_static_works=yes
  8957. fi
  8958. else
  8959. lt_cv_prog_compiler_static_works=yes
  8960. fi
  8961. fi
  8962. $RM -r conftest*
  8963. LDFLAGS=$save_LDFLAGS
  8964. fi
  8965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8966. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8967. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8968. :
  8969. else
  8970. lt_prog_compiler_static=
  8971. fi
  8972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8973. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8974. if test ${lt_cv_prog_compiler_c_o+y}
  8975. then :
  8976. printf %s "(cached) " >&6
  8977. else $as_nop
  8978. lt_cv_prog_compiler_c_o=no
  8979. $RM -r conftest 2>/dev/null
  8980. mkdir conftest
  8981. cd conftest
  8982. mkdir out
  8983. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8984. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8985. # Insert the option either (1) after the last *FLAGS variable, or
  8986. # (2) before a word containing "conftest.", or (3) at the end.
  8987. # Note that $ac_compile itself does not contain backslashes and begins
  8988. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8989. lt_compile=`echo "$ac_compile" | $SED \
  8990. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8991. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8992. -e 's:$: $lt_compiler_flag:'`
  8993. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8994. (eval "$lt_compile" 2>out/conftest.err)
  8995. ac_status=$?
  8996. cat out/conftest.err >&5
  8997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8998. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8999. then
  9000. # The compiler can only warn and ignore the option if not recognized
  9001. # So say no if there are warnings
  9002. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9003. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9004. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9005. lt_cv_prog_compiler_c_o=yes
  9006. fi
  9007. fi
  9008. chmod u+w . 2>&5
  9009. $RM conftest*
  9010. # SGI C++ compiler will create directory out/ii_files/ for
  9011. # template instantiation
  9012. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9013. $RM out/* && rmdir out
  9014. cd ..
  9015. $RM -r conftest
  9016. $RM conftest*
  9017. fi
  9018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9019. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9021. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9022. if test ${lt_cv_prog_compiler_c_o+y}
  9023. then :
  9024. printf %s "(cached) " >&6
  9025. else $as_nop
  9026. lt_cv_prog_compiler_c_o=no
  9027. $RM -r conftest 2>/dev/null
  9028. mkdir conftest
  9029. cd conftest
  9030. mkdir out
  9031. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9032. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9033. # Insert the option either (1) after the last *FLAGS variable, or
  9034. # (2) before a word containing "conftest.", or (3) at the end.
  9035. # Note that $ac_compile itself does not contain backslashes and begins
  9036. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9037. lt_compile=`echo "$ac_compile" | $SED \
  9038. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9039. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9040. -e 's:$: $lt_compiler_flag:'`
  9041. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9042. (eval "$lt_compile" 2>out/conftest.err)
  9043. ac_status=$?
  9044. cat out/conftest.err >&5
  9045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9046. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9047. then
  9048. # The compiler can only warn and ignore the option if not recognized
  9049. # So say no if there are warnings
  9050. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9051. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9052. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9053. lt_cv_prog_compiler_c_o=yes
  9054. fi
  9055. fi
  9056. chmod u+w . 2>&5
  9057. $RM conftest*
  9058. # SGI C++ compiler will create directory out/ii_files/ for
  9059. # template instantiation
  9060. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9061. $RM out/* && rmdir out
  9062. cd ..
  9063. $RM -r conftest
  9064. $RM conftest*
  9065. fi
  9066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9067. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9068. hard_links=nottested
  9069. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9070. # do not overwrite the value of need_locks provided by the user
  9071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9072. printf %s "checking if we can lock with hard links... " >&6; }
  9073. hard_links=yes
  9074. $RM conftest*
  9075. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9076. touch conftest.a
  9077. ln conftest.a conftest.b 2>&5 || hard_links=no
  9078. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9080. printf "%s\n" "$hard_links" >&6; }
  9081. if test no = "$hard_links"; then
  9082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9083. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9084. need_locks=warn
  9085. fi
  9086. else
  9087. need_locks=no
  9088. fi
  9089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9090. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9091. runpath_var=
  9092. allow_undefined_flag=
  9093. always_export_symbols=no
  9094. archive_cmds=
  9095. archive_expsym_cmds=
  9096. compiler_needs_object=no
  9097. enable_shared_with_static_runtimes=no
  9098. export_dynamic_flag_spec=
  9099. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9100. hardcode_automatic=no
  9101. hardcode_direct=no
  9102. hardcode_direct_absolute=no
  9103. hardcode_libdir_flag_spec=
  9104. hardcode_libdir_separator=
  9105. hardcode_minus_L=no
  9106. hardcode_shlibpath_var=unsupported
  9107. inherit_rpath=no
  9108. link_all_deplibs=unknown
  9109. module_cmds=
  9110. module_expsym_cmds=
  9111. old_archive_from_new_cmds=
  9112. old_archive_from_expsyms_cmds=
  9113. thread_safe_flag_spec=
  9114. whole_archive_flag_spec=
  9115. # include_expsyms should be a list of space-separated symbols to be *always*
  9116. # included in the symbol list
  9117. include_expsyms=
  9118. # exclude_expsyms can be an extended regexp of symbols to exclude
  9119. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9120. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9121. # as well as any symbol that contains 'd'.
  9122. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9123. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9124. # platforms (ab)use it in PIC code, but their linkers get confused if
  9125. # the symbol is explicitly referenced. Since portable code cannot
  9126. # rely on this symbol name, it's probably fine to never include it in
  9127. # preloaded symbol tables.
  9128. # Exclude shared library initialization/finalization symbols.
  9129. extract_expsyms_cmds=
  9130. case $host_os in
  9131. cygwin* | mingw* | pw32* | cegcc*)
  9132. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9133. # When not using gcc, we currently assume that we are using
  9134. # Microsoft Visual C++.
  9135. if test yes != "$GCC"; then
  9136. with_gnu_ld=no
  9137. fi
  9138. ;;
  9139. interix*)
  9140. # we just hope/assume this is gcc and not c89 (= MSVC++)
  9141. with_gnu_ld=yes
  9142. ;;
  9143. openbsd* | bitrig*)
  9144. with_gnu_ld=no
  9145. ;;
  9146. linux* | k*bsd*-gnu | gnu*)
  9147. link_all_deplibs=no
  9148. ;;
  9149. esac
  9150. ld_shlibs=yes
  9151. # On some targets, GNU ld is compatible enough with the native linker
  9152. # that we're better off using the native interface for both.
  9153. lt_use_gnu_ld_interface=no
  9154. if test yes = "$with_gnu_ld"; then
  9155. case $host_os in
  9156. aix*)
  9157. # The AIX port of GNU ld has always aspired to compatibility
  9158. # with the native linker. However, as the warning in the GNU ld
  9159. # block says, versions before 2.19.5* couldn't really create working
  9160. # shared libraries, regardless of the interface used.
  9161. case `$LD -v 2>&1` in
  9162. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9163. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9164. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9165. *)
  9166. lt_use_gnu_ld_interface=yes
  9167. ;;
  9168. esac
  9169. ;;
  9170. *)
  9171. lt_use_gnu_ld_interface=yes
  9172. ;;
  9173. esac
  9174. fi
  9175. if test yes = "$lt_use_gnu_ld_interface"; then
  9176. # If archive_cmds runs LD, not CC, wlarc should be empty
  9177. wlarc='$wl'
  9178. # Set some defaults for GNU ld with shared library support. These
  9179. # are reset later if shared libraries are not supported. Putting them
  9180. # here allows them to be overridden if necessary.
  9181. runpath_var=LD_RUN_PATH
  9182. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9183. export_dynamic_flag_spec='$wl--export-dynamic'
  9184. # ancient GNU ld didn't support --whole-archive et. al.
  9185. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9186. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9187. else
  9188. whole_archive_flag_spec=
  9189. fi
  9190. supports_anon_versioning=no
  9191. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  9192. *GNU\ gold*) supports_anon_versioning=yes ;;
  9193. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9194. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9195. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9196. *\ 2.11.*) ;; # other 2.11 versions
  9197. *) supports_anon_versioning=yes ;;
  9198. esac
  9199. # See if GNU ld supports shared libraries.
  9200. case $host_os in
  9201. aix[3-9]*)
  9202. # On AIX/PPC, the GNU linker is very broken
  9203. if test ia64 != "$host_cpu"; then
  9204. ld_shlibs=no
  9205. cat <<_LT_EOF 1>&2
  9206. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9207. *** to be unable to reliably create shared libraries on AIX.
  9208. *** Therefore, libtool is disabling shared libraries support. If you
  9209. *** really care for shared libraries, you may want to install binutils
  9210. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9211. *** You will then need to restart the configuration process.
  9212. _LT_EOF
  9213. fi
  9214. ;;
  9215. amigaos*)
  9216. case $host_cpu in
  9217. powerpc)
  9218. # see comment about AmigaOS4 .so support
  9219. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9220. archive_expsym_cmds=''
  9221. ;;
  9222. m68k)
  9223. 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)'
  9224. hardcode_libdir_flag_spec='-L$libdir'
  9225. hardcode_minus_L=yes
  9226. ;;
  9227. esac
  9228. ;;
  9229. beos*)
  9230. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9231. allow_undefined_flag=unsupported
  9232. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9233. # support --undefined. This deserves some investigation. FIXME
  9234. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9235. else
  9236. ld_shlibs=no
  9237. fi
  9238. ;;
  9239. cygwin* | mingw* | pw32* | cegcc*)
  9240. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9241. # as there is no search path for DLLs.
  9242. hardcode_libdir_flag_spec='-L$libdir'
  9243. export_dynamic_flag_spec='$wl--export-all-symbols'
  9244. allow_undefined_flag=unsupported
  9245. always_export_symbols=no
  9246. enable_shared_with_static_runtimes=yes
  9247. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  9248. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9249. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9250. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9251. # If the export-symbols file already is a .def file, use it as
  9252. # is; otherwise, prepend EXPORTS...
  9253. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9254. cp $export_symbols $output_objdir/$soname.def;
  9255. else
  9256. echo EXPORTS > $output_objdir/$soname.def;
  9257. cat $export_symbols >> $output_objdir/$soname.def;
  9258. fi~
  9259. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9260. else
  9261. ld_shlibs=no
  9262. fi
  9263. ;;
  9264. haiku*)
  9265. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9266. link_all_deplibs=yes
  9267. ;;
  9268. os2*)
  9269. hardcode_libdir_flag_spec='-L$libdir'
  9270. hardcode_minus_L=yes
  9271. allow_undefined_flag=unsupported
  9272. shrext_cmds=.dll
  9273. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9274. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9275. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9276. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9277. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9278. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9279. emximp -o $lib $output_objdir/$libname.def'
  9280. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9281. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9282. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9283. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9284. prefix_cmds="$SED"~
  9285. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9286. prefix_cmds="$prefix_cmds -e 1d";
  9287. fi~
  9288. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9289. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9290. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9291. emximp -o $lib $output_objdir/$libname.def'
  9292. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9293. enable_shared_with_static_runtimes=yes
  9294. ;;
  9295. interix[3-9]*)
  9296. hardcode_direct=no
  9297. hardcode_shlibpath_var=no
  9298. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9299. export_dynamic_flag_spec='$wl-E'
  9300. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9301. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9302. # default) and relocated if they conflict, which is a slow very memory
  9303. # consuming and fragmenting process. To avoid this, we pick a random,
  9304. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9305. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9306. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9307. 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'
  9308. ;;
  9309. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9310. tmp_diet=no
  9311. if test linux-dietlibc = "$host_os"; then
  9312. case $cc_basename in
  9313. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9314. esac
  9315. fi
  9316. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9317. && test no = "$tmp_diet"
  9318. then
  9319. tmp_addflag=' $pic_flag'
  9320. tmp_sharedflag='-shared'
  9321. case $cc_basename,$host_cpu in
  9322. pgcc*) # Portland Group C compiler
  9323. 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'
  9324. tmp_addflag=' $pic_flag'
  9325. ;;
  9326. pgf77* | pgf90* | pgf95* | pgfortran*)
  9327. # Portland Group f77 and f90 compilers
  9328. 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'
  9329. tmp_addflag=' $pic_flag -Mnomain' ;;
  9330. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9331. tmp_addflag=' -i_dynamic' ;;
  9332. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9333. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9334. ifc* | ifort*) # Intel Fortran compiler
  9335. tmp_addflag=' -nofor_main' ;;
  9336. lf95*) # Lahey Fortran 8.1
  9337. whole_archive_flag_spec=
  9338. tmp_sharedflag='--shared' ;;
  9339. nagfor*) # NAGFOR 5.3
  9340. tmp_sharedflag='-Wl,-shared' ;;
  9341. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9342. tmp_sharedflag='-qmkshrobj'
  9343. tmp_addflag= ;;
  9344. nvcc*) # Cuda Compiler Driver 2.2
  9345. 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'
  9346. compiler_needs_object=yes
  9347. ;;
  9348. esac
  9349. case `$CC -V 2>&1 | sed 5q` in
  9350. *Sun\ C*) # Sun C 5.9
  9351. 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'
  9352. compiler_needs_object=yes
  9353. tmp_sharedflag='-G' ;;
  9354. *Sun\ F*) # Sun Fortran 8.3
  9355. tmp_sharedflag='-G' ;;
  9356. esac
  9357. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9358. if test yes = "$supports_anon_versioning"; then
  9359. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9360. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9361. echo "local: *; };" >> $output_objdir/$libname.ver~
  9362. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9363. fi
  9364. case $cc_basename in
  9365. tcc*)
  9366. export_dynamic_flag_spec='-rdynamic'
  9367. ;;
  9368. xlf* | bgf* | bgxlf* | mpixlf*)
  9369. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9370. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9371. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9372. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9373. if test yes = "$supports_anon_versioning"; then
  9374. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9375. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9376. echo "local: *; };" >> $output_objdir/$libname.ver~
  9377. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9378. fi
  9379. ;;
  9380. esac
  9381. else
  9382. ld_shlibs=no
  9383. fi
  9384. ;;
  9385. netbsd* | netbsdelf*-gnu)
  9386. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9387. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9388. wlarc=
  9389. else
  9390. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9391. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9392. fi
  9393. ;;
  9394. solaris*)
  9395. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9396. ld_shlibs=no
  9397. cat <<_LT_EOF 1>&2
  9398. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9399. *** create shared libraries on Solaris systems. Therefore, libtool
  9400. *** is disabling shared libraries support. We urge you to upgrade GNU
  9401. *** binutils to release 2.9.1 or newer. Another option is to modify
  9402. *** your PATH or compiler configuration so that the native linker is
  9403. *** used, and then restart.
  9404. _LT_EOF
  9405. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9406. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9407. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9408. else
  9409. ld_shlibs=no
  9410. fi
  9411. ;;
  9412. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9413. case `$LD -v 2>&1` in
  9414. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9415. ld_shlibs=no
  9416. cat <<_LT_EOF 1>&2
  9417. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9418. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9419. *** is disabling shared libraries support. We urge you to upgrade GNU
  9420. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9421. *** your PATH or compiler configuration so that the native linker is
  9422. *** used, and then restart.
  9423. _LT_EOF
  9424. ;;
  9425. *)
  9426. # For security reasons, it is highly recommended that you always
  9427. # use absolute paths for naming shared libraries, and exclude the
  9428. # DT_RUNPATH tag from executables and libraries. But doing so
  9429. # requires that you compile everything twice, which is a pain.
  9430. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9431. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9432. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9433. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9434. else
  9435. ld_shlibs=no
  9436. fi
  9437. ;;
  9438. esac
  9439. ;;
  9440. sunos4*)
  9441. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9442. wlarc=
  9443. hardcode_direct=yes
  9444. hardcode_shlibpath_var=no
  9445. ;;
  9446. *)
  9447. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9448. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9449. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9450. else
  9451. ld_shlibs=no
  9452. fi
  9453. ;;
  9454. esac
  9455. if test no = "$ld_shlibs"; then
  9456. runpath_var=
  9457. hardcode_libdir_flag_spec=
  9458. export_dynamic_flag_spec=
  9459. whole_archive_flag_spec=
  9460. fi
  9461. else
  9462. # PORTME fill in a description of your system's linker (not GNU ld)
  9463. case $host_os in
  9464. aix3*)
  9465. allow_undefined_flag=unsupported
  9466. always_export_symbols=yes
  9467. 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'
  9468. # Note: this linker hardcodes the directories in LIBPATH if there
  9469. # are no directories specified by -L.
  9470. hardcode_minus_L=yes
  9471. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9472. # Neither direct hardcoding nor static linking is supported with a
  9473. # broken collect2.
  9474. hardcode_direct=unsupported
  9475. fi
  9476. ;;
  9477. aix[4-9]*)
  9478. if test ia64 = "$host_cpu"; then
  9479. # On IA64, the linker does run time linking by default, so we don't
  9480. # have to do anything special.
  9481. aix_use_runtimelinking=no
  9482. exp_sym_flag='-Bexport'
  9483. no_entry_flag=
  9484. else
  9485. # If we're using GNU nm, then we don't want the "-C" option.
  9486. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9487. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9488. # weak defined symbols like other global defined symbols, whereas
  9489. # GNU nm marks them as "W".
  9490. # While the 'weak' keyword is ignored in the Export File, we need
  9491. # it in the Import File for the 'aix-soname' feature, so we have
  9492. # to replace the "-B" option with "-P" for AIX nm.
  9493. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9494. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  9495. else
  9496. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  9497. fi
  9498. aix_use_runtimelinking=no
  9499. # Test if we are trying to use run time linking or normal
  9500. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9501. # have runtime linking enabled, and use it for executables.
  9502. # For shared libraries, we enable/disable runtime linking
  9503. # depending on the kind of the shared library created -
  9504. # when "with_aix_soname,aix_use_runtimelinking" is:
  9505. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9506. # "aix,yes" lib.so shared, rtl:yes, for executables
  9507. # lib.a static archive
  9508. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9509. # lib.a(lib.so.V) shared, rtl:no, for executables
  9510. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9511. # lib.a(lib.so.V) shared, rtl:no
  9512. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9513. # lib.a static archive
  9514. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9515. for ld_flag in $LDFLAGS; do
  9516. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9517. aix_use_runtimelinking=yes
  9518. break
  9519. fi
  9520. done
  9521. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9522. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9523. # so we don't have lib.a shared libs to link our executables.
  9524. # We have to force runtime linking in this case.
  9525. aix_use_runtimelinking=yes
  9526. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9527. fi
  9528. ;;
  9529. esac
  9530. exp_sym_flag='-bexport'
  9531. no_entry_flag='-bnoentry'
  9532. fi
  9533. # When large executables or shared objects are built, AIX ld can
  9534. # have problems creating the table of contents. If linking a library
  9535. # or program results in "error TOC overflow" add -mminimal-toc to
  9536. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9537. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9538. archive_cmds=''
  9539. hardcode_direct=yes
  9540. hardcode_direct_absolute=yes
  9541. hardcode_libdir_separator=':'
  9542. link_all_deplibs=yes
  9543. file_list_spec='$wl-f,'
  9544. case $with_aix_soname,$aix_use_runtimelinking in
  9545. aix,*) ;; # traditional, no import file
  9546. svr4,* | *,yes) # use import file
  9547. # The Import File defines what to hardcode.
  9548. hardcode_direct=no
  9549. hardcode_direct_absolute=no
  9550. ;;
  9551. esac
  9552. if test yes = "$GCC"; then
  9553. case $host_os in aix4.[012]|aix4.[012].*)
  9554. # We only want to do this on AIX 4.2 and lower, the check
  9555. # below for broken collect2 doesn't work under 4.3+
  9556. collect2name=`$CC -print-prog-name=collect2`
  9557. if test -f "$collect2name" &&
  9558. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9559. then
  9560. # We have reworked collect2
  9561. :
  9562. else
  9563. # We have old collect2
  9564. hardcode_direct=unsupported
  9565. # It fails to find uninstalled libraries when the uninstalled
  9566. # path is not listed in the libpath. Setting hardcode_minus_L
  9567. # to unsupported forces relinking
  9568. hardcode_minus_L=yes
  9569. hardcode_libdir_flag_spec='-L$libdir'
  9570. hardcode_libdir_separator=
  9571. fi
  9572. ;;
  9573. esac
  9574. shared_flag='-shared'
  9575. if test yes = "$aix_use_runtimelinking"; then
  9576. shared_flag="$shared_flag "'$wl-G'
  9577. fi
  9578. # Need to ensure runtime linking is disabled for the traditional
  9579. # shared library, or the linker may eventually find shared libraries
  9580. # /with/ Import File - we do not want to mix them.
  9581. shared_flag_aix='-shared'
  9582. shared_flag_svr4='-shared $wl-G'
  9583. else
  9584. # not using gcc
  9585. if test ia64 = "$host_cpu"; then
  9586. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9587. # chokes on -Wl,-G. The following line is correct:
  9588. shared_flag='-G'
  9589. else
  9590. if test yes = "$aix_use_runtimelinking"; then
  9591. shared_flag='$wl-G'
  9592. else
  9593. shared_flag='$wl-bM:SRE'
  9594. fi
  9595. shared_flag_aix='$wl-bM:SRE'
  9596. shared_flag_svr4='$wl-G'
  9597. fi
  9598. fi
  9599. export_dynamic_flag_spec='$wl-bexpall'
  9600. # It seems that -bexpall does not export symbols beginning with
  9601. # underscore (_), so it is better to generate a list of symbols to export.
  9602. always_export_symbols=yes
  9603. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9604. # Warning - without using the other runtime loading flags (-brtl),
  9605. # -berok will link without error, but may produce a broken library.
  9606. allow_undefined_flag='-berok'
  9607. # Determine the default libpath from the value encoded in an
  9608. # empty executable.
  9609. if test set = "${lt_cv_aix_libpath+set}"; then
  9610. aix_libpath=$lt_cv_aix_libpath
  9611. else
  9612. if test ${lt_cv_aix_libpath_+y}
  9613. then :
  9614. printf %s "(cached) " >&6
  9615. else $as_nop
  9616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9617. /* end confdefs.h. */
  9618. int
  9619. main (void)
  9620. {
  9621. ;
  9622. return 0;
  9623. }
  9624. _ACEOF
  9625. if ac_fn_c_try_link "$LINENO"
  9626. then :
  9627. lt_aix_libpath_sed='
  9628. /Import File Strings/,/^$/ {
  9629. /^0/ {
  9630. s/^0 *\([^ ]*\) *$/\1/
  9631. p
  9632. }
  9633. }'
  9634. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9635. # Check for a 64-bit object if we didn't find anything.
  9636. if test -z "$lt_cv_aix_libpath_"; then
  9637. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9638. fi
  9639. fi
  9640. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9641. conftest$ac_exeext conftest.$ac_ext
  9642. if test -z "$lt_cv_aix_libpath_"; then
  9643. lt_cv_aix_libpath_=/usr/lib:/lib
  9644. fi
  9645. fi
  9646. aix_libpath=$lt_cv_aix_libpath_
  9647. fi
  9648. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9649. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  9650. else
  9651. if test ia64 = "$host_cpu"; then
  9652. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9653. allow_undefined_flag="-z nodefs"
  9654. 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"
  9655. else
  9656. # Determine the default libpath from the value encoded in an
  9657. # empty executable.
  9658. if test set = "${lt_cv_aix_libpath+set}"; then
  9659. aix_libpath=$lt_cv_aix_libpath
  9660. else
  9661. if test ${lt_cv_aix_libpath_+y}
  9662. then :
  9663. printf %s "(cached) " >&6
  9664. else $as_nop
  9665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9666. /* end confdefs.h. */
  9667. int
  9668. main (void)
  9669. {
  9670. ;
  9671. return 0;
  9672. }
  9673. _ACEOF
  9674. if ac_fn_c_try_link "$LINENO"
  9675. then :
  9676. lt_aix_libpath_sed='
  9677. /Import File Strings/,/^$/ {
  9678. /^0/ {
  9679. s/^0 *\([^ ]*\) *$/\1/
  9680. p
  9681. }
  9682. }'
  9683. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9684. # Check for a 64-bit object if we didn't find anything.
  9685. if test -z "$lt_cv_aix_libpath_"; then
  9686. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9687. fi
  9688. fi
  9689. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9690. conftest$ac_exeext conftest.$ac_ext
  9691. if test -z "$lt_cv_aix_libpath_"; then
  9692. lt_cv_aix_libpath_=/usr/lib:/lib
  9693. fi
  9694. fi
  9695. aix_libpath=$lt_cv_aix_libpath_
  9696. fi
  9697. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9698. # Warning - without using the other run time loading flags,
  9699. # -berok will link without error, but may produce a broken library.
  9700. no_undefined_flag=' $wl-bernotok'
  9701. allow_undefined_flag=' $wl-berok'
  9702. if test yes = "$with_gnu_ld"; then
  9703. # We only use this code for GNU lds that support --whole-archive.
  9704. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9705. else
  9706. # Exported symbols can be pulled into shared objects from archives
  9707. whole_archive_flag_spec='$convenience'
  9708. fi
  9709. archive_cmds_need_lc=yes
  9710. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9711. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9712. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9713. if test svr4 != "$with_aix_soname"; then
  9714. # This is similar to how AIX traditionally builds its shared libraries.
  9715. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  9716. fi
  9717. if test aix != "$with_aix_soname"; then
  9718. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  9719. else
  9720. # used by -dlpreopen to get the symbols
  9721. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9722. fi
  9723. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9724. fi
  9725. fi
  9726. ;;
  9727. amigaos*)
  9728. case $host_cpu in
  9729. powerpc)
  9730. # see comment about AmigaOS4 .so support
  9731. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9732. archive_expsym_cmds=''
  9733. ;;
  9734. m68k)
  9735. 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)'
  9736. hardcode_libdir_flag_spec='-L$libdir'
  9737. hardcode_minus_L=yes
  9738. ;;
  9739. esac
  9740. ;;
  9741. bsdi[45]*)
  9742. export_dynamic_flag_spec=-rdynamic
  9743. ;;
  9744. cygwin* | mingw* | pw32* | cegcc*)
  9745. # When not using gcc, we currently assume that we are using
  9746. # Microsoft Visual C++.
  9747. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9748. # no search path for DLLs.
  9749. case $cc_basename in
  9750. cl*)
  9751. # Native MSVC
  9752. hardcode_libdir_flag_spec=' '
  9753. allow_undefined_flag=unsupported
  9754. always_export_symbols=yes
  9755. file_list_spec='@'
  9756. # Tell ltmain to make .lib files, not .a files.
  9757. libext=lib
  9758. # Tell ltmain to make .dll files, not .so files.
  9759. shrext_cmds=.dll
  9760. # FIXME: Setting linknames here is a bad hack.
  9761. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9762. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9763. cp "$export_symbols" "$output_objdir/$soname.def";
  9764. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9765. else
  9766. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9767. fi~
  9768. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9769. linknames='
  9770. # The linker will not automatically build a static lib if we build a DLL.
  9771. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9772. enable_shared_with_static_runtimes=yes
  9773. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9774. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9775. # Don't use ranlib
  9776. old_postinstall_cmds='chmod 644 $oldlib'
  9777. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9778. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9779. case $lt_outputfile in
  9780. *.exe|*.EXE) ;;
  9781. *)
  9782. lt_outputfile=$lt_outputfile.exe
  9783. lt_tool_outputfile=$lt_tool_outputfile.exe
  9784. ;;
  9785. esac~
  9786. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9787. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9788. $RM "$lt_outputfile.manifest";
  9789. fi'
  9790. ;;
  9791. *)
  9792. # Assume MSVC wrapper
  9793. hardcode_libdir_flag_spec=' '
  9794. allow_undefined_flag=unsupported
  9795. # Tell ltmain to make .lib files, not .a files.
  9796. libext=lib
  9797. # Tell ltmain to make .dll files, not .so files.
  9798. shrext_cmds=.dll
  9799. # FIXME: Setting linknames here is a bad hack.
  9800. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9801. # The linker will automatically build a .lib file if we build a DLL.
  9802. old_archive_from_new_cmds='true'
  9803. # FIXME: Should let the user specify the lib program.
  9804. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9805. enable_shared_with_static_runtimes=yes
  9806. ;;
  9807. esac
  9808. ;;
  9809. darwin* | rhapsody*)
  9810. archive_cmds_need_lc=no
  9811. hardcode_direct=no
  9812. hardcode_automatic=yes
  9813. hardcode_shlibpath_var=unsupported
  9814. if test yes = "$lt_cv_ld_force_load"; then
  9815. 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\"`'
  9816. else
  9817. whole_archive_flag_spec=''
  9818. fi
  9819. link_all_deplibs=yes
  9820. allow_undefined_flag=$_lt_dar_allow_undefined
  9821. case $cc_basename in
  9822. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9823. *) _lt_dar_can_shared=$GCC ;;
  9824. esac
  9825. if test yes = "$_lt_dar_can_shared"; then
  9826. output_verbose_link_cmd=func_echo_all
  9827. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9828. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9829. 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"
  9830. 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"
  9831. else
  9832. ld_shlibs=no
  9833. fi
  9834. ;;
  9835. dgux*)
  9836. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9837. hardcode_libdir_flag_spec='-L$libdir'
  9838. hardcode_shlibpath_var=no
  9839. ;;
  9840. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9841. # support. Future versions do this automatically, but an explicit c++rt0.o
  9842. # does not break anything, and helps significantly (at the cost of a little
  9843. # extra space).
  9844. freebsd2.2*)
  9845. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9846. hardcode_libdir_flag_spec='-R$libdir'
  9847. hardcode_direct=yes
  9848. hardcode_shlibpath_var=no
  9849. ;;
  9850. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9851. freebsd2.*)
  9852. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9853. hardcode_direct=yes
  9854. hardcode_minus_L=yes
  9855. hardcode_shlibpath_var=no
  9856. ;;
  9857. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9858. freebsd* | dragonfly*)
  9859. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9860. hardcode_libdir_flag_spec='-R$libdir'
  9861. hardcode_direct=yes
  9862. hardcode_shlibpath_var=no
  9863. ;;
  9864. hpux9*)
  9865. if test yes = "$GCC"; then
  9866. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9867. else
  9868. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9869. fi
  9870. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9871. hardcode_libdir_separator=:
  9872. hardcode_direct=yes
  9873. # hardcode_minus_L: Not really in the search PATH,
  9874. # but as the default location of the library.
  9875. hardcode_minus_L=yes
  9876. export_dynamic_flag_spec='$wl-E'
  9877. ;;
  9878. hpux10*)
  9879. if test yes,no = "$GCC,$with_gnu_ld"; then
  9880. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9881. else
  9882. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9883. fi
  9884. if test no = "$with_gnu_ld"; then
  9885. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9886. hardcode_libdir_separator=:
  9887. hardcode_direct=yes
  9888. hardcode_direct_absolute=yes
  9889. export_dynamic_flag_spec='$wl-E'
  9890. # hardcode_minus_L: Not really in the search PATH,
  9891. # but as the default location of the library.
  9892. hardcode_minus_L=yes
  9893. fi
  9894. ;;
  9895. hpux11*)
  9896. if test yes,no = "$GCC,$with_gnu_ld"; then
  9897. case $host_cpu in
  9898. hppa*64*)
  9899. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9900. ;;
  9901. ia64*)
  9902. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9903. ;;
  9904. *)
  9905. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9906. ;;
  9907. esac
  9908. else
  9909. case $host_cpu in
  9910. hppa*64*)
  9911. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9912. ;;
  9913. ia64*)
  9914. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9915. ;;
  9916. *)
  9917. # Older versions of the 11.00 compiler do not understand -b yet
  9918. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9920. printf %s "checking if $CC understands -b... " >&6; }
  9921. if test ${lt_cv_prog_compiler__b+y}
  9922. then :
  9923. printf %s "(cached) " >&6
  9924. else $as_nop
  9925. lt_cv_prog_compiler__b=no
  9926. save_LDFLAGS=$LDFLAGS
  9927. LDFLAGS="$LDFLAGS -b"
  9928. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9929. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9930. # The linker can only warn and ignore the option if not recognized
  9931. # So say no if there are warnings
  9932. if test -s conftest.err; then
  9933. # Append any errors to the config.log.
  9934. cat conftest.err 1>&5
  9935. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9936. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9937. if diff conftest.exp conftest.er2 >/dev/null; then
  9938. lt_cv_prog_compiler__b=yes
  9939. fi
  9940. else
  9941. lt_cv_prog_compiler__b=yes
  9942. fi
  9943. fi
  9944. $RM -r conftest*
  9945. LDFLAGS=$save_LDFLAGS
  9946. fi
  9947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9948. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9949. if test yes = "$lt_cv_prog_compiler__b"; then
  9950. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9951. else
  9952. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9953. fi
  9954. ;;
  9955. esac
  9956. fi
  9957. if test no = "$with_gnu_ld"; then
  9958. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9959. hardcode_libdir_separator=:
  9960. case $host_cpu in
  9961. hppa*64*|ia64*)
  9962. hardcode_direct=no
  9963. hardcode_shlibpath_var=no
  9964. ;;
  9965. *)
  9966. hardcode_direct=yes
  9967. hardcode_direct_absolute=yes
  9968. export_dynamic_flag_spec='$wl-E'
  9969. # hardcode_minus_L: Not really in the search PATH,
  9970. # but as the default location of the library.
  9971. hardcode_minus_L=yes
  9972. ;;
  9973. esac
  9974. fi
  9975. ;;
  9976. irix5* | irix6* | nonstopux*)
  9977. if test yes = "$GCC"; then
  9978. archive_cmds='$CC -shared $pic_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'
  9979. # Try to use the -exported_symbol ld option, if it does not
  9980. # work, assume that -exports_file does not work either and
  9981. # implicitly export all symbols.
  9982. # This should be the same for all languages, so no per-tag cache variable.
  9983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9984. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9985. if test ${lt_cv_irix_exported_symbol+y}
  9986. then :
  9987. printf %s "(cached) " >&6
  9988. else $as_nop
  9989. save_LDFLAGS=$LDFLAGS
  9990. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9992. /* end confdefs.h. */
  9993. int foo (void) { return 0; }
  9994. _ACEOF
  9995. if ac_fn_c_try_link "$LINENO"
  9996. then :
  9997. lt_cv_irix_exported_symbol=yes
  9998. else $as_nop
  9999. lt_cv_irix_exported_symbol=no
  10000. fi
  10001. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10002. conftest$ac_exeext conftest.$ac_ext
  10003. LDFLAGS=$save_LDFLAGS
  10004. fi
  10005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10006. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  10007. if test yes = "$lt_cv_irix_exported_symbol"; then
  10008. archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
  10009. fi
  10010. link_all_deplibs=no
  10011. else
  10012. 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'
  10013. 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'
  10014. fi
  10015. archive_cmds_need_lc='no'
  10016. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10017. hardcode_libdir_separator=:
  10018. inherit_rpath=yes
  10019. link_all_deplibs=yes
  10020. ;;
  10021. linux*)
  10022. case $cc_basename in
  10023. tcc*)
  10024. # Fabrice Bellard et al's Tiny C Compiler
  10025. ld_shlibs=yes
  10026. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10027. ;;
  10028. esac
  10029. ;;
  10030. netbsd* | netbsdelf*-gnu)
  10031. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10032. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10033. else
  10034. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10035. fi
  10036. hardcode_libdir_flag_spec='-R$libdir'
  10037. hardcode_direct=yes
  10038. hardcode_shlibpath_var=no
  10039. ;;
  10040. newsos6)
  10041. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10042. hardcode_direct=yes
  10043. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10044. hardcode_libdir_separator=:
  10045. hardcode_shlibpath_var=no
  10046. ;;
  10047. *nto* | *qnx*)
  10048. ;;
  10049. openbsd* | bitrig*)
  10050. if test -f /usr/libexec/ld.so; then
  10051. hardcode_direct=yes
  10052. hardcode_shlibpath_var=no
  10053. hardcode_direct_absolute=yes
  10054. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10055. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10056. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  10057. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10058. export_dynamic_flag_spec='$wl-E'
  10059. else
  10060. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10061. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10062. fi
  10063. else
  10064. ld_shlibs=no
  10065. fi
  10066. ;;
  10067. os2*)
  10068. hardcode_libdir_flag_spec='-L$libdir'
  10069. hardcode_minus_L=yes
  10070. allow_undefined_flag=unsupported
  10071. shrext_cmds=.dll
  10072. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10073. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10074. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10075. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10076. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10077. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10078. emximp -o $lib $output_objdir/$libname.def'
  10079. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10080. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10081. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10082. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10083. prefix_cmds="$SED"~
  10084. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10085. prefix_cmds="$prefix_cmds -e 1d";
  10086. fi~
  10087. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10088. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10089. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10090. emximp -o $lib $output_objdir/$libname.def'
  10091. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10092. enable_shared_with_static_runtimes=yes
  10093. ;;
  10094. osf3*)
  10095. if test yes = "$GCC"; then
  10096. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10097. 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'
  10098. else
  10099. allow_undefined_flag=' -expect_unresolved \*'
  10100. 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'
  10101. fi
  10102. archive_cmds_need_lc='no'
  10103. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10104. hardcode_libdir_separator=:
  10105. ;;
  10106. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10107. if test yes = "$GCC"; then
  10108. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10109. archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
  10110. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10111. else
  10112. allow_undefined_flag=' -expect_unresolved \*'
  10113. 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'
  10114. 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~
  10115. $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'
  10116. # Both c and cxx compiler support -rpath directly
  10117. hardcode_libdir_flag_spec='-rpath $libdir'
  10118. fi
  10119. archive_cmds_need_lc='no'
  10120. hardcode_libdir_separator=:
  10121. ;;
  10122. solaris*)
  10123. no_undefined_flag=' -z defs'
  10124. if test yes = "$GCC"; then
  10125. wlarc='$wl'
  10126. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10127. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10128. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10129. else
  10130. case `$CC -V 2>&1` in
  10131. *"Compilers 5.0"*)
  10132. wlarc=''
  10133. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10134. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10135. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10136. ;;
  10137. *)
  10138. wlarc='$wl'
  10139. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10140. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10141. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10142. ;;
  10143. esac
  10144. fi
  10145. hardcode_libdir_flag_spec='-R$libdir'
  10146. hardcode_shlibpath_var=no
  10147. case $host_os in
  10148. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10149. *)
  10150. # The compiler driver will combine and reorder linker options,
  10151. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10152. # but is careful enough not to reorder.
  10153. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10154. if test yes = "$GCC"; then
  10155. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10156. else
  10157. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10158. fi
  10159. ;;
  10160. esac
  10161. link_all_deplibs=yes
  10162. ;;
  10163. sunos4*)
  10164. if test sequent = "$host_vendor"; then
  10165. # Use $CC to link under sequent, because it throws in some extra .o
  10166. # files that make .init and .fini sections work.
  10167. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10168. else
  10169. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10170. fi
  10171. hardcode_libdir_flag_spec='-L$libdir'
  10172. hardcode_direct=yes
  10173. hardcode_minus_L=yes
  10174. hardcode_shlibpath_var=no
  10175. ;;
  10176. sysv4)
  10177. case $host_vendor in
  10178. sni)
  10179. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10180. hardcode_direct=yes # is this really true???
  10181. ;;
  10182. siemens)
  10183. ## LD is ld it makes a PLAMLIB
  10184. ## CC just makes a GrossModule.
  10185. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10186. reload_cmds='$CC -r -o $output$reload_objs'
  10187. hardcode_direct=no
  10188. ;;
  10189. motorola)
  10190. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10191. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10192. ;;
  10193. esac
  10194. runpath_var='LD_RUN_PATH'
  10195. hardcode_shlibpath_var=no
  10196. ;;
  10197. sysv4.3*)
  10198. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10199. hardcode_shlibpath_var=no
  10200. export_dynamic_flag_spec='-Bexport'
  10201. ;;
  10202. sysv4*MP*)
  10203. if test -d /usr/nec; then
  10204. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10205. hardcode_shlibpath_var=no
  10206. runpath_var=LD_RUN_PATH
  10207. hardcode_runpath_var=yes
  10208. ld_shlibs=yes
  10209. fi
  10210. ;;
  10211. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10212. no_undefined_flag='$wl-z,text'
  10213. archive_cmds_need_lc=no
  10214. hardcode_shlibpath_var=no
  10215. runpath_var='LD_RUN_PATH'
  10216. if test yes = "$GCC"; then
  10217. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10218. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10219. else
  10220. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10221. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10222. fi
  10223. ;;
  10224. sysv5* | sco3.2v5* | sco5v6*)
  10225. # Note: We CANNOT use -z defs as we might desire, because we do not
  10226. # link with -lc, and that would cause any symbols used from libc to
  10227. # always be unresolved, which means just about no library would
  10228. # ever link correctly. If we're not using GNU ld we use -z text
  10229. # though, which does catch some bad symbols but isn't as heavy-handed
  10230. # as -z defs.
  10231. no_undefined_flag='$wl-z,text'
  10232. allow_undefined_flag='$wl-z,nodefs'
  10233. archive_cmds_need_lc=no
  10234. hardcode_shlibpath_var=no
  10235. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10236. hardcode_libdir_separator=':'
  10237. link_all_deplibs=yes
  10238. export_dynamic_flag_spec='$wl-Bexport'
  10239. runpath_var='LD_RUN_PATH'
  10240. if test yes = "$GCC"; then
  10241. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10242. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10243. else
  10244. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10245. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10246. fi
  10247. ;;
  10248. uts4*)
  10249. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10250. hardcode_libdir_flag_spec='-L$libdir'
  10251. hardcode_shlibpath_var=no
  10252. ;;
  10253. *)
  10254. ld_shlibs=no
  10255. ;;
  10256. esac
  10257. if test sni = "$host_vendor"; then
  10258. case $host in
  10259. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10260. export_dynamic_flag_spec='$wl-Blargedynsym'
  10261. ;;
  10262. esac
  10263. fi
  10264. fi
  10265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10266. printf "%s\n" "$ld_shlibs" >&6; }
  10267. test no = "$ld_shlibs" && can_build_shared=no
  10268. with_gnu_ld=$with_gnu_ld
  10269. #
  10270. # Do we need to explicitly link libc?
  10271. #
  10272. case "x$archive_cmds_need_lc" in
  10273. x|xyes)
  10274. # Assume -lc should be added
  10275. archive_cmds_need_lc=yes
  10276. if test yes,yes = "$GCC,$enable_shared"; then
  10277. case $archive_cmds in
  10278. *'~'*)
  10279. # FIXME: we may have to deal with multi-command sequences.
  10280. ;;
  10281. '$CC '*)
  10282. # Test whether the compiler implicitly links with -lc since on some
  10283. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10284. # to ld, don't add -lc before -lgcc.
  10285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10286. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  10287. if test ${lt_cv_archive_cmds_need_lc+y}
  10288. then :
  10289. printf %s "(cached) " >&6
  10290. else $as_nop
  10291. $RM conftest*
  10292. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10293. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10294. (eval $ac_compile) 2>&5
  10295. ac_status=$?
  10296. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10297. test $ac_status = 0; } 2>conftest.err; then
  10298. soname=conftest
  10299. lib=conftest
  10300. libobjs=conftest.$ac_objext
  10301. deplibs=
  10302. wl=$lt_prog_compiler_wl
  10303. pic_flag=$lt_prog_compiler_pic
  10304. compiler_flags=-v
  10305. linker_flags=-v
  10306. verstring=
  10307. output_objdir=.
  10308. libname=conftest
  10309. lt_save_allow_undefined_flag=$allow_undefined_flag
  10310. allow_undefined_flag=
  10311. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10312. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10313. ac_status=$?
  10314. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10315. test $ac_status = 0; }
  10316. then
  10317. lt_cv_archive_cmds_need_lc=no
  10318. else
  10319. lt_cv_archive_cmds_need_lc=yes
  10320. fi
  10321. allow_undefined_flag=$lt_save_allow_undefined_flag
  10322. else
  10323. cat conftest.err 1>&5
  10324. fi
  10325. $RM conftest*
  10326. fi
  10327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10328. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  10329. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10330. ;;
  10331. esac
  10332. fi
  10333. ;;
  10334. esac
  10335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10336. printf %s "checking dynamic linker characteristics... " >&6; }
  10337. if test yes = "$GCC"; then
  10338. case $host_os in
  10339. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10340. *) lt_awk_arg='/^libraries:/' ;;
  10341. esac
  10342. case $host_os in
  10343. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10344. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10345. esac
  10346. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10347. case $lt_search_path_spec in
  10348. *\;*)
  10349. # if the path contains ";" then we assume it to be the separator
  10350. # otherwise default to the standard path separator (i.e. ":") - it is
  10351. # assumed that no part of a normal pathname contains ";" but that should
  10352. # okay in the real world where ";" in dirpaths is itself problematic.
  10353. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10354. ;;
  10355. *)
  10356. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10357. ;;
  10358. esac
  10359. # Ok, now we have the path, separated by spaces, we can step through it
  10360. # and add multilib dir if necessary...
  10361. lt_tmp_lt_search_path_spec=
  10362. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10363. # ...but if some path component already ends with the multilib dir we assume
  10364. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10365. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10366. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10367. lt_multi_os_dir=
  10368. ;;
  10369. esac
  10370. for lt_sys_path in $lt_search_path_spec; do
  10371. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10372. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10373. elif test -n "$lt_multi_os_dir"; then
  10374. test -d "$lt_sys_path" && \
  10375. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10376. fi
  10377. done
  10378. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10379. BEGIN {RS = " "; FS = "/|\n";} {
  10380. lt_foo = "";
  10381. lt_count = 0;
  10382. for (lt_i = NF; lt_i > 0; lt_i--) {
  10383. if ($lt_i != "" && $lt_i != ".") {
  10384. if ($lt_i == "..") {
  10385. lt_count++;
  10386. } else {
  10387. if (lt_count == 0) {
  10388. lt_foo = "/" $lt_i lt_foo;
  10389. } else {
  10390. lt_count--;
  10391. }
  10392. }
  10393. }
  10394. }
  10395. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10396. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10397. }'`
  10398. # AWK program above erroneously prepends '/' to C:/dos/paths
  10399. # for these hosts.
  10400. case $host_os in
  10401. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10402. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10403. esac
  10404. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10405. else
  10406. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10407. fi
  10408. library_names_spec=
  10409. libname_spec='lib$name'
  10410. soname_spec=
  10411. shrext_cmds=.so
  10412. postinstall_cmds=
  10413. postuninstall_cmds=
  10414. finish_cmds=
  10415. finish_eval=
  10416. shlibpath_var=
  10417. shlibpath_overrides_runpath=unknown
  10418. version_type=none
  10419. dynamic_linker="$host_os ld.so"
  10420. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10421. need_lib_prefix=unknown
  10422. hardcode_into_libs=no
  10423. # when you set need_version to no, make sure it does not cause -set_version
  10424. # flags to be left without arguments
  10425. need_version=unknown
  10426. case $host_os in
  10427. aix3*)
  10428. version_type=linux # correct to gnu/linux during the next big refactor
  10429. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10430. shlibpath_var=LIBPATH
  10431. # AIX 3 has no versioning support, so we append a major version to the name.
  10432. soname_spec='$libname$release$shared_ext$major'
  10433. ;;
  10434. aix[4-9]*)
  10435. version_type=linux # correct to gnu/linux during the next big refactor
  10436. need_lib_prefix=no
  10437. need_version=no
  10438. hardcode_into_libs=yes
  10439. if test ia64 = "$host_cpu"; then
  10440. # AIX 5 supports IA64
  10441. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10442. shlibpath_var=LD_LIBRARY_PATH
  10443. else
  10444. # With GCC up to 2.95.x, collect2 would create an import file
  10445. # for dependence libraries. The import file would start with
  10446. # the line '#! .'. This would cause the generated library to
  10447. # depend on '.', always an invalid library. This was fixed in
  10448. # development snapshots of GCC prior to 3.0.
  10449. case $host_os in
  10450. aix4 | aix4.[01] | aix4.[01].*)
  10451. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10452. echo ' yes '
  10453. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10454. :
  10455. else
  10456. can_build_shared=no
  10457. fi
  10458. ;;
  10459. esac
  10460. # Using Import Files as archive members, it is possible to support
  10461. # filename-based versioning of shared library archives on AIX. While
  10462. # this would work for both with and without runtime linking, it will
  10463. # prevent static linking of such archives. So we do filename-based
  10464. # shared library versioning with .so extension only, which is used
  10465. # when both runtime linking and shared linking is enabled.
  10466. # Unfortunately, runtime linking may impact performance, so we do
  10467. # not want this to be the default eventually. Also, we use the
  10468. # versioned .so libs for executables only if there is the -brtl
  10469. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10470. # To allow for filename-based versioning support, we need to create
  10471. # libNAME.so.V as an archive file, containing:
  10472. # *) an Import File, referring to the versioned filename of the
  10473. # archive as well as the shared archive member, telling the
  10474. # bitwidth (32 or 64) of that shared object, and providing the
  10475. # list of exported symbols of that shared object, eventually
  10476. # decorated with the 'weak' keyword
  10477. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10478. # it being seen by the linker.
  10479. # At run time we better use the real file rather than another symlink,
  10480. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10481. case $with_aix_soname,$aix_use_runtimelinking in
  10482. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10483. # soname into executable. Probably we can add versioning support to
  10484. # collect2, so additional links can be useful in future.
  10485. aix,yes) # traditional libtool
  10486. dynamic_linker='AIX unversionable lib.so'
  10487. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10488. # instead of lib<name>.a to let people know that these are not
  10489. # typical AIX shared libraries.
  10490. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10491. ;;
  10492. aix,no) # traditional AIX only
  10493. dynamic_linker='AIX lib.a(lib.so.V)'
  10494. # We preserve .a as extension for shared libraries through AIX4.2
  10495. # and later when we are not doing run time linking.
  10496. library_names_spec='$libname$release.a $libname.a'
  10497. soname_spec='$libname$release$shared_ext$major'
  10498. ;;
  10499. svr4,*) # full svr4 only
  10500. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10501. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10502. # We do not specify a path in Import Files, so LIBPATH fires.
  10503. shlibpath_overrides_runpath=yes
  10504. ;;
  10505. *,yes) # both, prefer svr4
  10506. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10507. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10508. # unpreferred sharedlib libNAME.a needs extra handling
  10509. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  10510. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  10511. # We do not specify a path in Import Files, so LIBPATH fires.
  10512. shlibpath_overrides_runpath=yes
  10513. ;;
  10514. *,no) # both, prefer aix
  10515. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10516. library_names_spec='$libname$release.a $libname.a'
  10517. soname_spec='$libname$release$shared_ext$major'
  10518. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10519. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  10520. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  10521. ;;
  10522. esac
  10523. shlibpath_var=LIBPATH
  10524. fi
  10525. ;;
  10526. amigaos*)
  10527. case $host_cpu in
  10528. powerpc)
  10529. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10530. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10531. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10532. ;;
  10533. m68k)
  10534. library_names_spec='$libname.ixlibrary $libname.a'
  10535. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10536. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  10537. ;;
  10538. esac
  10539. ;;
  10540. beos*)
  10541. library_names_spec='$libname$shared_ext'
  10542. dynamic_linker="$host_os ld.so"
  10543. shlibpath_var=LIBRARY_PATH
  10544. ;;
  10545. bsdi[45]*)
  10546. version_type=linux # correct to gnu/linux during the next big refactor
  10547. need_version=no
  10548. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10549. soname_spec='$libname$release$shared_ext$major'
  10550. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10551. shlibpath_var=LD_LIBRARY_PATH
  10552. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10553. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10554. # the default ld.so.conf also contains /usr/contrib/lib and
  10555. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10556. # libtool to hard-code these into programs
  10557. ;;
  10558. cygwin* | mingw* | pw32* | cegcc*)
  10559. version_type=windows
  10560. shrext_cmds=.dll
  10561. need_version=no
  10562. need_lib_prefix=no
  10563. case $GCC,$cc_basename in
  10564. yes,*)
  10565. # gcc
  10566. library_names_spec='$libname.dll.a'
  10567. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10568. postinstall_cmds='base_file=`basename \$file`~
  10569. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10570. dldir=$destdir/`dirname \$dlpath`~
  10571. test -d \$dldir || mkdir -p \$dldir~
  10572. $install_prog $dir/$dlname \$dldir/$dlname~
  10573. chmod a+x \$dldir/$dlname~
  10574. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10575. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10576. fi'
  10577. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10578. dlpath=$dir/\$dldll~
  10579. $RM \$dlpath'
  10580. shlibpath_overrides_runpath=yes
  10581. case $host_os in
  10582. cygwin*)
  10583. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10584. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10585. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10586. ;;
  10587. mingw* | cegcc*)
  10588. # MinGW DLLs use traditional 'lib' prefix
  10589. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10590. ;;
  10591. pw32*)
  10592. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10593. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10594. ;;
  10595. esac
  10596. dynamic_linker='Win32 ld.exe'
  10597. ;;
  10598. *,cl*)
  10599. # Native MSVC
  10600. libname_spec='$name'
  10601. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10602. library_names_spec='$libname.dll.lib'
  10603. case $build_os in
  10604. mingw*)
  10605. sys_lib_search_path_spec=
  10606. lt_save_ifs=$IFS
  10607. IFS=';'
  10608. for lt_path in $LIB
  10609. do
  10610. IFS=$lt_save_ifs
  10611. # Let DOS variable expansion print the short 8.3 style file name.
  10612. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10613. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10614. done
  10615. IFS=$lt_save_ifs
  10616. # Convert to MSYS style.
  10617. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10618. ;;
  10619. cygwin*)
  10620. # Convert to unix form, then to dos form, then back to unix form
  10621. # but this time dos style (no spaces!) so that the unix form looks
  10622. # like /cygdrive/c/PROGRA~1:/cygdr...
  10623. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10624. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10625. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10626. ;;
  10627. *)
  10628. sys_lib_search_path_spec=$LIB
  10629. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10630. # It is most probably a Windows format PATH.
  10631. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10632. else
  10633. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10634. fi
  10635. # FIXME: find the short name or the path components, as spaces are
  10636. # common. (e.g. "Program Files" -> "PROGRA~1")
  10637. ;;
  10638. esac
  10639. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10640. postinstall_cmds='base_file=`basename \$file`~
  10641. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10642. dldir=$destdir/`dirname \$dlpath`~
  10643. test -d \$dldir || mkdir -p \$dldir~
  10644. $install_prog $dir/$dlname \$dldir/$dlname'
  10645. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10646. dlpath=$dir/\$dldll~
  10647. $RM \$dlpath'
  10648. shlibpath_overrides_runpath=yes
  10649. dynamic_linker='Win32 link.exe'
  10650. ;;
  10651. *)
  10652. # Assume MSVC wrapper
  10653. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10654. dynamic_linker='Win32 ld.exe'
  10655. ;;
  10656. esac
  10657. # FIXME: first we should search . and the directory the executable is in
  10658. shlibpath_var=PATH
  10659. ;;
  10660. darwin* | rhapsody*)
  10661. dynamic_linker="$host_os dyld"
  10662. version_type=darwin
  10663. need_lib_prefix=no
  10664. need_version=no
  10665. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10666. soname_spec='$libname$release$major$shared_ext'
  10667. shlibpath_overrides_runpath=yes
  10668. shlibpath_var=DYLD_LIBRARY_PATH
  10669. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10670. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10671. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10672. ;;
  10673. dgux*)
  10674. version_type=linux # correct to gnu/linux during the next big refactor
  10675. need_lib_prefix=no
  10676. need_version=no
  10677. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10678. soname_spec='$libname$release$shared_ext$major'
  10679. shlibpath_var=LD_LIBRARY_PATH
  10680. ;;
  10681. freebsd* | dragonfly*)
  10682. # DragonFly does not have aout. When/if they implement a new
  10683. # versioning mechanism, adjust this.
  10684. if test -x /usr/bin/objformat; then
  10685. objformat=`/usr/bin/objformat`
  10686. else
  10687. case $host_os in
  10688. freebsd[23].*) objformat=aout ;;
  10689. *) objformat=elf ;;
  10690. esac
  10691. fi
  10692. version_type=freebsd-$objformat
  10693. case $version_type in
  10694. freebsd-elf*)
  10695. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10696. soname_spec='$libname$release$shared_ext$major'
  10697. need_version=no
  10698. need_lib_prefix=no
  10699. ;;
  10700. freebsd-*)
  10701. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10702. need_version=yes
  10703. ;;
  10704. esac
  10705. shlibpath_var=LD_LIBRARY_PATH
  10706. case $host_os in
  10707. freebsd2.*)
  10708. shlibpath_overrides_runpath=yes
  10709. ;;
  10710. freebsd3.[01]* | freebsdelf3.[01]*)
  10711. shlibpath_overrides_runpath=yes
  10712. hardcode_into_libs=yes
  10713. ;;
  10714. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10715. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10716. shlibpath_overrides_runpath=no
  10717. hardcode_into_libs=yes
  10718. ;;
  10719. *) # from 4.6 on, and DragonFly
  10720. shlibpath_overrides_runpath=yes
  10721. hardcode_into_libs=yes
  10722. ;;
  10723. esac
  10724. ;;
  10725. haiku*)
  10726. version_type=linux # correct to gnu/linux during the next big refactor
  10727. need_lib_prefix=no
  10728. need_version=no
  10729. dynamic_linker="$host_os runtime_loader"
  10730. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10731. soname_spec='$libname$release$shared_ext$major'
  10732. shlibpath_var=LIBRARY_PATH
  10733. shlibpath_overrides_runpath=no
  10734. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10735. hardcode_into_libs=yes
  10736. ;;
  10737. hpux9* | hpux10* | hpux11*)
  10738. # Give a soname corresponding to the major version so that dld.sl refuses to
  10739. # link against other versions.
  10740. version_type=sunos
  10741. need_lib_prefix=no
  10742. need_version=no
  10743. case $host_cpu in
  10744. ia64*)
  10745. shrext_cmds='.so'
  10746. hardcode_into_libs=yes
  10747. dynamic_linker="$host_os dld.so"
  10748. shlibpath_var=LD_LIBRARY_PATH
  10749. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10750. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10751. soname_spec='$libname$release$shared_ext$major'
  10752. if test 32 = "$HPUX_IA64_MODE"; then
  10753. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10754. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10755. else
  10756. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10757. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10758. fi
  10759. ;;
  10760. hppa*64*)
  10761. shrext_cmds='.sl'
  10762. hardcode_into_libs=yes
  10763. dynamic_linker="$host_os dld.sl"
  10764. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10765. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10766. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10767. soname_spec='$libname$release$shared_ext$major'
  10768. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10769. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10770. ;;
  10771. *)
  10772. shrext_cmds='.sl'
  10773. dynamic_linker="$host_os dld.sl"
  10774. shlibpath_var=SHLIB_PATH
  10775. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10776. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10777. soname_spec='$libname$release$shared_ext$major'
  10778. ;;
  10779. esac
  10780. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10781. postinstall_cmds='chmod 555 $lib'
  10782. # or fails outright, so override atomically:
  10783. install_override_mode=555
  10784. ;;
  10785. interix[3-9]*)
  10786. version_type=linux # correct to gnu/linux during the next big refactor
  10787. need_lib_prefix=no
  10788. need_version=no
  10789. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10790. soname_spec='$libname$release$shared_ext$major'
  10791. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10792. shlibpath_var=LD_LIBRARY_PATH
  10793. shlibpath_overrides_runpath=no
  10794. hardcode_into_libs=yes
  10795. ;;
  10796. irix5* | irix6* | nonstopux*)
  10797. case $host_os in
  10798. nonstopux*) version_type=nonstopux ;;
  10799. *)
  10800. if test yes = "$lt_cv_prog_gnu_ld"; then
  10801. version_type=linux # correct to gnu/linux during the next big refactor
  10802. else
  10803. version_type=irix
  10804. fi ;;
  10805. esac
  10806. need_lib_prefix=no
  10807. need_version=no
  10808. soname_spec='$libname$release$shared_ext$major'
  10809. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10810. case $host_os in
  10811. irix5* | nonstopux*)
  10812. libsuff= shlibsuff=
  10813. ;;
  10814. *)
  10815. case $LD in # libtool.m4 will add one of these switches to LD
  10816. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10817. libsuff= shlibsuff= libmagic=32-bit;;
  10818. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10819. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10820. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10821. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10822. *) libsuff= shlibsuff= libmagic=never-match;;
  10823. esac
  10824. ;;
  10825. esac
  10826. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10827. shlibpath_overrides_runpath=no
  10828. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10829. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10830. hardcode_into_libs=yes
  10831. ;;
  10832. # No shared lib support for Linux oldld, aout, or coff.
  10833. linux*oldld* | linux*aout* | linux*coff*)
  10834. dynamic_linker=no
  10835. ;;
  10836. linux*android*)
  10837. version_type=none # Android doesn't support versioned libraries.
  10838. need_lib_prefix=no
  10839. need_version=no
  10840. library_names_spec='$libname$release$shared_ext'
  10841. soname_spec='$libname$release$shared_ext'
  10842. finish_cmds=
  10843. shlibpath_var=LD_LIBRARY_PATH
  10844. shlibpath_overrides_runpath=yes
  10845. # This implies no fast_install, which is unacceptable.
  10846. # Some rework will be needed to allow for fast_install
  10847. # before this can be enabled.
  10848. hardcode_into_libs=yes
  10849. dynamic_linker='Android linker'
  10850. # Don't embed -rpath directories since the linker doesn't support them.
  10851. hardcode_libdir_flag_spec='-L$libdir'
  10852. ;;
  10853. # This must be glibc/ELF.
  10854. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10855. version_type=linux # correct to gnu/linux during the next big refactor
  10856. need_lib_prefix=no
  10857. need_version=no
  10858. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10859. soname_spec='$libname$release$shared_ext$major'
  10860. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10861. shlibpath_var=LD_LIBRARY_PATH
  10862. shlibpath_overrides_runpath=no
  10863. # Some binutils ld are patched to set DT_RUNPATH
  10864. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10865. then :
  10866. printf %s "(cached) " >&6
  10867. else $as_nop
  10868. lt_cv_shlibpath_overrides_runpath=no
  10869. save_LDFLAGS=$LDFLAGS
  10870. save_libdir=$libdir
  10871. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10872. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10874. /* end confdefs.h. */
  10875. int
  10876. main (void)
  10877. {
  10878. ;
  10879. return 0;
  10880. }
  10881. _ACEOF
  10882. if ac_fn_c_try_link "$LINENO"
  10883. then :
  10884. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10885. then :
  10886. lt_cv_shlibpath_overrides_runpath=yes
  10887. fi
  10888. fi
  10889. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10890. conftest$ac_exeext conftest.$ac_ext
  10891. LDFLAGS=$save_LDFLAGS
  10892. libdir=$save_libdir
  10893. fi
  10894. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10895. # This implies no fast_install, which is unacceptable.
  10896. # Some rework will be needed to allow for fast_install
  10897. # before this can be enabled.
  10898. hardcode_into_libs=yes
  10899. # Ideally, we could use ldconfig to report *all* directores which are
  10900. # searched for libraries, however this is still not possible. Aside from not
  10901. # being certain /sbin/ldconfig is available, command
  10902. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10903. # even though it is searched at run-time. Try to do the best guess by
  10904. # appending ld.so.conf contents (and includes) to the search path.
  10905. if test -f /etc/ld.so.conf; then
  10906. 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' ' '`
  10907. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10908. fi
  10909. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10910. # powerpc, because MkLinux only supported shared libraries with the
  10911. # GNU dynamic linker. Since this was broken with cross compilers,
  10912. # most powerpc-linux boxes support dynamic linking these days and
  10913. # people can always --disable-shared, the test was removed, and we
  10914. # assume the GNU/Linux dynamic linker is in use.
  10915. dynamic_linker='GNU/Linux ld.so'
  10916. ;;
  10917. netbsdelf*-gnu)
  10918. version_type=linux
  10919. need_lib_prefix=no
  10920. need_version=no
  10921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10922. soname_spec='${libname}${release}${shared_ext}$major'
  10923. shlibpath_var=LD_LIBRARY_PATH
  10924. shlibpath_overrides_runpath=no
  10925. hardcode_into_libs=yes
  10926. dynamic_linker='NetBSD ld.elf_so'
  10927. ;;
  10928. netbsd*)
  10929. version_type=sunos
  10930. need_lib_prefix=no
  10931. need_version=no
  10932. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10933. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10934. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10935. dynamic_linker='NetBSD (a.out) ld.so'
  10936. else
  10937. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10938. soname_spec='$libname$release$shared_ext$major'
  10939. dynamic_linker='NetBSD ld.elf_so'
  10940. fi
  10941. shlibpath_var=LD_LIBRARY_PATH
  10942. shlibpath_overrides_runpath=yes
  10943. hardcode_into_libs=yes
  10944. ;;
  10945. newsos6)
  10946. version_type=linux # correct to gnu/linux during the next big refactor
  10947. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10948. shlibpath_var=LD_LIBRARY_PATH
  10949. shlibpath_overrides_runpath=yes
  10950. ;;
  10951. *nto* | *qnx*)
  10952. version_type=qnx
  10953. need_lib_prefix=no
  10954. need_version=no
  10955. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10956. soname_spec='$libname$release$shared_ext$major'
  10957. shlibpath_var=LD_LIBRARY_PATH
  10958. shlibpath_overrides_runpath=no
  10959. hardcode_into_libs=yes
  10960. dynamic_linker='ldqnx.so'
  10961. ;;
  10962. openbsd* | bitrig*)
  10963. version_type=sunos
  10964. sys_lib_dlsearch_path_spec=/usr/lib
  10965. need_lib_prefix=no
  10966. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10967. need_version=no
  10968. else
  10969. need_version=yes
  10970. fi
  10971. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10972. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10973. shlibpath_var=LD_LIBRARY_PATH
  10974. shlibpath_overrides_runpath=yes
  10975. ;;
  10976. os2*)
  10977. libname_spec='$name'
  10978. version_type=windows
  10979. shrext_cmds=.dll
  10980. need_version=no
  10981. need_lib_prefix=no
  10982. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10983. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10984. v=$($ECHO $release$versuffix | tr -d .-);
  10985. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10986. $ECHO $n$v`$shared_ext'
  10987. library_names_spec='${libname}_dll.$libext'
  10988. dynamic_linker='OS/2 ld.exe'
  10989. shlibpath_var=BEGINLIBPATH
  10990. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10991. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10992. postinstall_cmds='base_file=`basename \$file`~
  10993. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10994. dldir=$destdir/`dirname \$dlpath`~
  10995. test -d \$dldir || mkdir -p \$dldir~
  10996. $install_prog $dir/$dlname \$dldir/$dlname~
  10997. chmod a+x \$dldir/$dlname~
  10998. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10999. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11000. fi'
  11001. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  11002. dlpath=$dir/\$dldll~
  11003. $RM \$dlpath'
  11004. ;;
  11005. osf3* | osf4* | osf5*)
  11006. version_type=osf
  11007. need_lib_prefix=no
  11008. need_version=no
  11009. soname_spec='$libname$release$shared_ext$major'
  11010. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11011. shlibpath_var=LD_LIBRARY_PATH
  11012. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11013. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11014. ;;
  11015. rdos*)
  11016. dynamic_linker=no
  11017. ;;
  11018. solaris*)
  11019. version_type=linux # correct to gnu/linux during the next big refactor
  11020. need_lib_prefix=no
  11021. need_version=no
  11022. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11023. soname_spec='$libname$release$shared_ext$major'
  11024. shlibpath_var=LD_LIBRARY_PATH
  11025. shlibpath_overrides_runpath=yes
  11026. hardcode_into_libs=yes
  11027. # ldd complains unless libraries are executable
  11028. postinstall_cmds='chmod +x $lib'
  11029. ;;
  11030. sunos4*)
  11031. version_type=sunos
  11032. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11033. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11034. shlibpath_var=LD_LIBRARY_PATH
  11035. shlibpath_overrides_runpath=yes
  11036. if test yes = "$with_gnu_ld"; then
  11037. need_lib_prefix=no
  11038. fi
  11039. need_version=yes
  11040. ;;
  11041. sysv4 | sysv4.3*)
  11042. version_type=linux # correct to gnu/linux during the next big refactor
  11043. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11044. soname_spec='$libname$release$shared_ext$major'
  11045. shlibpath_var=LD_LIBRARY_PATH
  11046. case $host_vendor in
  11047. sni)
  11048. shlibpath_overrides_runpath=no
  11049. need_lib_prefix=no
  11050. runpath_var=LD_RUN_PATH
  11051. ;;
  11052. siemens)
  11053. need_lib_prefix=no
  11054. ;;
  11055. motorola)
  11056. need_lib_prefix=no
  11057. need_version=no
  11058. shlibpath_overrides_runpath=no
  11059. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11060. ;;
  11061. esac
  11062. ;;
  11063. sysv4*MP*)
  11064. if test -d /usr/nec; then
  11065. version_type=linux # correct to gnu/linux during the next big refactor
  11066. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  11067. soname_spec='$libname$shared_ext.$major'
  11068. shlibpath_var=LD_LIBRARY_PATH
  11069. fi
  11070. ;;
  11071. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11072. version_type=sco
  11073. need_lib_prefix=no
  11074. need_version=no
  11075. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  11076. soname_spec='$libname$release$shared_ext$major'
  11077. shlibpath_var=LD_LIBRARY_PATH
  11078. shlibpath_overrides_runpath=yes
  11079. hardcode_into_libs=yes
  11080. if test yes = "$with_gnu_ld"; then
  11081. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11082. else
  11083. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11084. case $host_os in
  11085. sco3.2v5*)
  11086. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11087. ;;
  11088. esac
  11089. fi
  11090. sys_lib_dlsearch_path_spec='/usr/lib'
  11091. ;;
  11092. tpf*)
  11093. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11094. version_type=linux # correct to gnu/linux during the next big refactor
  11095. need_lib_prefix=no
  11096. need_version=no
  11097. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11098. shlibpath_var=LD_LIBRARY_PATH
  11099. shlibpath_overrides_runpath=no
  11100. hardcode_into_libs=yes
  11101. ;;
  11102. uts4*)
  11103. version_type=linux # correct to gnu/linux during the next big refactor
  11104. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11105. soname_spec='$libname$release$shared_ext$major'
  11106. shlibpath_var=LD_LIBRARY_PATH
  11107. ;;
  11108. *)
  11109. dynamic_linker=no
  11110. ;;
  11111. esac
  11112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11113. printf "%s\n" "$dynamic_linker" >&6; }
  11114. test no = "$dynamic_linker" && can_build_shared=no
  11115. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11116. if test yes = "$GCC"; then
  11117. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11118. fi
  11119. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11120. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11121. fi
  11122. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11123. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11124. fi
  11125. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11126. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11127. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11128. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11129. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11130. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11132. printf %s "checking how to hardcode library paths into programs... " >&6; }
  11133. hardcode_action=
  11134. if test -n "$hardcode_libdir_flag_spec" ||
  11135. test -n "$runpath_var" ||
  11136. test yes = "$hardcode_automatic"; then
  11137. # We can hardcode non-existent directories.
  11138. if test no != "$hardcode_direct" &&
  11139. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11140. # have to relink, otherwise we might link with an installed library
  11141. # when we should be linking with a yet-to-be-installed one
  11142. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11143. test no != "$hardcode_minus_L"; then
  11144. # Linking always hardcodes the temporary library directory.
  11145. hardcode_action=relink
  11146. else
  11147. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11148. hardcode_action=immediate
  11149. fi
  11150. else
  11151. # We cannot hardcode anything, or else we can only hardcode existing
  11152. # directories.
  11153. hardcode_action=unsupported
  11154. fi
  11155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11156. printf "%s\n" "$hardcode_action" >&6; }
  11157. if test relink = "$hardcode_action" ||
  11158. test yes = "$inherit_rpath"; then
  11159. # Fast installation is not supported
  11160. enable_fast_install=no
  11161. elif test yes = "$shlibpath_overrides_runpath" ||
  11162. test no = "$enable_shared"; then
  11163. # Fast installation is not necessary
  11164. enable_fast_install=needless
  11165. fi
  11166. if test yes != "$enable_dlopen"; then
  11167. enable_dlopen=unknown
  11168. enable_dlopen_self=unknown
  11169. enable_dlopen_self_static=unknown
  11170. else
  11171. lt_cv_dlopen=no
  11172. lt_cv_dlopen_libs=
  11173. case $host_os in
  11174. beos*)
  11175. lt_cv_dlopen=load_add_on
  11176. lt_cv_dlopen_libs=
  11177. lt_cv_dlopen_self=yes
  11178. ;;
  11179. mingw* | pw32* | cegcc*)
  11180. lt_cv_dlopen=LoadLibrary
  11181. lt_cv_dlopen_libs=
  11182. ;;
  11183. cygwin*)
  11184. lt_cv_dlopen=dlopen
  11185. lt_cv_dlopen_libs=
  11186. ;;
  11187. darwin*)
  11188. # if libdl is installed we need to link against it
  11189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11190. printf %s "checking for dlopen in -ldl... " >&6; }
  11191. if test ${ac_cv_lib_dl_dlopen+y}
  11192. then :
  11193. printf %s "(cached) " >&6
  11194. else $as_nop
  11195. ac_check_lib_save_LIBS=$LIBS
  11196. LIBS="-ldl $LIBS"
  11197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11198. /* end confdefs.h. */
  11199. /* Override any GCC internal prototype to avoid an error.
  11200. Use char because int might match the return type of a GCC
  11201. builtin and then its argument prototype would still apply. */
  11202. char dlopen ();
  11203. int
  11204. main (void)
  11205. {
  11206. return dlopen ();
  11207. ;
  11208. return 0;
  11209. }
  11210. _ACEOF
  11211. if ac_fn_c_try_link "$LINENO"
  11212. then :
  11213. ac_cv_lib_dl_dlopen=yes
  11214. else $as_nop
  11215. ac_cv_lib_dl_dlopen=no
  11216. fi
  11217. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11218. conftest$ac_exeext conftest.$ac_ext
  11219. LIBS=$ac_check_lib_save_LIBS
  11220. fi
  11221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11222. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11223. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11224. then :
  11225. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11226. else $as_nop
  11227. lt_cv_dlopen=dyld
  11228. lt_cv_dlopen_libs=
  11229. lt_cv_dlopen_self=yes
  11230. fi
  11231. ;;
  11232. tpf*)
  11233. # Don't try to run any link tests for TPF. We know it's impossible
  11234. # because TPF is a cross-compiler, and we know how we open DSOs.
  11235. lt_cv_dlopen=dlopen
  11236. lt_cv_dlopen_libs=
  11237. lt_cv_dlopen_self=no
  11238. ;;
  11239. *)
  11240. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11241. if test "x$ac_cv_func_shl_load" = xyes
  11242. then :
  11243. lt_cv_dlopen=shl_load
  11244. else $as_nop
  11245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11246. printf %s "checking for shl_load in -ldld... " >&6; }
  11247. if test ${ac_cv_lib_dld_shl_load+y}
  11248. then :
  11249. printf %s "(cached) " >&6
  11250. else $as_nop
  11251. ac_check_lib_save_LIBS=$LIBS
  11252. LIBS="-ldld $LIBS"
  11253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11254. /* end confdefs.h. */
  11255. /* Override any GCC internal prototype to avoid an error.
  11256. Use char because int might match the return type of a GCC
  11257. builtin and then its argument prototype would still apply. */
  11258. char shl_load ();
  11259. int
  11260. main (void)
  11261. {
  11262. return shl_load ();
  11263. ;
  11264. return 0;
  11265. }
  11266. _ACEOF
  11267. if ac_fn_c_try_link "$LINENO"
  11268. then :
  11269. ac_cv_lib_dld_shl_load=yes
  11270. else $as_nop
  11271. ac_cv_lib_dld_shl_load=no
  11272. fi
  11273. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11274. conftest$ac_exeext conftest.$ac_ext
  11275. LIBS=$ac_check_lib_save_LIBS
  11276. fi
  11277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11278. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  11279. if test "x$ac_cv_lib_dld_shl_load" = xyes
  11280. then :
  11281. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11282. else $as_nop
  11283. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11284. if test "x$ac_cv_func_dlopen" = xyes
  11285. then :
  11286. lt_cv_dlopen=dlopen
  11287. else $as_nop
  11288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11289. printf %s "checking for dlopen in -ldl... " >&6; }
  11290. if test ${ac_cv_lib_dl_dlopen+y}
  11291. then :
  11292. printf %s "(cached) " >&6
  11293. else $as_nop
  11294. ac_check_lib_save_LIBS=$LIBS
  11295. LIBS="-ldl $LIBS"
  11296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11297. /* end confdefs.h. */
  11298. /* Override any GCC internal prototype to avoid an error.
  11299. Use char because int might match the return type of a GCC
  11300. builtin and then its argument prototype would still apply. */
  11301. char dlopen ();
  11302. int
  11303. main (void)
  11304. {
  11305. return dlopen ();
  11306. ;
  11307. return 0;
  11308. }
  11309. _ACEOF
  11310. if ac_fn_c_try_link "$LINENO"
  11311. then :
  11312. ac_cv_lib_dl_dlopen=yes
  11313. else $as_nop
  11314. ac_cv_lib_dl_dlopen=no
  11315. fi
  11316. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11317. conftest$ac_exeext conftest.$ac_ext
  11318. LIBS=$ac_check_lib_save_LIBS
  11319. fi
  11320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11321. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11322. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11323. then :
  11324. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11325. else $as_nop
  11326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11327. printf %s "checking for dlopen in -lsvld... " >&6; }
  11328. if test ${ac_cv_lib_svld_dlopen+y}
  11329. then :
  11330. printf %s "(cached) " >&6
  11331. else $as_nop
  11332. ac_check_lib_save_LIBS=$LIBS
  11333. LIBS="-lsvld $LIBS"
  11334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11335. /* end confdefs.h. */
  11336. /* Override any GCC internal prototype to avoid an error.
  11337. Use char because int might match the return type of a GCC
  11338. builtin and then its argument prototype would still apply. */
  11339. char dlopen ();
  11340. int
  11341. main (void)
  11342. {
  11343. return dlopen ();
  11344. ;
  11345. return 0;
  11346. }
  11347. _ACEOF
  11348. if ac_fn_c_try_link "$LINENO"
  11349. then :
  11350. ac_cv_lib_svld_dlopen=yes
  11351. else $as_nop
  11352. ac_cv_lib_svld_dlopen=no
  11353. fi
  11354. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11355. conftest$ac_exeext conftest.$ac_ext
  11356. LIBS=$ac_check_lib_save_LIBS
  11357. fi
  11358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11359. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  11360. if test "x$ac_cv_lib_svld_dlopen" = xyes
  11361. then :
  11362. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11363. else $as_nop
  11364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11365. printf %s "checking for dld_link in -ldld... " >&6; }
  11366. if test ${ac_cv_lib_dld_dld_link+y}
  11367. then :
  11368. printf %s "(cached) " >&6
  11369. else $as_nop
  11370. ac_check_lib_save_LIBS=$LIBS
  11371. LIBS="-ldld $LIBS"
  11372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11373. /* end confdefs.h. */
  11374. /* Override any GCC internal prototype to avoid an error.
  11375. Use char because int might match the return type of a GCC
  11376. builtin and then its argument prototype would still apply. */
  11377. char dld_link ();
  11378. int
  11379. main (void)
  11380. {
  11381. return dld_link ();
  11382. ;
  11383. return 0;
  11384. }
  11385. _ACEOF
  11386. if ac_fn_c_try_link "$LINENO"
  11387. then :
  11388. ac_cv_lib_dld_dld_link=yes
  11389. else $as_nop
  11390. ac_cv_lib_dld_dld_link=no
  11391. fi
  11392. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11393. conftest$ac_exeext conftest.$ac_ext
  11394. LIBS=$ac_check_lib_save_LIBS
  11395. fi
  11396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11397. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  11398. if test "x$ac_cv_lib_dld_dld_link" = xyes
  11399. then :
  11400. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11401. fi
  11402. fi
  11403. fi
  11404. fi
  11405. fi
  11406. fi
  11407. ;;
  11408. esac
  11409. if test no = "$lt_cv_dlopen"; then
  11410. enable_dlopen=no
  11411. else
  11412. enable_dlopen=yes
  11413. fi
  11414. case $lt_cv_dlopen in
  11415. dlopen)
  11416. save_CPPFLAGS=$CPPFLAGS
  11417. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11418. save_LDFLAGS=$LDFLAGS
  11419. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11420. save_LIBS=$LIBS
  11421. LIBS="$lt_cv_dlopen_libs $LIBS"
  11422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11423. printf %s "checking whether a program can dlopen itself... " >&6; }
  11424. if test ${lt_cv_dlopen_self+y}
  11425. then :
  11426. printf %s "(cached) " >&6
  11427. else $as_nop
  11428. if test yes = "$cross_compiling"; then :
  11429. lt_cv_dlopen_self=cross
  11430. else
  11431. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11432. lt_status=$lt_dlunknown
  11433. cat > conftest.$ac_ext <<_LT_EOF
  11434. #line $LINENO "configure"
  11435. #include "confdefs.h"
  11436. #if HAVE_DLFCN_H
  11437. #include <dlfcn.h>
  11438. #endif
  11439. #include <stdio.h>
  11440. #ifdef RTLD_GLOBAL
  11441. # define LT_DLGLOBAL RTLD_GLOBAL
  11442. #else
  11443. # ifdef DL_GLOBAL
  11444. # define LT_DLGLOBAL DL_GLOBAL
  11445. # else
  11446. # define LT_DLGLOBAL 0
  11447. # endif
  11448. #endif
  11449. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11450. find out it does not work in some platform. */
  11451. #ifndef LT_DLLAZY_OR_NOW
  11452. # ifdef RTLD_LAZY
  11453. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11454. # else
  11455. # ifdef DL_LAZY
  11456. # define LT_DLLAZY_OR_NOW DL_LAZY
  11457. # else
  11458. # ifdef RTLD_NOW
  11459. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11460. # else
  11461. # ifdef DL_NOW
  11462. # define LT_DLLAZY_OR_NOW DL_NOW
  11463. # else
  11464. # define LT_DLLAZY_OR_NOW 0
  11465. # endif
  11466. # endif
  11467. # endif
  11468. # endif
  11469. #endif
  11470. /* When -fvisibility=hidden is used, assume the code has been annotated
  11471. correspondingly for the symbols needed. */
  11472. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11473. int fnord () __attribute__((visibility("default")));
  11474. #endif
  11475. int fnord () { return 42; }
  11476. int main ()
  11477. {
  11478. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11479. int status = $lt_dlunknown;
  11480. if (self)
  11481. {
  11482. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11483. else
  11484. {
  11485. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11486. else puts (dlerror ());
  11487. }
  11488. /* dlclose (self); */
  11489. }
  11490. else
  11491. puts (dlerror ());
  11492. return status;
  11493. }
  11494. _LT_EOF
  11495. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11496. (eval $ac_link) 2>&5
  11497. ac_status=$?
  11498. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11499. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11500. (./conftest; exit; ) >&5 2>/dev/null
  11501. lt_status=$?
  11502. case x$lt_status in
  11503. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11504. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11505. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11506. esac
  11507. else :
  11508. # compilation failed
  11509. lt_cv_dlopen_self=no
  11510. fi
  11511. fi
  11512. rm -fr conftest*
  11513. fi
  11514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11515. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  11516. if test yes = "$lt_cv_dlopen_self"; then
  11517. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11519. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  11520. if test ${lt_cv_dlopen_self_static+y}
  11521. then :
  11522. printf %s "(cached) " >&6
  11523. else $as_nop
  11524. if test yes = "$cross_compiling"; then :
  11525. lt_cv_dlopen_self_static=cross
  11526. else
  11527. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11528. lt_status=$lt_dlunknown
  11529. cat > conftest.$ac_ext <<_LT_EOF
  11530. #line $LINENO "configure"
  11531. #include "confdefs.h"
  11532. #if HAVE_DLFCN_H
  11533. #include <dlfcn.h>
  11534. #endif
  11535. #include <stdio.h>
  11536. #ifdef RTLD_GLOBAL
  11537. # define LT_DLGLOBAL RTLD_GLOBAL
  11538. #else
  11539. # ifdef DL_GLOBAL
  11540. # define LT_DLGLOBAL DL_GLOBAL
  11541. # else
  11542. # define LT_DLGLOBAL 0
  11543. # endif
  11544. #endif
  11545. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11546. find out it does not work in some platform. */
  11547. #ifndef LT_DLLAZY_OR_NOW
  11548. # ifdef RTLD_LAZY
  11549. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11550. # else
  11551. # ifdef DL_LAZY
  11552. # define LT_DLLAZY_OR_NOW DL_LAZY
  11553. # else
  11554. # ifdef RTLD_NOW
  11555. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11556. # else
  11557. # ifdef DL_NOW
  11558. # define LT_DLLAZY_OR_NOW DL_NOW
  11559. # else
  11560. # define LT_DLLAZY_OR_NOW 0
  11561. # endif
  11562. # endif
  11563. # endif
  11564. # endif
  11565. #endif
  11566. /* When -fvisibility=hidden is used, assume the code has been annotated
  11567. correspondingly for the symbols needed. */
  11568. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11569. int fnord () __attribute__((visibility("default")));
  11570. #endif
  11571. int fnord () { return 42; }
  11572. int main ()
  11573. {
  11574. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11575. int status = $lt_dlunknown;
  11576. if (self)
  11577. {
  11578. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11579. else
  11580. {
  11581. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11582. else puts (dlerror ());
  11583. }
  11584. /* dlclose (self); */
  11585. }
  11586. else
  11587. puts (dlerror ());
  11588. return status;
  11589. }
  11590. _LT_EOF
  11591. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11592. (eval $ac_link) 2>&5
  11593. ac_status=$?
  11594. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11595. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11596. (./conftest; exit; ) >&5 2>/dev/null
  11597. lt_status=$?
  11598. case x$lt_status in
  11599. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11600. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11601. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11602. esac
  11603. else :
  11604. # compilation failed
  11605. lt_cv_dlopen_self_static=no
  11606. fi
  11607. fi
  11608. rm -fr conftest*
  11609. fi
  11610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11611. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11612. fi
  11613. CPPFLAGS=$save_CPPFLAGS
  11614. LDFLAGS=$save_LDFLAGS
  11615. LIBS=$save_LIBS
  11616. ;;
  11617. esac
  11618. case $lt_cv_dlopen_self in
  11619. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11620. *) enable_dlopen_self=unknown ;;
  11621. esac
  11622. case $lt_cv_dlopen_self_static in
  11623. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11624. *) enable_dlopen_self_static=unknown ;;
  11625. esac
  11626. fi
  11627. striplib=
  11628. old_striplib=
  11629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11630. printf %s "checking whether stripping libraries is possible... " >&6; }
  11631. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11632. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11633. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11635. printf "%s\n" "yes" >&6; }
  11636. else
  11637. # FIXME - insert some real tests, host_os isn't really good enough
  11638. case $host_os in
  11639. darwin*)
  11640. if test -n "$STRIP"; then
  11641. striplib="$STRIP -x"
  11642. old_striplib="$STRIP -S"
  11643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11644. printf "%s\n" "yes" >&6; }
  11645. else
  11646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11647. printf "%s\n" "no" >&6; }
  11648. fi
  11649. ;;
  11650. *)
  11651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11652. printf "%s\n" "no" >&6; }
  11653. ;;
  11654. esac
  11655. fi
  11656. # Report what library types will actually be built
  11657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11658. printf %s "checking if libtool supports shared libraries... " >&6; }
  11659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11660. printf "%s\n" "$can_build_shared" >&6; }
  11661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11662. printf %s "checking whether to build shared libraries... " >&6; }
  11663. test no = "$can_build_shared" && enable_shared=no
  11664. # On AIX, shared libraries and static libraries use the same namespace, and
  11665. # are all built from PIC.
  11666. case $host_os in
  11667. aix3*)
  11668. test yes = "$enable_shared" && enable_static=no
  11669. if test -n "$RANLIB"; then
  11670. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11671. postinstall_cmds='$RANLIB $lib'
  11672. fi
  11673. ;;
  11674. aix[4-9]*)
  11675. if test ia64 != "$host_cpu"; then
  11676. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11677. yes,aix,yes) ;; # shared object as lib.so file only
  11678. yes,svr4,*) ;; # shared object as lib.so archive member only
  11679. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11680. esac
  11681. fi
  11682. ;;
  11683. esac
  11684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11685. printf "%s\n" "$enable_shared" >&6; }
  11686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11687. printf %s "checking whether to build static libraries... " >&6; }
  11688. # Make sure either enable_shared or enable_static is yes.
  11689. test yes = "$enable_shared" || enable_static=yes
  11690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11691. printf "%s\n" "$enable_static" >&6; }
  11692. fi
  11693. ac_ext=c
  11694. ac_cpp='$CPP $CPPFLAGS'
  11695. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11696. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11697. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11698. CC=$lt_save_CC
  11699. if test -n "$CXX" && ( test no != "$CXX" &&
  11700. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11701. (test g++ != "$CXX"))); then
  11702. ac_ext=cpp
  11703. ac_cpp='$CXXCPP $CPPFLAGS'
  11704. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11705. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11706. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11708. printf %s "checking how to run the C++ preprocessor... " >&6; }
  11709. if test -z "$CXXCPP"; then
  11710. if test ${ac_cv_prog_CXXCPP+y}
  11711. then :
  11712. printf %s "(cached) " >&6
  11713. else $as_nop
  11714. # Double quotes because $CXX needs to be expanded
  11715. for CXXCPP in "$CXX -E" cpp /lib/cpp
  11716. do
  11717. ac_preproc_ok=false
  11718. for ac_cxx_preproc_warn_flag in '' yes
  11719. do
  11720. # Use a header file that comes with gcc, so configuring glibc
  11721. # with a fresh cross-compiler works.
  11722. # On the NeXT, cc -E runs the code through the compiler's parser,
  11723. # not just through cpp. "Syntax error" is here to catch this case.
  11724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11725. /* end confdefs.h. */
  11726. #include <limits.h>
  11727. Syntax error
  11728. _ACEOF
  11729. if ac_fn_cxx_try_cpp "$LINENO"
  11730. then :
  11731. else $as_nop
  11732. # Broken: fails on valid input.
  11733. continue
  11734. fi
  11735. rm -f conftest.err conftest.i conftest.$ac_ext
  11736. # OK, works on sane cases. Now check whether nonexistent headers
  11737. # can be detected and how.
  11738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11739. /* end confdefs.h. */
  11740. #include <ac_nonexistent.h>
  11741. _ACEOF
  11742. if ac_fn_cxx_try_cpp "$LINENO"
  11743. then :
  11744. # Broken: success on invalid input.
  11745. continue
  11746. else $as_nop
  11747. # Passes both tests.
  11748. ac_preproc_ok=:
  11749. break
  11750. fi
  11751. rm -f conftest.err conftest.i conftest.$ac_ext
  11752. done
  11753. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11754. rm -f conftest.i conftest.err conftest.$ac_ext
  11755. if $ac_preproc_ok
  11756. then :
  11757. break
  11758. fi
  11759. done
  11760. ac_cv_prog_CXXCPP=$CXXCPP
  11761. fi
  11762. CXXCPP=$ac_cv_prog_CXXCPP
  11763. else
  11764. ac_cv_prog_CXXCPP=$CXXCPP
  11765. fi
  11766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11767. printf "%s\n" "$CXXCPP" >&6; }
  11768. ac_preproc_ok=false
  11769. for ac_cxx_preproc_warn_flag in '' yes
  11770. do
  11771. # Use a header file that comes with gcc, so configuring glibc
  11772. # with a fresh cross-compiler works.
  11773. # On the NeXT, cc -E runs the code through the compiler's parser,
  11774. # not just through cpp. "Syntax error" is here to catch this case.
  11775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11776. /* end confdefs.h. */
  11777. #include <limits.h>
  11778. Syntax error
  11779. _ACEOF
  11780. if ac_fn_cxx_try_cpp "$LINENO"
  11781. then :
  11782. else $as_nop
  11783. # Broken: fails on valid input.
  11784. continue
  11785. fi
  11786. rm -f conftest.err conftest.i conftest.$ac_ext
  11787. # OK, works on sane cases. Now check whether nonexistent headers
  11788. # can be detected and how.
  11789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11790. /* end confdefs.h. */
  11791. #include <ac_nonexistent.h>
  11792. _ACEOF
  11793. if ac_fn_cxx_try_cpp "$LINENO"
  11794. then :
  11795. # Broken: success on invalid input.
  11796. continue
  11797. else $as_nop
  11798. # Passes both tests.
  11799. ac_preproc_ok=:
  11800. break
  11801. fi
  11802. rm -f conftest.err conftest.i conftest.$ac_ext
  11803. done
  11804. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11805. rm -f conftest.i conftest.err conftest.$ac_ext
  11806. if $ac_preproc_ok
  11807. then :
  11808. else $as_nop
  11809. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11810. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11811. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11812. See \`config.log' for more details" "$LINENO" 5; }
  11813. fi
  11814. ac_ext=c
  11815. ac_cpp='$CPP $CPPFLAGS'
  11816. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11817. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11818. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11819. else
  11820. _lt_caught_CXX_error=yes
  11821. fi
  11822. ac_ext=cpp
  11823. ac_cpp='$CXXCPP $CPPFLAGS'
  11824. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11825. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11826. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11827. archive_cmds_need_lc_CXX=no
  11828. allow_undefined_flag_CXX=
  11829. always_export_symbols_CXX=no
  11830. archive_expsym_cmds_CXX=
  11831. compiler_needs_object_CXX=no
  11832. export_dynamic_flag_spec_CXX=
  11833. hardcode_direct_CXX=no
  11834. hardcode_direct_absolute_CXX=no
  11835. hardcode_libdir_flag_spec_CXX=
  11836. hardcode_libdir_separator_CXX=
  11837. hardcode_minus_L_CXX=no
  11838. hardcode_shlibpath_var_CXX=unsupported
  11839. hardcode_automatic_CXX=no
  11840. inherit_rpath_CXX=no
  11841. module_cmds_CXX=
  11842. module_expsym_cmds_CXX=
  11843. link_all_deplibs_CXX=unknown
  11844. old_archive_cmds_CXX=$old_archive_cmds
  11845. reload_flag_CXX=$reload_flag
  11846. reload_cmds_CXX=$reload_cmds
  11847. no_undefined_flag_CXX=
  11848. whole_archive_flag_spec_CXX=
  11849. enable_shared_with_static_runtimes_CXX=no
  11850. # Source file extension for C++ test sources.
  11851. ac_ext=cpp
  11852. # Object file extension for compiled C++ test sources.
  11853. objext=o
  11854. objext_CXX=$objext
  11855. # No sense in running all these tests if we already determined that
  11856. # the CXX compiler isn't working. Some variables (like enable_shared)
  11857. # are currently assumed to apply to all compilers on this platform,
  11858. # and will be corrupted by setting them based on a non-working compiler.
  11859. if test yes != "$_lt_caught_CXX_error"; then
  11860. # Code to be used in simple compile tests
  11861. lt_simple_compile_test_code="int some_variable = 0;"
  11862. # Code to be used in simple link tests
  11863. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11864. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11865. # If no C compiler was specified, use CC.
  11866. LTCC=${LTCC-"$CC"}
  11867. # If no C compiler flags were specified, use CFLAGS.
  11868. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11869. # Allow CC to be a program name with arguments.
  11870. compiler=$CC
  11871. # save warnings/boilerplate of simple test code
  11872. ac_outfile=conftest.$ac_objext
  11873. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11874. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11875. _lt_compiler_boilerplate=`cat conftest.err`
  11876. $RM conftest*
  11877. ac_outfile=conftest.$ac_objext
  11878. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11879. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11880. _lt_linker_boilerplate=`cat conftest.err`
  11881. $RM -r conftest*
  11882. # Allow CC to be a program name with arguments.
  11883. lt_save_CC=$CC
  11884. lt_save_CFLAGS=$CFLAGS
  11885. lt_save_LD=$LD
  11886. lt_save_GCC=$GCC
  11887. GCC=$GXX
  11888. lt_save_with_gnu_ld=$with_gnu_ld
  11889. lt_save_path_LD=$lt_cv_path_LD
  11890. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11891. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11892. else
  11893. $as_unset lt_cv_prog_gnu_ld
  11894. fi
  11895. if test -n "${lt_cv_path_LDCXX+set}"; then
  11896. lt_cv_path_LD=$lt_cv_path_LDCXX
  11897. else
  11898. $as_unset lt_cv_path_LD
  11899. fi
  11900. test -z "${LDCXX+set}" || LD=$LDCXX
  11901. CC=${CXX-"c++"}
  11902. CFLAGS=$CXXFLAGS
  11903. compiler=$CC
  11904. compiler_CXX=$CC
  11905. func_cc_basename $compiler
  11906. cc_basename=$func_cc_basename_result
  11907. if test -n "$compiler"; then
  11908. # We don't want -fno-exception when compiling C++ code, so set the
  11909. # no_builtin_flag separately
  11910. if test yes = "$GXX"; then
  11911. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11912. else
  11913. lt_prog_compiler_no_builtin_flag_CXX=
  11914. fi
  11915. if test yes = "$GXX"; then
  11916. # Set up default GNU C++ configuration
  11917. # Check whether --with-gnu-ld was given.
  11918. if test ${with_gnu_ld+y}
  11919. then :
  11920. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11921. else $as_nop
  11922. with_gnu_ld=no
  11923. fi
  11924. ac_prog=ld
  11925. if test yes = "$GCC"; then
  11926. # Check if gcc -print-prog-name=ld gives a path.
  11927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11928. printf %s "checking for ld used by $CC... " >&6; }
  11929. case $host in
  11930. *-*-mingw*)
  11931. # gcc leaves a trailing carriage return, which upsets mingw
  11932. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11933. *)
  11934. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11935. esac
  11936. case $ac_prog in
  11937. # Accept absolute paths.
  11938. [\\/]* | ?:[\\/]*)
  11939. re_direlt='/[^/][^/]*/\.\./'
  11940. # Canonicalize the pathname of ld
  11941. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11942. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11943. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11944. done
  11945. test -z "$LD" && LD=$ac_prog
  11946. ;;
  11947. "")
  11948. # If it fails, then pretend we aren't using GCC.
  11949. ac_prog=ld
  11950. ;;
  11951. *)
  11952. # If it is relative, then search for the first ld in PATH.
  11953. with_gnu_ld=unknown
  11954. ;;
  11955. esac
  11956. elif test yes = "$with_gnu_ld"; then
  11957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11958. printf %s "checking for GNU ld... " >&6; }
  11959. else
  11960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11961. printf %s "checking for non-GNU ld... " >&6; }
  11962. fi
  11963. if test ${lt_cv_path_LD+y}
  11964. then :
  11965. printf %s "(cached) " >&6
  11966. else $as_nop
  11967. if test -z "$LD"; then
  11968. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11969. for ac_dir in $PATH; do
  11970. IFS=$lt_save_ifs
  11971. test -z "$ac_dir" && ac_dir=.
  11972. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11973. lt_cv_path_LD=$ac_dir/$ac_prog
  11974. # Check to see if the program is GNU ld. I'd rather use --version,
  11975. # but apparently some variants of GNU ld only accept -v.
  11976. # Break only if it was the GNU/non-GNU ld that we prefer.
  11977. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11978. *GNU* | *'with BFD'*)
  11979. test no != "$with_gnu_ld" && break
  11980. ;;
  11981. *)
  11982. test yes != "$with_gnu_ld" && break
  11983. ;;
  11984. esac
  11985. fi
  11986. done
  11987. IFS=$lt_save_ifs
  11988. else
  11989. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11990. fi
  11991. fi
  11992. LD=$lt_cv_path_LD
  11993. if test -n "$LD"; then
  11994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11995. printf "%s\n" "$LD" >&6; }
  11996. else
  11997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11998. printf "%s\n" "no" >&6; }
  11999. fi
  12000. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12002. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12003. if test ${lt_cv_prog_gnu_ld+y}
  12004. then :
  12005. printf %s "(cached) " >&6
  12006. else $as_nop
  12007. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12008. case `$LD -v 2>&1 </dev/null` in
  12009. *GNU* | *'with BFD'*)
  12010. lt_cv_prog_gnu_ld=yes
  12011. ;;
  12012. *)
  12013. lt_cv_prog_gnu_ld=no
  12014. ;;
  12015. esac
  12016. fi
  12017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12018. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12019. with_gnu_ld=$lt_cv_prog_gnu_ld
  12020. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12021. # archiving commands below assume that GNU ld is being used.
  12022. if test yes = "$with_gnu_ld"; then
  12023. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12024. 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'
  12025. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12026. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12027. # If archive_cmds runs LD, not CC, wlarc should be empty
  12028. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12029. # investigate it a little bit more. (MM)
  12030. wlarc='$wl'
  12031. # ancient GNU ld didn't support --whole-archive et. al.
  12032. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12033. $GREP 'no-whole-archive' > /dev/null; then
  12034. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12035. else
  12036. whole_archive_flag_spec_CXX=
  12037. fi
  12038. else
  12039. with_gnu_ld=no
  12040. wlarc=
  12041. # A generic and very simple default shared library creation
  12042. # command for GNU C++ for the case where it uses the native
  12043. # linker, instead of GNU ld. If possible, this setting should
  12044. # overridden to take advantage of the native linker features on
  12045. # the platform it is being used on.
  12046. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12047. fi
  12048. # Commands to make compiler produce verbose output that lists
  12049. # what "hidden" libraries, object files and flags are used when
  12050. # linking a shared library.
  12051. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12052. else
  12053. GXX=no
  12054. with_gnu_ld=no
  12055. wlarc=
  12056. fi
  12057. # PORTME: fill in a description of your system's C++ link characteristics
  12058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12059. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12060. ld_shlibs_CXX=yes
  12061. case $host_os in
  12062. aix3*)
  12063. # FIXME: insert proper C++ library support
  12064. ld_shlibs_CXX=no
  12065. ;;
  12066. aix[4-9]*)
  12067. if test ia64 = "$host_cpu"; then
  12068. # On IA64, the linker does run time linking by default, so we don't
  12069. # have to do anything special.
  12070. aix_use_runtimelinking=no
  12071. exp_sym_flag='-Bexport'
  12072. no_entry_flag=
  12073. else
  12074. aix_use_runtimelinking=no
  12075. # Test if we are trying to use run time linking or normal
  12076. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12077. # have runtime linking enabled, and use it for executables.
  12078. # For shared libraries, we enable/disable runtime linking
  12079. # depending on the kind of the shared library created -
  12080. # when "with_aix_soname,aix_use_runtimelinking" is:
  12081. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12082. # "aix,yes" lib.so shared, rtl:yes, for executables
  12083. # lib.a static archive
  12084. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12085. # lib.a(lib.so.V) shared, rtl:no, for executables
  12086. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12087. # lib.a(lib.so.V) shared, rtl:no
  12088. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12089. # lib.a static archive
  12090. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12091. for ld_flag in $LDFLAGS; do
  12092. case $ld_flag in
  12093. *-brtl*)
  12094. aix_use_runtimelinking=yes
  12095. break
  12096. ;;
  12097. esac
  12098. done
  12099. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12100. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12101. # so we don't have lib.a shared libs to link our executables.
  12102. # We have to force runtime linking in this case.
  12103. aix_use_runtimelinking=yes
  12104. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12105. fi
  12106. ;;
  12107. esac
  12108. exp_sym_flag='-bexport'
  12109. no_entry_flag='-bnoentry'
  12110. fi
  12111. # When large executables or shared objects are built, AIX ld can
  12112. # have problems creating the table of contents. If linking a library
  12113. # or program results in "error TOC overflow" add -mminimal-toc to
  12114. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12115. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12116. archive_cmds_CXX=''
  12117. hardcode_direct_CXX=yes
  12118. hardcode_direct_absolute_CXX=yes
  12119. hardcode_libdir_separator_CXX=':'
  12120. link_all_deplibs_CXX=yes
  12121. file_list_spec_CXX='$wl-f,'
  12122. case $with_aix_soname,$aix_use_runtimelinking in
  12123. aix,*) ;; # no import file
  12124. svr4,* | *,yes) # use import file
  12125. # The Import File defines what to hardcode.
  12126. hardcode_direct_CXX=no
  12127. hardcode_direct_absolute_CXX=no
  12128. ;;
  12129. esac
  12130. if test yes = "$GXX"; then
  12131. case $host_os in aix4.[012]|aix4.[012].*)
  12132. # We only want to do this on AIX 4.2 and lower, the check
  12133. # below for broken collect2 doesn't work under 4.3+
  12134. collect2name=`$CC -print-prog-name=collect2`
  12135. if test -f "$collect2name" &&
  12136. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12137. then
  12138. # We have reworked collect2
  12139. :
  12140. else
  12141. # We have old collect2
  12142. hardcode_direct_CXX=unsupported
  12143. # It fails to find uninstalled libraries when the uninstalled
  12144. # path is not listed in the libpath. Setting hardcode_minus_L
  12145. # to unsupported forces relinking
  12146. hardcode_minus_L_CXX=yes
  12147. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12148. hardcode_libdir_separator_CXX=
  12149. fi
  12150. esac
  12151. shared_flag='-shared'
  12152. if test yes = "$aix_use_runtimelinking"; then
  12153. shared_flag=$shared_flag' $wl-G'
  12154. fi
  12155. # Need to ensure runtime linking is disabled for the traditional
  12156. # shared library, or the linker may eventually find shared libraries
  12157. # /with/ Import File - we do not want to mix them.
  12158. shared_flag_aix='-shared'
  12159. shared_flag_svr4='-shared $wl-G'
  12160. else
  12161. # not using gcc
  12162. if test ia64 = "$host_cpu"; then
  12163. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12164. # chokes on -Wl,-G. The following line is correct:
  12165. shared_flag='-G'
  12166. else
  12167. if test yes = "$aix_use_runtimelinking"; then
  12168. shared_flag='$wl-G'
  12169. else
  12170. shared_flag='$wl-bM:SRE'
  12171. fi
  12172. shared_flag_aix='$wl-bM:SRE'
  12173. shared_flag_svr4='$wl-G'
  12174. fi
  12175. fi
  12176. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12177. # It seems that -bexpall does not export symbols beginning with
  12178. # underscore (_), so it is better to generate a list of symbols to
  12179. # export.
  12180. always_export_symbols_CXX=yes
  12181. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12182. # Warning - without using the other runtime loading flags (-brtl),
  12183. # -berok will link without error, but may produce a broken library.
  12184. # The "-G" linker flag allows undefined symbols.
  12185. no_undefined_flag_CXX='-bernotok'
  12186. # Determine the default libpath from the value encoded in an empty
  12187. # executable.
  12188. if test set = "${lt_cv_aix_libpath+set}"; then
  12189. aix_libpath=$lt_cv_aix_libpath
  12190. else
  12191. if test ${lt_cv_aix_libpath__CXX+y}
  12192. then :
  12193. printf %s "(cached) " >&6
  12194. else $as_nop
  12195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12196. /* end confdefs.h. */
  12197. int
  12198. main (void)
  12199. {
  12200. ;
  12201. return 0;
  12202. }
  12203. _ACEOF
  12204. if ac_fn_cxx_try_link "$LINENO"
  12205. then :
  12206. lt_aix_libpath_sed='
  12207. /Import File Strings/,/^$/ {
  12208. /^0/ {
  12209. s/^0 *\([^ ]*\) *$/\1/
  12210. p
  12211. }
  12212. }'
  12213. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12214. # Check for a 64-bit object if we didn't find anything.
  12215. if test -z "$lt_cv_aix_libpath__CXX"; then
  12216. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12217. fi
  12218. fi
  12219. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12220. conftest$ac_exeext conftest.$ac_ext
  12221. if test -z "$lt_cv_aix_libpath__CXX"; then
  12222. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12223. fi
  12224. fi
  12225. aix_libpath=$lt_cv_aix_libpath__CXX
  12226. fi
  12227. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12228. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  12229. else
  12230. if test ia64 = "$host_cpu"; then
  12231. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12232. allow_undefined_flag_CXX="-z nodefs"
  12233. 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"
  12234. else
  12235. # Determine the default libpath from the value encoded in an
  12236. # empty executable.
  12237. if test set = "${lt_cv_aix_libpath+set}"; then
  12238. aix_libpath=$lt_cv_aix_libpath
  12239. else
  12240. if test ${lt_cv_aix_libpath__CXX+y}
  12241. then :
  12242. printf %s "(cached) " >&6
  12243. else $as_nop
  12244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12245. /* end confdefs.h. */
  12246. int
  12247. main (void)
  12248. {
  12249. ;
  12250. return 0;
  12251. }
  12252. _ACEOF
  12253. if ac_fn_cxx_try_link "$LINENO"
  12254. then :
  12255. lt_aix_libpath_sed='
  12256. /Import File Strings/,/^$/ {
  12257. /^0/ {
  12258. s/^0 *\([^ ]*\) *$/\1/
  12259. p
  12260. }
  12261. }'
  12262. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12263. # Check for a 64-bit object if we didn't find anything.
  12264. if test -z "$lt_cv_aix_libpath__CXX"; then
  12265. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12266. fi
  12267. fi
  12268. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12269. conftest$ac_exeext conftest.$ac_ext
  12270. if test -z "$lt_cv_aix_libpath__CXX"; then
  12271. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12272. fi
  12273. fi
  12274. aix_libpath=$lt_cv_aix_libpath__CXX
  12275. fi
  12276. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12277. # Warning - without using the other run time loading flags,
  12278. # -berok will link without error, but may produce a broken library.
  12279. no_undefined_flag_CXX=' $wl-bernotok'
  12280. allow_undefined_flag_CXX=' $wl-berok'
  12281. if test yes = "$with_gnu_ld"; then
  12282. # We only use this code for GNU lds that support --whole-archive.
  12283. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12284. else
  12285. # Exported symbols can be pulled into shared objects from archives
  12286. whole_archive_flag_spec_CXX='$convenience'
  12287. fi
  12288. archive_cmds_need_lc_CXX=yes
  12289. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12290. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12291. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12292. if test svr4 != "$with_aix_soname"; then
  12293. # This is similar to how AIX traditionally builds its shared
  12294. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12295. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  12296. fi
  12297. if test aix != "$with_aix_soname"; then
  12298. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  12299. else
  12300. # used by -dlpreopen to get the symbols
  12301. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12302. fi
  12303. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12304. fi
  12305. fi
  12306. ;;
  12307. beos*)
  12308. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12309. allow_undefined_flag_CXX=unsupported
  12310. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12311. # support --undefined. This deserves some investigation. FIXME
  12312. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12313. else
  12314. ld_shlibs_CXX=no
  12315. fi
  12316. ;;
  12317. chorus*)
  12318. case $cc_basename in
  12319. *)
  12320. # FIXME: insert proper C++ library support
  12321. ld_shlibs_CXX=no
  12322. ;;
  12323. esac
  12324. ;;
  12325. cygwin* | mingw* | pw32* | cegcc*)
  12326. case $GXX,$cc_basename in
  12327. ,cl* | no,cl*)
  12328. # Native MSVC
  12329. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12330. # no search path for DLLs.
  12331. hardcode_libdir_flag_spec_CXX=' '
  12332. allow_undefined_flag_CXX=unsupported
  12333. always_export_symbols_CXX=yes
  12334. file_list_spec_CXX='@'
  12335. # Tell ltmain to make .lib files, not .a files.
  12336. libext=lib
  12337. # Tell ltmain to make .dll files, not .so files.
  12338. shrext_cmds=.dll
  12339. # FIXME: Setting linknames here is a bad hack.
  12340. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12341. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12342. cp "$export_symbols" "$output_objdir/$soname.def";
  12343. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12344. else
  12345. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12346. fi~
  12347. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12348. linknames='
  12349. # The linker will not automatically build a static lib if we build a DLL.
  12350. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12351. enable_shared_with_static_runtimes_CXX=yes
  12352. # Don't use ranlib
  12353. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12354. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12355. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12356. case $lt_outputfile in
  12357. *.exe|*.EXE) ;;
  12358. *)
  12359. lt_outputfile=$lt_outputfile.exe
  12360. lt_tool_outputfile=$lt_tool_outputfile.exe
  12361. ;;
  12362. esac~
  12363. func_to_tool_file "$lt_outputfile"~
  12364. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12365. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12366. $RM "$lt_outputfile.manifest";
  12367. fi'
  12368. ;;
  12369. *)
  12370. # g++
  12371. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12372. # as there is no search path for DLLs.
  12373. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12374. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  12375. allow_undefined_flag_CXX=unsupported
  12376. always_export_symbols_CXX=no
  12377. enable_shared_with_static_runtimes_CXX=yes
  12378. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12379. 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'
  12380. # If the export-symbols file already is a .def file, use it as
  12381. # is; otherwise, prepend EXPORTS...
  12382. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12383. cp $export_symbols $output_objdir/$soname.def;
  12384. else
  12385. echo EXPORTS > $output_objdir/$soname.def;
  12386. cat $export_symbols >> $output_objdir/$soname.def;
  12387. fi~
  12388. $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'
  12389. else
  12390. ld_shlibs_CXX=no
  12391. fi
  12392. ;;
  12393. esac
  12394. ;;
  12395. darwin* | rhapsody*)
  12396. archive_cmds_need_lc_CXX=no
  12397. hardcode_direct_CXX=no
  12398. hardcode_automatic_CXX=yes
  12399. hardcode_shlibpath_var_CXX=unsupported
  12400. if test yes = "$lt_cv_ld_force_load"; then
  12401. 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\"`'
  12402. else
  12403. whole_archive_flag_spec_CXX=''
  12404. fi
  12405. link_all_deplibs_CXX=yes
  12406. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  12407. case $cc_basename in
  12408. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  12409. *) _lt_dar_can_shared=$GCC ;;
  12410. esac
  12411. if test yes = "$_lt_dar_can_shared"; then
  12412. output_verbose_link_cmd=func_echo_all
  12413. 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"
  12414. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12415. 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"
  12416. 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"
  12417. if test yes != "$lt_cv_apple_cc_single_mod"; then
  12418. 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"
  12419. 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"
  12420. fi
  12421. else
  12422. ld_shlibs_CXX=no
  12423. fi
  12424. ;;
  12425. os2*)
  12426. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12427. hardcode_minus_L_CXX=yes
  12428. allow_undefined_flag_CXX=unsupported
  12429. shrext_cmds=.dll
  12430. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12431. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12432. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12433. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12434. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12435. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12436. emximp -o $lib $output_objdir/$libname.def'
  12437. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12438. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12439. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12440. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12441. prefix_cmds="$SED"~
  12442. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12443. prefix_cmds="$prefix_cmds -e 1d";
  12444. fi~
  12445. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12446. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12447. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12448. emximp -o $lib $output_objdir/$libname.def'
  12449. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12450. enable_shared_with_static_runtimes_CXX=yes
  12451. ;;
  12452. dgux*)
  12453. case $cc_basename in
  12454. ec++*)
  12455. # FIXME: insert proper C++ library support
  12456. ld_shlibs_CXX=no
  12457. ;;
  12458. ghcx*)
  12459. # Green Hills C++ Compiler
  12460. # FIXME: insert proper C++ library support
  12461. ld_shlibs_CXX=no
  12462. ;;
  12463. *)
  12464. # FIXME: insert proper C++ library support
  12465. ld_shlibs_CXX=no
  12466. ;;
  12467. esac
  12468. ;;
  12469. freebsd2.*)
  12470. # C++ shared libraries reported to be fairly broken before
  12471. # switch to ELF
  12472. ld_shlibs_CXX=no
  12473. ;;
  12474. freebsd-elf*)
  12475. archive_cmds_need_lc_CXX=no
  12476. ;;
  12477. freebsd* | dragonfly*)
  12478. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12479. # conventions
  12480. ld_shlibs_CXX=yes
  12481. ;;
  12482. haiku*)
  12483. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12484. link_all_deplibs_CXX=yes
  12485. ;;
  12486. hpux9*)
  12487. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12488. hardcode_libdir_separator_CXX=:
  12489. export_dynamic_flag_spec_CXX='$wl-E'
  12490. hardcode_direct_CXX=yes
  12491. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12492. # but as the default
  12493. # location of the library.
  12494. case $cc_basename in
  12495. CC*)
  12496. # FIXME: insert proper C++ library support
  12497. ld_shlibs_CXX=no
  12498. ;;
  12499. aCC*)
  12500. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12501. # Commands to make compiler produce verbose output that lists
  12502. # what "hidden" libraries, object files and flags are used when
  12503. # linking a shared library.
  12504. #
  12505. # There doesn't appear to be a way to prevent this compiler from
  12506. # explicitly linking system object files so we need to strip them
  12507. # from the output so that they don't get included in the library
  12508. # dependencies.
  12509. 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"'
  12510. ;;
  12511. *)
  12512. if test yes = "$GXX"; then
  12513. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12514. else
  12515. # FIXME: insert proper C++ library support
  12516. ld_shlibs_CXX=no
  12517. fi
  12518. ;;
  12519. esac
  12520. ;;
  12521. hpux10*|hpux11*)
  12522. if test no = "$with_gnu_ld"; then
  12523. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12524. hardcode_libdir_separator_CXX=:
  12525. case $host_cpu in
  12526. hppa*64*|ia64*)
  12527. ;;
  12528. *)
  12529. export_dynamic_flag_spec_CXX='$wl-E'
  12530. ;;
  12531. esac
  12532. fi
  12533. case $host_cpu in
  12534. hppa*64*|ia64*)
  12535. hardcode_direct_CXX=no
  12536. hardcode_shlibpath_var_CXX=no
  12537. ;;
  12538. *)
  12539. hardcode_direct_CXX=yes
  12540. hardcode_direct_absolute_CXX=yes
  12541. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12542. # but as the default
  12543. # location of the library.
  12544. ;;
  12545. esac
  12546. case $cc_basename in
  12547. CC*)
  12548. # FIXME: insert proper C++ library support
  12549. ld_shlibs_CXX=no
  12550. ;;
  12551. aCC*)
  12552. case $host_cpu in
  12553. hppa*64*)
  12554. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12555. ;;
  12556. ia64*)
  12557. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12558. ;;
  12559. *)
  12560. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12561. ;;
  12562. esac
  12563. # Commands to make compiler produce verbose output that lists
  12564. # what "hidden" libraries, object files and flags are used when
  12565. # linking a shared library.
  12566. #
  12567. # There doesn't appear to be a way to prevent this compiler from
  12568. # explicitly linking system object files so we need to strip them
  12569. # from the output so that they don't get included in the library
  12570. # dependencies.
  12571. 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"'
  12572. ;;
  12573. *)
  12574. if test yes = "$GXX"; then
  12575. if test no = "$with_gnu_ld"; then
  12576. case $host_cpu in
  12577. hppa*64*)
  12578. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12579. ;;
  12580. ia64*)
  12581. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12582. ;;
  12583. *)
  12584. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12585. ;;
  12586. esac
  12587. fi
  12588. else
  12589. # FIXME: insert proper C++ library support
  12590. ld_shlibs_CXX=no
  12591. fi
  12592. ;;
  12593. esac
  12594. ;;
  12595. interix[3-9]*)
  12596. hardcode_direct_CXX=no
  12597. hardcode_shlibpath_var_CXX=no
  12598. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12599. export_dynamic_flag_spec_CXX='$wl-E'
  12600. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12601. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12602. # default) and relocated if they conflict, which is a slow very memory
  12603. # consuming and fragmenting process. To avoid this, we pick a random,
  12604. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12605. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12606. 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'
  12607. 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'
  12608. ;;
  12609. irix5* | irix6*)
  12610. case $cc_basename in
  12611. CC*)
  12612. # SGI C++
  12613. 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'
  12614. # Archives containing C++ object files must be created using
  12615. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12616. # necessary to make sure instantiated templates are included
  12617. # in the archive.
  12618. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12619. ;;
  12620. *)
  12621. if test yes = "$GXX"; then
  12622. if test no = "$with_gnu_ld"; then
  12623. archive_cmds_CXX='$CC -shared $pic_flag -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'
  12624. else
  12625. archive_cmds_CXX='$CC -shared $pic_flag -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'
  12626. fi
  12627. fi
  12628. link_all_deplibs_CXX=yes
  12629. ;;
  12630. esac
  12631. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12632. hardcode_libdir_separator_CXX=:
  12633. inherit_rpath_CXX=yes
  12634. ;;
  12635. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12636. case $cc_basename in
  12637. KCC*)
  12638. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12639. # KCC will only create a shared library if the output file
  12640. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12641. # to its proper name (with version) after linking.
  12642. 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'
  12643. 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'
  12644. # Commands to make compiler produce verbose output that lists
  12645. # what "hidden" libraries, object files and flags are used when
  12646. # linking a shared library.
  12647. #
  12648. # There doesn't appear to be a way to prevent this compiler from
  12649. # explicitly linking system object files so we need to strip them
  12650. # from the output so that they don't get included in the library
  12651. # dependencies.
  12652. 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"'
  12653. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12654. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12655. # Archives containing C++ object files must be created using
  12656. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12657. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12658. ;;
  12659. icpc* | ecpc* )
  12660. # Intel C++
  12661. with_gnu_ld=yes
  12662. # version 8.0 and above of icpc choke on multiply defined symbols
  12663. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12664. # earlier do not add the objects themselves.
  12665. case `$CC -V 2>&1` in
  12666. *"Version 7."*)
  12667. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12668. 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'
  12669. ;;
  12670. *) # Version 8.0 or newer
  12671. tmp_idyn=
  12672. case $host_cpu in
  12673. ia64*) tmp_idyn=' -i_dynamic';;
  12674. esac
  12675. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12676. 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'
  12677. ;;
  12678. esac
  12679. archive_cmds_need_lc_CXX=no
  12680. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12681. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12682. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12683. ;;
  12684. pgCC* | pgcpp*)
  12685. # Portland Group C++ compiler
  12686. case `$CC -V` in
  12687. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12688. prelink_cmds_CXX='tpldir=Template.dir~
  12689. rm -rf $tpldir~
  12690. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12691. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12692. old_archive_cmds_CXX='tpldir=Template.dir~
  12693. rm -rf $tpldir~
  12694. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12695. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12696. $RANLIB $oldlib'
  12697. archive_cmds_CXX='tpldir=Template.dir~
  12698. rm -rf $tpldir~
  12699. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12700. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12701. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12702. rm -rf $tpldir~
  12703. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12704. $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'
  12705. ;;
  12706. *) # Version 6 and above use weak symbols
  12707. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12708. 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'
  12709. ;;
  12710. esac
  12711. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12712. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12713. 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'
  12714. ;;
  12715. cxx*)
  12716. # Compaq C++
  12717. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12718. 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'
  12719. runpath_var=LD_RUN_PATH
  12720. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12721. hardcode_libdir_separator_CXX=:
  12722. # Commands to make compiler produce verbose output that lists
  12723. # what "hidden" libraries, object files and flags are used when
  12724. # linking a shared library.
  12725. #
  12726. # There doesn't appear to be a way to prevent this compiler from
  12727. # explicitly linking system object files so we need to strip them
  12728. # from the output so that they don't get included in the library
  12729. # dependencies.
  12730. 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'
  12731. ;;
  12732. xl* | mpixl* | bgxl*)
  12733. # IBM XL 8.0 on PPC, with GNU ld
  12734. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12735. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12736. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12737. if test yes = "$supports_anon_versioning"; then
  12738. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12739. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12740. echo "local: *; };" >> $output_objdir/$libname.ver~
  12741. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12742. fi
  12743. ;;
  12744. *)
  12745. case `$CC -V 2>&1 | sed 5q` in
  12746. *Sun\ C*)
  12747. # Sun C++ 5.9
  12748. no_undefined_flag_CXX=' -zdefs'
  12749. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12750. 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'
  12751. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12752. 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'
  12753. compiler_needs_object_CXX=yes
  12754. # Not sure whether something based on
  12755. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12756. # would be better.
  12757. output_verbose_link_cmd='func_echo_all'
  12758. # Archives containing C++ object files must be created using
  12759. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12760. # necessary to make sure instantiated templates are included
  12761. # in the archive.
  12762. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12763. ;;
  12764. esac
  12765. ;;
  12766. esac
  12767. ;;
  12768. lynxos*)
  12769. # FIXME: insert proper C++ library support
  12770. ld_shlibs_CXX=no
  12771. ;;
  12772. m88k*)
  12773. # FIXME: insert proper C++ library support
  12774. ld_shlibs_CXX=no
  12775. ;;
  12776. mvs*)
  12777. case $cc_basename in
  12778. cxx*)
  12779. # FIXME: insert proper C++ library support
  12780. ld_shlibs_CXX=no
  12781. ;;
  12782. *)
  12783. # FIXME: insert proper C++ library support
  12784. ld_shlibs_CXX=no
  12785. ;;
  12786. esac
  12787. ;;
  12788. netbsd*)
  12789. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12790. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12791. wlarc=
  12792. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12793. hardcode_direct_CXX=yes
  12794. hardcode_shlibpath_var_CXX=no
  12795. fi
  12796. # Workaround some broken pre-1.5 toolchains
  12797. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12798. ;;
  12799. *nto* | *qnx*)
  12800. ld_shlibs_CXX=yes
  12801. ;;
  12802. openbsd* | bitrig*)
  12803. if test -f /usr/libexec/ld.so; then
  12804. hardcode_direct_CXX=yes
  12805. hardcode_shlibpath_var_CXX=no
  12806. hardcode_direct_absolute_CXX=yes
  12807. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12808. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12809. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12810. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12811. export_dynamic_flag_spec_CXX='$wl-E'
  12812. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12813. fi
  12814. output_verbose_link_cmd=func_echo_all
  12815. else
  12816. ld_shlibs_CXX=no
  12817. fi
  12818. ;;
  12819. osf3* | osf4* | osf5*)
  12820. case $cc_basename in
  12821. KCC*)
  12822. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12823. # KCC will only create a shared library if the output file
  12824. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12825. # to its proper name (with version) after linking.
  12826. 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'
  12827. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12828. hardcode_libdir_separator_CXX=:
  12829. # Archives containing C++ object files must be created using
  12830. # the KAI C++ compiler.
  12831. case $host in
  12832. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12833. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12834. esac
  12835. ;;
  12836. RCC*)
  12837. # Rational C++ 2.4.1
  12838. # FIXME: insert proper C++ library support
  12839. ld_shlibs_CXX=no
  12840. ;;
  12841. cxx*)
  12842. case $host in
  12843. osf3*)
  12844. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12845. 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'
  12846. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12847. ;;
  12848. *)
  12849. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12850. 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'
  12851. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12852. echo "-hidden">> $lib.exp~
  12853. $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~
  12854. $RM $lib.exp'
  12855. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12856. ;;
  12857. esac
  12858. hardcode_libdir_separator_CXX=:
  12859. # Commands to make compiler produce verbose output that lists
  12860. # what "hidden" libraries, object files and flags are used when
  12861. # linking a shared library.
  12862. #
  12863. # There doesn't appear to be a way to prevent this compiler from
  12864. # explicitly linking system object files so we need to strip them
  12865. # from the output so that they don't get included in the library
  12866. # dependencies.
  12867. 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"'
  12868. ;;
  12869. *)
  12870. if test yes,no = "$GXX,$with_gnu_ld"; then
  12871. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12872. case $host in
  12873. osf3*)
  12874. 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'
  12875. ;;
  12876. *)
  12877. archive_cmds_CXX='$CC -shared $pic_flag -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'
  12878. ;;
  12879. esac
  12880. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12881. hardcode_libdir_separator_CXX=:
  12882. # Commands to make compiler produce verbose output that lists
  12883. # what "hidden" libraries, object files and flags are used when
  12884. # linking a shared library.
  12885. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12886. else
  12887. # FIXME: insert proper C++ library support
  12888. ld_shlibs_CXX=no
  12889. fi
  12890. ;;
  12891. esac
  12892. ;;
  12893. psos*)
  12894. # FIXME: insert proper C++ library support
  12895. ld_shlibs_CXX=no
  12896. ;;
  12897. sunos4*)
  12898. case $cc_basename in
  12899. CC*)
  12900. # Sun C++ 4.x
  12901. # FIXME: insert proper C++ library support
  12902. ld_shlibs_CXX=no
  12903. ;;
  12904. lcc*)
  12905. # Lucid
  12906. # FIXME: insert proper C++ library support
  12907. ld_shlibs_CXX=no
  12908. ;;
  12909. *)
  12910. # FIXME: insert proper C++ library support
  12911. ld_shlibs_CXX=no
  12912. ;;
  12913. esac
  12914. ;;
  12915. solaris*)
  12916. case $cc_basename in
  12917. CC* | sunCC*)
  12918. # Sun C++ 4.2, 5.x and Centerline C++
  12919. archive_cmds_need_lc_CXX=yes
  12920. no_undefined_flag_CXX=' -zdefs'
  12921. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12922. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12923. $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'
  12924. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12925. hardcode_shlibpath_var_CXX=no
  12926. case $host_os in
  12927. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12928. *)
  12929. # The compiler driver will combine and reorder linker options,
  12930. # but understands '-z linker_flag'.
  12931. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12932. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12933. ;;
  12934. esac
  12935. link_all_deplibs_CXX=yes
  12936. output_verbose_link_cmd='func_echo_all'
  12937. # Archives containing C++ object files must be created using
  12938. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12939. # necessary to make sure instantiated templates are included
  12940. # in the archive.
  12941. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12942. ;;
  12943. gcx*)
  12944. # Green Hills C++ Compiler
  12945. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12946. # The C++ compiler must be used to create the archive.
  12947. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12948. ;;
  12949. *)
  12950. # GNU C++ compiler with Solaris linker
  12951. if test yes,no = "$GXX,$with_gnu_ld"; then
  12952. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12953. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12954. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12955. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12956. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12957. # Commands to make compiler produce verbose output that lists
  12958. # what "hidden" libraries, object files and flags are used when
  12959. # linking a shared library.
  12960. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12961. else
  12962. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12963. # platform.
  12964. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12965. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12966. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12967. # Commands to make compiler produce verbose output that lists
  12968. # what "hidden" libraries, object files and flags are used when
  12969. # linking a shared library.
  12970. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12971. fi
  12972. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12973. case $host_os in
  12974. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12975. *)
  12976. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12977. ;;
  12978. esac
  12979. fi
  12980. ;;
  12981. esac
  12982. ;;
  12983. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12984. no_undefined_flag_CXX='$wl-z,text'
  12985. archive_cmds_need_lc_CXX=no
  12986. hardcode_shlibpath_var_CXX=no
  12987. runpath_var='LD_RUN_PATH'
  12988. case $cc_basename in
  12989. CC*)
  12990. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12991. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12992. ;;
  12993. *)
  12994. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12995. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12996. ;;
  12997. esac
  12998. ;;
  12999. sysv5* | sco3.2v5* | sco5v6*)
  13000. # Note: We CANNOT use -z defs as we might desire, because we do not
  13001. # link with -lc, and that would cause any symbols used from libc to
  13002. # always be unresolved, which means just about no library would
  13003. # ever link correctly. If we're not using GNU ld we use -z text
  13004. # though, which does catch some bad symbols but isn't as heavy-handed
  13005. # as -z defs.
  13006. no_undefined_flag_CXX='$wl-z,text'
  13007. allow_undefined_flag_CXX='$wl-z,nodefs'
  13008. archive_cmds_need_lc_CXX=no
  13009. hardcode_shlibpath_var_CXX=no
  13010. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13011. hardcode_libdir_separator_CXX=':'
  13012. link_all_deplibs_CXX=yes
  13013. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13014. runpath_var='LD_RUN_PATH'
  13015. case $cc_basename in
  13016. CC*)
  13017. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13018. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13019. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13020. '"$old_archive_cmds_CXX"
  13021. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13022. '"$reload_cmds_CXX"
  13023. ;;
  13024. *)
  13025. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13026. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13027. ;;
  13028. esac
  13029. ;;
  13030. tandem*)
  13031. case $cc_basename in
  13032. NCC*)
  13033. # NonStop-UX NCC 3.20
  13034. # FIXME: insert proper C++ library support
  13035. ld_shlibs_CXX=no
  13036. ;;
  13037. *)
  13038. # FIXME: insert proper C++ library support
  13039. ld_shlibs_CXX=no
  13040. ;;
  13041. esac
  13042. ;;
  13043. vxworks*)
  13044. # FIXME: insert proper C++ library support
  13045. ld_shlibs_CXX=no
  13046. ;;
  13047. *)
  13048. # FIXME: insert proper C++ library support
  13049. ld_shlibs_CXX=no
  13050. ;;
  13051. esac
  13052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13053. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13054. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13055. GCC_CXX=$GXX
  13056. LD_CXX=$LD
  13057. ## CAVEAT EMPTOR:
  13058. ## There is no encapsulation within the following macros, do not change
  13059. ## the running order or otherwise move them around unless you know exactly
  13060. ## what you are doing...
  13061. # Dependencies to place before and after the object being linked:
  13062. predep_objects_CXX=
  13063. postdep_objects_CXX=
  13064. predeps_CXX=
  13065. postdeps_CXX=
  13066. compiler_lib_search_path_CXX=
  13067. cat > conftest.$ac_ext <<_LT_EOF
  13068. class Foo
  13069. {
  13070. public:
  13071. Foo (void) { a = 0; }
  13072. private:
  13073. int a;
  13074. };
  13075. _LT_EOF
  13076. _lt_libdeps_save_CFLAGS=$CFLAGS
  13077. case "$CC $CFLAGS " in #(
  13078. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13079. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13080. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13081. esac
  13082. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13083. (eval $ac_compile) 2>&5
  13084. ac_status=$?
  13085. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13086. test $ac_status = 0; }; then
  13087. # Parse the compiler output and extract the necessary
  13088. # objects, libraries and library flags.
  13089. # Sentinel used to keep track of whether or not we are before
  13090. # the conftest object file.
  13091. pre_test_object_deps_done=no
  13092. for p in `eval "$output_verbose_link_cmd"`; do
  13093. case $prev$p in
  13094. -L* | -R* | -l*)
  13095. # Some compilers place space between "-{L,R}" and the path.
  13096. # Remove the space.
  13097. if test x-L = "$p" ||
  13098. test x-R = "$p"; then
  13099. prev=$p
  13100. continue
  13101. fi
  13102. # Expand the sysroot to ease extracting the directories later.
  13103. if test -z "$prev"; then
  13104. case $p in
  13105. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13106. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13107. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13108. esac
  13109. fi
  13110. case $p in
  13111. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13112. esac
  13113. if test no = "$pre_test_object_deps_done"; then
  13114. case $prev in
  13115. -L | -R)
  13116. # Internal compiler library paths should come after those
  13117. # provided the user. The postdeps already come after the
  13118. # user supplied libs so there is no need to process them.
  13119. if test -z "$compiler_lib_search_path_CXX"; then
  13120. compiler_lib_search_path_CXX=$prev$p
  13121. else
  13122. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13123. fi
  13124. ;;
  13125. # The "-l" case would never come before the object being
  13126. # linked, so don't bother handling this case.
  13127. esac
  13128. else
  13129. if test -z "$postdeps_CXX"; then
  13130. postdeps_CXX=$prev$p
  13131. else
  13132. postdeps_CXX="${postdeps_CXX} $prev$p"
  13133. fi
  13134. fi
  13135. prev=
  13136. ;;
  13137. *.lto.$objext) ;; # Ignore GCC LTO objects
  13138. *.$objext)
  13139. # This assumes that the test object file only shows up
  13140. # once in the compiler output.
  13141. if test "$p" = "conftest.$objext"; then
  13142. pre_test_object_deps_done=yes
  13143. continue
  13144. fi
  13145. if test no = "$pre_test_object_deps_done"; then
  13146. if test -z "$predep_objects_CXX"; then
  13147. predep_objects_CXX=$p
  13148. else
  13149. predep_objects_CXX="$predep_objects_CXX $p"
  13150. fi
  13151. else
  13152. if test -z "$postdep_objects_CXX"; then
  13153. postdep_objects_CXX=$p
  13154. else
  13155. postdep_objects_CXX="$postdep_objects_CXX $p"
  13156. fi
  13157. fi
  13158. ;;
  13159. *) ;; # Ignore the rest.
  13160. esac
  13161. done
  13162. # Clean up.
  13163. rm -f a.out a.exe
  13164. else
  13165. echo "libtool.m4: error: problem compiling CXX test program"
  13166. fi
  13167. $RM -f confest.$objext
  13168. CFLAGS=$_lt_libdeps_save_CFLAGS
  13169. # PORTME: override above test on systems where it is broken
  13170. case $host_os in
  13171. interix[3-9]*)
  13172. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13173. # hack all around it, let's just trust "g++" to DTRT.
  13174. predep_objects_CXX=
  13175. postdep_objects_CXX=
  13176. postdeps_CXX=
  13177. ;;
  13178. esac
  13179. case " $postdeps_CXX " in
  13180. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13181. esac
  13182. compiler_lib_search_dirs_CXX=
  13183. if test -n "${compiler_lib_search_path_CXX}"; then
  13184. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13185. fi
  13186. lt_prog_compiler_wl_CXX=
  13187. lt_prog_compiler_pic_CXX=
  13188. lt_prog_compiler_static_CXX=
  13189. # C++ specific cases for pic, static, wl, etc.
  13190. if test yes = "$GXX"; then
  13191. lt_prog_compiler_wl_CXX='-Wl,'
  13192. lt_prog_compiler_static_CXX='-static'
  13193. case $host_os in
  13194. aix*)
  13195. # All AIX code is PIC.
  13196. if test ia64 = "$host_cpu"; then
  13197. # AIX 5 now supports IA64 processor
  13198. lt_prog_compiler_static_CXX='-Bstatic'
  13199. fi
  13200. lt_prog_compiler_pic_CXX='-fPIC'
  13201. ;;
  13202. amigaos*)
  13203. case $host_cpu in
  13204. powerpc)
  13205. # see comment about AmigaOS4 .so support
  13206. lt_prog_compiler_pic_CXX='-fPIC'
  13207. ;;
  13208. m68k)
  13209. # FIXME: we need at least 68020 code to build shared libraries, but
  13210. # adding the '-m68020' flag to GCC prevents building anything better,
  13211. # like '-m68040'.
  13212. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13213. ;;
  13214. esac
  13215. ;;
  13216. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13217. # PIC is the default for these OSes.
  13218. ;;
  13219. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13220. # This hack is so that the source file can tell whether it is being
  13221. # built for inclusion in a dll (and should export symbols for example).
  13222. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13223. # (--disable-auto-import) libraries
  13224. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13225. case $host_os in
  13226. os2*)
  13227. lt_prog_compiler_static_CXX='$wl-static'
  13228. ;;
  13229. esac
  13230. ;;
  13231. darwin* | rhapsody*)
  13232. # PIC is the default on this platform
  13233. # Common symbols not allowed in MH_DYLIB files
  13234. lt_prog_compiler_pic_CXX='-fno-common'
  13235. ;;
  13236. *djgpp*)
  13237. # DJGPP does not support shared libraries at all
  13238. lt_prog_compiler_pic_CXX=
  13239. ;;
  13240. haiku*)
  13241. # PIC is the default for Haiku.
  13242. # The "-static" flag exists, but is broken.
  13243. lt_prog_compiler_static_CXX=
  13244. ;;
  13245. interix[3-9]*)
  13246. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13247. # Instead, we relocate shared libraries at runtime.
  13248. ;;
  13249. sysv4*MP*)
  13250. if test -d /usr/nec; then
  13251. lt_prog_compiler_pic_CXX=-Kconform_pic
  13252. fi
  13253. ;;
  13254. hpux*)
  13255. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13256. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13257. # sets the default TLS model and affects inlining.
  13258. case $host_cpu in
  13259. hppa*64*)
  13260. ;;
  13261. *)
  13262. lt_prog_compiler_pic_CXX='-fPIC'
  13263. ;;
  13264. esac
  13265. ;;
  13266. *qnx* | *nto*)
  13267. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13268. # it will coredump.
  13269. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13270. ;;
  13271. *)
  13272. lt_prog_compiler_pic_CXX='-fPIC'
  13273. ;;
  13274. esac
  13275. else
  13276. case $host_os in
  13277. aix[4-9]*)
  13278. # All AIX code is PIC.
  13279. if test ia64 = "$host_cpu"; then
  13280. # AIX 5 now supports IA64 processor
  13281. lt_prog_compiler_static_CXX='-Bstatic'
  13282. else
  13283. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13284. fi
  13285. ;;
  13286. chorus*)
  13287. case $cc_basename in
  13288. cxch68*)
  13289. # Green Hills C++ Compiler
  13290. # _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"
  13291. ;;
  13292. esac
  13293. ;;
  13294. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13295. # This hack is so that the source file can tell whether it is being
  13296. # built for inclusion in a dll (and should export symbols for example).
  13297. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13298. ;;
  13299. dgux*)
  13300. case $cc_basename in
  13301. ec++*)
  13302. lt_prog_compiler_pic_CXX='-KPIC'
  13303. ;;
  13304. ghcx*)
  13305. # Green Hills C++ Compiler
  13306. lt_prog_compiler_pic_CXX='-pic'
  13307. ;;
  13308. *)
  13309. ;;
  13310. esac
  13311. ;;
  13312. freebsd* | dragonfly*)
  13313. # FreeBSD uses GNU C++
  13314. ;;
  13315. hpux9* | hpux10* | hpux11*)
  13316. case $cc_basename in
  13317. CC*)
  13318. lt_prog_compiler_wl_CXX='-Wl,'
  13319. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13320. if test ia64 != "$host_cpu"; then
  13321. lt_prog_compiler_pic_CXX='+Z'
  13322. fi
  13323. ;;
  13324. aCC*)
  13325. lt_prog_compiler_wl_CXX='-Wl,'
  13326. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13327. case $host_cpu in
  13328. hppa*64*|ia64*)
  13329. # +Z the default
  13330. ;;
  13331. *)
  13332. lt_prog_compiler_pic_CXX='+Z'
  13333. ;;
  13334. esac
  13335. ;;
  13336. *)
  13337. ;;
  13338. esac
  13339. ;;
  13340. interix*)
  13341. # This is c89, which is MS Visual C++ (no shared libs)
  13342. # Anyone wants to do a port?
  13343. ;;
  13344. irix5* | irix6* | nonstopux*)
  13345. case $cc_basename in
  13346. CC*)
  13347. lt_prog_compiler_wl_CXX='-Wl,'
  13348. lt_prog_compiler_static_CXX='-non_shared'
  13349. # CC pic flag -KPIC is the default.
  13350. ;;
  13351. *)
  13352. ;;
  13353. esac
  13354. ;;
  13355. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13356. case $cc_basename in
  13357. KCC*)
  13358. # KAI C++ Compiler
  13359. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13360. lt_prog_compiler_pic_CXX='-fPIC'
  13361. ;;
  13362. ecpc* )
  13363. # old Intel C++ for x86_64, which still supported -KPIC.
  13364. lt_prog_compiler_wl_CXX='-Wl,'
  13365. lt_prog_compiler_pic_CXX='-KPIC'
  13366. lt_prog_compiler_static_CXX='-static'
  13367. ;;
  13368. icpc* )
  13369. # Intel C++, used to be incompatible with GCC.
  13370. # ICC 10 doesn't accept -KPIC any more.
  13371. lt_prog_compiler_wl_CXX='-Wl,'
  13372. lt_prog_compiler_pic_CXX='-fPIC'
  13373. lt_prog_compiler_static_CXX='-static'
  13374. ;;
  13375. pgCC* | pgcpp*)
  13376. # Portland Group C++ compiler
  13377. lt_prog_compiler_wl_CXX='-Wl,'
  13378. lt_prog_compiler_pic_CXX='-fpic'
  13379. lt_prog_compiler_static_CXX='-Bstatic'
  13380. ;;
  13381. cxx*)
  13382. # Compaq C++
  13383. # Make sure the PIC flag is empty. It appears that all Alpha
  13384. # Linux and Compaq Tru64 Unix objects are PIC.
  13385. lt_prog_compiler_pic_CXX=
  13386. lt_prog_compiler_static_CXX='-non_shared'
  13387. ;;
  13388. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  13389. # IBM XL 8.0, 9.0 on PPC and BlueGene
  13390. lt_prog_compiler_wl_CXX='-Wl,'
  13391. lt_prog_compiler_pic_CXX='-qpic'
  13392. lt_prog_compiler_static_CXX='-qstaticlink'
  13393. ;;
  13394. *)
  13395. case `$CC -V 2>&1 | sed 5q` in
  13396. *Sun\ C*)
  13397. # Sun C++ 5.9
  13398. lt_prog_compiler_pic_CXX='-KPIC'
  13399. lt_prog_compiler_static_CXX='-Bstatic'
  13400. lt_prog_compiler_wl_CXX='-Qoption ld '
  13401. ;;
  13402. esac
  13403. ;;
  13404. esac
  13405. ;;
  13406. lynxos*)
  13407. ;;
  13408. m88k*)
  13409. ;;
  13410. mvs*)
  13411. case $cc_basename in
  13412. cxx*)
  13413. lt_prog_compiler_pic_CXX='-W c,exportall'
  13414. ;;
  13415. *)
  13416. ;;
  13417. esac
  13418. ;;
  13419. netbsd* | netbsdelf*-gnu)
  13420. ;;
  13421. *qnx* | *nto*)
  13422. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13423. # it will coredump.
  13424. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13425. ;;
  13426. osf3* | osf4* | osf5*)
  13427. case $cc_basename in
  13428. KCC*)
  13429. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13430. ;;
  13431. RCC*)
  13432. # Rational C++ 2.4.1
  13433. lt_prog_compiler_pic_CXX='-pic'
  13434. ;;
  13435. cxx*)
  13436. # Digital/Compaq C++
  13437. lt_prog_compiler_wl_CXX='-Wl,'
  13438. # Make sure the PIC flag is empty. It appears that all Alpha
  13439. # Linux and Compaq Tru64 Unix objects are PIC.
  13440. lt_prog_compiler_pic_CXX=
  13441. lt_prog_compiler_static_CXX='-non_shared'
  13442. ;;
  13443. *)
  13444. ;;
  13445. esac
  13446. ;;
  13447. psos*)
  13448. ;;
  13449. solaris*)
  13450. case $cc_basename in
  13451. CC* | sunCC*)
  13452. # Sun C++ 4.2, 5.x and Centerline C++
  13453. lt_prog_compiler_pic_CXX='-KPIC'
  13454. lt_prog_compiler_static_CXX='-Bstatic'
  13455. lt_prog_compiler_wl_CXX='-Qoption ld '
  13456. ;;
  13457. gcx*)
  13458. # Green Hills C++ Compiler
  13459. lt_prog_compiler_pic_CXX='-PIC'
  13460. ;;
  13461. *)
  13462. ;;
  13463. esac
  13464. ;;
  13465. sunos4*)
  13466. case $cc_basename in
  13467. CC*)
  13468. # Sun C++ 4.x
  13469. lt_prog_compiler_pic_CXX='-pic'
  13470. lt_prog_compiler_static_CXX='-Bstatic'
  13471. ;;
  13472. lcc*)
  13473. # Lucid
  13474. lt_prog_compiler_pic_CXX='-pic'
  13475. ;;
  13476. *)
  13477. ;;
  13478. esac
  13479. ;;
  13480. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13481. case $cc_basename in
  13482. CC*)
  13483. lt_prog_compiler_wl_CXX='-Wl,'
  13484. lt_prog_compiler_pic_CXX='-KPIC'
  13485. lt_prog_compiler_static_CXX='-Bstatic'
  13486. ;;
  13487. esac
  13488. ;;
  13489. tandem*)
  13490. case $cc_basename in
  13491. NCC*)
  13492. # NonStop-UX NCC 3.20
  13493. lt_prog_compiler_pic_CXX='-KPIC'
  13494. ;;
  13495. *)
  13496. ;;
  13497. esac
  13498. ;;
  13499. vxworks*)
  13500. ;;
  13501. *)
  13502. lt_prog_compiler_can_build_shared_CXX=no
  13503. ;;
  13504. esac
  13505. fi
  13506. case $host_os in
  13507. # For platforms that do not support PIC, -DPIC is meaningless:
  13508. *djgpp*)
  13509. lt_prog_compiler_pic_CXX=
  13510. ;;
  13511. *)
  13512. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13513. ;;
  13514. esac
  13515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13516. printf %s "checking for $compiler option to produce PIC... " >&6; }
  13517. if test ${lt_cv_prog_compiler_pic_CXX+y}
  13518. then :
  13519. printf %s "(cached) " >&6
  13520. else $as_nop
  13521. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13522. fi
  13523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13524. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13525. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13526. #
  13527. # Check to make sure the PIC flag actually works.
  13528. #
  13529. if test -n "$lt_prog_compiler_pic_CXX"; then
  13530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13531. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13532. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  13533. then :
  13534. printf %s "(cached) " >&6
  13535. else $as_nop
  13536. lt_cv_prog_compiler_pic_works_CXX=no
  13537. ac_outfile=conftest.$ac_objext
  13538. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13539. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13540. # Insert the option either (1) after the last *FLAGS variable, or
  13541. # (2) before a word containing "conftest.", or (3) at the end.
  13542. # Note that $ac_compile itself does not contain backslashes and begins
  13543. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13544. # The option is referenced via a variable to avoid confusing sed.
  13545. lt_compile=`echo "$ac_compile" | $SED \
  13546. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13547. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13548. -e 's:$: $lt_compiler_flag:'`
  13549. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13550. (eval "$lt_compile" 2>conftest.err)
  13551. ac_status=$?
  13552. cat conftest.err >&5
  13553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13554. if (exit $ac_status) && test -s "$ac_outfile"; then
  13555. # The compiler can only warn and ignore the option if not recognized
  13556. # So say no if there are warnings other than the usual output.
  13557. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13558. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13559. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13560. lt_cv_prog_compiler_pic_works_CXX=yes
  13561. fi
  13562. fi
  13563. $RM conftest*
  13564. fi
  13565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13566. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13567. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13568. case $lt_prog_compiler_pic_CXX in
  13569. "" | " "*) ;;
  13570. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13571. esac
  13572. else
  13573. lt_prog_compiler_pic_CXX=
  13574. lt_prog_compiler_can_build_shared_CXX=no
  13575. fi
  13576. fi
  13577. #
  13578. # Check to make sure the static flag actually works.
  13579. #
  13580. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13582. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13583. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  13584. then :
  13585. printf %s "(cached) " >&6
  13586. else $as_nop
  13587. lt_cv_prog_compiler_static_works_CXX=no
  13588. save_LDFLAGS=$LDFLAGS
  13589. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13590. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13591. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13592. # The linker can only warn and ignore the option if not recognized
  13593. # So say no if there are warnings
  13594. if test -s conftest.err; then
  13595. # Append any errors to the config.log.
  13596. cat conftest.err 1>&5
  13597. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13598. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13599. if diff conftest.exp conftest.er2 >/dev/null; then
  13600. lt_cv_prog_compiler_static_works_CXX=yes
  13601. fi
  13602. else
  13603. lt_cv_prog_compiler_static_works_CXX=yes
  13604. fi
  13605. fi
  13606. $RM -r conftest*
  13607. LDFLAGS=$save_LDFLAGS
  13608. fi
  13609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13610. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13611. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13612. :
  13613. else
  13614. lt_prog_compiler_static_CXX=
  13615. fi
  13616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13617. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13618. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  13619. then :
  13620. printf %s "(cached) " >&6
  13621. else $as_nop
  13622. lt_cv_prog_compiler_c_o_CXX=no
  13623. $RM -r conftest 2>/dev/null
  13624. mkdir conftest
  13625. cd conftest
  13626. mkdir out
  13627. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13628. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13629. # Insert the option either (1) after the last *FLAGS variable, or
  13630. # (2) before a word containing "conftest.", or (3) at the end.
  13631. # Note that $ac_compile itself does not contain backslashes and begins
  13632. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13633. lt_compile=`echo "$ac_compile" | $SED \
  13634. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13635. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13636. -e 's:$: $lt_compiler_flag:'`
  13637. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13638. (eval "$lt_compile" 2>out/conftest.err)
  13639. ac_status=$?
  13640. cat out/conftest.err >&5
  13641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13642. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13643. then
  13644. # The compiler can only warn and ignore the option if not recognized
  13645. # So say no if there are warnings
  13646. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13647. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13648. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13649. lt_cv_prog_compiler_c_o_CXX=yes
  13650. fi
  13651. fi
  13652. chmod u+w . 2>&5
  13653. $RM conftest*
  13654. # SGI C++ compiler will create directory out/ii_files/ for
  13655. # template instantiation
  13656. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13657. $RM out/* && rmdir out
  13658. cd ..
  13659. $RM -r conftest
  13660. $RM conftest*
  13661. fi
  13662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13663. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13665. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13666. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  13667. then :
  13668. printf %s "(cached) " >&6
  13669. else $as_nop
  13670. lt_cv_prog_compiler_c_o_CXX=no
  13671. $RM -r conftest 2>/dev/null
  13672. mkdir conftest
  13673. cd conftest
  13674. mkdir out
  13675. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13676. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13677. # Insert the option either (1) after the last *FLAGS variable, or
  13678. # (2) before a word containing "conftest.", or (3) at the end.
  13679. # Note that $ac_compile itself does not contain backslashes and begins
  13680. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13681. lt_compile=`echo "$ac_compile" | $SED \
  13682. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13683. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13684. -e 's:$: $lt_compiler_flag:'`
  13685. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13686. (eval "$lt_compile" 2>out/conftest.err)
  13687. ac_status=$?
  13688. cat out/conftest.err >&5
  13689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13690. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13691. then
  13692. # The compiler can only warn and ignore the option if not recognized
  13693. # So say no if there are warnings
  13694. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13695. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13696. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13697. lt_cv_prog_compiler_c_o_CXX=yes
  13698. fi
  13699. fi
  13700. chmod u+w . 2>&5
  13701. $RM conftest*
  13702. # SGI C++ compiler will create directory out/ii_files/ for
  13703. # template instantiation
  13704. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13705. $RM out/* && rmdir out
  13706. cd ..
  13707. $RM -r conftest
  13708. $RM conftest*
  13709. fi
  13710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13711. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13712. hard_links=nottested
  13713. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13714. # do not overwrite the value of need_locks provided by the user
  13715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13716. printf %s "checking if we can lock with hard links... " >&6; }
  13717. hard_links=yes
  13718. $RM conftest*
  13719. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13720. touch conftest.a
  13721. ln conftest.a conftest.b 2>&5 || hard_links=no
  13722. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13724. printf "%s\n" "$hard_links" >&6; }
  13725. if test no = "$hard_links"; then
  13726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13727. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13728. need_locks=warn
  13729. fi
  13730. else
  13731. need_locks=no
  13732. fi
  13733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13734. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13735. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13736. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13737. case $host_os in
  13738. aix[4-9]*)
  13739. # If we're using GNU nm, then we don't want the "-C" option.
  13740. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13741. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13742. # weak defined symbols like other global defined symbols, whereas
  13743. # GNU nm marks them as "W".
  13744. # While the 'weak' keyword is ignored in the Export File, we need
  13745. # it in the Import File for the 'aix-soname' feature, so we have
  13746. # to replace the "-B" option with "-P" for AIX nm.
  13747. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13748. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  13749. else
  13750. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  13751. fi
  13752. ;;
  13753. pw32*)
  13754. export_symbols_cmds_CXX=$ltdll_cmds
  13755. ;;
  13756. cygwin* | mingw* | cegcc*)
  13757. case $cc_basename in
  13758. cl*)
  13759. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13760. ;;
  13761. *)
  13762. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  13763. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13764. ;;
  13765. esac
  13766. ;;
  13767. linux* | k*bsd*-gnu | gnu*)
  13768. link_all_deplibs_CXX=no
  13769. ;;
  13770. *)
  13771. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13772. ;;
  13773. esac
  13774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13775. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13776. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13777. with_gnu_ld_CXX=$with_gnu_ld
  13778. #
  13779. # Do we need to explicitly link libc?
  13780. #
  13781. case "x$archive_cmds_need_lc_CXX" in
  13782. x|xyes)
  13783. # Assume -lc should be added
  13784. archive_cmds_need_lc_CXX=yes
  13785. if test yes,yes = "$GCC,$enable_shared"; then
  13786. case $archive_cmds_CXX in
  13787. *'~'*)
  13788. # FIXME: we may have to deal with multi-command sequences.
  13789. ;;
  13790. '$CC '*)
  13791. # Test whether the compiler implicitly links with -lc since on some
  13792. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13793. # to ld, don't add -lc before -lgcc.
  13794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13795. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  13796. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  13797. then :
  13798. printf %s "(cached) " >&6
  13799. else $as_nop
  13800. $RM conftest*
  13801. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13802. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13803. (eval $ac_compile) 2>&5
  13804. ac_status=$?
  13805. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13806. test $ac_status = 0; } 2>conftest.err; then
  13807. soname=conftest
  13808. lib=conftest
  13809. libobjs=conftest.$ac_objext
  13810. deplibs=
  13811. wl=$lt_prog_compiler_wl_CXX
  13812. pic_flag=$lt_prog_compiler_pic_CXX
  13813. compiler_flags=-v
  13814. linker_flags=-v
  13815. verstring=
  13816. output_objdir=.
  13817. libname=conftest
  13818. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13819. allow_undefined_flag_CXX=
  13820. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13821. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13822. ac_status=$?
  13823. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13824. test $ac_status = 0; }
  13825. then
  13826. lt_cv_archive_cmds_need_lc_CXX=no
  13827. else
  13828. lt_cv_archive_cmds_need_lc_CXX=yes
  13829. fi
  13830. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13831. else
  13832. cat conftest.err 1>&5
  13833. fi
  13834. $RM conftest*
  13835. fi
  13836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13837. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13838. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13839. ;;
  13840. esac
  13841. fi
  13842. ;;
  13843. esac
  13844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13845. printf %s "checking dynamic linker characteristics... " >&6; }
  13846. library_names_spec=
  13847. libname_spec='lib$name'
  13848. soname_spec=
  13849. shrext_cmds=.so
  13850. postinstall_cmds=
  13851. postuninstall_cmds=
  13852. finish_cmds=
  13853. finish_eval=
  13854. shlibpath_var=
  13855. shlibpath_overrides_runpath=unknown
  13856. version_type=none
  13857. dynamic_linker="$host_os ld.so"
  13858. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13859. need_lib_prefix=unknown
  13860. hardcode_into_libs=no
  13861. # when you set need_version to no, make sure it does not cause -set_version
  13862. # flags to be left without arguments
  13863. need_version=unknown
  13864. case $host_os in
  13865. aix3*)
  13866. version_type=linux # correct to gnu/linux during the next big refactor
  13867. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13868. shlibpath_var=LIBPATH
  13869. # AIX 3 has no versioning support, so we append a major version to the name.
  13870. soname_spec='$libname$release$shared_ext$major'
  13871. ;;
  13872. aix[4-9]*)
  13873. version_type=linux # correct to gnu/linux during the next big refactor
  13874. need_lib_prefix=no
  13875. need_version=no
  13876. hardcode_into_libs=yes
  13877. if test ia64 = "$host_cpu"; then
  13878. # AIX 5 supports IA64
  13879. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13880. shlibpath_var=LD_LIBRARY_PATH
  13881. else
  13882. # With GCC up to 2.95.x, collect2 would create an import file
  13883. # for dependence libraries. The import file would start with
  13884. # the line '#! .'. This would cause the generated library to
  13885. # depend on '.', always an invalid library. This was fixed in
  13886. # development snapshots of GCC prior to 3.0.
  13887. case $host_os in
  13888. aix4 | aix4.[01] | aix4.[01].*)
  13889. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13890. echo ' yes '
  13891. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13892. :
  13893. else
  13894. can_build_shared=no
  13895. fi
  13896. ;;
  13897. esac
  13898. # Using Import Files as archive members, it is possible to support
  13899. # filename-based versioning of shared library archives on AIX. While
  13900. # this would work for both with and without runtime linking, it will
  13901. # prevent static linking of such archives. So we do filename-based
  13902. # shared library versioning with .so extension only, which is used
  13903. # when both runtime linking and shared linking is enabled.
  13904. # Unfortunately, runtime linking may impact performance, so we do
  13905. # not want this to be the default eventually. Also, we use the
  13906. # versioned .so libs for executables only if there is the -brtl
  13907. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13908. # To allow for filename-based versioning support, we need to create
  13909. # libNAME.so.V as an archive file, containing:
  13910. # *) an Import File, referring to the versioned filename of the
  13911. # archive as well as the shared archive member, telling the
  13912. # bitwidth (32 or 64) of that shared object, and providing the
  13913. # list of exported symbols of that shared object, eventually
  13914. # decorated with the 'weak' keyword
  13915. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13916. # it being seen by the linker.
  13917. # At run time we better use the real file rather than another symlink,
  13918. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13919. case $with_aix_soname,$aix_use_runtimelinking in
  13920. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13921. # soname into executable. Probably we can add versioning support to
  13922. # collect2, so additional links can be useful in future.
  13923. aix,yes) # traditional libtool
  13924. dynamic_linker='AIX unversionable lib.so'
  13925. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13926. # instead of lib<name>.a to let people know that these are not
  13927. # typical AIX shared libraries.
  13928. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13929. ;;
  13930. aix,no) # traditional AIX only
  13931. dynamic_linker='AIX lib.a(lib.so.V)'
  13932. # We preserve .a as extension for shared libraries through AIX4.2
  13933. # and later when we are not doing run time linking.
  13934. library_names_spec='$libname$release.a $libname.a'
  13935. soname_spec='$libname$release$shared_ext$major'
  13936. ;;
  13937. svr4,*) # full svr4 only
  13938. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13939. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13940. # We do not specify a path in Import Files, so LIBPATH fires.
  13941. shlibpath_overrides_runpath=yes
  13942. ;;
  13943. *,yes) # both, prefer svr4
  13944. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13945. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13946. # unpreferred sharedlib libNAME.a needs extra handling
  13947. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  13948. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  13949. # We do not specify a path in Import Files, so LIBPATH fires.
  13950. shlibpath_overrides_runpath=yes
  13951. ;;
  13952. *,no) # both, prefer aix
  13953. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13954. library_names_spec='$libname$release.a $libname.a'
  13955. soname_spec='$libname$release$shared_ext$major'
  13956. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13957. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  13958. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  13959. ;;
  13960. esac
  13961. shlibpath_var=LIBPATH
  13962. fi
  13963. ;;
  13964. amigaos*)
  13965. case $host_cpu in
  13966. powerpc)
  13967. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13968. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13969. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13970. ;;
  13971. m68k)
  13972. library_names_spec='$libname.ixlibrary $libname.a'
  13973. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13974. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  13975. ;;
  13976. esac
  13977. ;;
  13978. beos*)
  13979. library_names_spec='$libname$shared_ext'
  13980. dynamic_linker="$host_os ld.so"
  13981. shlibpath_var=LIBRARY_PATH
  13982. ;;
  13983. bsdi[45]*)
  13984. version_type=linux # correct to gnu/linux during the next big refactor
  13985. need_version=no
  13986. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13987. soname_spec='$libname$release$shared_ext$major'
  13988. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13989. shlibpath_var=LD_LIBRARY_PATH
  13990. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13991. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13992. # the default ld.so.conf also contains /usr/contrib/lib and
  13993. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13994. # libtool to hard-code these into programs
  13995. ;;
  13996. cygwin* | mingw* | pw32* | cegcc*)
  13997. version_type=windows
  13998. shrext_cmds=.dll
  13999. need_version=no
  14000. need_lib_prefix=no
  14001. case $GCC,$cc_basename in
  14002. yes,*)
  14003. # gcc
  14004. library_names_spec='$libname.dll.a'
  14005. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14006. postinstall_cmds='base_file=`basename \$file`~
  14007. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14008. dldir=$destdir/`dirname \$dlpath`~
  14009. test -d \$dldir || mkdir -p \$dldir~
  14010. $install_prog $dir/$dlname \$dldir/$dlname~
  14011. chmod a+x \$dldir/$dlname~
  14012. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14013. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14014. fi'
  14015. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14016. dlpath=$dir/\$dldll~
  14017. $RM \$dlpath'
  14018. shlibpath_overrides_runpath=yes
  14019. case $host_os in
  14020. cygwin*)
  14021. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14022. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14023. ;;
  14024. mingw* | cegcc*)
  14025. # MinGW DLLs use traditional 'lib' prefix
  14026. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14027. ;;
  14028. pw32*)
  14029. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14030. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14031. ;;
  14032. esac
  14033. dynamic_linker='Win32 ld.exe'
  14034. ;;
  14035. *,cl*)
  14036. # Native MSVC
  14037. libname_spec='$name'
  14038. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14039. library_names_spec='$libname.dll.lib'
  14040. case $build_os in
  14041. mingw*)
  14042. sys_lib_search_path_spec=
  14043. lt_save_ifs=$IFS
  14044. IFS=';'
  14045. for lt_path in $LIB
  14046. do
  14047. IFS=$lt_save_ifs
  14048. # Let DOS variable expansion print the short 8.3 style file name.
  14049. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14050. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14051. done
  14052. IFS=$lt_save_ifs
  14053. # Convert to MSYS style.
  14054. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14055. ;;
  14056. cygwin*)
  14057. # Convert to unix form, then to dos form, then back to unix form
  14058. # but this time dos style (no spaces!) so that the unix form looks
  14059. # like /cygdrive/c/PROGRA~1:/cygdr...
  14060. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14061. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14062. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14063. ;;
  14064. *)
  14065. sys_lib_search_path_spec=$LIB
  14066. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14067. # It is most probably a Windows format PATH.
  14068. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14069. else
  14070. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14071. fi
  14072. # FIXME: find the short name or the path components, as spaces are
  14073. # common. (e.g. "Program Files" -> "PROGRA~1")
  14074. ;;
  14075. esac
  14076. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14077. postinstall_cmds='base_file=`basename \$file`~
  14078. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14079. dldir=$destdir/`dirname \$dlpath`~
  14080. test -d \$dldir || mkdir -p \$dldir~
  14081. $install_prog $dir/$dlname \$dldir/$dlname'
  14082. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14083. dlpath=$dir/\$dldll~
  14084. $RM \$dlpath'
  14085. shlibpath_overrides_runpath=yes
  14086. dynamic_linker='Win32 link.exe'
  14087. ;;
  14088. *)
  14089. # Assume MSVC wrapper
  14090. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14091. dynamic_linker='Win32 ld.exe'
  14092. ;;
  14093. esac
  14094. # FIXME: first we should search . and the directory the executable is in
  14095. shlibpath_var=PATH
  14096. ;;
  14097. darwin* | rhapsody*)
  14098. dynamic_linker="$host_os dyld"
  14099. version_type=darwin
  14100. need_lib_prefix=no
  14101. need_version=no
  14102. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14103. soname_spec='$libname$release$major$shared_ext'
  14104. shlibpath_overrides_runpath=yes
  14105. shlibpath_var=DYLD_LIBRARY_PATH
  14106. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14107. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14108. ;;
  14109. dgux*)
  14110. version_type=linux # correct to gnu/linux during the next big refactor
  14111. need_lib_prefix=no
  14112. need_version=no
  14113. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14114. soname_spec='$libname$release$shared_ext$major'
  14115. shlibpath_var=LD_LIBRARY_PATH
  14116. ;;
  14117. freebsd* | dragonfly*)
  14118. # DragonFly does not have aout. When/if they implement a new
  14119. # versioning mechanism, adjust this.
  14120. if test -x /usr/bin/objformat; then
  14121. objformat=`/usr/bin/objformat`
  14122. else
  14123. case $host_os in
  14124. freebsd[23].*) objformat=aout ;;
  14125. *) objformat=elf ;;
  14126. esac
  14127. fi
  14128. version_type=freebsd-$objformat
  14129. case $version_type in
  14130. freebsd-elf*)
  14131. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14132. soname_spec='$libname$release$shared_ext$major'
  14133. need_version=no
  14134. need_lib_prefix=no
  14135. ;;
  14136. freebsd-*)
  14137. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14138. need_version=yes
  14139. ;;
  14140. esac
  14141. shlibpath_var=LD_LIBRARY_PATH
  14142. case $host_os in
  14143. freebsd2.*)
  14144. shlibpath_overrides_runpath=yes
  14145. ;;
  14146. freebsd3.[01]* | freebsdelf3.[01]*)
  14147. shlibpath_overrides_runpath=yes
  14148. hardcode_into_libs=yes
  14149. ;;
  14150. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14151. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14152. shlibpath_overrides_runpath=no
  14153. hardcode_into_libs=yes
  14154. ;;
  14155. *) # from 4.6 on, and DragonFly
  14156. shlibpath_overrides_runpath=yes
  14157. hardcode_into_libs=yes
  14158. ;;
  14159. esac
  14160. ;;
  14161. haiku*)
  14162. version_type=linux # correct to gnu/linux during the next big refactor
  14163. need_lib_prefix=no
  14164. need_version=no
  14165. dynamic_linker="$host_os runtime_loader"
  14166. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14167. soname_spec='$libname$release$shared_ext$major'
  14168. shlibpath_var=LIBRARY_PATH
  14169. shlibpath_overrides_runpath=no
  14170. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14171. hardcode_into_libs=yes
  14172. ;;
  14173. hpux9* | hpux10* | hpux11*)
  14174. # Give a soname corresponding to the major version so that dld.sl refuses to
  14175. # link against other versions.
  14176. version_type=sunos
  14177. need_lib_prefix=no
  14178. need_version=no
  14179. case $host_cpu in
  14180. ia64*)
  14181. shrext_cmds='.so'
  14182. hardcode_into_libs=yes
  14183. dynamic_linker="$host_os dld.so"
  14184. shlibpath_var=LD_LIBRARY_PATH
  14185. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14186. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14187. soname_spec='$libname$release$shared_ext$major'
  14188. if test 32 = "$HPUX_IA64_MODE"; then
  14189. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14190. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14191. else
  14192. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14193. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14194. fi
  14195. ;;
  14196. hppa*64*)
  14197. shrext_cmds='.sl'
  14198. hardcode_into_libs=yes
  14199. dynamic_linker="$host_os dld.sl"
  14200. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14201. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14202. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14203. soname_spec='$libname$release$shared_ext$major'
  14204. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14205. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14206. ;;
  14207. *)
  14208. shrext_cmds='.sl'
  14209. dynamic_linker="$host_os dld.sl"
  14210. shlibpath_var=SHLIB_PATH
  14211. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14212. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14213. soname_spec='$libname$release$shared_ext$major'
  14214. ;;
  14215. esac
  14216. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14217. postinstall_cmds='chmod 555 $lib'
  14218. # or fails outright, so override atomically:
  14219. install_override_mode=555
  14220. ;;
  14221. interix[3-9]*)
  14222. version_type=linux # correct to gnu/linux during the next big refactor
  14223. need_lib_prefix=no
  14224. need_version=no
  14225. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14226. soname_spec='$libname$release$shared_ext$major'
  14227. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14228. shlibpath_var=LD_LIBRARY_PATH
  14229. shlibpath_overrides_runpath=no
  14230. hardcode_into_libs=yes
  14231. ;;
  14232. irix5* | irix6* | nonstopux*)
  14233. case $host_os in
  14234. nonstopux*) version_type=nonstopux ;;
  14235. *)
  14236. if test yes = "$lt_cv_prog_gnu_ld"; then
  14237. version_type=linux # correct to gnu/linux during the next big refactor
  14238. else
  14239. version_type=irix
  14240. fi ;;
  14241. esac
  14242. need_lib_prefix=no
  14243. need_version=no
  14244. soname_spec='$libname$release$shared_ext$major'
  14245. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14246. case $host_os in
  14247. irix5* | nonstopux*)
  14248. libsuff= shlibsuff=
  14249. ;;
  14250. *)
  14251. case $LD in # libtool.m4 will add one of these switches to LD
  14252. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14253. libsuff= shlibsuff= libmagic=32-bit;;
  14254. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14255. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14256. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14257. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14258. *) libsuff= shlibsuff= libmagic=never-match;;
  14259. esac
  14260. ;;
  14261. esac
  14262. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14263. shlibpath_overrides_runpath=no
  14264. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14265. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14266. hardcode_into_libs=yes
  14267. ;;
  14268. # No shared lib support for Linux oldld, aout, or coff.
  14269. linux*oldld* | linux*aout* | linux*coff*)
  14270. dynamic_linker=no
  14271. ;;
  14272. linux*android*)
  14273. version_type=none # Android doesn't support versioned libraries.
  14274. need_lib_prefix=no
  14275. need_version=no
  14276. library_names_spec='$libname$release$shared_ext'
  14277. soname_spec='$libname$release$shared_ext'
  14278. finish_cmds=
  14279. shlibpath_var=LD_LIBRARY_PATH
  14280. shlibpath_overrides_runpath=yes
  14281. # This implies no fast_install, which is unacceptable.
  14282. # Some rework will be needed to allow for fast_install
  14283. # before this can be enabled.
  14284. hardcode_into_libs=yes
  14285. dynamic_linker='Android linker'
  14286. # Don't embed -rpath directories since the linker doesn't support them.
  14287. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14288. ;;
  14289. # This must be glibc/ELF.
  14290. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14291. version_type=linux # correct to gnu/linux during the next big refactor
  14292. need_lib_prefix=no
  14293. need_version=no
  14294. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14295. soname_spec='$libname$release$shared_ext$major'
  14296. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14297. shlibpath_var=LD_LIBRARY_PATH
  14298. shlibpath_overrides_runpath=no
  14299. # Some binutils ld are patched to set DT_RUNPATH
  14300. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14301. then :
  14302. printf %s "(cached) " >&6
  14303. else $as_nop
  14304. lt_cv_shlibpath_overrides_runpath=no
  14305. save_LDFLAGS=$LDFLAGS
  14306. save_libdir=$libdir
  14307. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14308. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14310. /* end confdefs.h. */
  14311. int
  14312. main (void)
  14313. {
  14314. ;
  14315. return 0;
  14316. }
  14317. _ACEOF
  14318. if ac_fn_cxx_try_link "$LINENO"
  14319. then :
  14320. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14321. then :
  14322. lt_cv_shlibpath_overrides_runpath=yes
  14323. fi
  14324. fi
  14325. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14326. conftest$ac_exeext conftest.$ac_ext
  14327. LDFLAGS=$save_LDFLAGS
  14328. libdir=$save_libdir
  14329. fi
  14330. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14331. # This implies no fast_install, which is unacceptable.
  14332. # Some rework will be needed to allow for fast_install
  14333. # before this can be enabled.
  14334. hardcode_into_libs=yes
  14335. # Ideally, we could use ldconfig to report *all* directores which are
  14336. # searched for libraries, however this is still not possible. Aside from not
  14337. # being certain /sbin/ldconfig is available, command
  14338. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14339. # even though it is searched at run-time. Try to do the best guess by
  14340. # appending ld.so.conf contents (and includes) to the search path.
  14341. if test -f /etc/ld.so.conf; then
  14342. 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' ' '`
  14343. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14344. fi
  14345. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14346. # powerpc, because MkLinux only supported shared libraries with the
  14347. # GNU dynamic linker. Since this was broken with cross compilers,
  14348. # most powerpc-linux boxes support dynamic linking these days and
  14349. # people can always --disable-shared, the test was removed, and we
  14350. # assume the GNU/Linux dynamic linker is in use.
  14351. dynamic_linker='GNU/Linux ld.so'
  14352. ;;
  14353. netbsdelf*-gnu)
  14354. version_type=linux
  14355. need_lib_prefix=no
  14356. need_version=no
  14357. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14358. soname_spec='${libname}${release}${shared_ext}$major'
  14359. shlibpath_var=LD_LIBRARY_PATH
  14360. shlibpath_overrides_runpath=no
  14361. hardcode_into_libs=yes
  14362. dynamic_linker='NetBSD ld.elf_so'
  14363. ;;
  14364. netbsd*)
  14365. version_type=sunos
  14366. need_lib_prefix=no
  14367. need_version=no
  14368. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14369. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14370. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14371. dynamic_linker='NetBSD (a.out) ld.so'
  14372. else
  14373. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14374. soname_spec='$libname$release$shared_ext$major'
  14375. dynamic_linker='NetBSD ld.elf_so'
  14376. fi
  14377. shlibpath_var=LD_LIBRARY_PATH
  14378. shlibpath_overrides_runpath=yes
  14379. hardcode_into_libs=yes
  14380. ;;
  14381. newsos6)
  14382. version_type=linux # correct to gnu/linux during the next big refactor
  14383. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14384. shlibpath_var=LD_LIBRARY_PATH
  14385. shlibpath_overrides_runpath=yes
  14386. ;;
  14387. *nto* | *qnx*)
  14388. version_type=qnx
  14389. need_lib_prefix=no
  14390. need_version=no
  14391. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14392. soname_spec='$libname$release$shared_ext$major'
  14393. shlibpath_var=LD_LIBRARY_PATH
  14394. shlibpath_overrides_runpath=no
  14395. hardcode_into_libs=yes
  14396. dynamic_linker='ldqnx.so'
  14397. ;;
  14398. openbsd* | bitrig*)
  14399. version_type=sunos
  14400. sys_lib_dlsearch_path_spec=/usr/lib
  14401. need_lib_prefix=no
  14402. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  14403. need_version=no
  14404. else
  14405. need_version=yes
  14406. fi
  14407. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14408. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14409. shlibpath_var=LD_LIBRARY_PATH
  14410. shlibpath_overrides_runpath=yes
  14411. ;;
  14412. os2*)
  14413. libname_spec='$name'
  14414. version_type=windows
  14415. shrext_cmds=.dll
  14416. need_version=no
  14417. need_lib_prefix=no
  14418. # OS/2 can only load a DLL with a base name of 8 characters or less.
  14419. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  14420. v=$($ECHO $release$versuffix | tr -d .-);
  14421. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  14422. $ECHO $n$v`$shared_ext'
  14423. library_names_spec='${libname}_dll.$libext'
  14424. dynamic_linker='OS/2 ld.exe'
  14425. shlibpath_var=BEGINLIBPATH
  14426. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14427. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14428. postinstall_cmds='base_file=`basename \$file`~
  14429. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14430. dldir=$destdir/`dirname \$dlpath`~
  14431. test -d \$dldir || mkdir -p \$dldir~
  14432. $install_prog $dir/$dlname \$dldir/$dlname~
  14433. chmod a+x \$dldir/$dlname~
  14434. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14435. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14436. fi'
  14437. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14438. dlpath=$dir/\$dldll~
  14439. $RM \$dlpath'
  14440. ;;
  14441. osf3* | osf4* | osf5*)
  14442. version_type=osf
  14443. need_lib_prefix=no
  14444. need_version=no
  14445. soname_spec='$libname$release$shared_ext$major'
  14446. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14447. shlibpath_var=LD_LIBRARY_PATH
  14448. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14449. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14450. ;;
  14451. rdos*)
  14452. dynamic_linker=no
  14453. ;;
  14454. solaris*)
  14455. version_type=linux # correct to gnu/linux during the next big refactor
  14456. need_lib_prefix=no
  14457. need_version=no
  14458. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14459. soname_spec='$libname$release$shared_ext$major'
  14460. shlibpath_var=LD_LIBRARY_PATH
  14461. shlibpath_overrides_runpath=yes
  14462. hardcode_into_libs=yes
  14463. # ldd complains unless libraries are executable
  14464. postinstall_cmds='chmod +x $lib'
  14465. ;;
  14466. sunos4*)
  14467. version_type=sunos
  14468. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14469. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14470. shlibpath_var=LD_LIBRARY_PATH
  14471. shlibpath_overrides_runpath=yes
  14472. if test yes = "$with_gnu_ld"; then
  14473. need_lib_prefix=no
  14474. fi
  14475. need_version=yes
  14476. ;;
  14477. sysv4 | sysv4.3*)
  14478. version_type=linux # correct to gnu/linux during the next big refactor
  14479. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14480. soname_spec='$libname$release$shared_ext$major'
  14481. shlibpath_var=LD_LIBRARY_PATH
  14482. case $host_vendor in
  14483. sni)
  14484. shlibpath_overrides_runpath=no
  14485. need_lib_prefix=no
  14486. runpath_var=LD_RUN_PATH
  14487. ;;
  14488. siemens)
  14489. need_lib_prefix=no
  14490. ;;
  14491. motorola)
  14492. need_lib_prefix=no
  14493. need_version=no
  14494. shlibpath_overrides_runpath=no
  14495. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14496. ;;
  14497. esac
  14498. ;;
  14499. sysv4*MP*)
  14500. if test -d /usr/nec; then
  14501. version_type=linux # correct to gnu/linux during the next big refactor
  14502. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14503. soname_spec='$libname$shared_ext.$major'
  14504. shlibpath_var=LD_LIBRARY_PATH
  14505. fi
  14506. ;;
  14507. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14508. version_type=sco
  14509. need_lib_prefix=no
  14510. need_version=no
  14511. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14512. soname_spec='$libname$release$shared_ext$major'
  14513. shlibpath_var=LD_LIBRARY_PATH
  14514. shlibpath_overrides_runpath=yes
  14515. hardcode_into_libs=yes
  14516. if test yes = "$with_gnu_ld"; then
  14517. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14518. else
  14519. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14520. case $host_os in
  14521. sco3.2v5*)
  14522. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14523. ;;
  14524. esac
  14525. fi
  14526. sys_lib_dlsearch_path_spec='/usr/lib'
  14527. ;;
  14528. tpf*)
  14529. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14530. version_type=linux # correct to gnu/linux during the next big refactor
  14531. need_lib_prefix=no
  14532. need_version=no
  14533. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14534. shlibpath_var=LD_LIBRARY_PATH
  14535. shlibpath_overrides_runpath=no
  14536. hardcode_into_libs=yes
  14537. ;;
  14538. uts4*)
  14539. version_type=linux # correct to gnu/linux during the next big refactor
  14540. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14541. soname_spec='$libname$release$shared_ext$major'
  14542. shlibpath_var=LD_LIBRARY_PATH
  14543. ;;
  14544. *)
  14545. dynamic_linker=no
  14546. ;;
  14547. esac
  14548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14549. printf "%s\n" "$dynamic_linker" >&6; }
  14550. test no = "$dynamic_linker" && can_build_shared=no
  14551. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14552. if test yes = "$GCC"; then
  14553. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14554. fi
  14555. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14556. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14557. fi
  14558. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14559. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14560. fi
  14561. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14562. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14563. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14564. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14565. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14566. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14568. printf %s "checking how to hardcode library paths into programs... " >&6; }
  14569. hardcode_action_CXX=
  14570. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14571. test -n "$runpath_var_CXX" ||
  14572. test yes = "$hardcode_automatic_CXX"; then
  14573. # We can hardcode non-existent directories.
  14574. if test no != "$hardcode_direct_CXX" &&
  14575. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14576. # have to relink, otherwise we might link with an installed library
  14577. # when we should be linking with a yet-to-be-installed one
  14578. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14579. test no != "$hardcode_minus_L_CXX"; then
  14580. # Linking always hardcodes the temporary library directory.
  14581. hardcode_action_CXX=relink
  14582. else
  14583. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14584. hardcode_action_CXX=immediate
  14585. fi
  14586. else
  14587. # We cannot hardcode anything, or else we can only hardcode existing
  14588. # directories.
  14589. hardcode_action_CXX=unsupported
  14590. fi
  14591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14592. printf "%s\n" "$hardcode_action_CXX" >&6; }
  14593. if test relink = "$hardcode_action_CXX" ||
  14594. test yes = "$inherit_rpath_CXX"; then
  14595. # Fast installation is not supported
  14596. enable_fast_install=no
  14597. elif test yes = "$shlibpath_overrides_runpath" ||
  14598. test no = "$enable_shared"; then
  14599. # Fast installation is not necessary
  14600. enable_fast_install=needless
  14601. fi
  14602. fi # test -n "$compiler"
  14603. CC=$lt_save_CC
  14604. CFLAGS=$lt_save_CFLAGS
  14605. LDCXX=$LD
  14606. LD=$lt_save_LD
  14607. GCC=$lt_save_GCC
  14608. with_gnu_ld=$lt_save_with_gnu_ld
  14609. lt_cv_path_LDCXX=$lt_cv_path_LD
  14610. lt_cv_path_LD=$lt_save_path_LD
  14611. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14612. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14613. fi # test yes != "$_lt_caught_CXX_error"
  14614. ac_ext=c
  14615. ac_cpp='$CPP $CPPFLAGS'
  14616. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14617. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14618. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14619. ac_config_commands="$ac_config_commands libtool"
  14620. # Only expand once:
  14621. ac_ext=c
  14622. ac_cpp='$CPP $CPPFLAGS'
  14623. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14624. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14625. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14626. ax_pthread_ok=no
  14627. # We used to check for pthread.h first, but this fails if pthread.h
  14628. # requires special compiler flags (e.g. on True64 or Sequent).
  14629. # It gets checked for in the link test anyway.
  14630. # First of all, check if the user has set any of the PTHREAD_LIBS,
  14631. # etcetera environment variables, and if threads linking works using
  14632. # them:
  14633. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  14634. save_CFLAGS="$CFLAGS"
  14635. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  14636. save_LIBS="$LIBS"
  14637. LIBS="$PTHREAD_LIBS $LIBS"
  14638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  14639. printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  14640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14641. /* end confdefs.h. */
  14642. /* Override any GCC internal prototype to avoid an error.
  14643. Use char because int might match the return type of a GCC
  14644. builtin and then its argument prototype would still apply. */
  14645. char pthread_join ();
  14646. int
  14647. main (void)
  14648. {
  14649. return pthread_join ();
  14650. ;
  14651. return 0;
  14652. }
  14653. _ACEOF
  14654. if ac_fn_c_try_link "$LINENO"
  14655. then :
  14656. ax_pthread_ok=yes
  14657. fi
  14658. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14659. conftest$ac_exeext conftest.$ac_ext
  14660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  14661. printf "%s\n" "$ax_pthread_ok" >&6; }
  14662. if test x"$ax_pthread_ok" = xno; then
  14663. PTHREAD_LIBS=""
  14664. PTHREAD_CFLAGS=""
  14665. fi
  14666. LIBS="$save_LIBS"
  14667. CFLAGS="$save_CFLAGS"
  14668. fi
  14669. # We must check for the threads library under a number of different
  14670. # names; the ordering is very important because some systems
  14671. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  14672. # libraries is broken (non-POSIX).
  14673. # Create a list of thread flags to try. Items starting with a "-" are
  14674. # C compiler flags, and other items are library names, except for "none"
  14675. # which indicates that we try without any flags at all, and "pthread-config"
  14676. # which is a program returning the flags for the Pth emulation library.
  14677. ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  14678. # The ordering *is* (sometimes) important. Some notes on the
  14679. # individual items follow:
  14680. # pthreads: AIX (must check this before -lpthread)
  14681. # none: in case threads are in libc; should be tried before -Kthread and
  14682. # other compiler flags to prevent continual compiler warnings
  14683. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  14684. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  14685. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  14686. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  14687. # -pthreads: Solaris/gcc
  14688. # -mthreads: Mingw32/gcc, Lynx/gcc
  14689. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  14690. # doesn't hurt to check since this sometimes defines pthreads too;
  14691. # also defines -D_REENTRANT)
  14692. # ... -mt is also the pthreads flag for HP/aCC
  14693. # pthread: Linux, etcetera
  14694. # --thread-safe: KAI C++
  14695. # pthread-config: use pthread-config program (for GNU Pth library)
  14696. case ${host_os} in
  14697. solaris*)
  14698. # On Solaris (at least, for some versions), libc contains stubbed
  14699. # (non-functional) versions of the pthreads routines, so link-based
  14700. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  14701. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  14702. # a function called by this macro, so we could check for that, but
  14703. # who knows whether they'll stub that too in a future libc.) So,
  14704. # we'll just look for -pthreads and -lpthread first:
  14705. ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
  14706. ;;
  14707. darwin*)
  14708. ax_pthread_flags="-pthread $ax_pthread_flags"
  14709. ;;
  14710. esac
  14711. # Clang doesn't consider unrecognized options an error unless we specify
  14712. # -Werror. We throw in some extra Clang-specific options to ensure that
  14713. # this doesn't happen for GCC, which also accepts -Werror.
  14714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
  14715. printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; }
  14716. save_CFLAGS="$CFLAGS"
  14717. ax_pthread_extra_flags="-Werror"
  14718. CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
  14719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14720. /* end confdefs.h. */
  14721. int foo(void);
  14722. int
  14723. main (void)
  14724. {
  14725. foo()
  14726. ;
  14727. return 0;
  14728. }
  14729. _ACEOF
  14730. if ac_fn_c_try_compile "$LINENO"
  14731. then :
  14732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14733. printf "%s\n" "yes" >&6; }
  14734. else $as_nop
  14735. ax_pthread_extra_flags=
  14736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14737. printf "%s\n" "no" >&6; }
  14738. fi
  14739. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14740. CFLAGS="$save_CFLAGS"
  14741. if test x"$ax_pthread_ok" = xno; then
  14742. for flag in $ax_pthread_flags; do
  14743. case $flag in
  14744. none)
  14745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  14746. printf %s "checking whether pthreads work without any flags... " >&6; }
  14747. ;;
  14748. -*)
  14749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  14750. printf %s "checking whether pthreads work with $flag... " >&6; }
  14751. PTHREAD_CFLAGS="$flag"
  14752. ;;
  14753. pthread-config)
  14754. # Extract the first word of "pthread-config", so it can be a program name with args.
  14755. set dummy pthread-config; ac_word=$2
  14756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14757. printf %s "checking for $ac_word... " >&6; }
  14758. if test ${ac_cv_prog_ax_pthread_config+y}
  14759. then :
  14760. printf %s "(cached) " >&6
  14761. else $as_nop
  14762. if test -n "$ax_pthread_config"; then
  14763. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  14764. else
  14765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14766. for as_dir in $PATH
  14767. do
  14768. IFS=$as_save_IFS
  14769. case $as_dir in #(((
  14770. '') as_dir=./ ;;
  14771. */) ;;
  14772. *) as_dir=$as_dir/ ;;
  14773. esac
  14774. for ac_exec_ext in '' $ac_executable_extensions; do
  14775. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  14776. ac_cv_prog_ax_pthread_config="yes"
  14777. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  14778. break 2
  14779. fi
  14780. done
  14781. done
  14782. IFS=$as_save_IFS
  14783. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  14784. fi
  14785. fi
  14786. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  14787. if test -n "$ax_pthread_config"; then
  14788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  14789. printf "%s\n" "$ax_pthread_config" >&6; }
  14790. else
  14791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14792. printf "%s\n" "no" >&6; }
  14793. fi
  14794. if test x"$ax_pthread_config" = xno; then continue; fi
  14795. PTHREAD_CFLAGS="`pthread-config --cflags`"
  14796. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  14797. ;;
  14798. *)
  14799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  14800. printf %s "checking for the pthreads library -l$flag... " >&6; }
  14801. PTHREAD_LIBS="-l$flag"
  14802. ;;
  14803. esac
  14804. save_LIBS="$LIBS"
  14805. save_CFLAGS="$CFLAGS"
  14806. LIBS="$PTHREAD_LIBS $LIBS"
  14807. CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
  14808. # Check for various functions. We must include pthread.h,
  14809. # since some functions may be macros. (On the Sequent, we
  14810. # need a special flag -Kthread to make this header compile.)
  14811. # We check for pthread_join because it is in -lpthread on IRIX
  14812. # while pthread_create is in libc. We check for pthread_attr_init
  14813. # due to DEC craziness with -lpthreads. We check for
  14814. # pthread_cleanup_push because it is one of the few pthread
  14815. # functions on Solaris that doesn't have a non-functional libc stub.
  14816. # We try pthread_create on general principles.
  14817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14818. /* end confdefs.h. */
  14819. #include <pthread.h>
  14820. static void routine(void *a) { a = 0; }
  14821. static void *start_routine(void *a) { return a; }
  14822. int
  14823. main (void)
  14824. {
  14825. pthread_t th; pthread_attr_t attr;
  14826. pthread_create(&th, 0, start_routine, 0);
  14827. pthread_join(th, 0);
  14828. pthread_attr_init(&attr);
  14829. pthread_cleanup_push(routine, 0);
  14830. pthread_cleanup_pop(0) /* ; */
  14831. ;
  14832. return 0;
  14833. }
  14834. _ACEOF
  14835. if ac_fn_c_try_link "$LINENO"
  14836. then :
  14837. ax_pthread_ok=yes
  14838. fi
  14839. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14840. conftest$ac_exeext conftest.$ac_ext
  14841. LIBS="$save_LIBS"
  14842. CFLAGS="$save_CFLAGS"
  14843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  14844. printf "%s\n" "$ax_pthread_ok" >&6; }
  14845. if test "x$ax_pthread_ok" = xyes; then
  14846. break;
  14847. fi
  14848. PTHREAD_LIBS=""
  14849. PTHREAD_CFLAGS=""
  14850. done
  14851. fi
  14852. # Various other checks:
  14853. if test "x$ax_pthread_ok" = xyes; then
  14854. save_LIBS="$LIBS"
  14855. LIBS="$PTHREAD_LIBS $LIBS"
  14856. save_CFLAGS="$CFLAGS"
  14857. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  14858. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  14859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  14860. printf %s "checking for joinable pthread attribute... " >&6; }
  14861. attr_name=unknown
  14862. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  14863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14864. /* end confdefs.h. */
  14865. #include <pthread.h>
  14866. int
  14867. main (void)
  14868. {
  14869. int attr = $attr; return attr /* ; */
  14870. ;
  14871. return 0;
  14872. }
  14873. _ACEOF
  14874. if ac_fn_c_try_link "$LINENO"
  14875. then :
  14876. attr_name=$attr; break
  14877. fi
  14878. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14879. conftest$ac_exeext conftest.$ac_ext
  14880. done
  14881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  14882. printf "%s\n" "$attr_name" >&6; }
  14883. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  14884. printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
  14885. fi
  14886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  14887. printf %s "checking if more special flags are required for pthreads... " >&6; }
  14888. flag=no
  14889. case ${host_os} in
  14890. aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
  14891. osf* | hpux*) flag="-D_REENTRANT";;
  14892. solaris*)
  14893. if test "$GCC" = "yes"; then
  14894. flag="-D_REENTRANT"
  14895. else
  14896. # TODO: What about Clang on Solaris?
  14897. flag="-mt -D_REENTRANT"
  14898. fi
  14899. ;;
  14900. esac
  14901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
  14902. printf "%s\n" "$flag" >&6; }
  14903. if test "x$flag" != xno; then
  14904. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  14905. fi
  14906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
  14907. printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  14908. if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
  14909. then :
  14910. printf %s "(cached) " >&6
  14911. else $as_nop
  14912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14913. /* end confdefs.h. */
  14914. #include <pthread.h>
  14915. int
  14916. main (void)
  14917. {
  14918. int i = PTHREAD_PRIO_INHERIT;
  14919. ;
  14920. return 0;
  14921. }
  14922. _ACEOF
  14923. if ac_fn_c_try_link "$LINENO"
  14924. then :
  14925. ax_cv_PTHREAD_PRIO_INHERIT=yes
  14926. else $as_nop
  14927. ax_cv_PTHREAD_PRIO_INHERIT=no
  14928. fi
  14929. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14930. conftest$ac_exeext conftest.$ac_ext
  14931. fi
  14932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  14933. printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  14934. if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
  14935. then :
  14936. printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
  14937. fi
  14938. LIBS="$save_LIBS"
  14939. CFLAGS="$save_CFLAGS"
  14940. # More AIX lossage: compile with *_r variant
  14941. if test "x$GCC" != xyes; then
  14942. case $host_os in
  14943. aix*)
  14944. case "x/$CC" in #(
  14945. x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
  14946. #handle absolute path differently from PATH based program lookup
  14947. case "x$CC" in #(
  14948. x/*) :
  14949. if as_fn_executable_p ${CC}_r
  14950. then :
  14951. PTHREAD_CC="${CC}_r"
  14952. fi ;; #(
  14953. *) :
  14954. for ac_prog in ${CC}_r
  14955. do
  14956. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14957. set dummy $ac_prog; ac_word=$2
  14958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14959. printf %s "checking for $ac_word... " >&6; }
  14960. if test ${ac_cv_prog_PTHREAD_CC+y}
  14961. then :
  14962. printf %s "(cached) " >&6
  14963. else $as_nop
  14964. if test -n "$PTHREAD_CC"; then
  14965. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  14966. else
  14967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14968. for as_dir in $PATH
  14969. do
  14970. IFS=$as_save_IFS
  14971. case $as_dir in #(((
  14972. '') as_dir=./ ;;
  14973. */) ;;
  14974. *) as_dir=$as_dir/ ;;
  14975. esac
  14976. for ac_exec_ext in '' $ac_executable_extensions; do
  14977. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  14978. ac_cv_prog_PTHREAD_CC="$ac_prog"
  14979. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  14980. break 2
  14981. fi
  14982. done
  14983. done
  14984. IFS=$as_save_IFS
  14985. fi
  14986. fi
  14987. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  14988. if test -n "$PTHREAD_CC"; then
  14989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  14990. printf "%s\n" "$PTHREAD_CC" >&6; }
  14991. else
  14992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14993. printf "%s\n" "no" >&6; }
  14994. fi
  14995. test -n "$PTHREAD_CC" && break
  14996. done
  14997. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  14998. ;;
  14999. esac ;; #(
  15000. *) :
  15001. ;;
  15002. esac
  15003. ;;
  15004. esac
  15005. fi
  15006. fi
  15007. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  15008. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  15009. if test x"$ax_pthread_ok" = xyes; then
  15010. printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
  15011. :
  15012. else
  15013. ax_pthread_ok=no
  15014. fi
  15015. ac_ext=c
  15016. ac_cpp='$CPP $CPPFLAGS'
  15017. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15018. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15019. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15020. # allow to override gcov location
  15021. # Check whether --with-gcov was given.
  15022. if test ${with_gcov+y}
  15023. then :
  15024. withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
  15025. else $as_nop
  15026. _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
  15027. fi
  15028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
  15029. printf %s "checking whether to build with code coverage support... " >&6; }
  15030. # Check whether --enable-code-coverage was given.
  15031. if test ${enable_code_coverage+y}
  15032. then :
  15033. enableval=$enable_code_coverage;
  15034. else $as_nop
  15035. enable_code_coverage=no
  15036. fi
  15037. if test "x$enable_code_coverage" = xyes; then
  15038. CODE_COVERAGE_ENABLED_TRUE=
  15039. CODE_COVERAGE_ENABLED_FALSE='#'
  15040. else
  15041. CODE_COVERAGE_ENABLED_TRUE='#'
  15042. CODE_COVERAGE_ENABLED_FALSE=
  15043. fi
  15044. CODE_COVERAGE_ENABLED=$enable_code_coverage
  15045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
  15046. printf "%s\n" "$enable_code_coverage" >&6; }
  15047. if test "x$enable_code_coverage" = xyes
  15048. then :
  15049. for ac_prog in gawk mawk nawk awk
  15050. do
  15051. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15052. set dummy $ac_prog; ac_word=$2
  15053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15054. printf %s "checking for $ac_word... " >&6; }
  15055. if test ${ac_cv_prog_AWK+y}
  15056. then :
  15057. printf %s "(cached) " >&6
  15058. else $as_nop
  15059. if test -n "$AWK"; then
  15060. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  15061. else
  15062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15063. for as_dir in $PATH
  15064. do
  15065. IFS=$as_save_IFS
  15066. case $as_dir in #(((
  15067. '') as_dir=./ ;;
  15068. */) ;;
  15069. *) as_dir=$as_dir/ ;;
  15070. esac
  15071. for ac_exec_ext in '' $ac_executable_extensions; do
  15072. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15073. ac_cv_prog_AWK="$ac_prog"
  15074. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15075. break 2
  15076. fi
  15077. done
  15078. done
  15079. IFS=$as_save_IFS
  15080. fi
  15081. fi
  15082. AWK=$ac_cv_prog_AWK
  15083. if test -n "$AWK"; then
  15084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  15085. printf "%s\n" "$AWK" >&6; }
  15086. else
  15087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15088. printf "%s\n" "no" >&6; }
  15089. fi
  15090. test -n "$AWK" && break
  15091. done
  15092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
  15093. printf %s "checking for GNU make... " >&6; }
  15094. if test ${_cv_gnu_make_command+y}
  15095. then :
  15096. printf %s "(cached) " >&6
  15097. else $as_nop
  15098. _cv_gnu_make_command="" ;
  15099. for a in "$MAKE" make gmake gnumake ; do
  15100. if test -z "$a" ; then continue ; fi ;
  15101. if "$a" --version 2> /dev/null | grep GNU 2>&1 > /dev/null ; then
  15102. _cv_gnu_make_command=$a ;
  15103. AX_CHECK_GNU_MAKE_HEADLINE=$("$a" --version 2> /dev/null | grep "GNU Make")
  15104. ax_check_gnu_make_version=$(echo ${AX_CHECK_GNU_MAKE_HEADLINE} | ${AWK} -F " " '{ print $(NF); }')
  15105. break ;
  15106. fi
  15107. done ;
  15108. fi
  15109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
  15110. printf "%s\n" "$_cv_gnu_make_command" >&6; }
  15111. if test "x$_cv_gnu_make_command" = x""
  15112. then :
  15113. ifGNUmake="#"
  15114. else $as_nop
  15115. ifGNUmake=""
  15116. fi
  15117. if test "x$_cv_gnu_make_command" = x""
  15118. then :
  15119. ifnGNUmake=""
  15120. else $as_nop
  15121. ifnGNUmake="#"
  15122. fi
  15123. if test "x$_cv_gnu_make_command" = x""
  15124. then :
  15125. { ax_cv_gnu_make_command=; unset ax_cv_gnu_make_command;}
  15126. else $as_nop
  15127. ax_cv_gnu_make_command=${_cv_gnu_make_command}
  15128. fi
  15129. if test "x$_cv_gnu_make_command" = x""
  15130. then :
  15131. as_fn_error $? "not using GNU make that is needed for coverage" "$LINENO" 5
  15132. fi
  15133. # check for gcov
  15134. if test -n "$ac_tool_prefix"; then
  15135. # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
  15136. set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
  15137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15138. printf %s "checking for $ac_word... " >&6; }
  15139. if test ${ac_cv_prog_GCOV+y}
  15140. then :
  15141. printf %s "(cached) " >&6
  15142. else $as_nop
  15143. if test -n "$GCOV"; then
  15144. ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
  15145. else
  15146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15147. for as_dir in $PATH
  15148. do
  15149. IFS=$as_save_IFS
  15150. case $as_dir in #(((
  15151. '') as_dir=./ ;;
  15152. */) ;;
  15153. *) as_dir=$as_dir/ ;;
  15154. esac
  15155. for ac_exec_ext in '' $ac_executable_extensions; do
  15156. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15157. ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
  15158. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15159. break 2
  15160. fi
  15161. done
  15162. done
  15163. IFS=$as_save_IFS
  15164. fi
  15165. fi
  15166. GCOV=$ac_cv_prog_GCOV
  15167. if test -n "$GCOV"; then
  15168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
  15169. printf "%s\n" "$GCOV" >&6; }
  15170. else
  15171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15172. printf "%s\n" "no" >&6; }
  15173. fi
  15174. fi
  15175. if test -z "$ac_cv_prog_GCOV"; then
  15176. ac_ct_GCOV=$GCOV
  15177. # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
  15178. set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
  15179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15180. printf %s "checking for $ac_word... " >&6; }
  15181. if test ${ac_cv_prog_ac_ct_GCOV+y}
  15182. then :
  15183. printf %s "(cached) " >&6
  15184. else $as_nop
  15185. if test -n "$ac_ct_GCOV"; then
  15186. ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
  15187. else
  15188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15189. for as_dir in $PATH
  15190. do
  15191. IFS=$as_save_IFS
  15192. case $as_dir in #(((
  15193. '') as_dir=./ ;;
  15194. */) ;;
  15195. *) as_dir=$as_dir/ ;;
  15196. esac
  15197. for ac_exec_ext in '' $ac_executable_extensions; do
  15198. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15199. ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
  15200. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15201. break 2
  15202. fi
  15203. done
  15204. done
  15205. IFS=$as_save_IFS
  15206. fi
  15207. fi
  15208. ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
  15209. if test -n "$ac_ct_GCOV"; then
  15210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
  15211. printf "%s\n" "$ac_ct_GCOV" >&6; }
  15212. else
  15213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15214. printf "%s\n" "no" >&6; }
  15215. fi
  15216. if test "x$ac_ct_GCOV" = x; then
  15217. GCOV=":"
  15218. else
  15219. case $cross_compiling:$ac_tool_warned in
  15220. yes:)
  15221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15222. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15223. ac_tool_warned=yes ;;
  15224. esac
  15225. GCOV=$ac_ct_GCOV
  15226. fi
  15227. else
  15228. GCOV="$ac_cv_prog_GCOV"
  15229. fi
  15230. if test "X$GCOV" = "X:"
  15231. then :
  15232. as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
  15233. fi
  15234. if test "$GCC" = "no"
  15235. then :
  15236. as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
  15237. fi
  15238. # Extract the first word of "lcov", so it can be a program name with args.
  15239. set dummy lcov; ac_word=$2
  15240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15241. printf %s "checking for $ac_word... " >&6; }
  15242. if test ${ac_cv_prog_LCOV+y}
  15243. then :
  15244. printf %s "(cached) " >&6
  15245. else $as_nop
  15246. if test -n "$LCOV"; then
  15247. ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
  15248. else
  15249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15250. for as_dir in $PATH
  15251. do
  15252. IFS=$as_save_IFS
  15253. case $as_dir in #(((
  15254. '') as_dir=./ ;;
  15255. */) ;;
  15256. *) as_dir=$as_dir/ ;;
  15257. esac
  15258. for ac_exec_ext in '' $ac_executable_extensions; do
  15259. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15260. ac_cv_prog_LCOV="lcov"
  15261. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15262. break 2
  15263. fi
  15264. done
  15265. done
  15266. IFS=$as_save_IFS
  15267. fi
  15268. fi
  15269. LCOV=$ac_cv_prog_LCOV
  15270. if test -n "$LCOV"; then
  15271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
  15272. printf "%s\n" "$LCOV" >&6; }
  15273. else
  15274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15275. printf "%s\n" "no" >&6; }
  15276. fi
  15277. # Extract the first word of "genhtml", so it can be a program name with args.
  15278. set dummy genhtml; ac_word=$2
  15279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15280. printf %s "checking for $ac_word... " >&6; }
  15281. if test ${ac_cv_prog_GENHTML+y}
  15282. then :
  15283. printf %s "(cached) " >&6
  15284. else $as_nop
  15285. if test -n "$GENHTML"; then
  15286. ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
  15287. else
  15288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15289. for as_dir in $PATH
  15290. do
  15291. IFS=$as_save_IFS
  15292. case $as_dir in #(((
  15293. '') as_dir=./ ;;
  15294. */) ;;
  15295. *) as_dir=$as_dir/ ;;
  15296. esac
  15297. for ac_exec_ext in '' $ac_executable_extensions; do
  15298. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15299. ac_cv_prog_GENHTML="genhtml"
  15300. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15301. break 2
  15302. fi
  15303. done
  15304. done
  15305. IFS=$as_save_IFS
  15306. fi
  15307. fi
  15308. GENHTML=$ac_cv_prog_GENHTML
  15309. if test -n "$GENHTML"; then
  15310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
  15311. printf "%s\n" "$GENHTML" >&6; }
  15312. else
  15313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15314. printf "%s\n" "no" >&6; }
  15315. fi
  15316. if test x"$LCOV" = x
  15317. then :
  15318. as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
  15319. fi
  15320. if test x"$GENHTML" = x
  15321. then :
  15322. as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
  15323. fi
  15324. CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
  15325. CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
  15326. CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
  15327. CODE_COVERAGE_LIBS="-lgcov"
  15328. fi
  15329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether user namespaces are supported" >&5
  15330. printf %s "checking whether user namespaces are supported... " >&6; }
  15331. if test ${ax_cv_user_namespace+y}
  15332. then :
  15333. printf %s "(cached) " >&6
  15334. else $as_nop
  15335. ac_ext=c
  15336. ac_cpp='$CPP $CPPFLAGS'
  15337. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15338. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15339. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15340. if test "$cross_compiling" = yes
  15341. then :
  15342. ax_cv_user_namespace=no
  15343. else $as_nop
  15344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15345. /* end confdefs.h. */
  15346. #define _GNU_SOURCE
  15347. #include <fcntl.h>
  15348. #include <sched.h>
  15349. #include <signal.h>
  15350. #include <stdio.h>
  15351. #include <string.h>
  15352. #include <sys/types.h>
  15353. #include <sys/wait.h>
  15354. int userfn(void *d) {
  15355. usleep(100000); /* synchronize by sleep */
  15356. return (getuid() != 0);
  15357. }
  15358. char userst[1024*1024];
  15359. int main() {
  15360. char buffer[1024];
  15361. int rc, status, fd;
  15362. pid_t child = clone(userfn, userst + 1024*1024, CLONE_NEWUSER|SIGCHLD, 0);
  15363. if (child < 0) return 1;
  15364. sprintf(buffer, "/proc/%d/uid_map", child);
  15365. fd = open(buffer, O_CREAT|O_WRONLY|O_TRUNC, 0755);
  15366. sprintf(buffer, "0 %d 1\n", getuid());
  15367. write(fd, buffer, strlen(buffer));
  15368. close(fd);
  15369. rc = waitpid(child, &status, 0);
  15370. if (rc <= 0) return 1;
  15371. if (!WIFEXITED(status)) return 1;
  15372. return WEXITSTATUS(status);
  15373. }
  15374. _ACEOF
  15375. if ac_fn_c_try_run "$LINENO"
  15376. then :
  15377. ax_cv_user_namespace=yes
  15378. else $as_nop
  15379. ax_cv_user_namespace=no
  15380. fi
  15381. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15382. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15383. fi
  15384. ac_ext=c
  15385. ac_cpp='$CPP $CPPFLAGS'
  15386. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15387. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15388. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15389. fi
  15390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_user_namespace" >&5
  15391. printf "%s\n" "$ax_cv_user_namespace" >&6; }
  15392. if test "$ax_cv_user_namespace" = yes; then
  15393. printf "%s\n" "#define HAVE_USER_NAMESPACE 1" >>confdefs.h
  15394. fi
  15395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UTS namespaces are supported" >&5
  15396. printf %s "checking whether UTS namespaces are supported... " >&6; }
  15397. if test ${ax_cv_uts_namespace+y}
  15398. then :
  15399. printf %s "(cached) " >&6
  15400. else $as_nop
  15401. ac_ext=c
  15402. ac_cpp='$CPP $CPPFLAGS'
  15403. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15404. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15405. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15406. if test "$cross_compiling" = yes
  15407. then :
  15408. ax_cv_uts_namespace=no
  15409. else $as_nop
  15410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15411. /* end confdefs.h. */
  15412. #define _GNU_SOURCE
  15413. #include <sched.h>
  15414. #include <signal.h>
  15415. #include <stdio.h>
  15416. #include <string.h>
  15417. #include <fcntl.h>
  15418. #include <unistd.h>
  15419. #include <sys/types.h>
  15420. #include <sys/wait.h>
  15421. int utsfn(void *d) {
  15422. char buffer[1024];
  15423. const char *name = "autoconftest";
  15424. int rc = sethostname(name, strlen(name));
  15425. if (rc != 0) return 1;
  15426. gethostname(buffer, 1024);
  15427. return (strcmp(buffer, name) != 0);
  15428. }
  15429. char st2[1024*1024];
  15430. int fn(void *d) {
  15431. pid_t child;
  15432. int rc, status;
  15433. usleep(100000); /* synchronize by sleep */
  15434. if (getuid() != 0) return 1;
  15435. child = clone(utsfn, st2 + 1024*1024, CLONE_NEWUTS|SIGCHLD, 0);
  15436. if (child < 0) return 1;
  15437. rc = waitpid(child, &status, 0);
  15438. if (rc <= 0) return 1;
  15439. if (!WIFEXITED(status)) return 1;
  15440. return WEXITSTATUS(status);
  15441. }
  15442. char st[1024*1024];
  15443. int main() {
  15444. char buffer[1024];
  15445. int rc, status, fd;
  15446. pid_t child = clone(fn, st + 1024*1024, CLONE_NEWUSER|SIGCHLD, 0);
  15447. if (child < 0) return 1;
  15448. sprintf(buffer, "/proc/%d/uid_map", child);
  15449. fd = open(buffer, O_CREAT|O_WRONLY|O_TRUNC, 0755);
  15450. sprintf(buffer, "0 %d 1\n", getuid());
  15451. write(fd, buffer, strlen(buffer));
  15452. close(fd);
  15453. rc = waitpid(child, &status, 0);
  15454. if (rc <= 0) return 1;
  15455. if (!WIFEXITED(status)) return 1;
  15456. return WEXITSTATUS(status);
  15457. }
  15458. _ACEOF
  15459. if ac_fn_c_try_run "$LINENO"
  15460. then :
  15461. ax_cv_uts_namespace=yes
  15462. else $as_nop
  15463. ax_cv_uts_namespace=no
  15464. fi
  15465. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15466. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15467. fi
  15468. ac_ext=c
  15469. ac_cpp='$CPP $CPPFLAGS'
  15470. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15471. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15472. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15473. fi
  15474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_uts_namespace" >&5
  15475. printf "%s\n" "$ax_cv_uts_namespace" >&6; }
  15476. if test "$ax_cv_uts_namespace" = yes; then
  15477. printf "%s\n" "#define HAVE_UTS_NAMESPACE 1" >>confdefs.h
  15478. fi
  15479. ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
  15480. if test "x$ac_cv_header_netdb_h" = xyes
  15481. then :
  15482. printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
  15483. fi
  15484. ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
  15485. if test "x$ac_cv_header_netinet_tcp_h" = xyes
  15486. then :
  15487. printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
  15488. fi
  15489. ac_config_headers="$ac_config_headers config.h"
  15490. ac_config_files="$ac_config_files Makefile"
  15491. cat >confcache <<\_ACEOF
  15492. # This file is a shell script that caches the results of configure
  15493. # tests run on this system so they can be shared between configure
  15494. # scripts and configure runs, see configure's option --config-cache.
  15495. # It is not useful on other systems. If it contains results you don't
  15496. # want to keep, you may remove or edit it.
  15497. #
  15498. # config.status only pays attention to the cache file if you give it
  15499. # the --recheck option to rerun configure.
  15500. #
  15501. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15502. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15503. # following values.
  15504. _ACEOF
  15505. # The following way of writing the cache mishandles newlines in values,
  15506. # but we know of no workaround that is simple, portable, and efficient.
  15507. # So, we kill variables containing newlines.
  15508. # Ultrix sh set writes to stderr and can't be redirected directly,
  15509. # and sets the high bit in the cache file unless we assign to the vars.
  15510. (
  15511. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15512. eval ac_val=\$$ac_var
  15513. case $ac_val in #(
  15514. *${as_nl}*)
  15515. case $ac_var in #(
  15516. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15517. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15518. esac
  15519. case $ac_var in #(
  15520. _ | IFS | as_nl) ;; #(
  15521. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15522. *) { eval $ac_var=; unset $ac_var;} ;;
  15523. esac ;;
  15524. esac
  15525. done
  15526. (set) 2>&1 |
  15527. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15528. *${as_nl}ac_space=\ *)
  15529. # `set' does not quote correctly, so add quotes: double-quote
  15530. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15531. sed -n \
  15532. "s/'/'\\\\''/g;
  15533. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15534. ;; #(
  15535. *)
  15536. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15537. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15538. ;;
  15539. esac |
  15540. sort
  15541. ) |
  15542. sed '
  15543. /^ac_cv_env_/b end
  15544. t clear
  15545. :clear
  15546. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  15547. t end
  15548. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15549. :end' >>confcache
  15550. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15551. if test -w "$cache_file"; then
  15552. if test "x$cache_file" != "x/dev/null"; then
  15553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15554. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  15555. if test ! -f "$cache_file" || test -h "$cache_file"; then
  15556. cat confcache >"$cache_file"
  15557. else
  15558. case $cache_file in #(
  15559. */* | ?:*)
  15560. mv -f confcache "$cache_file"$$ &&
  15561. mv -f "$cache_file"$$ "$cache_file" ;; #(
  15562. *)
  15563. mv -f confcache "$cache_file" ;;
  15564. esac
  15565. fi
  15566. fi
  15567. else
  15568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15569. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  15570. fi
  15571. fi
  15572. rm -f confcache
  15573. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15574. # Let make expand exec_prefix.
  15575. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15576. DEFS=-DHAVE_CONFIG_H
  15577. ac_libobjs=
  15578. ac_ltlibobjs=
  15579. U=
  15580. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15581. # 1. Remove the extension, and $U if already installed.
  15582. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15583. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  15584. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15585. # will be set to the directory where LIBOBJS objects are built.
  15586. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15587. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  15588. done
  15589. LIBOBJS=$ac_libobjs
  15590. LTLIBOBJS=$ac_ltlibobjs
  15591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  15592. printf %s "checking that generated files are newer than configure... " >&6; }
  15593. if test -n "$am_sleep_pid"; then
  15594. # Hide warnings about reused PIDs.
  15595. wait $am_sleep_pid 2>/dev/null
  15596. fi
  15597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  15598. printf "%s\n" "done" >&6; }
  15599. if test -n "$EXEEXT"; then
  15600. am__EXEEXT_TRUE=
  15601. am__EXEEXT_FALSE='#'
  15602. else
  15603. am__EXEEXT_TRUE='#'
  15604. am__EXEEXT_FALSE=
  15605. fi
  15606. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15607. as_fn_error $? "conditional \"AMDEP\" was never defined.
  15608. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15609. fi
  15610. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15611. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  15612. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15613. fi
  15614. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15615. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15616. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15617. fi
  15618. if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
  15619. as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
  15620. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15621. fi
  15622. : "${CONFIG_STATUS=./config.status}"
  15623. ac_write_fail=0
  15624. ac_clean_files_save=$ac_clean_files
  15625. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  15627. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  15628. as_write_fail=0
  15629. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  15630. #! $SHELL
  15631. # Generated by $as_me.
  15632. # Run this file to recreate the current configuration.
  15633. # Compiler output produced by configure, useful for debugging
  15634. # configure, is in config.log if it exists.
  15635. debug=false
  15636. ac_cs_recheck=false
  15637. ac_cs_silent=false
  15638. SHELL=\${CONFIG_SHELL-$SHELL}
  15639. export SHELL
  15640. _ASEOF
  15641. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  15642. ## -------------------- ##
  15643. ## M4sh Initialization. ##
  15644. ## -------------------- ##
  15645. # Be more Bourne compatible
  15646. DUALCASE=1; export DUALCASE # for MKS sh
  15647. as_nop=:
  15648. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  15649. then :
  15650. emulate sh
  15651. NULLCMD=:
  15652. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15653. # is contrary to our usage. Disable this feature.
  15654. alias -g '${1+"$@"}'='"$@"'
  15655. setopt NO_GLOB_SUBST
  15656. else $as_nop
  15657. case `(set -o) 2>/dev/null` in #(
  15658. *posix*) :
  15659. set -o posix ;; #(
  15660. *) :
  15661. ;;
  15662. esac
  15663. fi
  15664. # Reset variables that may have inherited troublesome values from
  15665. # the environment.
  15666. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  15667. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  15668. # side effect of setting IFS to empty, thus disabling word splitting.)
  15669. # Quoting is to prevent editors from complaining about space-tab.
  15670. as_nl='
  15671. '
  15672. export as_nl
  15673. IFS=" "" $as_nl"
  15674. PS1='$ '
  15675. PS2='> '
  15676. PS4='+ '
  15677. # Ensure predictable behavior from utilities with locale-dependent output.
  15678. LC_ALL=C
  15679. export LC_ALL
  15680. LANGUAGE=C
  15681. export LANGUAGE
  15682. # We cannot yet rely on "unset" to work, but we need these variables
  15683. # to be unset--not just set to an empty or harmless value--now, to
  15684. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  15685. # also avoids known problems related to "unset" and subshell syntax
  15686. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  15687. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  15688. do eval test \${$as_var+y} \
  15689. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15690. done
  15691. # Ensure that fds 0, 1, and 2 are open.
  15692. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  15693. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  15694. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  15695. # The user is always right.
  15696. if ${PATH_SEPARATOR+false} :; then
  15697. PATH_SEPARATOR=:
  15698. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15699. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15700. PATH_SEPARATOR=';'
  15701. }
  15702. fi
  15703. # Find who we are. Look in the path if we contain no directory separator.
  15704. as_myself=
  15705. case $0 in #((
  15706. *[\\/]* ) as_myself=$0 ;;
  15707. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15708. for as_dir in $PATH
  15709. do
  15710. IFS=$as_save_IFS
  15711. case $as_dir in #(((
  15712. '') as_dir=./ ;;
  15713. */) ;;
  15714. *) as_dir=$as_dir/ ;;
  15715. esac
  15716. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  15717. done
  15718. IFS=$as_save_IFS
  15719. ;;
  15720. esac
  15721. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15722. # in which case we are not to be found in the path.
  15723. if test "x$as_myself" = x; then
  15724. as_myself=$0
  15725. fi
  15726. if test ! -f "$as_myself"; then
  15727. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15728. exit 1
  15729. fi
  15730. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  15731. # ----------------------------------------
  15732. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15733. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15734. # script with STATUS, using 1 if that was 0.
  15735. as_fn_error ()
  15736. {
  15737. as_status=$1; test $as_status -eq 0 && as_status=1
  15738. if test "$4"; then
  15739. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15740. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  15741. fi
  15742. printf "%s\n" "$as_me: error: $2" >&2
  15743. as_fn_exit $as_status
  15744. } # as_fn_error
  15745. # as_fn_set_status STATUS
  15746. # -----------------------
  15747. # Set $? to STATUS, without forking.
  15748. as_fn_set_status ()
  15749. {
  15750. return $1
  15751. } # as_fn_set_status
  15752. # as_fn_exit STATUS
  15753. # -----------------
  15754. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15755. as_fn_exit ()
  15756. {
  15757. set +e
  15758. as_fn_set_status $1
  15759. exit $1
  15760. } # as_fn_exit
  15761. # as_fn_unset VAR
  15762. # ---------------
  15763. # Portably unset VAR.
  15764. as_fn_unset ()
  15765. {
  15766. { eval $1=; unset $1;}
  15767. }
  15768. as_unset=as_fn_unset
  15769. # as_fn_append VAR VALUE
  15770. # ----------------------
  15771. # Append the text in VALUE to the end of the definition contained in VAR. Take
  15772. # advantage of any shell optimizations that allow amortized linear growth over
  15773. # repeated appends, instead of the typical quadratic growth present in naive
  15774. # implementations.
  15775. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  15776. then :
  15777. eval 'as_fn_append ()
  15778. {
  15779. eval $1+=\$2
  15780. }'
  15781. else $as_nop
  15782. as_fn_append ()
  15783. {
  15784. eval $1=\$$1\$2
  15785. }
  15786. fi # as_fn_append
  15787. # as_fn_arith ARG...
  15788. # ------------------
  15789. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15790. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15791. # must be portable across $(()) and expr.
  15792. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  15793. then :
  15794. eval 'as_fn_arith ()
  15795. {
  15796. as_val=$(( $* ))
  15797. }'
  15798. else $as_nop
  15799. as_fn_arith ()
  15800. {
  15801. as_val=`expr "$@" || test $? -eq 1`
  15802. }
  15803. fi # as_fn_arith
  15804. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15805. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15806. as_expr=expr
  15807. else
  15808. as_expr=false
  15809. fi
  15810. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15811. as_basename=basename
  15812. else
  15813. as_basename=false
  15814. fi
  15815. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15816. as_dirname=dirname
  15817. else
  15818. as_dirname=false
  15819. fi
  15820. as_me=`$as_basename -- "$0" ||
  15821. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15822. X"$0" : 'X\(//\)$' \| \
  15823. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15824. printf "%s\n" X/"$0" |
  15825. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15826. s//\1/
  15827. q
  15828. }
  15829. /^X\/\(\/\/\)$/{
  15830. s//\1/
  15831. q
  15832. }
  15833. /^X\/\(\/\).*/{
  15834. s//\1/
  15835. q
  15836. }
  15837. s/.*/./; q'`
  15838. # Avoid depending upon Character Ranges.
  15839. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15840. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15841. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15842. as_cr_digits='0123456789'
  15843. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15844. # Determine whether it's possible to make 'echo' print without a newline.
  15845. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  15846. # for compatibility with existing Makefiles.
  15847. ECHO_C= ECHO_N= ECHO_T=
  15848. case `echo -n x` in #(((((
  15849. -n*)
  15850. case `echo 'xy\c'` in
  15851. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15852. xy) ECHO_C='\c';;
  15853. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15854. ECHO_T=' ';;
  15855. esac;;
  15856. *)
  15857. ECHO_N='-n';;
  15858. esac
  15859. # For backward compatibility with old third-party macros, we provide
  15860. # the shell variables $as_echo and $as_echo_n. New code should use
  15861. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  15862. as_echo='printf %s\n'
  15863. as_echo_n='printf %s'
  15864. rm -f conf$$ conf$$.exe conf$$.file
  15865. if test -d conf$$.dir; then
  15866. rm -f conf$$.dir/conf$$.file
  15867. else
  15868. rm -f conf$$.dir
  15869. mkdir conf$$.dir 2>/dev/null
  15870. fi
  15871. if (echo >conf$$.file) 2>/dev/null; then
  15872. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15873. as_ln_s='ln -s'
  15874. # ... but there are two gotchas:
  15875. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15876. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15877. # In both cases, we have to default to `cp -pR'.
  15878. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15879. as_ln_s='cp -pR'
  15880. elif ln conf$$.file conf$$ 2>/dev/null; then
  15881. as_ln_s=ln
  15882. else
  15883. as_ln_s='cp -pR'
  15884. fi
  15885. else
  15886. as_ln_s='cp -pR'
  15887. fi
  15888. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15889. rmdir conf$$.dir 2>/dev/null
  15890. # as_fn_mkdir_p
  15891. # -------------
  15892. # Create "$as_dir" as a directory, including parents if necessary.
  15893. as_fn_mkdir_p ()
  15894. {
  15895. case $as_dir in #(
  15896. -*) as_dir=./$as_dir;;
  15897. esac
  15898. test -d "$as_dir" || eval $as_mkdir_p || {
  15899. as_dirs=
  15900. while :; do
  15901. case $as_dir in #(
  15902. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15903. *) as_qdir=$as_dir;;
  15904. esac
  15905. as_dirs="'$as_qdir' $as_dirs"
  15906. as_dir=`$as_dirname -- "$as_dir" ||
  15907. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15908. X"$as_dir" : 'X\(//\)[^/]' \| \
  15909. X"$as_dir" : 'X\(//\)$' \| \
  15910. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15911. printf "%s\n" X"$as_dir" |
  15912. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15913. s//\1/
  15914. q
  15915. }
  15916. /^X\(\/\/\)[^/].*/{
  15917. s//\1/
  15918. q
  15919. }
  15920. /^X\(\/\/\)$/{
  15921. s//\1/
  15922. q
  15923. }
  15924. /^X\(\/\).*/{
  15925. s//\1/
  15926. q
  15927. }
  15928. s/.*/./; q'`
  15929. test -d "$as_dir" && break
  15930. done
  15931. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15932. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15933. } # as_fn_mkdir_p
  15934. if mkdir -p . 2>/dev/null; then
  15935. as_mkdir_p='mkdir -p "$as_dir"'
  15936. else
  15937. test -d ./-p && rmdir ./-p
  15938. as_mkdir_p=false
  15939. fi
  15940. # as_fn_executable_p FILE
  15941. # -----------------------
  15942. # Test if FILE is an executable regular file.
  15943. as_fn_executable_p ()
  15944. {
  15945. test -f "$1" && test -x "$1"
  15946. } # as_fn_executable_p
  15947. as_test_x='test -x'
  15948. as_executable_p=as_fn_executable_p
  15949. # Sed expression to map a string onto a valid CPP name.
  15950. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15951. # Sed expression to map a string onto a valid variable name.
  15952. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15953. exec 6>&1
  15954. ## ----------------------------------- ##
  15955. ## Main body of $CONFIG_STATUS script. ##
  15956. ## ----------------------------------- ##
  15957. _ASEOF
  15958. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15959. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15960. # Save the log message, to keep $0 and so on meaningful, and to
  15961. # report actual input values of CONFIG_FILES etc. instead of their
  15962. # values after options handling.
  15963. ac_log="
  15964. This file was extended by c-ares-test $as_me -, which was
  15965. generated by GNU Autoconf 2.71. Invocation command line was
  15966. CONFIG_FILES = $CONFIG_FILES
  15967. CONFIG_HEADERS = $CONFIG_HEADERS
  15968. CONFIG_LINKS = $CONFIG_LINKS
  15969. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15970. $ $0 $@
  15971. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15972. "
  15973. _ACEOF
  15974. case $ac_config_files in *"
  15975. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15976. esac
  15977. case $ac_config_headers in *"
  15978. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15979. esac
  15980. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15981. # Files that config.status was made for.
  15982. config_files="$ac_config_files"
  15983. config_headers="$ac_config_headers"
  15984. config_commands="$ac_config_commands"
  15985. _ACEOF
  15986. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15987. ac_cs_usage="\
  15988. \`$as_me' instantiates files and other configuration actions
  15989. from templates according to the current configuration. Unless the files
  15990. and actions are specified as TAGs, all are instantiated by default.
  15991. Usage: $0 [OPTION]... [TAG]...
  15992. -h, --help print this help, then exit
  15993. -V, --version print version number and configuration settings, then exit
  15994. --config print configuration, then exit
  15995. -q, --quiet, --silent
  15996. do not print progress messages
  15997. -d, --debug don't remove temporary files
  15998. --recheck update $as_me by reconfiguring in the same conditions
  15999. --file=FILE[:TEMPLATE]
  16000. instantiate the configuration file FILE
  16001. --header=FILE[:TEMPLATE]
  16002. instantiate the configuration header FILE
  16003. Configuration files:
  16004. $config_files
  16005. Configuration headers:
  16006. $config_headers
  16007. Configuration commands:
  16008. $config_commands
  16009. Report bugs to <->."
  16010. _ACEOF
  16011. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  16012. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  16013. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16014. ac_cs_config='$ac_cs_config_escaped'
  16015. ac_cs_version="\\
  16016. c-ares-test config.status -
  16017. configured by $0, generated by GNU Autoconf 2.71,
  16018. with options \\"\$ac_cs_config\\"
  16019. Copyright (C) 2021 Free Software Foundation, Inc.
  16020. This config.status script is free software; the Free Software Foundation
  16021. gives unlimited permission to copy, distribute and modify it."
  16022. ac_pwd='$ac_pwd'
  16023. srcdir='$srcdir'
  16024. INSTALL='$INSTALL'
  16025. MKDIR_P='$MKDIR_P'
  16026. AWK='$AWK'
  16027. test -n "\$AWK" || AWK=awk
  16028. _ACEOF
  16029. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16030. # The default lists apply if the user does not specify any file.
  16031. ac_need_defaults=:
  16032. while test $# != 0
  16033. do
  16034. case $1 in
  16035. --*=?*)
  16036. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16037. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  16038. ac_shift=:
  16039. ;;
  16040. --*=)
  16041. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16042. ac_optarg=
  16043. ac_shift=:
  16044. ;;
  16045. *)
  16046. ac_option=$1
  16047. ac_optarg=$2
  16048. ac_shift=shift
  16049. ;;
  16050. esac
  16051. case $ac_option in
  16052. # Handling of the options.
  16053. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  16054. ac_cs_recheck=: ;;
  16055. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  16056. printf "%s\n" "$ac_cs_version"; exit ;;
  16057. --config | --confi | --conf | --con | --co | --c )
  16058. printf "%s\n" "$ac_cs_config"; exit ;;
  16059. --debug | --debu | --deb | --de | --d | -d )
  16060. debug=: ;;
  16061. --file | --fil | --fi | --f )
  16062. $ac_shift
  16063. case $ac_optarg in
  16064. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16065. '') as_fn_error $? "missing file argument" ;;
  16066. esac
  16067. as_fn_append CONFIG_FILES " '$ac_optarg'"
  16068. ac_need_defaults=false;;
  16069. --header | --heade | --head | --hea )
  16070. $ac_shift
  16071. case $ac_optarg in
  16072. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16073. esac
  16074. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  16075. ac_need_defaults=false;;
  16076. --he | --h)
  16077. # Conflict between --help and --header
  16078. as_fn_error $? "ambiguous option: \`$1'
  16079. Try \`$0 --help' for more information.";;
  16080. --help | --hel | -h )
  16081. printf "%s\n" "$ac_cs_usage"; exit ;;
  16082. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16083. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16084. ac_cs_silent=: ;;
  16085. # This is an error.
  16086. -*) as_fn_error $? "unrecognized option: \`$1'
  16087. Try \`$0 --help' for more information." ;;
  16088. *) as_fn_append ac_config_targets " $1"
  16089. ac_need_defaults=false ;;
  16090. esac
  16091. shift
  16092. done
  16093. ac_configure_extra_args=
  16094. if $ac_cs_silent; then
  16095. exec 6>/dev/null
  16096. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16097. fi
  16098. _ACEOF
  16099. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16100. if \$ac_cs_recheck; then
  16101. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16102. shift
  16103. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  16104. CONFIG_SHELL='$SHELL'
  16105. export CONFIG_SHELL
  16106. exec "\$@"
  16107. fi
  16108. _ACEOF
  16109. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16110. exec 5>>config.log
  16111. {
  16112. echo
  16113. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16114. ## Running $as_me. ##
  16115. _ASBOX
  16116. printf "%s\n" "$ac_log"
  16117. } >&5
  16118. _ACEOF
  16119. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16120. #
  16121. # INIT-COMMANDS
  16122. #
  16123. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  16124. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16125. # if CDPATH is set.
  16126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16127. sed_quote_subst='$sed_quote_subst'
  16128. double_quote_subst='$double_quote_subst'
  16129. delay_variable_subst='$delay_variable_subst'
  16130. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  16131. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  16132. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  16133. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  16134. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  16135. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  16136. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  16137. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  16138. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  16139. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  16140. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  16141. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  16142. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  16143. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  16144. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  16145. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  16146. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  16147. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  16148. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  16149. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  16150. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  16151. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  16152. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  16153. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  16154. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  16155. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  16156. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  16157. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  16158. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  16159. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  16160. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  16161. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  16162. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  16163. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  16164. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  16165. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  16166. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  16167. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  16168. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  16169. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  16170. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  16171. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  16172. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  16173. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  16174. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  16175. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  16176. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16177. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16178. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  16179. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  16180. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  16181. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  16182. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  16183. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  16184. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  16185. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  16186. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  16187. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  16188. 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"`'
  16189. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  16190. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  16191. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  16192. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  16193. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  16194. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  16195. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  16196. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  16197. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  16198. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  16199. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  16200. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  16201. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  16202. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  16203. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  16204. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  16205. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  16206. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  16207. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  16208. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  16209. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16210. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  16211. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  16212. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  16213. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  16214. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  16215. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  16216. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16217. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  16218. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16219. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  16220. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16221. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  16222. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16223. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16224. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  16225. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  16226. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  16227. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  16228. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  16229. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16230. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  16231. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  16232. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  16233. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  16234. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  16235. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  16236. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  16237. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  16238. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  16239. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  16240. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  16241. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  16242. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  16243. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  16244. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  16245. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16246. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  16247. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  16248. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  16249. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  16250. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  16251. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16252. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16253. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  16254. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  16255. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  16256. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  16257. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  16258. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  16259. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  16260. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  16261. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  16262. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  16263. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  16264. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  16265. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  16266. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  16267. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  16268. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  16269. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  16270. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  16271. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  16272. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16273. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16274. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16275. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  16276. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  16277. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16278. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  16279. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  16280. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  16281. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  16282. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  16283. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  16284. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16285. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16286. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  16287. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16288. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16289. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16290. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16291. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16292. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16293. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  16294. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16295. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16296. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16297. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  16298. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  16299. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  16300. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  16301. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  16302. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  16303. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  16304. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  16305. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  16306. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16307. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16308. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16309. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16310. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16311. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16312. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  16313. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  16314. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16315. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16316. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  16317. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  16318. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  16319. LTCC='$LTCC'
  16320. LTCFLAGS='$LTCFLAGS'
  16321. compiler='$compiler_DEFAULT'
  16322. # A function that is used when there is no print builtin or printf.
  16323. func_fallback_echo ()
  16324. {
  16325. eval 'cat <<_LTECHO_EOF
  16326. \$1
  16327. _LTECHO_EOF'
  16328. }
  16329. # Quote evaled strings.
  16330. for var in SHELL \
  16331. ECHO \
  16332. PATH_SEPARATOR \
  16333. SED \
  16334. GREP \
  16335. EGREP \
  16336. FGREP \
  16337. LD \
  16338. NM \
  16339. LN_S \
  16340. lt_SP2NL \
  16341. lt_NL2SP \
  16342. reload_flag \
  16343. OBJDUMP \
  16344. deplibs_check_method \
  16345. file_magic_cmd \
  16346. file_magic_glob \
  16347. want_nocaseglob \
  16348. DLLTOOL \
  16349. sharedlib_from_linklib_cmd \
  16350. AR \
  16351. AR_FLAGS \
  16352. archiver_list_spec \
  16353. STRIP \
  16354. RANLIB \
  16355. CC \
  16356. CFLAGS \
  16357. compiler \
  16358. lt_cv_sys_global_symbol_pipe \
  16359. lt_cv_sys_global_symbol_to_cdecl \
  16360. lt_cv_sys_global_symbol_to_import \
  16361. lt_cv_sys_global_symbol_to_c_name_address \
  16362. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16363. lt_cv_nm_interface \
  16364. nm_file_list_spec \
  16365. lt_cv_truncate_bin \
  16366. lt_prog_compiler_no_builtin_flag \
  16367. lt_prog_compiler_pic \
  16368. lt_prog_compiler_wl \
  16369. lt_prog_compiler_static \
  16370. lt_cv_prog_compiler_c_o \
  16371. need_locks \
  16372. MANIFEST_TOOL \
  16373. DSYMUTIL \
  16374. NMEDIT \
  16375. LIPO \
  16376. OTOOL \
  16377. OTOOL64 \
  16378. shrext_cmds \
  16379. export_dynamic_flag_spec \
  16380. whole_archive_flag_spec \
  16381. compiler_needs_object \
  16382. with_gnu_ld \
  16383. allow_undefined_flag \
  16384. no_undefined_flag \
  16385. hardcode_libdir_flag_spec \
  16386. hardcode_libdir_separator \
  16387. exclude_expsyms \
  16388. include_expsyms \
  16389. file_list_spec \
  16390. variables_saved_for_relink \
  16391. libname_spec \
  16392. library_names_spec \
  16393. soname_spec \
  16394. install_override_mode \
  16395. finish_eval \
  16396. old_striplib \
  16397. striplib \
  16398. compiler_lib_search_dirs \
  16399. predep_objects \
  16400. postdep_objects \
  16401. predeps \
  16402. postdeps \
  16403. compiler_lib_search_path \
  16404. LD_CXX \
  16405. reload_flag_CXX \
  16406. compiler_CXX \
  16407. lt_prog_compiler_no_builtin_flag_CXX \
  16408. lt_prog_compiler_pic_CXX \
  16409. lt_prog_compiler_wl_CXX \
  16410. lt_prog_compiler_static_CXX \
  16411. lt_cv_prog_compiler_c_o_CXX \
  16412. export_dynamic_flag_spec_CXX \
  16413. whole_archive_flag_spec_CXX \
  16414. compiler_needs_object_CXX \
  16415. with_gnu_ld_CXX \
  16416. allow_undefined_flag_CXX \
  16417. no_undefined_flag_CXX \
  16418. hardcode_libdir_flag_spec_CXX \
  16419. hardcode_libdir_separator_CXX \
  16420. exclude_expsyms_CXX \
  16421. include_expsyms_CXX \
  16422. file_list_spec_CXX \
  16423. compiler_lib_search_dirs_CXX \
  16424. predep_objects_CXX \
  16425. postdep_objects_CXX \
  16426. predeps_CXX \
  16427. postdeps_CXX \
  16428. compiler_lib_search_path_CXX; do
  16429. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16430. *[\\\\\\\`\\"\\\$]*)
  16431. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16432. ;;
  16433. *)
  16434. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16435. ;;
  16436. esac
  16437. done
  16438. # Double-quote double-evaled strings.
  16439. for var in reload_cmds \
  16440. old_postinstall_cmds \
  16441. old_postuninstall_cmds \
  16442. old_archive_cmds \
  16443. extract_expsyms_cmds \
  16444. old_archive_from_new_cmds \
  16445. old_archive_from_expsyms_cmds \
  16446. archive_cmds \
  16447. archive_expsym_cmds \
  16448. module_cmds \
  16449. module_expsym_cmds \
  16450. export_symbols_cmds \
  16451. prelink_cmds \
  16452. postlink_cmds \
  16453. postinstall_cmds \
  16454. postuninstall_cmds \
  16455. finish_cmds \
  16456. sys_lib_search_path_spec \
  16457. configure_time_dlsearch_path \
  16458. configure_time_lt_sys_library_path \
  16459. reload_cmds_CXX \
  16460. old_archive_cmds_CXX \
  16461. old_archive_from_new_cmds_CXX \
  16462. old_archive_from_expsyms_cmds_CXX \
  16463. archive_cmds_CXX \
  16464. archive_expsym_cmds_CXX \
  16465. module_cmds_CXX \
  16466. module_expsym_cmds_CXX \
  16467. export_symbols_cmds_CXX \
  16468. prelink_cmds_CXX \
  16469. postlink_cmds_CXX; do
  16470. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16471. *[\\\\\\\`\\"\\\$]*)
  16472. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16473. ;;
  16474. *)
  16475. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16476. ;;
  16477. esac
  16478. done
  16479. ac_aux_dir='$ac_aux_dir'
  16480. # See if we are running on zsh, and set the options that allow our
  16481. # commands through without removal of \ escapes INIT.
  16482. if test -n "\${ZSH_VERSION+set}"; then
  16483. setopt NO_GLOB_SUBST
  16484. fi
  16485. PACKAGE='$PACKAGE'
  16486. VERSION='$VERSION'
  16487. RM='$RM'
  16488. ofile='$ofile'
  16489. _ACEOF
  16490. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16491. # Handling of arguments.
  16492. for ac_config_target in $ac_config_targets
  16493. do
  16494. case $ac_config_target in
  16495. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16496. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16497. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  16498. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16499. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16500. esac
  16501. done
  16502. # If the user did not use the arguments to specify the items to instantiate,
  16503. # then the envvar interface is used. Set only those that are not.
  16504. # We use the long form for the default assignment because of an extremely
  16505. # bizarre bug on SunOS 4.1.3.
  16506. if $ac_need_defaults; then
  16507. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  16508. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  16509. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  16510. fi
  16511. # Have a temporary directory for convenience. Make it in the build tree
  16512. # simply because there is no reason against having it here, and in addition,
  16513. # creating and moving files from /tmp can sometimes cause problems.
  16514. # Hook for its removal unless debugging.
  16515. # Note that there is a small window in which the directory will not be cleaned:
  16516. # after its creation but before its name has been assigned to `$tmp'.
  16517. $debug ||
  16518. {
  16519. tmp= ac_tmp=
  16520. trap 'exit_status=$?
  16521. : "${ac_tmp:=$tmp}"
  16522. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  16523. ' 0
  16524. trap 'as_fn_exit 1' 1 2 13 15
  16525. }
  16526. # Create a (secure) tmp directory for tmp files.
  16527. {
  16528. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16529. test -d "$tmp"
  16530. } ||
  16531. {
  16532. tmp=./conf$$-$RANDOM
  16533. (umask 077 && mkdir "$tmp")
  16534. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  16535. ac_tmp=$tmp
  16536. # Set up the scripts for CONFIG_FILES section.
  16537. # No need to generate them if there are no CONFIG_FILES.
  16538. # This happens for instance with `./config.status config.h'.
  16539. if test -n "$CONFIG_FILES"; then
  16540. ac_cr=`echo X | tr X '\015'`
  16541. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  16542. # But we know of no other shell where ac_cr would be empty at this
  16543. # point, so we can use a bashism as a fallback.
  16544. if test "x$ac_cr" = x; then
  16545. eval ac_cr=\$\'\\r\'
  16546. fi
  16547. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16548. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16549. ac_cs_awk_cr='\\r'
  16550. else
  16551. ac_cs_awk_cr=$ac_cr
  16552. fi
  16553. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  16554. _ACEOF
  16555. {
  16556. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16557. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16558. echo "_ACEOF"
  16559. } >conf$$subs.sh ||
  16560. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16561. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  16562. ac_delim='%!_!# '
  16563. for ac_last_try in false false false false false :; do
  16564. . ./conf$$subs.sh ||
  16565. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16566. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16567. if test $ac_delim_n = $ac_delim_num; then
  16568. break
  16569. elif $ac_last_try; then
  16570. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16571. else
  16572. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16573. fi
  16574. done
  16575. rm -f conf$$subs.sh
  16576. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16577. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  16578. _ACEOF
  16579. sed -n '
  16580. h
  16581. s/^/S["/; s/!.*/"]=/
  16582. p
  16583. g
  16584. s/^[^!]*!//
  16585. :repl
  16586. t repl
  16587. s/'"$ac_delim"'$//
  16588. t delim
  16589. :nl
  16590. h
  16591. s/\(.\{148\}\)..*/\1/
  16592. t more1
  16593. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16594. p
  16595. n
  16596. b repl
  16597. :more1
  16598. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16599. p
  16600. g
  16601. s/.\{148\}//
  16602. t nl
  16603. :delim
  16604. h
  16605. s/\(.\{148\}\)..*/\1/
  16606. t more2
  16607. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16608. p
  16609. b
  16610. :more2
  16611. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16612. p
  16613. g
  16614. s/.\{148\}//
  16615. t delim
  16616. ' <conf$$subs.awk | sed '
  16617. /^[^""]/{
  16618. N
  16619. s/\n//
  16620. }
  16621. ' >>$CONFIG_STATUS || ac_write_fail=1
  16622. rm -f conf$$subs.awk
  16623. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16624. _ACAWK
  16625. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  16626. for (key in S) S_is_set[key] = 1
  16627. FS = ""
  16628. }
  16629. {
  16630. line = $ 0
  16631. nfields = split(line, field, "@")
  16632. substed = 0
  16633. len = length(field[1])
  16634. for (i = 2; i < nfields; i++) {
  16635. key = field[i]
  16636. keylen = length(key)
  16637. if (S_is_set[key]) {
  16638. value = S[key]
  16639. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16640. len += length(value) + length(field[++i])
  16641. substed = 1
  16642. } else
  16643. len += 1 + keylen
  16644. }
  16645. print line
  16646. }
  16647. _ACAWK
  16648. _ACEOF
  16649. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16650. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16651. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16652. else
  16653. cat
  16654. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  16655. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  16656. _ACEOF
  16657. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  16658. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  16659. # trailing colons and then remove the whole line if VPATH becomes empty
  16660. # (actually we leave an empty line to preserve line numbers).
  16661. if test "x$srcdir" = x.; then
  16662. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  16663. h
  16664. s///
  16665. s/^/:/
  16666. s/[ ]*$/:/
  16667. s/:\$(srcdir):/:/g
  16668. s/:\${srcdir}:/:/g
  16669. s/:@srcdir@:/:/g
  16670. s/^:*//
  16671. s/:*$//
  16672. x
  16673. s/\(=[ ]*\).*/\1/
  16674. G
  16675. s/\n//
  16676. s/^[^=]*=[ ]*$//
  16677. }'
  16678. fi
  16679. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16680. fi # test -n "$CONFIG_FILES"
  16681. # Set up the scripts for CONFIG_HEADERS section.
  16682. # No need to generate them if there are no CONFIG_HEADERS.
  16683. # This happens for instance with `./config.status Makefile'.
  16684. if test -n "$CONFIG_HEADERS"; then
  16685. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  16686. BEGIN {
  16687. _ACEOF
  16688. # Transform confdefs.h into an awk script `defines.awk', embedded as
  16689. # here-document in config.status, that substitutes the proper values into
  16690. # config.h.in to produce config.h.
  16691. # Create a delimiter string that does not exist in confdefs.h, to ease
  16692. # handling of long lines.
  16693. ac_delim='%!_!# '
  16694. for ac_last_try in false false :; do
  16695. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  16696. if test -z "$ac_tt"; then
  16697. break
  16698. elif $ac_last_try; then
  16699. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  16700. else
  16701. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16702. fi
  16703. done
  16704. # For the awk script, D is an array of macro values keyed by name,
  16705. # likewise P contains macro parameters if any. Preserve backslash
  16706. # newline sequences.
  16707. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  16708. sed -n '
  16709. s/.\{148\}/&'"$ac_delim"'/g
  16710. t rset
  16711. :rset
  16712. s/^[ ]*#[ ]*define[ ][ ]*/ /
  16713. t def
  16714. d
  16715. :def
  16716. s/\\$//
  16717. t bsnl
  16718. s/["\\]/\\&/g
  16719. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16720. D["\1"]=" \3"/p
  16721. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  16722. d
  16723. :bsnl
  16724. s/["\\]/\\&/g
  16725. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16726. D["\1"]=" \3\\\\\\n"\\/p
  16727. t cont
  16728. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  16729. t cont
  16730. d
  16731. :cont
  16732. n
  16733. s/.\{148\}/&'"$ac_delim"'/g
  16734. t clear
  16735. :clear
  16736. s/\\$//
  16737. t bsnlc
  16738. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  16739. d
  16740. :bsnlc
  16741. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  16742. b cont
  16743. ' <confdefs.h | sed '
  16744. s/'"$ac_delim"'/"\\\
  16745. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  16746. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16747. for (key in D) D_is_set[key] = 1
  16748. FS = ""
  16749. }
  16750. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  16751. line = \$ 0
  16752. split(line, arg, " ")
  16753. if (arg[1] == "#") {
  16754. defundef = arg[2]
  16755. mac1 = arg[3]
  16756. } else {
  16757. defundef = substr(arg[1], 2)
  16758. mac1 = arg[2]
  16759. }
  16760. split(mac1, mac2, "(") #)
  16761. macro = mac2[1]
  16762. prefix = substr(line, 1, index(line, defundef) - 1)
  16763. if (D_is_set[macro]) {
  16764. # Preserve the white space surrounding the "#".
  16765. print prefix "define", macro P[macro] D[macro]
  16766. next
  16767. } else {
  16768. # Replace #undef with comments. This is necessary, for example,
  16769. # in the case of _POSIX_SOURCE, which is predefined and required
  16770. # on some systems where configure will not decide to define it.
  16771. if (defundef == "undef") {
  16772. print "/*", prefix defundef, macro, "*/"
  16773. next
  16774. }
  16775. }
  16776. }
  16777. { print }
  16778. _ACAWK
  16779. _ACEOF
  16780. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16781. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  16782. fi # test -n "$CONFIG_HEADERS"
  16783. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  16784. shift
  16785. for ac_tag
  16786. do
  16787. case $ac_tag in
  16788. :[FHLC]) ac_mode=$ac_tag; continue;;
  16789. esac
  16790. case $ac_mode$ac_tag in
  16791. :[FHL]*:*);;
  16792. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16793. :[FH]-) ac_tag=-:-;;
  16794. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16795. esac
  16796. ac_save_IFS=$IFS
  16797. IFS=:
  16798. set x $ac_tag
  16799. IFS=$ac_save_IFS
  16800. shift
  16801. ac_file=$1
  16802. shift
  16803. case $ac_mode in
  16804. :L) ac_source=$1;;
  16805. :[FH])
  16806. ac_file_inputs=
  16807. for ac_f
  16808. do
  16809. case $ac_f in
  16810. -) ac_f="$ac_tmp/stdin";;
  16811. *) # Look for the file first in the build tree, then in the source tree
  16812. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16813. # because $ac_f cannot contain `:'.
  16814. test -f "$ac_f" ||
  16815. case $ac_f in
  16816. [\\/$]*) false;;
  16817. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16818. esac ||
  16819. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16820. esac
  16821. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16822. as_fn_append ac_file_inputs " '$ac_f'"
  16823. done
  16824. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16825. # use $as_me), people would be surprised to read:
  16826. # /* config.h. Generated by config.status. */
  16827. configure_input='Generated from '`
  16828. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16829. `' by configure.'
  16830. if test x"$ac_file" != x-; then
  16831. configure_input="$ac_file. $configure_input"
  16832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16833. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  16834. fi
  16835. # Neutralize special characters interpreted by sed in replacement strings.
  16836. case $configure_input in #(
  16837. *\&* | *\|* | *\\* )
  16838. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  16839. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16840. *) ac_sed_conf_input=$configure_input;;
  16841. esac
  16842. case $ac_tag in
  16843. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16844. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16845. esac
  16846. ;;
  16847. esac
  16848. ac_dir=`$as_dirname -- "$ac_file" ||
  16849. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16850. X"$ac_file" : 'X\(//\)[^/]' \| \
  16851. X"$ac_file" : 'X\(//\)$' \| \
  16852. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16853. printf "%s\n" X"$ac_file" |
  16854. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16855. s//\1/
  16856. q
  16857. }
  16858. /^X\(\/\/\)[^/].*/{
  16859. s//\1/
  16860. q
  16861. }
  16862. /^X\(\/\/\)$/{
  16863. s//\1/
  16864. q
  16865. }
  16866. /^X\(\/\).*/{
  16867. s//\1/
  16868. q
  16869. }
  16870. s/.*/./; q'`
  16871. as_dir="$ac_dir"; as_fn_mkdir_p
  16872. ac_builddir=.
  16873. case "$ac_dir" in
  16874. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16875. *)
  16876. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  16877. # A ".." for each directory in $ac_dir_suffix.
  16878. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16879. case $ac_top_builddir_sub in
  16880. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16881. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16882. esac ;;
  16883. esac
  16884. ac_abs_top_builddir=$ac_pwd
  16885. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16886. # for backward compatibility:
  16887. ac_top_builddir=$ac_top_build_prefix
  16888. case $srcdir in
  16889. .) # We are building in place.
  16890. ac_srcdir=.
  16891. ac_top_srcdir=$ac_top_builddir_sub
  16892. ac_abs_top_srcdir=$ac_pwd ;;
  16893. [\\/]* | ?:[\\/]* ) # Absolute name.
  16894. ac_srcdir=$srcdir$ac_dir_suffix;
  16895. ac_top_srcdir=$srcdir
  16896. ac_abs_top_srcdir=$srcdir ;;
  16897. *) # Relative name.
  16898. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16899. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16900. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16901. esac
  16902. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16903. case $ac_mode in
  16904. :F)
  16905. #
  16906. # CONFIG_FILE
  16907. #
  16908. case $INSTALL in
  16909. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16910. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16911. esac
  16912. ac_MKDIR_P=$MKDIR_P
  16913. case $MKDIR_P in
  16914. [\\/$]* | ?:[\\/]* ) ;;
  16915. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16916. esac
  16917. _ACEOF
  16918. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16919. # If the template does not know about datarootdir, expand it.
  16920. # FIXME: This hack should be removed a few years after 2.60.
  16921. ac_datarootdir_hack=; ac_datarootdir_seen=
  16922. ac_sed_dataroot='
  16923. /datarootdir/ {
  16924. p
  16925. q
  16926. }
  16927. /@datadir@/p
  16928. /@docdir@/p
  16929. /@infodir@/p
  16930. /@localedir@/p
  16931. /@mandir@/p'
  16932. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16933. *datarootdir*) ac_datarootdir_seen=yes;;
  16934. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16936. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16937. _ACEOF
  16938. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16939. ac_datarootdir_hack='
  16940. s&@datadir@&$datadir&g
  16941. s&@docdir@&$docdir&g
  16942. s&@infodir@&$infodir&g
  16943. s&@localedir@&$localedir&g
  16944. s&@mandir@&$mandir&g
  16945. s&\\\${datarootdir}&$datarootdir&g' ;;
  16946. esac
  16947. _ACEOF
  16948. # Neutralize VPATH when `$srcdir' = `.'.
  16949. # Shell code in configure.ac might set extrasub.
  16950. # FIXME: do we really want to maintain this feature?
  16951. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16952. ac_sed_extra="$ac_vpsub
  16953. $extrasub
  16954. _ACEOF
  16955. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16956. :t
  16957. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16958. s|@configure_input@|$ac_sed_conf_input|;t t
  16959. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16960. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16961. s&@srcdir@&$ac_srcdir&;t t
  16962. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16963. s&@top_srcdir@&$ac_top_srcdir&;t t
  16964. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16965. s&@builddir@&$ac_builddir&;t t
  16966. s&@abs_builddir@&$ac_abs_builddir&;t t
  16967. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16968. s&@INSTALL@&$ac_INSTALL&;t t
  16969. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16970. $ac_datarootdir_hack
  16971. "
  16972. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16973. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16974. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16975. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16976. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16977. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16979. which seems to be undefined. Please make sure it is defined" >&5
  16980. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16981. which seems to be undefined. Please make sure it is defined" >&2;}
  16982. rm -f "$ac_tmp/stdin"
  16983. case $ac_file in
  16984. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16985. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16986. esac \
  16987. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16988. ;;
  16989. :H)
  16990. #
  16991. # CONFIG_HEADER
  16992. #
  16993. if test x"$ac_file" != x-; then
  16994. {
  16995. printf "%s\n" "/* $configure_input */" >&1 \
  16996. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16997. } >"$ac_tmp/config.h" \
  16998. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16999. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  17000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  17001. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  17002. else
  17003. rm -f "$ac_file"
  17004. mv "$ac_tmp/config.h" "$ac_file" \
  17005. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17006. fi
  17007. else
  17008. printf "%s\n" "/* $configure_input */" >&1 \
  17009. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  17010. || as_fn_error $? "could not create -" "$LINENO" 5
  17011. fi
  17012. # Compute "$ac_file"'s index in $config_headers.
  17013. _am_arg="$ac_file"
  17014. _am_stamp_count=1
  17015. for _am_header in $config_headers :; do
  17016. case $_am_header in
  17017. $_am_arg | $_am_arg:* )
  17018. break ;;
  17019. * )
  17020. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  17021. esac
  17022. done
  17023. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  17024. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17025. X"$_am_arg" : 'X\(//\)[^/]' \| \
  17026. X"$_am_arg" : 'X\(//\)$' \| \
  17027. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  17028. printf "%s\n" X"$_am_arg" |
  17029. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17030. s//\1/
  17031. q
  17032. }
  17033. /^X\(\/\/\)[^/].*/{
  17034. s//\1/
  17035. q
  17036. }
  17037. /^X\(\/\/\)$/{
  17038. s//\1/
  17039. q
  17040. }
  17041. /^X\(\/\).*/{
  17042. s//\1/
  17043. q
  17044. }
  17045. s/.*/./; q'`/stamp-h$_am_stamp_count
  17046. ;;
  17047. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  17048. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  17049. ;;
  17050. esac
  17051. case $ac_file$ac_mode in
  17052. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  17053. # Older Autoconf quotes --file arguments for eval, but not when files
  17054. # are listed without --file. Let's play safe and only enable the eval
  17055. # if we detect the quoting.
  17056. # TODO: see whether this extra hack can be removed once we start
  17057. # requiring Autoconf 2.70 or later.
  17058. case $CONFIG_FILES in #(
  17059. *\'*) :
  17060. eval set x "$CONFIG_FILES" ;; #(
  17061. *) :
  17062. set x $CONFIG_FILES ;; #(
  17063. *) :
  17064. ;;
  17065. esac
  17066. shift
  17067. # Used to flag and report bootstrapping failures.
  17068. am_rc=0
  17069. for am_mf
  17070. do
  17071. # Strip MF so we end up with the name of the file.
  17072. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  17073. # Check whether this is an Automake generated Makefile which includes
  17074. # dependency-tracking related rules and includes.
  17075. # Grep'ing the whole file directly is not great: AIX grep has a line
  17076. # limit of 2048, but all sed's we know have understand at least 4000.
  17077. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  17078. || continue
  17079. am_dirpart=`$as_dirname -- "$am_mf" ||
  17080. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17081. X"$am_mf" : 'X\(//\)[^/]' \| \
  17082. X"$am_mf" : 'X\(//\)$' \| \
  17083. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  17084. printf "%s\n" X"$am_mf" |
  17085. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17086. s//\1/
  17087. q
  17088. }
  17089. /^X\(\/\/\)[^/].*/{
  17090. s//\1/
  17091. q
  17092. }
  17093. /^X\(\/\/\)$/{
  17094. s//\1/
  17095. q
  17096. }
  17097. /^X\(\/\).*/{
  17098. s//\1/
  17099. q
  17100. }
  17101. s/.*/./; q'`
  17102. am_filepart=`$as_basename -- "$am_mf" ||
  17103. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  17104. X"$am_mf" : 'X\(//\)$' \| \
  17105. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  17106. printf "%s\n" X/"$am_mf" |
  17107. sed '/^.*\/\([^/][^/]*\)\/*$/{
  17108. s//\1/
  17109. q
  17110. }
  17111. /^X\/\(\/\/\)$/{
  17112. s//\1/
  17113. q
  17114. }
  17115. /^X\/\(\/\).*/{
  17116. s//\1/
  17117. q
  17118. }
  17119. s/.*/./; q'`
  17120. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  17121. && sed -e '/# am--include-marker/d' "$am_filepart" \
  17122. | $MAKE -f - am--depfiles" >&5
  17123. (cd "$am_dirpart" \
  17124. && sed -e '/# am--include-marker/d' "$am_filepart" \
  17125. | $MAKE -f - am--depfiles) >&5 2>&5
  17126. ac_status=$?
  17127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17128. (exit $ac_status); } || am_rc=$?
  17129. done
  17130. if test $am_rc -ne 0; then
  17131. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17132. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  17133. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  17134. for automatic dependency tracking. If GNU make was not used, consider
  17135. re-running the configure script with MAKE=\"gmake\" (or whatever is
  17136. necessary). You can also try re-running configure with the
  17137. '--disable-dependency-tracking' option to at least be able to build
  17138. the package (albeit without support for automatic dependency tracking).
  17139. See \`config.log' for more details" "$LINENO" 5; }
  17140. fi
  17141. { am_dirpart=; unset am_dirpart;}
  17142. { am_filepart=; unset am_filepart;}
  17143. { am_mf=; unset am_mf;}
  17144. { am_rc=; unset am_rc;}
  17145. rm -f conftest-deps.mk
  17146. }
  17147. ;;
  17148. "libtool":C)
  17149. # See if we are running on zsh, and set the options that allow our
  17150. # commands through without removal of \ escapes.
  17151. if test -n "${ZSH_VERSION+set}"; then
  17152. setopt NO_GLOB_SUBST
  17153. fi
  17154. cfgfile=${ofile}T
  17155. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  17156. $RM "$cfgfile"
  17157. cat <<_LT_EOF >> "$cfgfile"
  17158. #! $SHELL
  17159. # Generated automatically by $as_me ($PACKAGE) $VERSION
  17160. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  17161. # Provide generalized library-building support services.
  17162. # Written by Gordon Matzigkeit, 1996
  17163. # Copyright (C) 2014 Free Software Foundation, Inc.
  17164. # This is free software; see the source for copying conditions. There is NO
  17165. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17166. # GNU Libtool is free software; you can redistribute it and/or modify
  17167. # it under the terms of the GNU General Public License as published by
  17168. # the Free Software Foundation; either version 2 of of the License, or
  17169. # (at your option) any later version.
  17170. #
  17171. # As a special exception to the GNU General Public License, if you
  17172. # distribute this file as part of a program or library that is built
  17173. # using GNU Libtool, you may include this file under the same
  17174. # distribution terms that you use for the rest of that program.
  17175. #
  17176. # GNU Libtool is distributed in the hope that it will be useful, but
  17177. # WITHOUT ANY WARRANTY; without even the implied warranty of
  17178. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17179. # GNU General Public License for more details.
  17180. #
  17181. # You should have received a copy of the GNU General Public License
  17182. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17183. # The names of the tagged configurations supported by this script.
  17184. available_tags='CXX '
  17185. # Configured defaults for sys_lib_dlsearch_path munging.
  17186. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  17187. # ### BEGIN LIBTOOL CONFIG
  17188. # Which release of libtool.m4 was used?
  17189. macro_version=$macro_version
  17190. macro_revision=$macro_revision
  17191. # Whether or not to build shared libraries.
  17192. build_libtool_libs=$enable_shared
  17193. # Whether or not to build static libraries.
  17194. build_old_libs=$enable_static
  17195. # What type of objects to build.
  17196. pic_mode=$pic_mode
  17197. # Whether or not to optimize for fast installation.
  17198. fast_install=$enable_fast_install
  17199. # Shared archive member basename,for filename based shared library versioning on AIX.
  17200. shared_archive_member_spec=$shared_archive_member_spec
  17201. # Shell to use when invoking shell scripts.
  17202. SHELL=$lt_SHELL
  17203. # An echo program that protects backslashes.
  17204. ECHO=$lt_ECHO
  17205. # The PATH separator for the build system.
  17206. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  17207. # The host system.
  17208. host_alias=$host_alias
  17209. host=$host
  17210. host_os=$host_os
  17211. # The build system.
  17212. build_alias=$build_alias
  17213. build=$build
  17214. build_os=$build_os
  17215. # A sed program that does not truncate output.
  17216. SED=$lt_SED
  17217. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  17218. Xsed="\$SED -e 1s/^X//"
  17219. # A grep program that handles long lines.
  17220. GREP=$lt_GREP
  17221. # An ERE matcher.
  17222. EGREP=$lt_EGREP
  17223. # A literal string matcher.
  17224. FGREP=$lt_FGREP
  17225. # A BSD- or MS-compatible name lister.
  17226. NM=$lt_NM
  17227. # Whether we need soft or hard links.
  17228. LN_S=$lt_LN_S
  17229. # What is the maximum length of a command?
  17230. max_cmd_len=$max_cmd_len
  17231. # Object file suffix (normally "o").
  17232. objext=$ac_objext
  17233. # Executable file suffix (normally "").
  17234. exeext=$exeext
  17235. # whether the shell understands "unset".
  17236. lt_unset=$lt_unset
  17237. # turn spaces into newlines.
  17238. SP2NL=$lt_lt_SP2NL
  17239. # turn newlines into spaces.
  17240. NL2SP=$lt_lt_NL2SP
  17241. # convert \$build file names to \$host format.
  17242. to_host_file_cmd=$lt_cv_to_host_file_cmd
  17243. # convert \$build files to toolchain format.
  17244. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  17245. # An object symbol dumper.
  17246. OBJDUMP=$lt_OBJDUMP
  17247. # Method to check whether dependent libraries are shared objects.
  17248. deplibs_check_method=$lt_deplibs_check_method
  17249. # Command to use when deplibs_check_method = "file_magic".
  17250. file_magic_cmd=$lt_file_magic_cmd
  17251. # How to find potential files when deplibs_check_method = "file_magic".
  17252. file_magic_glob=$lt_file_magic_glob
  17253. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  17254. want_nocaseglob=$lt_want_nocaseglob
  17255. # DLL creation program.
  17256. DLLTOOL=$lt_DLLTOOL
  17257. # Command to associate shared and link libraries.
  17258. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  17259. # The archiver.
  17260. AR=$lt_AR
  17261. # Flags to create an archive.
  17262. AR_FLAGS=$lt_AR_FLAGS
  17263. # How to feed a file listing to the archiver.
  17264. archiver_list_spec=$lt_archiver_list_spec
  17265. # A symbol stripping program.
  17266. STRIP=$lt_STRIP
  17267. # Commands used to install an old-style archive.
  17268. RANLIB=$lt_RANLIB
  17269. old_postinstall_cmds=$lt_old_postinstall_cmds
  17270. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17271. # Whether to use a lock for old archive extraction.
  17272. lock_old_archive_extraction=$lock_old_archive_extraction
  17273. # A C compiler.
  17274. LTCC=$lt_CC
  17275. # LTCC compiler flags.
  17276. LTCFLAGS=$lt_CFLAGS
  17277. # Take the output of nm and produce a listing of raw symbols and C names.
  17278. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17279. # Transform the output of nm in a proper C declaration.
  17280. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17281. # Transform the output of nm into a list of symbols to manually relocate.
  17282. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  17283. # Transform the output of nm in a C name address pair.
  17284. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17285. # Transform the output of nm in a C name address pair when lib prefix is needed.
  17286. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  17287. # The name lister interface.
  17288. nm_interface=$lt_lt_cv_nm_interface
  17289. # Specify filename containing input files for \$NM.
  17290. nm_file_list_spec=$lt_nm_file_list_spec
  17291. # The root where to search for dependent libraries,and where our libraries should be installed.
  17292. lt_sysroot=$lt_sysroot
  17293. # Command to truncate a binary pipe.
  17294. lt_truncate_bin=$lt_lt_cv_truncate_bin
  17295. # The name of the directory that contains temporary libtool files.
  17296. objdir=$objdir
  17297. # Used to examine libraries when file_magic_cmd begins with "file".
  17298. MAGIC_CMD=$MAGIC_CMD
  17299. # Must we lock files when doing compilation?
  17300. need_locks=$lt_need_locks
  17301. # Manifest tool.
  17302. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  17303. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  17304. DSYMUTIL=$lt_DSYMUTIL
  17305. # Tool to change global to local symbols on Mac OS X.
  17306. NMEDIT=$lt_NMEDIT
  17307. # Tool to manipulate fat objects and archives on Mac OS X.
  17308. LIPO=$lt_LIPO
  17309. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  17310. OTOOL=$lt_OTOOL
  17311. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  17312. OTOOL64=$lt_OTOOL64
  17313. # Old archive suffix (normally "a").
  17314. libext=$libext
  17315. # Shared library suffix (normally ".so").
  17316. shrext_cmds=$lt_shrext_cmds
  17317. # The commands to extract the exported symbol list from a shared archive.
  17318. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17319. # Variables whose values should be saved in libtool wrapper scripts and
  17320. # restored at link time.
  17321. variables_saved_for_relink=$lt_variables_saved_for_relink
  17322. # Do we need the "lib" prefix for modules?
  17323. need_lib_prefix=$need_lib_prefix
  17324. # Do we need a version for libraries?
  17325. need_version=$need_version
  17326. # Library versioning type.
  17327. version_type=$version_type
  17328. # Shared library runtime path variable.
  17329. runpath_var=$runpath_var
  17330. # Shared library path variable.
  17331. shlibpath_var=$shlibpath_var
  17332. # Is shlibpath searched before the hard-coded library search path?
  17333. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17334. # Format of library name prefix.
  17335. libname_spec=$lt_libname_spec
  17336. # List of archive names. First name is the real one, the rest are links.
  17337. # The last name is the one that the linker finds with -lNAME
  17338. library_names_spec=$lt_library_names_spec
  17339. # The coded name of the library, if different from the real name.
  17340. soname_spec=$lt_soname_spec
  17341. # Permission mode override for installation of shared libraries.
  17342. install_override_mode=$lt_install_override_mode
  17343. # Command to use after installation of a shared archive.
  17344. postinstall_cmds=$lt_postinstall_cmds
  17345. # Command to use after uninstallation of a shared archive.
  17346. postuninstall_cmds=$lt_postuninstall_cmds
  17347. # Commands used to finish a libtool library installation in a directory.
  17348. finish_cmds=$lt_finish_cmds
  17349. # As "finish_cmds", except a single script fragment to be evaled but
  17350. # not shown.
  17351. finish_eval=$lt_finish_eval
  17352. # Whether we should hardcode library paths into libraries.
  17353. hardcode_into_libs=$hardcode_into_libs
  17354. # Compile-time system search path for libraries.
  17355. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17356. # Detected run-time system search path for libraries.
  17357. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  17358. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  17359. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  17360. # Whether dlopen is supported.
  17361. dlopen_support=$enable_dlopen
  17362. # Whether dlopen of programs is supported.
  17363. dlopen_self=$enable_dlopen_self
  17364. # Whether dlopen of statically linked programs is supported.
  17365. dlopen_self_static=$enable_dlopen_self_static
  17366. # Commands to strip libraries.
  17367. old_striplib=$lt_old_striplib
  17368. striplib=$lt_striplib
  17369. # The linker used to build libraries.
  17370. LD=$lt_LD
  17371. # How to create reloadable object files.
  17372. reload_flag=$lt_reload_flag
  17373. reload_cmds=$lt_reload_cmds
  17374. # Commands used to build an old-style archive.
  17375. old_archive_cmds=$lt_old_archive_cmds
  17376. # A language specific compiler.
  17377. CC=$lt_compiler
  17378. # Is the compiler the GNU compiler?
  17379. with_gcc=$GCC
  17380. # Compiler flag to turn off builtin functions.
  17381. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17382. # Additional compiler flags for building library objects.
  17383. pic_flag=$lt_lt_prog_compiler_pic
  17384. # How to pass a linker flag through the compiler.
  17385. wl=$lt_lt_prog_compiler_wl
  17386. # Compiler flag to prevent dynamic linking.
  17387. link_static_flag=$lt_lt_prog_compiler_static
  17388. # Does compiler simultaneously support -c and -o options?
  17389. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17390. # Whether or not to add -lc for building shared libraries.
  17391. build_libtool_need_lc=$archive_cmds_need_lc
  17392. # Whether or not to disallow shared libs when runtime libs are static.
  17393. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17394. # Compiler flag to allow reflexive dlopens.
  17395. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17396. # Compiler flag to generate shared objects directly from archives.
  17397. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17398. # Whether the compiler copes with passing no objects directly.
  17399. compiler_needs_object=$lt_compiler_needs_object
  17400. # Create an old-style archive from a shared archive.
  17401. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17402. # Create a temporary old-style archive to link instead of a shared archive.
  17403. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17404. # Commands used to build a shared archive.
  17405. archive_cmds=$lt_archive_cmds
  17406. archive_expsym_cmds=$lt_archive_expsym_cmds
  17407. # Commands used to build a loadable module if different from building
  17408. # a shared archive.
  17409. module_cmds=$lt_module_cmds
  17410. module_expsym_cmds=$lt_module_expsym_cmds
  17411. # Whether we are building with GNU ld or not.
  17412. with_gnu_ld=$lt_with_gnu_ld
  17413. # Flag that allows shared libraries with undefined symbols to be built.
  17414. allow_undefined_flag=$lt_allow_undefined_flag
  17415. # Flag that enforces no undefined symbols.
  17416. no_undefined_flag=$lt_no_undefined_flag
  17417. # Flag to hardcode \$libdir into a binary during linking.
  17418. # This must work even if \$libdir does not exist
  17419. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17420. # Whether we need a single "-rpath" flag with a separated argument.
  17421. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17422. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17423. # DIR into the resulting binary.
  17424. hardcode_direct=$hardcode_direct
  17425. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17426. # DIR into the resulting binary and the resulting library dependency is
  17427. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  17428. # library is relocated.
  17429. hardcode_direct_absolute=$hardcode_direct_absolute
  17430. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17431. # into the resulting binary.
  17432. hardcode_minus_L=$hardcode_minus_L
  17433. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17434. # into the resulting binary.
  17435. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17436. # Set to "yes" if building a shared library automatically hardcodes DIR
  17437. # into the library and all subsequent libraries and executables linked
  17438. # against it.
  17439. hardcode_automatic=$hardcode_automatic
  17440. # Set to yes if linker adds runtime paths of dependent libraries
  17441. # to runtime path list.
  17442. inherit_rpath=$inherit_rpath
  17443. # Whether libtool must link a program against all its dependency libraries.
  17444. link_all_deplibs=$link_all_deplibs
  17445. # Set to "yes" if exported symbols are required.
  17446. always_export_symbols=$always_export_symbols
  17447. # The commands to list exported symbols.
  17448. export_symbols_cmds=$lt_export_symbols_cmds
  17449. # Symbols that should not be listed in the preloaded symbols.
  17450. exclude_expsyms=$lt_exclude_expsyms
  17451. # Symbols that must always be exported.
  17452. include_expsyms=$lt_include_expsyms
  17453. # Commands necessary for linking programs (against libraries) with templates.
  17454. prelink_cmds=$lt_prelink_cmds
  17455. # Commands necessary for finishing linking programs.
  17456. postlink_cmds=$lt_postlink_cmds
  17457. # Specify filename containing input files.
  17458. file_list_spec=$lt_file_list_spec
  17459. # How to hardcode a shared library path into an executable.
  17460. hardcode_action=$hardcode_action
  17461. # The directories searched by this compiler when creating a shared library.
  17462. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  17463. # Dependencies to place before and after the objects being linked to
  17464. # create a shared library.
  17465. predep_objects=$lt_predep_objects
  17466. postdep_objects=$lt_postdep_objects
  17467. predeps=$lt_predeps
  17468. postdeps=$lt_postdeps
  17469. # The library search path used internally by the compiler when linking
  17470. # a shared library.
  17471. compiler_lib_search_path=$lt_compiler_lib_search_path
  17472. # ### END LIBTOOL CONFIG
  17473. _LT_EOF
  17474. cat <<'_LT_EOF' >> "$cfgfile"
  17475. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  17476. # func_munge_path_list VARIABLE PATH
  17477. # -----------------------------------
  17478. # VARIABLE is name of variable containing _space_ separated list of
  17479. # directories to be munged by the contents of PATH, which is string
  17480. # having a format:
  17481. # "DIR[:DIR]:"
  17482. # string "DIR[ DIR]" will be prepended to VARIABLE
  17483. # ":DIR[:DIR]"
  17484. # string "DIR[ DIR]" will be appended to VARIABLE
  17485. # "DIRP[:DIRP]::[DIRA:]DIRA"
  17486. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  17487. # "DIRA[ DIRA]" will be appended to VARIABLE
  17488. # "DIR[:DIR]"
  17489. # VARIABLE will be replaced by "DIR[ DIR]"
  17490. func_munge_path_list ()
  17491. {
  17492. case x$2 in
  17493. x)
  17494. ;;
  17495. *:)
  17496. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  17497. ;;
  17498. x:*)
  17499. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  17500. ;;
  17501. *::*)
  17502. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  17503. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  17504. ;;
  17505. *)
  17506. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  17507. ;;
  17508. esac
  17509. }
  17510. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  17511. func_cc_basename ()
  17512. {
  17513. for cc_temp in $*""; do
  17514. case $cc_temp in
  17515. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17516. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17517. \-*) ;;
  17518. *) break;;
  17519. esac
  17520. done
  17521. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  17522. }
  17523. # ### END FUNCTIONS SHARED WITH CONFIGURE
  17524. _LT_EOF
  17525. case $host_os in
  17526. aix3*)
  17527. cat <<\_LT_EOF >> "$cfgfile"
  17528. # AIX sometimes has problems with the GCC collect2 program. For some
  17529. # reason, if we set the COLLECT_NAMES environment variable, the problems
  17530. # vanish in a puff of smoke.
  17531. if test set != "${COLLECT_NAMES+set}"; then
  17532. COLLECT_NAMES=
  17533. export COLLECT_NAMES
  17534. fi
  17535. _LT_EOF
  17536. ;;
  17537. esac
  17538. ltmain=$ac_aux_dir/ltmain.sh
  17539. # We use sed instead of cat because bash on DJGPP gets confused if
  17540. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17541. # text mode, it properly converts lines to CR/LF. This bash problem
  17542. # is reportedly fixed, but why not run on old versions too?
  17543. sed '$q' "$ltmain" >> "$cfgfile" \
  17544. || (rm -f "$cfgfile"; exit 1)
  17545. mv -f "$cfgfile" "$ofile" ||
  17546. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17547. chmod +x "$ofile"
  17548. cat <<_LT_EOF >> "$ofile"
  17549. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  17550. # The linker used to build libraries.
  17551. LD=$lt_LD_CXX
  17552. # How to create reloadable object files.
  17553. reload_flag=$lt_reload_flag_CXX
  17554. reload_cmds=$lt_reload_cmds_CXX
  17555. # Commands used to build an old-style archive.
  17556. old_archive_cmds=$lt_old_archive_cmds_CXX
  17557. # A language specific compiler.
  17558. CC=$lt_compiler_CXX
  17559. # Is the compiler the GNU compiler?
  17560. with_gcc=$GCC_CXX
  17561. # Compiler flag to turn off builtin functions.
  17562. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  17563. # Additional compiler flags for building library objects.
  17564. pic_flag=$lt_lt_prog_compiler_pic_CXX
  17565. # How to pass a linker flag through the compiler.
  17566. wl=$lt_lt_prog_compiler_wl_CXX
  17567. # Compiler flag to prevent dynamic linking.
  17568. link_static_flag=$lt_lt_prog_compiler_static_CXX
  17569. # Does compiler simultaneously support -c and -o options?
  17570. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  17571. # Whether or not to add -lc for building shared libraries.
  17572. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  17573. # Whether or not to disallow shared libs when runtime libs are static.
  17574. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  17575. # Compiler flag to allow reflexive dlopens.
  17576. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  17577. # Compiler flag to generate shared objects directly from archives.
  17578. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  17579. # Whether the compiler copes with passing no objects directly.
  17580. compiler_needs_object=$lt_compiler_needs_object_CXX
  17581. # Create an old-style archive from a shared archive.
  17582. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  17583. # Create a temporary old-style archive to link instead of a shared archive.
  17584. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  17585. # Commands used to build a shared archive.
  17586. archive_cmds=$lt_archive_cmds_CXX
  17587. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  17588. # Commands used to build a loadable module if different from building
  17589. # a shared archive.
  17590. module_cmds=$lt_module_cmds_CXX
  17591. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  17592. # Whether we are building with GNU ld or not.
  17593. with_gnu_ld=$lt_with_gnu_ld_CXX
  17594. # Flag that allows shared libraries with undefined symbols to be built.
  17595. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  17596. # Flag that enforces no undefined symbols.
  17597. no_undefined_flag=$lt_no_undefined_flag_CXX
  17598. # Flag to hardcode \$libdir into a binary during linking.
  17599. # This must work even if \$libdir does not exist
  17600. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  17601. # Whether we need a single "-rpath" flag with a separated argument.
  17602. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  17603. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17604. # DIR into the resulting binary.
  17605. hardcode_direct=$hardcode_direct_CXX
  17606. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17607. # DIR into the resulting binary and the resulting library dependency is
  17608. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  17609. # library is relocated.
  17610. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  17611. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17612. # into the resulting binary.
  17613. hardcode_minus_L=$hardcode_minus_L_CXX
  17614. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17615. # into the resulting binary.
  17616. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  17617. # Set to "yes" if building a shared library automatically hardcodes DIR
  17618. # into the library and all subsequent libraries and executables linked
  17619. # against it.
  17620. hardcode_automatic=$hardcode_automatic_CXX
  17621. # Set to yes if linker adds runtime paths of dependent libraries
  17622. # to runtime path list.
  17623. inherit_rpath=$inherit_rpath_CXX
  17624. # Whether libtool must link a program against all its dependency libraries.
  17625. link_all_deplibs=$link_all_deplibs_CXX
  17626. # Set to "yes" if exported symbols are required.
  17627. always_export_symbols=$always_export_symbols_CXX
  17628. # The commands to list exported symbols.
  17629. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  17630. # Symbols that should not be listed in the preloaded symbols.
  17631. exclude_expsyms=$lt_exclude_expsyms_CXX
  17632. # Symbols that must always be exported.
  17633. include_expsyms=$lt_include_expsyms_CXX
  17634. # Commands necessary for linking programs (against libraries) with templates.
  17635. prelink_cmds=$lt_prelink_cmds_CXX
  17636. # Commands necessary for finishing linking programs.
  17637. postlink_cmds=$lt_postlink_cmds_CXX
  17638. # Specify filename containing input files.
  17639. file_list_spec=$lt_file_list_spec_CXX
  17640. # How to hardcode a shared library path into an executable.
  17641. hardcode_action=$hardcode_action_CXX
  17642. # The directories searched by this compiler when creating a shared library.
  17643. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  17644. # Dependencies to place before and after the objects being linked to
  17645. # create a shared library.
  17646. predep_objects=$lt_predep_objects_CXX
  17647. postdep_objects=$lt_postdep_objects_CXX
  17648. predeps=$lt_predeps_CXX
  17649. postdeps=$lt_postdeps_CXX
  17650. # The library search path used internally by the compiler when linking
  17651. # a shared library.
  17652. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  17653. # ### END LIBTOOL TAG CONFIG: CXX
  17654. _LT_EOF
  17655. ;;
  17656. esac
  17657. done # for ac_tag
  17658. as_fn_exit 0
  17659. _ACEOF
  17660. ac_clean_files=$ac_clean_files_save
  17661. test $ac_write_fail = 0 ||
  17662. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17663. # configure is writing to config.log, and then calls config.status.
  17664. # config.status does its own redirection, appending to config.log.
  17665. # Unfortunately, on DOS this fails, as config.log is still kept open
  17666. # by configure, so config.status won't be able to write to it; its
  17667. # output is simply discarded. So we exec the FD to /dev/null,
  17668. # effectively closing config.log, so it can be properly (re)opened and
  17669. # appended to by config.status. When coming back to configure, we
  17670. # need to make the FD available again.
  17671. if test "$no_create" != yes; then
  17672. ac_cs_success=:
  17673. ac_config_status_args=
  17674. test "$silent" = yes &&
  17675. ac_config_status_args="$ac_config_status_args --quiet"
  17676. exec 5>/dev/null
  17677. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17678. exec 5>>config.log
  17679. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17680. # would make configure fail if this is the last instruction.
  17681. $ac_cs_success || as_fn_exit 1
  17682. fi
  17683. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17685. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17686. fi