configure 577 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for package-unused version-unused.
  4. #
  5. # Report bugs to <libsanitizer>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  9. # Foundation, Inc.
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1
  161. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  162. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  163. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  164. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  165. PATH=/empty FPATH=/empty; export PATH FPATH
  166. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  167. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  168. if (eval "$as_required") 2>/dev/null; then :
  169. as_have_required=yes
  170. else
  171. as_have_required=no
  172. fi
  173. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  174. else
  175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  176. as_found=false
  177. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  178. do
  179. IFS=$as_save_IFS
  180. test -z "$as_dir" && as_dir=.
  181. as_found=:
  182. case $as_dir in #(
  183. /*)
  184. for as_base in sh bash ksh sh5; do
  185. # Try only shells that exist, to save several forks.
  186. as_shell=$as_dir/$as_base
  187. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  188. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. CONFIG_SHELL=$as_shell as_have_required=yes
  190. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  191. break 2
  192. fi
  193. fi
  194. done;;
  195. esac
  196. as_found=false
  197. done
  198. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  199. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  200. CONFIG_SHELL=$SHELL as_have_required=yes
  201. fi; }
  202. IFS=$as_save_IFS
  203. if test "x$CONFIG_SHELL" != x; then :
  204. # We cannot yet assume a decent shell, so we have to provide a
  205. # neutralization value for shells without unset; and this also
  206. # works around shells that cannot unset nonexistent variables.
  207. BASH_ENV=/dev/null
  208. ENV=/dev/null
  209. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  210. export CONFIG_SHELL
  211. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  212. fi
  213. if test x$as_have_required = xno; then :
  214. $as_echo "$0: This script requires a shell more modern than all"
  215. $as_echo "$0: the shells that I found on your system."
  216. if test x${ZSH_VERSION+set} = xset ; then
  217. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  218. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  219. else
  220. $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about
  221. $0: your system, including any error possibly output before
  222. $0: this message. Then install a modern shell, or manually
  223. $0: run the script under such a shell if you do have one."
  224. fi
  225. exit 1
  226. fi
  227. fi
  228. fi
  229. SHELL=${CONFIG_SHELL-/bin/sh}
  230. export SHELL
  231. # Unset more variables known to interfere with behavior of common tools.
  232. CLICOLOR_FORCE= GREP_OPTIONS=
  233. unset CLICOLOR_FORCE GREP_OPTIONS
  234. ## --------------------- ##
  235. ## M4sh Shell Functions. ##
  236. ## --------------------- ##
  237. # as_fn_unset VAR
  238. # ---------------
  239. # Portably unset VAR.
  240. as_fn_unset ()
  241. {
  242. { eval $1=; unset $1;}
  243. }
  244. as_unset=as_fn_unset
  245. # as_fn_set_status STATUS
  246. # -----------------------
  247. # Set $? to STATUS, without forking.
  248. as_fn_set_status ()
  249. {
  250. return $1
  251. } # as_fn_set_status
  252. # as_fn_exit STATUS
  253. # -----------------
  254. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  255. as_fn_exit ()
  256. {
  257. set +e
  258. as_fn_set_status $1
  259. exit $1
  260. } # as_fn_exit
  261. # as_fn_mkdir_p
  262. # -------------
  263. # Create "$as_dir" as a directory, including parents if necessary.
  264. as_fn_mkdir_p ()
  265. {
  266. case $as_dir in #(
  267. -*) as_dir=./$as_dir;;
  268. esac
  269. test -d "$as_dir" || eval $as_mkdir_p || {
  270. as_dirs=
  271. while :; do
  272. case $as_dir in #(
  273. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  274. *) as_qdir=$as_dir;;
  275. esac
  276. as_dirs="'$as_qdir' $as_dirs"
  277. as_dir=`$as_dirname -- "$as_dir" ||
  278. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  279. X"$as_dir" : 'X\(//\)[^/]' \| \
  280. X"$as_dir" : 'X\(//\)$' \| \
  281. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  282. $as_echo X"$as_dir" |
  283. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)[^/].*/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\/\)$/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\).*/{
  296. s//\1/
  297. q
  298. }
  299. s/.*/./; q'`
  300. test -d "$as_dir" && break
  301. done
  302. test -z "$as_dirs" || eval "mkdir $as_dirs"
  303. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  304. } # as_fn_mkdir_p
  305. # as_fn_append VAR VALUE
  306. # ----------------------
  307. # Append the text in VALUE to the end of the definition contained in VAR. Take
  308. # advantage of any shell optimizations that allow amortized linear growth over
  309. # repeated appends, instead of the typical quadratic growth present in naive
  310. # implementations.
  311. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  312. eval 'as_fn_append ()
  313. {
  314. eval $1+=\$2
  315. }'
  316. else
  317. as_fn_append ()
  318. {
  319. eval $1=\$$1\$2
  320. }
  321. fi # as_fn_append
  322. # as_fn_arith ARG...
  323. # ------------------
  324. # Perform arithmetic evaluation on the ARGs, and store the result in the
  325. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  326. # must be portable across $(()) and expr.
  327. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  328. eval 'as_fn_arith ()
  329. {
  330. as_val=$(( $* ))
  331. }'
  332. else
  333. as_fn_arith ()
  334. {
  335. as_val=`expr "$@" || test $? -eq 1`
  336. }
  337. fi # as_fn_arith
  338. # as_fn_error ERROR [LINENO LOG_FD]
  339. # ---------------------------------
  340. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  341. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  342. # script with status $?, using 1 if that was 0.
  343. as_fn_error ()
  344. {
  345. as_status=$?; test $as_status -eq 0 && as_status=1
  346. if test "$3"; then
  347. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  348. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  349. fi
  350. $as_echo "$as_me: error: $1" >&2
  351. as_fn_exit $as_status
  352. } # as_fn_error
  353. if expr a : '\(a\)' >/dev/null 2>&1 &&
  354. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  355. as_expr=expr
  356. else
  357. as_expr=false
  358. fi
  359. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  360. as_basename=basename
  361. else
  362. as_basename=false
  363. fi
  364. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  365. as_dirname=dirname
  366. else
  367. as_dirname=false
  368. fi
  369. as_me=`$as_basename -- "$0" ||
  370. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  371. X"$0" : 'X\(//\)$' \| \
  372. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  373. $as_echo X/"$0" |
  374. sed '/^.*\/\([^/][^/]*\)\/*$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\/\)$/{
  379. s//\1/
  380. q
  381. }
  382. /^X\/\(\/\).*/{
  383. s//\1/
  384. q
  385. }
  386. s/.*/./; q'`
  387. # Avoid depending upon Character Ranges.
  388. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  389. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  390. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  391. as_cr_digits='0123456789'
  392. as_cr_alnum=$as_cr_Letters$as_cr_digits
  393. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  394. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  395. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  396. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  397. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  398. sed -n '
  399. p
  400. /[$]LINENO/=
  401. ' <$as_myself |
  402. sed '
  403. s/[$]LINENO.*/&-/
  404. t lineno
  405. b
  406. :lineno
  407. N
  408. :loop
  409. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  410. t loop
  411. s/-\n.*//
  412. ' >$as_me.lineno &&
  413. chmod +x "$as_me.lineno" ||
  414. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  415. # Don't try to exec as it changes $[0], causing all sort of problems
  416. # (the dirname of $[0] is not the place where we might find the
  417. # original and so on. Autoconf is especially sensitive to this).
  418. . "./$as_me.lineno"
  419. # Exit status is that of the last command.
  420. exit
  421. }
  422. ECHO_C= ECHO_N= ECHO_T=
  423. case `echo -n x` in #(((((
  424. -n*)
  425. case `echo 'xy\c'` in
  426. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  427. xy) ECHO_C='\c';;
  428. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  429. ECHO_T=' ';;
  430. esac;;
  431. *)
  432. ECHO_N='-n';;
  433. esac
  434. rm -f conf$$ conf$$.exe conf$$.file
  435. if test -d conf$$.dir; then
  436. rm -f conf$$.dir/conf$$.file
  437. else
  438. rm -f conf$$.dir
  439. mkdir conf$$.dir 2>/dev/null
  440. fi
  441. if (echo >conf$$.file) 2>/dev/null; then
  442. if ln -s conf$$.file conf$$ 2>/dev/null; then
  443. as_ln_s='ln -s'
  444. # ... but there are two gotchas:
  445. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  446. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  447. # In both cases, we have to default to `cp -p'.
  448. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  449. as_ln_s='cp -p'
  450. elif ln conf$$.file conf$$ 2>/dev/null; then
  451. as_ln_s=ln
  452. else
  453. as_ln_s='cp -p'
  454. fi
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  459. rmdir conf$$.dir 2>/dev/null
  460. if mkdir -p . 2>/dev/null; then
  461. as_mkdir_p='mkdir -p "$as_dir"'
  462. else
  463. test -d ./-p && rmdir ./-p
  464. as_mkdir_p=false
  465. fi
  466. if test -x / >/dev/null 2>&1; then
  467. as_test_x='test -x'
  468. else
  469. if ls -dL / >/dev/null 2>&1; then
  470. as_ls_L_option=L
  471. else
  472. as_ls_L_option=
  473. fi
  474. as_test_x='
  475. eval sh -c '\''
  476. if test -d "$1"; then
  477. test -d "$1/.";
  478. else
  479. case $1 in #(
  480. -*)set "./$1";;
  481. esac;
  482. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  483. ???[sx]*):;;*)false;;esac;fi
  484. '\'' sh
  485. '
  486. fi
  487. as_executable_p=$as_test_x
  488. # Sed expression to map a string onto a valid CPP name.
  489. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  490. # Sed expression to map a string onto a valid variable name.
  491. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  492. SHELL=${CONFIG_SHELL-/bin/sh}
  493. exec 7<&0 </dev/null 6>&1
  494. # Name of the host.
  495. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  496. # so uname gets run too.
  497. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  498. #
  499. # Initializations.
  500. #
  501. ac_default_prefix=/usr/local
  502. ac_clean_files=
  503. ac_config_libobj_dir=.
  504. LIBOBJS=
  505. cross_compiling=no
  506. subdirs=
  507. MFLAGS=
  508. MAKEFLAGS=
  509. # Identity of this package.
  510. PACKAGE_NAME='package-unused'
  511. PACKAGE_TARNAME='package-unused'
  512. PACKAGE_VERSION='version-unused'
  513. PACKAGE_STRING='package-unused version-unused'
  514. PACKAGE_BUGREPORT='libsanitizer'
  515. PACKAGE_URL=''
  516. ac_unique_file="include/sanitizer/common_interface_defs.h"
  517. # Factoring default headers for most tests.
  518. ac_includes_default="\
  519. #include <stdio.h>
  520. #ifdef HAVE_SYS_TYPES_H
  521. # include <sys/types.h>
  522. #endif
  523. #ifdef HAVE_SYS_STAT_H
  524. # include <sys/stat.h>
  525. #endif
  526. #ifdef STDC_HEADERS
  527. # include <stdlib.h>
  528. # include <stddef.h>
  529. #else
  530. # ifdef HAVE_STDLIB_H
  531. # include <stdlib.h>
  532. # endif
  533. #endif
  534. #ifdef HAVE_STRING_H
  535. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  536. # include <memory.h>
  537. # endif
  538. # include <string.h>
  539. #endif
  540. #ifdef HAVE_STRINGS_H
  541. # include <strings.h>
  542. #endif
  543. #ifdef HAVE_INTTYPES_H
  544. # include <inttypes.h>
  545. #endif
  546. #ifdef HAVE_STDINT_H
  547. # include <stdint.h>
  548. #endif
  549. #ifdef HAVE_UNISTD_H
  550. # include <unistd.h>
  551. #endif"
  552. ac_subst_vars='am__EXEEXT_FALSE
  553. am__EXEEXT_TRUE
  554. LTLIBOBJS
  555. LIBOBJS
  556. TSAN_TARGET_DEPENDENT_OBJECTS
  557. LIBBACKTRACE_SUPPORTED_FALSE
  558. LIBBACKTRACE_SUPPORTED_TRUE
  559. RPC_DEFS
  560. BACKTRACE_SUPPORTS_THREADS
  561. BACKTRACE_USES_MALLOC
  562. ALLOC_FILE
  563. VIEW_FILE
  564. BACKTRACE_SUPPORTED
  565. FORMAT_FILE
  566. SANITIZER_SUPPORTED_FALSE
  567. SANITIZER_SUPPORTED_TRUE
  568. USING_MAC_INTERPOSE_FALSE
  569. USING_MAC_INTERPOSE_TRUE
  570. link_liblsan
  571. link_libubsan
  572. link_libtsan
  573. link_libasan
  574. LSAN_SUPPORTED_FALSE
  575. LSAN_SUPPORTED_TRUE
  576. TSAN_SUPPORTED_FALSE
  577. TSAN_SUPPORTED_TRUE
  578. enable_static
  579. enable_shared
  580. CXXCPP
  581. OTOOL64
  582. OTOOL
  583. LIPO
  584. NMEDIT
  585. DSYMUTIL
  586. AR
  587. OBJDUMP
  588. LN_S
  589. NM
  590. ac_ct_DUMPBIN
  591. DUMPBIN
  592. LD
  593. FGREP
  594. SED
  595. LIBTOOL
  596. RANLIB
  597. am__fastdepCCAS_FALSE
  598. am__fastdepCCAS_TRUE
  599. CCASDEPMODE
  600. CCASFLAGS
  601. CCAS
  602. am__fastdepCXX_FALSE
  603. am__fastdepCXX_TRUE
  604. CXXDEPMODE
  605. ac_ct_CXX
  606. CXXFLAGS
  607. CXX
  608. toolexeclibdir
  609. toolexecdir
  610. MAINT
  611. MAINTAINER_MODE_FALSE
  612. MAINTAINER_MODE_TRUE
  613. am__fastdepCC_FALSE
  614. am__fastdepCC_TRUE
  615. CCDEPMODE
  616. AMDEPBACKSLASH
  617. AMDEP_FALSE
  618. AMDEP_TRUE
  619. am__quote
  620. am__include
  621. DEPDIR
  622. am__untar
  623. am__tar
  624. AMTAR
  625. am__leading_dot
  626. SET_MAKE
  627. AWK
  628. mkdir_p
  629. MKDIR_P
  630. INSTALL_STRIP_PROGRAM
  631. STRIP
  632. install_sh
  633. MAKEINFO
  634. AUTOHEADER
  635. AUTOMAKE
  636. AUTOCONF
  637. ACLOCAL
  638. VERSION
  639. PACKAGE
  640. CYGPATH_W
  641. am__isrc
  642. INSTALL_DATA
  643. INSTALL_SCRIPT
  644. INSTALL_PROGRAM
  645. LIBSTDCXX_RAW_CXX_LDFLAGS
  646. LIBSTDCXX_RAW_CXX_CXXFLAGS
  647. target_noncanonical
  648. target_os
  649. target_vendor
  650. target_cpu
  651. target
  652. host_os
  653. host_vendor
  654. host_cpu
  655. host
  656. build_os
  657. build_vendor
  658. build_cpu
  659. build
  660. EGREP
  661. GREP
  662. CPP
  663. OBJEXT
  664. EXEEXT
  665. ac_ct_CC
  666. CPPFLAGS
  667. LDFLAGS
  668. CFLAGS
  669. CC
  670. multi_basedir
  671. target_alias
  672. host_alias
  673. build_alias
  674. LIBS
  675. ECHO_T
  676. ECHO_N
  677. ECHO_C
  678. DEFS
  679. mandir
  680. localedir
  681. libdir
  682. psdir
  683. pdfdir
  684. dvidir
  685. htmldir
  686. infodir
  687. docdir
  688. oldincludedir
  689. includedir
  690. localstatedir
  691. sharedstatedir
  692. sysconfdir
  693. datadir
  694. datarootdir
  695. libexecdir
  696. sbindir
  697. bindir
  698. program_transform_name
  699. prefix
  700. exec_prefix
  701. PACKAGE_URL
  702. PACKAGE_BUGREPORT
  703. PACKAGE_STRING
  704. PACKAGE_VERSION
  705. PACKAGE_TARNAME
  706. PACKAGE_NAME
  707. PATH_SEPARATOR
  708. SHELL'
  709. ac_subst_files=''
  710. ac_user_opts='
  711. enable_option_checking
  712. enable_multilib
  713. enable_version_specific_runtime_libs
  714. enable_dependency_tracking
  715. enable_maintainer_mode
  716. enable_shared
  717. enable_static
  718. with_pic
  719. enable_fast_install
  720. with_gnu_ld
  721. enable_libtool_lock
  722. '
  723. ac_precious_vars='build_alias
  724. host_alias
  725. target_alias
  726. CC
  727. CFLAGS
  728. LDFLAGS
  729. LIBS
  730. CPPFLAGS
  731. CPP
  732. CXX
  733. CXXFLAGS
  734. CCC
  735. CCAS
  736. CCASFLAGS
  737. CXXCPP'
  738. # Initialize some variables set by options.
  739. ac_init_help=
  740. ac_init_version=false
  741. ac_unrecognized_opts=
  742. ac_unrecognized_sep=
  743. # The variables have the same names as the options, with
  744. # dashes changed to underlines.
  745. cache_file=/dev/null
  746. exec_prefix=NONE
  747. no_create=
  748. no_recursion=
  749. prefix=NONE
  750. program_prefix=NONE
  751. program_suffix=NONE
  752. program_transform_name=s,x,x,
  753. silent=
  754. site=
  755. srcdir=
  756. verbose=
  757. x_includes=NONE
  758. x_libraries=NONE
  759. # Installation directory options.
  760. # These are left unexpanded so users can "make install exec_prefix=/foo"
  761. # and all the variables that are supposed to be based on exec_prefix
  762. # by default will actually change.
  763. # Use braces instead of parens because sh, perl, etc. also accept them.
  764. # (The list follows the same order as the GNU Coding Standards.)
  765. bindir='${exec_prefix}/bin'
  766. sbindir='${exec_prefix}/sbin'
  767. libexecdir='${exec_prefix}/libexec'
  768. datarootdir='${prefix}/share'
  769. datadir='${datarootdir}'
  770. sysconfdir='${prefix}/etc'
  771. sharedstatedir='${prefix}/com'
  772. localstatedir='${prefix}/var'
  773. includedir='${prefix}/include'
  774. oldincludedir='/usr/include'
  775. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  776. infodir='${datarootdir}/info'
  777. htmldir='${docdir}'
  778. dvidir='${docdir}'
  779. pdfdir='${docdir}'
  780. psdir='${docdir}'
  781. libdir='${exec_prefix}/lib'
  782. localedir='${datarootdir}/locale'
  783. mandir='${datarootdir}/man'
  784. ac_prev=
  785. ac_dashdash=
  786. for ac_option
  787. do
  788. # If the previous option needs an argument, assign it.
  789. if test -n "$ac_prev"; then
  790. eval $ac_prev=\$ac_option
  791. ac_prev=
  792. continue
  793. fi
  794. case $ac_option in
  795. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  796. *) ac_optarg=yes ;;
  797. esac
  798. # Accept the important Cygnus configure options, so we can diagnose typos.
  799. case $ac_dashdash$ac_option in
  800. --)
  801. ac_dashdash=yes ;;
  802. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  803. ac_prev=bindir ;;
  804. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  805. bindir=$ac_optarg ;;
  806. -build | --build | --buil | --bui | --bu)
  807. ac_prev=build_alias ;;
  808. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  809. build_alias=$ac_optarg ;;
  810. -cache-file | --cache-file | --cache-fil | --cache-fi \
  811. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  812. ac_prev=cache_file ;;
  813. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  814. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  815. cache_file=$ac_optarg ;;
  816. --config-cache | -C)
  817. cache_file=config.cache ;;
  818. -datadir | --datadir | --datadi | --datad)
  819. ac_prev=datadir ;;
  820. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  821. datadir=$ac_optarg ;;
  822. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  823. | --dataroo | --dataro | --datar)
  824. ac_prev=datarootdir ;;
  825. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  826. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  827. datarootdir=$ac_optarg ;;
  828. -disable-* | --disable-*)
  829. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  830. # Reject names that are not valid shell variable names.
  831. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  832. as_fn_error "invalid feature name: $ac_useropt"
  833. ac_useropt_orig=$ac_useropt
  834. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  835. case $ac_user_opts in
  836. *"
  837. "enable_$ac_useropt"
  838. "*) ;;
  839. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  840. ac_unrecognized_sep=', ';;
  841. esac
  842. eval enable_$ac_useropt=no ;;
  843. -docdir | --docdir | --docdi | --doc | --do)
  844. ac_prev=docdir ;;
  845. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  846. docdir=$ac_optarg ;;
  847. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  848. ac_prev=dvidir ;;
  849. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  850. dvidir=$ac_optarg ;;
  851. -enable-* | --enable-*)
  852. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  853. # Reject names that are not valid shell variable names.
  854. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  855. as_fn_error "invalid feature name: $ac_useropt"
  856. ac_useropt_orig=$ac_useropt
  857. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  858. case $ac_user_opts in
  859. *"
  860. "enable_$ac_useropt"
  861. "*) ;;
  862. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  863. ac_unrecognized_sep=', ';;
  864. esac
  865. eval enable_$ac_useropt=\$ac_optarg ;;
  866. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  867. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  868. | --exec | --exe | --ex)
  869. ac_prev=exec_prefix ;;
  870. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  871. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  872. | --exec=* | --exe=* | --ex=*)
  873. exec_prefix=$ac_optarg ;;
  874. -gas | --gas | --ga | --g)
  875. # Obsolete; use --with-gas.
  876. with_gas=yes ;;
  877. -help | --help | --hel | --he | -h)
  878. ac_init_help=long ;;
  879. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  880. ac_init_help=recursive ;;
  881. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  882. ac_init_help=short ;;
  883. -host | --host | --hos | --ho)
  884. ac_prev=host_alias ;;
  885. -host=* | --host=* | --hos=* | --ho=*)
  886. host_alias=$ac_optarg ;;
  887. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  888. ac_prev=htmldir ;;
  889. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  890. | --ht=*)
  891. htmldir=$ac_optarg ;;
  892. -includedir | --includedir | --includedi | --included | --include \
  893. | --includ | --inclu | --incl | --inc)
  894. ac_prev=includedir ;;
  895. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  896. | --includ=* | --inclu=* | --incl=* | --inc=*)
  897. includedir=$ac_optarg ;;
  898. -infodir | --infodir | --infodi | --infod | --info | --inf)
  899. ac_prev=infodir ;;
  900. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  901. infodir=$ac_optarg ;;
  902. -libdir | --libdir | --libdi | --libd)
  903. ac_prev=libdir ;;
  904. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  905. libdir=$ac_optarg ;;
  906. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  907. | --libexe | --libex | --libe)
  908. ac_prev=libexecdir ;;
  909. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  910. | --libexe=* | --libex=* | --libe=*)
  911. libexecdir=$ac_optarg ;;
  912. -localedir | --localedir | --localedi | --localed | --locale)
  913. ac_prev=localedir ;;
  914. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  915. localedir=$ac_optarg ;;
  916. -localstatedir | --localstatedir | --localstatedi | --localstated \
  917. | --localstate | --localstat | --localsta | --localst | --locals)
  918. ac_prev=localstatedir ;;
  919. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  920. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  921. localstatedir=$ac_optarg ;;
  922. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  923. ac_prev=mandir ;;
  924. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  925. mandir=$ac_optarg ;;
  926. -nfp | --nfp | --nf)
  927. # Obsolete; use --without-fp.
  928. with_fp=no ;;
  929. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  930. | --no-cr | --no-c | -n)
  931. no_create=yes ;;
  932. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  933. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  934. no_recursion=yes ;;
  935. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  936. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  937. | --oldin | --oldi | --old | --ol | --o)
  938. ac_prev=oldincludedir ;;
  939. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  940. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  941. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  942. oldincludedir=$ac_optarg ;;
  943. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  944. ac_prev=prefix ;;
  945. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  946. prefix=$ac_optarg ;;
  947. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  948. | --program-pre | --program-pr | --program-p)
  949. ac_prev=program_prefix ;;
  950. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  951. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  952. program_prefix=$ac_optarg ;;
  953. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  954. | --program-suf | --program-su | --program-s)
  955. ac_prev=program_suffix ;;
  956. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  957. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  958. program_suffix=$ac_optarg ;;
  959. -program-transform-name | --program-transform-name \
  960. | --program-transform-nam | --program-transform-na \
  961. | --program-transform-n | --program-transform- \
  962. | --program-transform | --program-transfor \
  963. | --program-transfo | --program-transf \
  964. | --program-trans | --program-tran \
  965. | --progr-tra | --program-tr | --program-t)
  966. ac_prev=program_transform_name ;;
  967. -program-transform-name=* | --program-transform-name=* \
  968. | --program-transform-nam=* | --program-transform-na=* \
  969. | --program-transform-n=* | --program-transform-=* \
  970. | --program-transform=* | --program-transfor=* \
  971. | --program-transfo=* | --program-transf=* \
  972. | --program-trans=* | --program-tran=* \
  973. | --progr-tra=* | --program-tr=* | --program-t=*)
  974. program_transform_name=$ac_optarg ;;
  975. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  976. ac_prev=pdfdir ;;
  977. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  978. pdfdir=$ac_optarg ;;
  979. -psdir | --psdir | --psdi | --psd | --ps)
  980. ac_prev=psdir ;;
  981. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  982. psdir=$ac_optarg ;;
  983. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  984. | -silent | --silent | --silen | --sile | --sil)
  985. silent=yes ;;
  986. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  987. ac_prev=sbindir ;;
  988. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  989. | --sbi=* | --sb=*)
  990. sbindir=$ac_optarg ;;
  991. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  992. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  993. | --sharedst | --shareds | --shared | --share | --shar \
  994. | --sha | --sh)
  995. ac_prev=sharedstatedir ;;
  996. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  997. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  998. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  999. | --sha=* | --sh=*)
  1000. sharedstatedir=$ac_optarg ;;
  1001. -site | --site | --sit)
  1002. ac_prev=site ;;
  1003. -site=* | --site=* | --sit=*)
  1004. site=$ac_optarg ;;
  1005. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1006. ac_prev=srcdir ;;
  1007. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1008. srcdir=$ac_optarg ;;
  1009. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1010. | --syscon | --sysco | --sysc | --sys | --sy)
  1011. ac_prev=sysconfdir ;;
  1012. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1013. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1014. sysconfdir=$ac_optarg ;;
  1015. -target | --target | --targe | --targ | --tar | --ta | --t)
  1016. ac_prev=target_alias ;;
  1017. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1018. target_alias=$ac_optarg ;;
  1019. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1020. verbose=yes ;;
  1021. -version | --version | --versio | --versi | --vers | -V)
  1022. ac_init_version=: ;;
  1023. -with-* | --with-*)
  1024. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1025. # Reject names that are not valid shell variable names.
  1026. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1027. as_fn_error "invalid package name: $ac_useropt"
  1028. ac_useropt_orig=$ac_useropt
  1029. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1030. case $ac_user_opts in
  1031. *"
  1032. "with_$ac_useropt"
  1033. "*) ;;
  1034. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1035. ac_unrecognized_sep=', ';;
  1036. esac
  1037. eval with_$ac_useropt=\$ac_optarg ;;
  1038. -without-* | --without-*)
  1039. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1040. # Reject names that are not valid shell variable names.
  1041. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1042. as_fn_error "invalid package name: $ac_useropt"
  1043. ac_useropt_orig=$ac_useropt
  1044. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1045. case $ac_user_opts in
  1046. *"
  1047. "with_$ac_useropt"
  1048. "*) ;;
  1049. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1050. ac_unrecognized_sep=', ';;
  1051. esac
  1052. eval with_$ac_useropt=no ;;
  1053. --x)
  1054. # Obsolete; use --with-x.
  1055. with_x=yes ;;
  1056. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1057. | --x-incl | --x-inc | --x-in | --x-i)
  1058. ac_prev=x_includes ;;
  1059. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1060. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1061. x_includes=$ac_optarg ;;
  1062. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1063. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1064. ac_prev=x_libraries ;;
  1065. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1066. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1067. x_libraries=$ac_optarg ;;
  1068. -*) as_fn_error "unrecognized option: \`$ac_option'
  1069. Try \`$0 --help' for more information."
  1070. ;;
  1071. *=*)
  1072. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1073. # Reject names that are not valid shell variable names.
  1074. case $ac_envvar in #(
  1075. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1076. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1077. esac
  1078. eval $ac_envvar=\$ac_optarg
  1079. export $ac_envvar ;;
  1080. *)
  1081. # FIXME: should be removed in autoconf 3.0.
  1082. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1083. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1084. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1085. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1086. ;;
  1087. esac
  1088. done
  1089. if test -n "$ac_prev"; then
  1090. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1091. as_fn_error "missing argument to $ac_option"
  1092. fi
  1093. if test -n "$ac_unrecognized_opts"; then
  1094. case $enable_option_checking in
  1095. no) ;;
  1096. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1097. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1098. esac
  1099. fi
  1100. # Check all directory arguments for consistency.
  1101. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1102. datadir sysconfdir sharedstatedir localstatedir includedir \
  1103. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1104. libdir localedir mandir
  1105. do
  1106. eval ac_val=\$$ac_var
  1107. # Remove trailing slashes.
  1108. case $ac_val in
  1109. */ )
  1110. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1111. eval $ac_var=\$ac_val;;
  1112. esac
  1113. # Be sure to have absolute directory names.
  1114. case $ac_val in
  1115. [\\/$]* | ?:[\\/]* ) continue;;
  1116. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1117. esac
  1118. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1119. done
  1120. # There might be people who depend on the old broken behavior: `$host'
  1121. # used to hold the argument of --host etc.
  1122. # FIXME: To remove some day.
  1123. build=$build_alias
  1124. host=$host_alias
  1125. target=$target_alias
  1126. # FIXME: To remove some day.
  1127. if test "x$host_alias" != x; then
  1128. if test "x$build_alias" = x; then
  1129. cross_compiling=maybe
  1130. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1131. If a cross compiler is detected then cross compile mode will be used." >&2
  1132. elif test "x$build_alias" != "x$host_alias"; then
  1133. cross_compiling=yes
  1134. fi
  1135. fi
  1136. ac_tool_prefix=
  1137. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1138. test "$silent" = yes && exec 6>/dev/null
  1139. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1140. ac_ls_di=`ls -di .` &&
  1141. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1142. as_fn_error "working directory cannot be determined"
  1143. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1144. as_fn_error "pwd does not report name of working directory"
  1145. # Find the source files, if location was not specified.
  1146. if test -z "$srcdir"; then
  1147. ac_srcdir_defaulted=yes
  1148. # Try the directory containing this script, then the parent directory.
  1149. ac_confdir=`$as_dirname -- "$as_myself" ||
  1150. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1151. X"$as_myself" : 'X\(//\)[^/]' \| \
  1152. X"$as_myself" : 'X\(//\)$' \| \
  1153. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1154. $as_echo X"$as_myself" |
  1155. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1156. s//\1/
  1157. q
  1158. }
  1159. /^X\(\/\/\)[^/].*/{
  1160. s//\1/
  1161. q
  1162. }
  1163. /^X\(\/\/\)$/{
  1164. s//\1/
  1165. q
  1166. }
  1167. /^X\(\/\).*/{
  1168. s//\1/
  1169. q
  1170. }
  1171. s/.*/./; q'`
  1172. srcdir=$ac_confdir
  1173. if test ! -r "$srcdir/$ac_unique_file"; then
  1174. srcdir=..
  1175. fi
  1176. else
  1177. ac_srcdir_defaulted=no
  1178. fi
  1179. if test ! -r "$srcdir/$ac_unique_file"; then
  1180. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1181. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1182. fi
  1183. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1184. ac_abs_confdir=`(
  1185. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1186. pwd)`
  1187. # When building in place, set srcdir=.
  1188. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1189. srcdir=.
  1190. fi
  1191. # Remove unnecessary trailing slashes from srcdir.
  1192. # Double slashes in file names in object file debugging info
  1193. # mess up M-x gdb in Emacs.
  1194. case $srcdir in
  1195. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1196. esac
  1197. for ac_var in $ac_precious_vars; do
  1198. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1199. eval ac_env_${ac_var}_value=\$${ac_var}
  1200. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1201. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1202. done
  1203. #
  1204. # Report the --help message.
  1205. #
  1206. if test "$ac_init_help" = "long"; then
  1207. # Omit some internal or obsolete options to make the list less imposing.
  1208. # This message is too long to be a string in the A/UX 3.1 sh.
  1209. cat <<_ACEOF
  1210. \`configure' configures package-unused version-unused to adapt to many kinds of systems.
  1211. Usage: $0 [OPTION]... [VAR=VALUE]...
  1212. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1213. VAR=VALUE. See below for descriptions of some of the useful variables.
  1214. Defaults for the options are specified in brackets.
  1215. Configuration:
  1216. -h, --help display this help and exit
  1217. --help=short display options specific to this package
  1218. --help=recursive display the short help of all the included packages
  1219. -V, --version display version information and exit
  1220. -q, --quiet, --silent do not print \`checking...' messages
  1221. --cache-file=FILE cache test results in FILE [disabled]
  1222. -C, --config-cache alias for \`--cache-file=config.cache'
  1223. -n, --no-create do not create output files
  1224. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1225. Installation directories:
  1226. --prefix=PREFIX install architecture-independent files in PREFIX
  1227. [$ac_default_prefix]
  1228. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1229. [PREFIX]
  1230. By default, \`make install' will install all the files in
  1231. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1232. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1233. for instance \`--prefix=\$HOME'.
  1234. For better control, use the options below.
  1235. Fine tuning of the installation directories:
  1236. --bindir=DIR user executables [EPREFIX/bin]
  1237. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1238. --libexecdir=DIR program executables [EPREFIX/libexec]
  1239. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1240. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1241. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1242. --libdir=DIR object code libraries [EPREFIX/lib]
  1243. --includedir=DIR C header files [PREFIX/include]
  1244. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1245. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1246. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1247. --infodir=DIR info documentation [DATAROOTDIR/info]
  1248. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1249. --mandir=DIR man documentation [DATAROOTDIR/man]
  1250. --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
  1251. --htmldir=DIR html documentation [DOCDIR]
  1252. --dvidir=DIR dvi documentation [DOCDIR]
  1253. --pdfdir=DIR pdf documentation [DOCDIR]
  1254. --psdir=DIR ps documentation [DOCDIR]
  1255. _ACEOF
  1256. cat <<\_ACEOF
  1257. Program names:
  1258. --program-prefix=PREFIX prepend PREFIX to installed program names
  1259. --program-suffix=SUFFIX append SUFFIX to installed program names
  1260. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1261. System types:
  1262. --build=BUILD configure for building on BUILD [guessed]
  1263. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1264. --target=TARGET configure for building compilers for TARGET [HOST]
  1265. _ACEOF
  1266. fi
  1267. if test -n "$ac_init_help"; then
  1268. case $ac_init_help in
  1269. short | recursive ) echo "Configuration of package-unused version-unused:";;
  1270. esac
  1271. cat <<\_ACEOF
  1272. Optional Features:
  1273. --disable-option-checking ignore unrecognized --enable/--with options
  1274. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1275. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1276. --enable-multilib build many library versions (default)
  1277. --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
  1278. --disable-dependency-tracking speeds up one-time build
  1279. --enable-dependency-tracking do not reject slow dependency extractors
  1280. --enable-maintainer-mode enable make rules and dependencies not useful
  1281. (and sometimes confusing) to the casual installer
  1282. --enable-shared[=PKGS] build shared libraries [default=yes]
  1283. --enable-static[=PKGS] build static libraries [default=yes]
  1284. --enable-fast-install[=PKGS]
  1285. optimize for fast installation [default=yes]
  1286. --disable-libtool-lock avoid locking (might break parallel builds)
  1287. Optional Packages:
  1288. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1289. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1290. --with-pic try to use only PIC/non-PIC objects [default=use
  1291. both]
  1292. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1293. Some influential environment variables:
  1294. CC C compiler command
  1295. CFLAGS C compiler flags
  1296. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1297. nonstandard directory <lib dir>
  1298. LIBS libraries to pass to the linker, e.g. -l<library>
  1299. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1300. you have headers in a nonstandard directory <include dir>
  1301. CPP C preprocessor
  1302. CXX C++ compiler command
  1303. CXXFLAGS C++ compiler flags
  1304. CCAS assembler compiler command (defaults to CC)
  1305. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1306. CXXCPP C++ preprocessor
  1307. Use these variables to override the choices made by `configure' or to help
  1308. it to find libraries and programs with nonstandard names/locations.
  1309. Report bugs to <libsanitizer>.
  1310. _ACEOF
  1311. ac_status=$?
  1312. fi
  1313. if test "$ac_init_help" = "recursive"; then
  1314. # If there are subdirs, report their specific --help.
  1315. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1316. test -d "$ac_dir" ||
  1317. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1318. continue
  1319. ac_builddir=.
  1320. case "$ac_dir" in
  1321. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1322. *)
  1323. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1324. # A ".." for each directory in $ac_dir_suffix.
  1325. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1326. case $ac_top_builddir_sub in
  1327. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1328. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1329. esac ;;
  1330. esac
  1331. ac_abs_top_builddir=$ac_pwd
  1332. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1333. # for backward compatibility:
  1334. ac_top_builddir=$ac_top_build_prefix
  1335. case $srcdir in
  1336. .) # We are building in place.
  1337. ac_srcdir=.
  1338. ac_top_srcdir=$ac_top_builddir_sub
  1339. ac_abs_top_srcdir=$ac_pwd ;;
  1340. [\\/]* | ?:[\\/]* ) # Absolute name.
  1341. ac_srcdir=$srcdir$ac_dir_suffix;
  1342. ac_top_srcdir=$srcdir
  1343. ac_abs_top_srcdir=$srcdir ;;
  1344. *) # Relative name.
  1345. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1346. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1347. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1348. esac
  1349. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1350. cd "$ac_dir" || { ac_status=$?; continue; }
  1351. # Check for guested configure.
  1352. if test -f "$ac_srcdir/configure.gnu"; then
  1353. echo &&
  1354. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1355. elif test -f "$ac_srcdir/configure"; then
  1356. echo &&
  1357. $SHELL "$ac_srcdir/configure" --help=recursive
  1358. else
  1359. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1360. fi || ac_status=$?
  1361. cd "$ac_pwd" || { ac_status=$?; break; }
  1362. done
  1363. fi
  1364. test -n "$ac_init_help" && exit $ac_status
  1365. if $ac_init_version; then
  1366. cat <<\_ACEOF
  1367. package-unused configure version-unused
  1368. generated by GNU Autoconf 2.64
  1369. Copyright (C) 2009 Free Software Foundation, Inc.
  1370. This configure script is free software; the Free Software Foundation
  1371. gives unlimited permission to copy, distribute and modify it.
  1372. _ACEOF
  1373. exit
  1374. fi
  1375. ## ------------------------ ##
  1376. ## Autoconf initialization. ##
  1377. ## ------------------------ ##
  1378. # ac_fn_c_try_compile LINENO
  1379. # --------------------------
  1380. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1381. ac_fn_c_try_compile ()
  1382. {
  1383. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1384. rm -f conftest.$ac_objext
  1385. if { { ac_try="$ac_compile"
  1386. case "(($ac_try" in
  1387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1388. *) ac_try_echo=$ac_try;;
  1389. esac
  1390. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1391. $as_echo "$ac_try_echo"; } >&5
  1392. (eval "$ac_compile") 2>conftest.err
  1393. ac_status=$?
  1394. if test -s conftest.err; then
  1395. grep -v '^ *+' conftest.err >conftest.er1
  1396. cat conftest.er1 >&5
  1397. mv -f conftest.er1 conftest.err
  1398. fi
  1399. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1400. test $ac_status = 0; } && {
  1401. test -z "$ac_c_werror_flag" ||
  1402. test ! -s conftest.err
  1403. } && test -s conftest.$ac_objext; then :
  1404. ac_retval=0
  1405. else
  1406. $as_echo "$as_me: failed program was:" >&5
  1407. sed 's/^/| /' conftest.$ac_ext >&5
  1408. ac_retval=1
  1409. fi
  1410. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1411. return $ac_retval
  1412. } # ac_fn_c_try_compile
  1413. # ac_fn_c_try_cpp LINENO
  1414. # ----------------------
  1415. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1416. ac_fn_c_try_cpp ()
  1417. {
  1418. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1419. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1420. case "(($ac_try" in
  1421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1422. *) ac_try_echo=$ac_try;;
  1423. esac
  1424. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1425. $as_echo "$ac_try_echo"; } >&5
  1426. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1427. ac_status=$?
  1428. if test -s conftest.err; then
  1429. grep -v '^ *+' conftest.err >conftest.er1
  1430. cat conftest.er1 >&5
  1431. mv -f conftest.er1 conftest.err
  1432. fi
  1433. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1434. test $ac_status = 0; } >/dev/null && {
  1435. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1436. test ! -s conftest.err
  1437. }; then :
  1438. ac_retval=0
  1439. else
  1440. $as_echo "$as_me: failed program was:" >&5
  1441. sed 's/^/| /' conftest.$ac_ext >&5
  1442. ac_retval=1
  1443. fi
  1444. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1445. return $ac_retval
  1446. } # ac_fn_c_try_cpp
  1447. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1448. # -------------------------------------------------------
  1449. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1450. # the include files in INCLUDES and setting the cache variable VAR
  1451. # accordingly.
  1452. ac_fn_c_check_header_mongrel ()
  1453. {
  1454. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1455. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1457. $as_echo_n "checking for $2... " >&6; }
  1458. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1459. $as_echo_n "(cached) " >&6
  1460. fi
  1461. eval ac_res=\$$3
  1462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1463. $as_echo "$ac_res" >&6; }
  1464. else
  1465. # Is the header compilable?
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1467. $as_echo_n "checking $2 usability... " >&6; }
  1468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1469. /* end confdefs.h. */
  1470. $4
  1471. #include <$2>
  1472. _ACEOF
  1473. if ac_fn_c_try_compile "$LINENO"; then :
  1474. ac_header_compiler=yes
  1475. else
  1476. ac_header_compiler=no
  1477. fi
  1478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1480. $as_echo "$ac_header_compiler" >&6; }
  1481. # Is the header present?
  1482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1483. $as_echo_n "checking $2 presence... " >&6; }
  1484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1485. /* end confdefs.h. */
  1486. #include <$2>
  1487. _ACEOF
  1488. if ac_fn_c_try_cpp "$LINENO"; then :
  1489. ac_header_preproc=yes
  1490. else
  1491. ac_header_preproc=no
  1492. fi
  1493. rm -f conftest.err conftest.$ac_ext
  1494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1495. $as_echo "$ac_header_preproc" >&6; }
  1496. # So? What about this header?
  1497. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1498. yes:no: )
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1500. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1502. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1503. ;;
  1504. no:yes:* )
  1505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1506. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1508. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1510. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1512. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1514. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1515. ( cat <<\_ASBOX
  1516. ## --------------------------- ##
  1517. ## Report this to libsanitizer ##
  1518. ## --------------------------- ##
  1519. _ASBOX
  1520. ) | sed "s/^/$as_me: WARNING: /" >&2
  1521. ;;
  1522. esac
  1523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1524. $as_echo_n "checking for $2... " >&6; }
  1525. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1526. $as_echo_n "(cached) " >&6
  1527. else
  1528. eval "$3=\$ac_header_compiler"
  1529. fi
  1530. eval ac_res=\$$3
  1531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1532. $as_echo "$ac_res" >&6; }
  1533. fi
  1534. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1535. } # ac_fn_c_check_header_mongrel
  1536. # ac_fn_c_try_run LINENO
  1537. # ----------------------
  1538. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1539. # that executables *can* be run.
  1540. ac_fn_c_try_run ()
  1541. {
  1542. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1543. if { { ac_try="$ac_link"
  1544. case "(($ac_try" in
  1545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1546. *) ac_try_echo=$ac_try;;
  1547. esac
  1548. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1549. $as_echo "$ac_try_echo"; } >&5
  1550. (eval "$ac_link") 2>&5
  1551. ac_status=$?
  1552. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1553. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1554. { { case "(($ac_try" in
  1555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1556. *) ac_try_echo=$ac_try;;
  1557. esac
  1558. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1559. $as_echo "$ac_try_echo"; } >&5
  1560. (eval "$ac_try") 2>&5
  1561. ac_status=$?
  1562. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1563. test $ac_status = 0; }; }; then :
  1564. ac_retval=0
  1565. else
  1566. $as_echo "$as_me: program exited with status $ac_status" >&5
  1567. $as_echo "$as_me: failed program was:" >&5
  1568. sed 's/^/| /' conftest.$ac_ext >&5
  1569. ac_retval=$ac_status
  1570. fi
  1571. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1572. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1573. return $ac_retval
  1574. } # ac_fn_c_try_run
  1575. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1576. # -------------------------------------------------------
  1577. # Tests whether HEADER exists and can be compiled using the include files in
  1578. # INCLUDES, setting the cache variable VAR accordingly.
  1579. ac_fn_c_check_header_compile ()
  1580. {
  1581. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1583. $as_echo_n "checking for $2... " >&6; }
  1584. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1585. $as_echo_n "(cached) " >&6
  1586. else
  1587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1588. /* end confdefs.h. */
  1589. $4
  1590. #include <$2>
  1591. _ACEOF
  1592. if ac_fn_c_try_compile "$LINENO"; then :
  1593. eval "$3=yes"
  1594. else
  1595. eval "$3=no"
  1596. fi
  1597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1598. fi
  1599. eval ac_res=\$$3
  1600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1601. $as_echo "$ac_res" >&6; }
  1602. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1603. } # ac_fn_c_check_header_compile
  1604. # ac_fn_cxx_try_compile LINENO
  1605. # ----------------------------
  1606. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1607. ac_fn_cxx_try_compile ()
  1608. {
  1609. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1610. rm -f conftest.$ac_objext
  1611. if { { ac_try="$ac_compile"
  1612. case "(($ac_try" in
  1613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1614. *) ac_try_echo=$ac_try;;
  1615. esac
  1616. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1617. $as_echo "$ac_try_echo"; } >&5
  1618. (eval "$ac_compile") 2>conftest.err
  1619. ac_status=$?
  1620. if test -s conftest.err; then
  1621. grep -v '^ *+' conftest.err >conftest.er1
  1622. cat conftest.er1 >&5
  1623. mv -f conftest.er1 conftest.err
  1624. fi
  1625. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1626. test $ac_status = 0; } && {
  1627. test -z "$ac_cxx_werror_flag" ||
  1628. test ! -s conftest.err
  1629. } && test -s conftest.$ac_objext; then :
  1630. ac_retval=0
  1631. else
  1632. $as_echo "$as_me: failed program was:" >&5
  1633. sed 's/^/| /' conftest.$ac_ext >&5
  1634. ac_retval=1
  1635. fi
  1636. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1637. return $ac_retval
  1638. } # ac_fn_cxx_try_compile
  1639. # ac_fn_c_try_link LINENO
  1640. # -----------------------
  1641. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1642. ac_fn_c_try_link ()
  1643. {
  1644. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1645. rm -f conftest.$ac_objext conftest$ac_exeext
  1646. if { { ac_try="$ac_link"
  1647. case "(($ac_try" in
  1648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1649. *) ac_try_echo=$ac_try;;
  1650. esac
  1651. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1652. $as_echo "$ac_try_echo"; } >&5
  1653. (eval "$ac_link") 2>conftest.err
  1654. ac_status=$?
  1655. if test -s conftest.err; then
  1656. grep -v '^ *+' conftest.err >conftest.er1
  1657. cat conftest.er1 >&5
  1658. mv -f conftest.er1 conftest.err
  1659. fi
  1660. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1661. test $ac_status = 0; } && {
  1662. test -z "$ac_c_werror_flag" ||
  1663. test ! -s conftest.err
  1664. } && test -s conftest$ac_exeext && {
  1665. test "$cross_compiling" = yes ||
  1666. $as_test_x conftest$ac_exeext
  1667. }; then :
  1668. ac_retval=0
  1669. else
  1670. $as_echo "$as_me: failed program was:" >&5
  1671. sed 's/^/| /' conftest.$ac_ext >&5
  1672. ac_retval=1
  1673. fi
  1674. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1675. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1676. # interfere with the next link command; also delete a directory that is
  1677. # left behind by Apple's compiler. We do this before executing the actions.
  1678. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1679. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1680. return $ac_retval
  1681. } # ac_fn_c_try_link
  1682. # ac_fn_c_check_func LINENO FUNC VAR
  1683. # ----------------------------------
  1684. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1685. ac_fn_c_check_func ()
  1686. {
  1687. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1689. $as_echo_n "checking for $2... " >&6; }
  1690. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1691. $as_echo_n "(cached) " >&6
  1692. else
  1693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1694. /* end confdefs.h. */
  1695. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1696. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1697. #define $2 innocuous_$2
  1698. /* System header to define __stub macros and hopefully few prototypes,
  1699. which can conflict with char $2 (); below.
  1700. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1701. <limits.h> exists even on freestanding compilers. */
  1702. #ifdef __STDC__
  1703. # include <limits.h>
  1704. #else
  1705. # include <assert.h>
  1706. #endif
  1707. #undef $2
  1708. /* Override any GCC internal prototype to avoid an error.
  1709. Use char because int might match the return type of a GCC
  1710. builtin and then its argument prototype would still apply. */
  1711. #ifdef __cplusplus
  1712. extern "C"
  1713. #endif
  1714. char $2 ();
  1715. /* The GNU C library defines this for functions which it implements
  1716. to always fail with ENOSYS. Some functions are actually named
  1717. something starting with __ and the normal name is an alias. */
  1718. #if defined __stub_$2 || defined __stub___$2
  1719. choke me
  1720. #endif
  1721. int
  1722. main ()
  1723. {
  1724. return $2 ();
  1725. ;
  1726. return 0;
  1727. }
  1728. _ACEOF
  1729. if ac_fn_c_try_link "$LINENO"; then :
  1730. eval "$3=yes"
  1731. else
  1732. eval "$3=no"
  1733. fi
  1734. rm -f core conftest.err conftest.$ac_objext \
  1735. conftest$ac_exeext conftest.$ac_ext
  1736. fi
  1737. eval ac_res=\$$3
  1738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1739. $as_echo "$ac_res" >&6; }
  1740. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1741. } # ac_fn_c_check_func
  1742. # ac_fn_cxx_try_cpp LINENO
  1743. # ------------------------
  1744. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1745. ac_fn_cxx_try_cpp ()
  1746. {
  1747. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1748. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1749. case "(($ac_try" in
  1750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1751. *) ac_try_echo=$ac_try;;
  1752. esac
  1753. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1754. $as_echo "$ac_try_echo"; } >&5
  1755. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1756. ac_status=$?
  1757. if test -s conftest.err; then
  1758. grep -v '^ *+' conftest.err >conftest.er1
  1759. cat conftest.er1 >&5
  1760. mv -f conftest.er1 conftest.err
  1761. fi
  1762. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1763. test $ac_status = 0; } >/dev/null && {
  1764. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1765. test ! -s conftest.err
  1766. }; then :
  1767. ac_retval=0
  1768. else
  1769. $as_echo "$as_me: failed program was:" >&5
  1770. sed 's/^/| /' conftest.$ac_ext >&5
  1771. ac_retval=1
  1772. fi
  1773. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1774. return $ac_retval
  1775. } # ac_fn_cxx_try_cpp
  1776. # ac_fn_cxx_try_link LINENO
  1777. # -------------------------
  1778. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1779. ac_fn_cxx_try_link ()
  1780. {
  1781. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1782. rm -f conftest.$ac_objext conftest$ac_exeext
  1783. if { { ac_try="$ac_link"
  1784. case "(($ac_try" in
  1785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1786. *) ac_try_echo=$ac_try;;
  1787. esac
  1788. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1789. $as_echo "$ac_try_echo"; } >&5
  1790. (eval "$ac_link") 2>conftest.err
  1791. ac_status=$?
  1792. if test -s conftest.err; then
  1793. grep -v '^ *+' conftest.err >conftest.er1
  1794. cat conftest.er1 >&5
  1795. mv -f conftest.er1 conftest.err
  1796. fi
  1797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1798. test $ac_status = 0; } && {
  1799. test -z "$ac_cxx_werror_flag" ||
  1800. test ! -s conftest.err
  1801. } && test -s conftest$ac_exeext && {
  1802. test "$cross_compiling" = yes ||
  1803. $as_test_x conftest$ac_exeext
  1804. }; then :
  1805. ac_retval=0
  1806. else
  1807. $as_echo "$as_me: failed program was:" >&5
  1808. sed 's/^/| /' conftest.$ac_ext >&5
  1809. ac_retval=1
  1810. fi
  1811. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1812. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1813. # interfere with the next link command; also delete a directory that is
  1814. # left behind by Apple's compiler. We do this before executing the actions.
  1815. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1816. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1817. return $ac_retval
  1818. } # ac_fn_cxx_try_link
  1819. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1820. # --------------------------------------------
  1821. # Tries to find the compile-time value of EXPR in a program that includes
  1822. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1823. # computed
  1824. ac_fn_c_compute_int ()
  1825. {
  1826. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1827. if test "$cross_compiling" = yes; then
  1828. # Depending upon the size, compute the lo and hi bounds.
  1829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1830. /* end confdefs.h. */
  1831. $4
  1832. int
  1833. main ()
  1834. {
  1835. static int test_array [1 - 2 * !(($2) >= 0)];
  1836. test_array [0] = 0
  1837. ;
  1838. return 0;
  1839. }
  1840. _ACEOF
  1841. if ac_fn_c_try_compile "$LINENO"; then :
  1842. ac_lo=0 ac_mid=0
  1843. while :; do
  1844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1845. /* end confdefs.h. */
  1846. $4
  1847. int
  1848. main ()
  1849. {
  1850. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1851. test_array [0] = 0
  1852. ;
  1853. return 0;
  1854. }
  1855. _ACEOF
  1856. if ac_fn_c_try_compile "$LINENO"; then :
  1857. ac_hi=$ac_mid; break
  1858. else
  1859. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1860. if test $ac_lo -le $ac_mid; then
  1861. ac_lo= ac_hi=
  1862. break
  1863. fi
  1864. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1865. fi
  1866. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1867. done
  1868. else
  1869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1870. /* end confdefs.h. */
  1871. $4
  1872. int
  1873. main ()
  1874. {
  1875. static int test_array [1 - 2 * !(($2) < 0)];
  1876. test_array [0] = 0
  1877. ;
  1878. return 0;
  1879. }
  1880. _ACEOF
  1881. if ac_fn_c_try_compile "$LINENO"; then :
  1882. ac_hi=-1 ac_mid=-1
  1883. while :; do
  1884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1885. /* end confdefs.h. */
  1886. $4
  1887. int
  1888. main ()
  1889. {
  1890. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1891. test_array [0] = 0
  1892. ;
  1893. return 0;
  1894. }
  1895. _ACEOF
  1896. if ac_fn_c_try_compile "$LINENO"; then :
  1897. ac_lo=$ac_mid; break
  1898. else
  1899. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1900. if test $ac_mid -le $ac_hi; then
  1901. ac_lo= ac_hi=
  1902. break
  1903. fi
  1904. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1905. fi
  1906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1907. done
  1908. else
  1909. ac_lo= ac_hi=
  1910. fi
  1911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1912. fi
  1913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1914. # Binary search between lo and hi bounds.
  1915. while test "x$ac_lo" != "x$ac_hi"; do
  1916. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1918. /* end confdefs.h. */
  1919. $4
  1920. int
  1921. main ()
  1922. {
  1923. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1924. test_array [0] = 0
  1925. ;
  1926. return 0;
  1927. }
  1928. _ACEOF
  1929. if ac_fn_c_try_compile "$LINENO"; then :
  1930. ac_hi=$ac_mid
  1931. else
  1932. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1933. fi
  1934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1935. done
  1936. case $ac_lo in #((
  1937. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1938. '') ac_retval=1 ;;
  1939. esac
  1940. else
  1941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1942. /* end confdefs.h. */
  1943. $4
  1944. static long int longval () { return $2; }
  1945. static unsigned long int ulongval () { return $2; }
  1946. #include <stdio.h>
  1947. #include <stdlib.h>
  1948. int
  1949. main ()
  1950. {
  1951. FILE *f = fopen ("conftest.val", "w");
  1952. if (! f)
  1953. return 1;
  1954. if (($2) < 0)
  1955. {
  1956. long int i = longval ();
  1957. if (i != ($2))
  1958. return 1;
  1959. fprintf (f, "%ld", i);
  1960. }
  1961. else
  1962. {
  1963. unsigned long int i = ulongval ();
  1964. if (i != ($2))
  1965. return 1;
  1966. fprintf (f, "%lu", i);
  1967. }
  1968. /* Do not output a trailing newline, as this causes \r\n confusion
  1969. on some platforms. */
  1970. return ferror (f) || fclose (f) != 0;
  1971. ;
  1972. return 0;
  1973. }
  1974. _ACEOF
  1975. if ac_fn_c_try_run "$LINENO"; then :
  1976. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1977. else
  1978. ac_retval=1
  1979. fi
  1980. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1981. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1982. rm -f conftest.val
  1983. fi
  1984. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1985. return $ac_retval
  1986. } # ac_fn_c_compute_int
  1987. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1988. # -------------------------------------------
  1989. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1990. # variable VAR accordingly.
  1991. ac_fn_c_check_type ()
  1992. {
  1993. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1995. $as_echo_n "checking for $2... " >&6; }
  1996. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1997. $as_echo_n "(cached) " >&6
  1998. else
  1999. eval "$3=no"
  2000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2001. /* end confdefs.h. */
  2002. $4
  2003. int
  2004. main ()
  2005. {
  2006. if (sizeof ($2))
  2007. return 0;
  2008. ;
  2009. return 0;
  2010. }
  2011. _ACEOF
  2012. if ac_fn_c_try_compile "$LINENO"; then :
  2013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2014. /* end confdefs.h. */
  2015. $4
  2016. int
  2017. main ()
  2018. {
  2019. if (sizeof (($2)))
  2020. return 0;
  2021. ;
  2022. return 0;
  2023. }
  2024. _ACEOF
  2025. if ac_fn_c_try_compile "$LINENO"; then :
  2026. else
  2027. eval "$3=yes"
  2028. fi
  2029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2030. fi
  2031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2032. fi
  2033. eval ac_res=\$$3
  2034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2035. $as_echo "$ac_res" >&6; }
  2036. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2037. } # ac_fn_c_check_type
  2038. # ac_fn_c_check_decl LINENO SYMBOL VAR
  2039. # ------------------------------------
  2040. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  2041. ac_fn_c_check_decl ()
  2042. {
  2043. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2044. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2045. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2047. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2048. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2049. $as_echo_n "(cached) " >&6
  2050. else
  2051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2052. /* end confdefs.h. */
  2053. $4
  2054. int
  2055. main ()
  2056. {
  2057. #ifndef $as_decl_name
  2058. #ifdef __cplusplus
  2059. (void) $as_decl_use;
  2060. #else
  2061. (void) $as_decl_name;
  2062. #endif
  2063. #endif
  2064. ;
  2065. return 0;
  2066. }
  2067. _ACEOF
  2068. if ac_fn_c_try_compile "$LINENO"; then :
  2069. eval "$3=yes"
  2070. else
  2071. eval "$3=no"
  2072. fi
  2073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2074. fi
  2075. eval ac_res=\$$3
  2076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2077. $as_echo "$ac_res" >&6; }
  2078. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2079. } # ac_fn_c_check_decl
  2080. cat >config.log <<_ACEOF
  2081. This file contains any messages produced by compilers while
  2082. running configure, to aid debugging if configure makes a mistake.
  2083. It was created by package-unused $as_me version-unused, which was
  2084. generated by GNU Autoconf 2.64. Invocation command line was
  2085. $ $0 $@
  2086. _ACEOF
  2087. exec 5>>config.log
  2088. {
  2089. cat <<_ASUNAME
  2090. ## --------- ##
  2091. ## Platform. ##
  2092. ## --------- ##
  2093. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2094. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2095. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2096. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2097. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2098. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2099. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2100. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2101. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2102. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2103. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2104. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2105. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2106. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2107. _ASUNAME
  2108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2109. for as_dir in $PATH
  2110. do
  2111. IFS=$as_save_IFS
  2112. test -z "$as_dir" && as_dir=.
  2113. $as_echo "PATH: $as_dir"
  2114. done
  2115. IFS=$as_save_IFS
  2116. } >&5
  2117. cat >&5 <<_ACEOF
  2118. ## ----------- ##
  2119. ## Core tests. ##
  2120. ## ----------- ##
  2121. _ACEOF
  2122. # Keep a trace of the command line.
  2123. # Strip out --no-create and --no-recursion so they do not pile up.
  2124. # Strip out --silent because we don't want to record it for future runs.
  2125. # Also quote any args containing shell meta-characters.
  2126. # Make two passes to allow for proper duplicate-argument suppression.
  2127. ac_configure_args=
  2128. ac_configure_args0=
  2129. ac_configure_args1=
  2130. ac_must_keep_next=false
  2131. for ac_pass in 1 2
  2132. do
  2133. for ac_arg
  2134. do
  2135. case $ac_arg in
  2136. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2137. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2138. | -silent | --silent | --silen | --sile | --sil)
  2139. continue ;;
  2140. *\'*)
  2141. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2142. esac
  2143. case $ac_pass in
  2144. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2145. 2)
  2146. as_fn_append ac_configure_args1 " '$ac_arg'"
  2147. if test $ac_must_keep_next = true; then
  2148. ac_must_keep_next=false # Got value, back to normal.
  2149. else
  2150. case $ac_arg in
  2151. *=* | --config-cache | -C | -disable-* | --disable-* \
  2152. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2153. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2154. | -with-* | --with-* | -without-* | --without-* | --x)
  2155. case "$ac_configure_args0 " in
  2156. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2157. esac
  2158. ;;
  2159. -* ) ac_must_keep_next=true ;;
  2160. esac
  2161. fi
  2162. as_fn_append ac_configure_args " '$ac_arg'"
  2163. ;;
  2164. esac
  2165. done
  2166. done
  2167. { ac_configure_args0=; unset ac_configure_args0;}
  2168. { ac_configure_args1=; unset ac_configure_args1;}
  2169. # When interrupted or exit'd, cleanup temporary files, and complete
  2170. # config.log. We remove comments because anyway the quotes in there
  2171. # would cause problems or look ugly.
  2172. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2173. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2174. trap 'exit_status=$?
  2175. # Save into config.log some information that might help in debugging.
  2176. {
  2177. echo
  2178. cat <<\_ASBOX
  2179. ## ---------------- ##
  2180. ## Cache variables. ##
  2181. ## ---------------- ##
  2182. _ASBOX
  2183. echo
  2184. # The following way of writing the cache mishandles newlines in values,
  2185. (
  2186. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2187. eval ac_val=\$$ac_var
  2188. case $ac_val in #(
  2189. *${as_nl}*)
  2190. case $ac_var in #(
  2191. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2192. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2193. esac
  2194. case $ac_var in #(
  2195. _ | IFS | as_nl) ;; #(
  2196. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2197. *) { eval $ac_var=; unset $ac_var;} ;;
  2198. esac ;;
  2199. esac
  2200. done
  2201. (set) 2>&1 |
  2202. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2203. *${as_nl}ac_space=\ *)
  2204. sed -n \
  2205. "s/'\''/'\''\\\\'\'''\''/g;
  2206. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2207. ;; #(
  2208. *)
  2209. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2210. ;;
  2211. esac |
  2212. sort
  2213. )
  2214. echo
  2215. cat <<\_ASBOX
  2216. ## ----------------- ##
  2217. ## Output variables. ##
  2218. ## ----------------- ##
  2219. _ASBOX
  2220. echo
  2221. for ac_var in $ac_subst_vars
  2222. do
  2223. eval ac_val=\$$ac_var
  2224. case $ac_val in
  2225. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2226. esac
  2227. $as_echo "$ac_var='\''$ac_val'\''"
  2228. done | sort
  2229. echo
  2230. if test -n "$ac_subst_files"; then
  2231. cat <<\_ASBOX
  2232. ## ------------------- ##
  2233. ## File substitutions. ##
  2234. ## ------------------- ##
  2235. _ASBOX
  2236. echo
  2237. for ac_var in $ac_subst_files
  2238. do
  2239. eval ac_val=\$$ac_var
  2240. case $ac_val in
  2241. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2242. esac
  2243. $as_echo "$ac_var='\''$ac_val'\''"
  2244. done | sort
  2245. echo
  2246. fi
  2247. if test -s confdefs.h; then
  2248. cat <<\_ASBOX
  2249. ## ----------- ##
  2250. ## confdefs.h. ##
  2251. ## ----------- ##
  2252. _ASBOX
  2253. echo
  2254. cat confdefs.h
  2255. echo
  2256. fi
  2257. test "$ac_signal" != 0 &&
  2258. $as_echo "$as_me: caught signal $ac_signal"
  2259. $as_echo "$as_me: exit $exit_status"
  2260. } >&5
  2261. rm -f core *.core core.conftest.* &&
  2262. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2263. exit $exit_status
  2264. ' 0
  2265. for ac_signal in 1 2 13 15; do
  2266. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2267. done
  2268. ac_signal=0
  2269. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2270. rm -f -r conftest* confdefs.h
  2271. $as_echo "/* confdefs.h */" > confdefs.h
  2272. # Predefined preprocessor variables.
  2273. cat >>confdefs.h <<_ACEOF
  2274. #define PACKAGE_NAME "$PACKAGE_NAME"
  2275. _ACEOF
  2276. cat >>confdefs.h <<_ACEOF
  2277. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2278. _ACEOF
  2279. cat >>confdefs.h <<_ACEOF
  2280. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2281. _ACEOF
  2282. cat >>confdefs.h <<_ACEOF
  2283. #define PACKAGE_STRING "$PACKAGE_STRING"
  2284. _ACEOF
  2285. cat >>confdefs.h <<_ACEOF
  2286. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2287. _ACEOF
  2288. cat >>confdefs.h <<_ACEOF
  2289. #define PACKAGE_URL "$PACKAGE_URL"
  2290. _ACEOF
  2291. # Let the site file select an alternate cache file if it wants to.
  2292. # Prefer an explicitly selected file to automatically selected ones.
  2293. ac_site_file1=NONE
  2294. ac_site_file2=NONE
  2295. if test -n "$CONFIG_SITE"; then
  2296. ac_site_file1=$CONFIG_SITE
  2297. elif test "x$prefix" != xNONE; then
  2298. ac_site_file1=$prefix/share/config.site
  2299. ac_site_file2=$prefix/etc/config.site
  2300. else
  2301. ac_site_file1=$ac_default_prefix/share/config.site
  2302. ac_site_file2=$ac_default_prefix/etc/config.site
  2303. fi
  2304. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2305. do
  2306. test "x$ac_site_file" = xNONE && continue
  2307. if test -r "$ac_site_file"; then
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2309. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2310. sed 's/^/| /' "$ac_site_file" >&5
  2311. . "$ac_site_file"
  2312. fi
  2313. done
  2314. if test -r "$cache_file"; then
  2315. # Some versions of bash will fail to source /dev/null (special
  2316. # files actually), so we avoid doing that.
  2317. if test -f "$cache_file"; then
  2318. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2319. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2320. case $cache_file in
  2321. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2322. *) . "./$cache_file";;
  2323. esac
  2324. fi
  2325. else
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2327. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2328. >$cache_file
  2329. fi
  2330. # Check that the precious variables saved in the cache have kept the same
  2331. # value.
  2332. ac_cache_corrupted=false
  2333. for ac_var in $ac_precious_vars; do
  2334. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2335. eval ac_new_set=\$ac_env_${ac_var}_set
  2336. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2337. eval ac_new_val=\$ac_env_${ac_var}_value
  2338. case $ac_old_set,$ac_new_set in
  2339. set,)
  2340. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2341. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2342. ac_cache_corrupted=: ;;
  2343. ,set)
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2345. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2346. ac_cache_corrupted=: ;;
  2347. ,);;
  2348. *)
  2349. if test "x$ac_old_val" != "x$ac_new_val"; then
  2350. # differences in whitespace do not lead to failure.
  2351. ac_old_val_w=`echo x $ac_old_val`
  2352. ac_new_val_w=`echo x $ac_new_val`
  2353. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2355. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2356. ac_cache_corrupted=:
  2357. else
  2358. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2359. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2360. eval $ac_var=\$ac_old_val
  2361. fi
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2363. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2365. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2366. fi;;
  2367. esac
  2368. # Pass precious variables to config.status.
  2369. if test "$ac_new_set" = set; then
  2370. case $ac_new_val in
  2371. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2372. *) ac_arg=$ac_var=$ac_new_val ;;
  2373. esac
  2374. case " $ac_configure_args " in
  2375. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2376. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2377. esac
  2378. fi
  2379. done
  2380. if $ac_cache_corrupted; then
  2381. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2382. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2384. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2385. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2386. fi
  2387. ## -------------------- ##
  2388. ## Main body of script. ##
  2389. ## -------------------- ##
  2390. ac_ext=c
  2391. ac_cpp='$CPP $CPPFLAGS'
  2392. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2393. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2394. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2395. # Default to --enable-multilib
  2396. # Check whether --enable-multilib was given.
  2397. if test "${enable_multilib+set}" = set; then :
  2398. enableval=$enable_multilib; case "$enableval" in
  2399. yes) multilib=yes ;;
  2400. no) multilib=no ;;
  2401. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2402. esac
  2403. else
  2404. multilib=yes
  2405. fi
  2406. # We may get other options which we leave undocumented:
  2407. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2408. # See config-ml.in if you want the gory details.
  2409. if test "$srcdir" = "."; then
  2410. if test "$with_target_subdir" != "."; then
  2411. multi_basedir="$srcdir/$with_multisrctop../.."
  2412. else
  2413. multi_basedir="$srcdir/$with_multisrctop.."
  2414. fi
  2415. else
  2416. multi_basedir="$srcdir/.."
  2417. fi
  2418. # Even if the default multilib is not a cross compilation,
  2419. # it may be that some of the other multilibs are.
  2420. if test $cross_compiling = no && test $multilib = yes \
  2421. && test "x${with_multisubdir}" != x ; then
  2422. cross_compiling=maybe
  2423. fi
  2424. ac_config_commands="$ac_config_commands default-1"
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  2426. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  2427. # Check whether --enable-version-specific-runtime-libs was given.
  2428. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  2429. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  2430. yes) version_specific_libs=yes ;;
  2431. no) version_specific_libs=no ;;
  2432. *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  2433. esac
  2434. else
  2435. version_specific_libs=no
  2436. fi
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
  2438. $as_echo "$version_specific_libs" >&6; }
  2439. ac_ext=c
  2440. ac_cpp='$CPP $CPPFLAGS'
  2441. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2442. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2443. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2444. if test -n "$ac_tool_prefix"; then
  2445. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2446. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2448. $as_echo_n "checking for $ac_word... " >&6; }
  2449. if test "${ac_cv_prog_CC+set}" = set; then :
  2450. $as_echo_n "(cached) " >&6
  2451. else
  2452. if test -n "$CC"; then
  2453. ac_cv_prog_CC="$CC" # Let the user override the test.
  2454. else
  2455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2456. for as_dir in $PATH
  2457. do
  2458. IFS=$as_save_IFS
  2459. test -z "$as_dir" && as_dir=.
  2460. for ac_exec_ext in '' $ac_executable_extensions; do
  2461. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2462. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2463. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2464. break 2
  2465. fi
  2466. done
  2467. done
  2468. IFS=$as_save_IFS
  2469. fi
  2470. fi
  2471. CC=$ac_cv_prog_CC
  2472. if test -n "$CC"; then
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2474. $as_echo "$CC" >&6; }
  2475. else
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2477. $as_echo "no" >&6; }
  2478. fi
  2479. fi
  2480. if test -z "$ac_cv_prog_CC"; then
  2481. ac_ct_CC=$CC
  2482. # Extract the first word of "gcc", so it can be a program name with args.
  2483. set dummy gcc; ac_word=$2
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2485. $as_echo_n "checking for $ac_word... " >&6; }
  2486. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2487. $as_echo_n "(cached) " >&6
  2488. else
  2489. if test -n "$ac_ct_CC"; then
  2490. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2491. else
  2492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2493. for as_dir in $PATH
  2494. do
  2495. IFS=$as_save_IFS
  2496. test -z "$as_dir" && as_dir=.
  2497. for ac_exec_ext in '' $ac_executable_extensions; do
  2498. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2499. ac_cv_prog_ac_ct_CC="gcc"
  2500. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2501. break 2
  2502. fi
  2503. done
  2504. done
  2505. IFS=$as_save_IFS
  2506. fi
  2507. fi
  2508. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2509. if test -n "$ac_ct_CC"; then
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2511. $as_echo "$ac_ct_CC" >&6; }
  2512. else
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2514. $as_echo "no" >&6; }
  2515. fi
  2516. if test "x$ac_ct_CC" = x; then
  2517. CC=""
  2518. else
  2519. case $cross_compiling:$ac_tool_warned in
  2520. yes:)
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2522. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2523. ac_tool_warned=yes ;;
  2524. esac
  2525. CC=$ac_ct_CC
  2526. fi
  2527. else
  2528. CC="$ac_cv_prog_CC"
  2529. fi
  2530. if test -z "$CC"; then
  2531. if test -n "$ac_tool_prefix"; then
  2532. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2533. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2535. $as_echo_n "checking for $ac_word... " >&6; }
  2536. if test "${ac_cv_prog_CC+set}" = set; then :
  2537. $as_echo_n "(cached) " >&6
  2538. else
  2539. if test -n "$CC"; then
  2540. ac_cv_prog_CC="$CC" # Let the user override the test.
  2541. else
  2542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2543. for as_dir in $PATH
  2544. do
  2545. IFS=$as_save_IFS
  2546. test -z "$as_dir" && as_dir=.
  2547. for ac_exec_ext in '' $ac_executable_extensions; do
  2548. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2549. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2551. break 2
  2552. fi
  2553. done
  2554. done
  2555. IFS=$as_save_IFS
  2556. fi
  2557. fi
  2558. CC=$ac_cv_prog_CC
  2559. if test -n "$CC"; then
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2561. $as_echo "$CC" >&6; }
  2562. else
  2563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2564. $as_echo "no" >&6; }
  2565. fi
  2566. fi
  2567. fi
  2568. if test -z "$CC"; then
  2569. # Extract the first word of "cc", so it can be a program name with args.
  2570. set dummy cc; ac_word=$2
  2571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2572. $as_echo_n "checking for $ac_word... " >&6; }
  2573. if test "${ac_cv_prog_CC+set}" = set; then :
  2574. $as_echo_n "(cached) " >&6
  2575. else
  2576. if test -n "$CC"; then
  2577. ac_cv_prog_CC="$CC" # Let the user override the test.
  2578. else
  2579. ac_prog_rejected=no
  2580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2581. for as_dir in $PATH
  2582. do
  2583. IFS=$as_save_IFS
  2584. test -z "$as_dir" && as_dir=.
  2585. for ac_exec_ext in '' $ac_executable_extensions; do
  2586. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2587. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2588. ac_prog_rejected=yes
  2589. continue
  2590. fi
  2591. ac_cv_prog_CC="cc"
  2592. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2593. break 2
  2594. fi
  2595. done
  2596. done
  2597. IFS=$as_save_IFS
  2598. if test $ac_prog_rejected = yes; then
  2599. # We found a bogon in the path, so make sure we never use it.
  2600. set dummy $ac_cv_prog_CC
  2601. shift
  2602. if test $# != 0; then
  2603. # We chose a different compiler from the bogus one.
  2604. # However, it has the same basename, so the bogon will be chosen
  2605. # first if we set CC to just the basename; use the full file name.
  2606. shift
  2607. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2608. fi
  2609. fi
  2610. fi
  2611. fi
  2612. CC=$ac_cv_prog_CC
  2613. if test -n "$CC"; then
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2615. $as_echo "$CC" >&6; }
  2616. else
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2618. $as_echo "no" >&6; }
  2619. fi
  2620. fi
  2621. if test -z "$CC"; then
  2622. if test -n "$ac_tool_prefix"; then
  2623. for ac_prog in cl.exe
  2624. do
  2625. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2626. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2628. $as_echo_n "checking for $ac_word... " >&6; }
  2629. if test "${ac_cv_prog_CC+set}" = set; then :
  2630. $as_echo_n "(cached) " >&6
  2631. else
  2632. if test -n "$CC"; then
  2633. ac_cv_prog_CC="$CC" # Let the user override the test.
  2634. else
  2635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2636. for as_dir in $PATH
  2637. do
  2638. IFS=$as_save_IFS
  2639. test -z "$as_dir" && as_dir=.
  2640. for ac_exec_ext in '' $ac_executable_extensions; do
  2641. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2642. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2643. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2644. break 2
  2645. fi
  2646. done
  2647. done
  2648. IFS=$as_save_IFS
  2649. fi
  2650. fi
  2651. CC=$ac_cv_prog_CC
  2652. if test -n "$CC"; then
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2654. $as_echo "$CC" >&6; }
  2655. else
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2657. $as_echo "no" >&6; }
  2658. fi
  2659. test -n "$CC" && break
  2660. done
  2661. fi
  2662. if test -z "$CC"; then
  2663. ac_ct_CC=$CC
  2664. for ac_prog in cl.exe
  2665. do
  2666. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2667. set dummy $ac_prog; ac_word=$2
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2669. $as_echo_n "checking for $ac_word... " >&6; }
  2670. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2671. $as_echo_n "(cached) " >&6
  2672. else
  2673. if test -n "$ac_ct_CC"; then
  2674. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2675. else
  2676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2677. for as_dir in $PATH
  2678. do
  2679. IFS=$as_save_IFS
  2680. test -z "$as_dir" && as_dir=.
  2681. for ac_exec_ext in '' $ac_executable_extensions; do
  2682. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2683. ac_cv_prog_ac_ct_CC="$ac_prog"
  2684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2685. break 2
  2686. fi
  2687. done
  2688. done
  2689. IFS=$as_save_IFS
  2690. fi
  2691. fi
  2692. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2693. if test -n "$ac_ct_CC"; then
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2695. $as_echo "$ac_ct_CC" >&6; }
  2696. else
  2697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2698. $as_echo "no" >&6; }
  2699. fi
  2700. test -n "$ac_ct_CC" && break
  2701. done
  2702. if test "x$ac_ct_CC" = x; then
  2703. CC=""
  2704. else
  2705. case $cross_compiling:$ac_tool_warned in
  2706. yes:)
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2708. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2709. ac_tool_warned=yes ;;
  2710. esac
  2711. CC=$ac_ct_CC
  2712. fi
  2713. fi
  2714. fi
  2715. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2716. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2717. as_fn_error "no acceptable C compiler found in \$PATH
  2718. See \`config.log' for more details." "$LINENO" 5; }
  2719. # Provide some information about the compiler.
  2720. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2721. set X $ac_compile
  2722. ac_compiler=$2
  2723. for ac_option in --version -v -V -qversion; do
  2724. { { ac_try="$ac_compiler $ac_option >&5"
  2725. case "(($ac_try" in
  2726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2727. *) ac_try_echo=$ac_try;;
  2728. esac
  2729. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2730. $as_echo "$ac_try_echo"; } >&5
  2731. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2732. ac_status=$?
  2733. if test -s conftest.err; then
  2734. sed '10a\
  2735. ... rest of stderr output deleted ...
  2736. 10q' conftest.err >conftest.er1
  2737. cat conftest.er1 >&5
  2738. rm -f conftest.er1 conftest.err
  2739. fi
  2740. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2741. test $ac_status = 0; }
  2742. done
  2743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2744. /* end confdefs.h. */
  2745. int
  2746. main ()
  2747. {
  2748. ;
  2749. return 0;
  2750. }
  2751. _ACEOF
  2752. ac_clean_files_save=$ac_clean_files
  2753. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2754. # Try to create an executable without -o first, disregard a.out.
  2755. # It will help us diagnose broken compilers, and finding out an intuition
  2756. # of exeext.
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2758. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2759. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2760. # The possible output files:
  2761. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2762. ac_rmfiles=
  2763. for ac_file in $ac_files
  2764. do
  2765. case $ac_file in
  2766. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2767. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2768. esac
  2769. done
  2770. rm -f $ac_rmfiles
  2771. if { { ac_try="$ac_link_default"
  2772. case "(($ac_try" in
  2773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2774. *) ac_try_echo=$ac_try;;
  2775. esac
  2776. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2777. $as_echo "$ac_try_echo"; } >&5
  2778. (eval "$ac_link_default") 2>&5
  2779. ac_status=$?
  2780. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2781. test $ac_status = 0; }; then :
  2782. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2783. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2784. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2785. # so that the user can short-circuit this test for compilers unknown to
  2786. # Autoconf.
  2787. for ac_file in $ac_files ''
  2788. do
  2789. test -f "$ac_file" || continue
  2790. case $ac_file in
  2791. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2792. ;;
  2793. [ab].out )
  2794. # We found the default executable, but exeext='' is most
  2795. # certainly right.
  2796. break;;
  2797. *.* )
  2798. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2799. then :; else
  2800. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2801. fi
  2802. # We set ac_cv_exeext here because the later test for it is not
  2803. # safe: cross compilers may not add the suffix if given an `-o'
  2804. # argument, so we may need to know it at that point already.
  2805. # Even if this section looks crufty: it has the advantage of
  2806. # actually working.
  2807. break;;
  2808. * )
  2809. break;;
  2810. esac
  2811. done
  2812. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2813. else
  2814. ac_file=''
  2815. fi
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2817. $as_echo "$ac_file" >&6; }
  2818. if test -z "$ac_file"; then :
  2819. $as_echo "$as_me: failed program was:" >&5
  2820. sed 's/^/| /' conftest.$ac_ext >&5
  2821. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2822. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2823. { as_fn_set_status 77
  2824. as_fn_error "C compiler cannot create executables
  2825. See \`config.log' for more details." "$LINENO" 5; }; }
  2826. fi
  2827. ac_exeext=$ac_cv_exeext
  2828. # Check that the compiler produces executables we can run. If not, either
  2829. # the compiler is broken, or we cross compile.
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2831. $as_echo_n "checking whether the C compiler works... " >&6; }
  2832. # If not cross compiling, check that we can run a simple program.
  2833. if test "$cross_compiling" != yes; then
  2834. if { ac_try='./$ac_file'
  2835. { { case "(($ac_try" in
  2836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2837. *) ac_try_echo=$ac_try;;
  2838. esac
  2839. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2840. $as_echo "$ac_try_echo"; } >&5
  2841. (eval "$ac_try") 2>&5
  2842. ac_status=$?
  2843. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2844. test $ac_status = 0; }; }; then
  2845. cross_compiling=no
  2846. else
  2847. if test "$cross_compiling" = maybe; then
  2848. cross_compiling=yes
  2849. else
  2850. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2851. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2852. as_fn_error "cannot run C compiled programs.
  2853. If you meant to cross compile, use \`--host'.
  2854. See \`config.log' for more details." "$LINENO" 5; }
  2855. fi
  2856. fi
  2857. fi
  2858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2859. $as_echo "yes" >&6; }
  2860. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2861. ac_clean_files=$ac_clean_files_save
  2862. # Check that the compiler produces executables we can run. If not, either
  2863. # the compiler is broken, or we cross compile.
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2865. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2867. $as_echo "$cross_compiling" >&6; }
  2868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2869. $as_echo_n "checking for suffix of executables... " >&6; }
  2870. if { { ac_try="$ac_link"
  2871. case "(($ac_try" in
  2872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2873. *) ac_try_echo=$ac_try;;
  2874. esac
  2875. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2876. $as_echo "$ac_try_echo"; } >&5
  2877. (eval "$ac_link") 2>&5
  2878. ac_status=$?
  2879. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2880. test $ac_status = 0; }; then :
  2881. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2882. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2883. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2884. # `rm'.
  2885. for ac_file in conftest.exe conftest conftest.*; do
  2886. test -f "$ac_file" || continue
  2887. case $ac_file in
  2888. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2889. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2890. break;;
  2891. * ) break;;
  2892. esac
  2893. done
  2894. else
  2895. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2896. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2897. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2898. See \`config.log' for more details." "$LINENO" 5; }
  2899. fi
  2900. rm -f conftest$ac_cv_exeext
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2902. $as_echo "$ac_cv_exeext" >&6; }
  2903. rm -f conftest.$ac_ext
  2904. EXEEXT=$ac_cv_exeext
  2905. ac_exeext=$EXEEXT
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2907. $as_echo_n "checking for suffix of object files... " >&6; }
  2908. if test "${ac_cv_objext+set}" = set; then :
  2909. $as_echo_n "(cached) " >&6
  2910. else
  2911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2912. /* end confdefs.h. */
  2913. int
  2914. main ()
  2915. {
  2916. ;
  2917. return 0;
  2918. }
  2919. _ACEOF
  2920. rm -f conftest.o conftest.obj
  2921. if { { ac_try="$ac_compile"
  2922. case "(($ac_try" in
  2923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2924. *) ac_try_echo=$ac_try;;
  2925. esac
  2926. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2927. $as_echo "$ac_try_echo"; } >&5
  2928. (eval "$ac_compile") 2>&5
  2929. ac_status=$?
  2930. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2931. test $ac_status = 0; }; then :
  2932. for ac_file in conftest.o conftest.obj conftest.*; do
  2933. test -f "$ac_file" || continue;
  2934. case $ac_file in
  2935. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2936. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2937. break;;
  2938. esac
  2939. done
  2940. else
  2941. $as_echo "$as_me: failed program was:" >&5
  2942. sed 's/^/| /' conftest.$ac_ext >&5
  2943. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2944. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2945. as_fn_error "cannot compute suffix of object files: cannot compile
  2946. See \`config.log' for more details." "$LINENO" 5; }
  2947. fi
  2948. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2949. fi
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2951. $as_echo "$ac_cv_objext" >&6; }
  2952. OBJEXT=$ac_cv_objext
  2953. ac_objext=$OBJEXT
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2955. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2956. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2957. $as_echo_n "(cached) " >&6
  2958. else
  2959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2960. /* end confdefs.h. */
  2961. int
  2962. main ()
  2963. {
  2964. #ifndef __GNUC__
  2965. choke me
  2966. #endif
  2967. ;
  2968. return 0;
  2969. }
  2970. _ACEOF
  2971. if ac_fn_c_try_compile "$LINENO"; then :
  2972. ac_compiler_gnu=yes
  2973. else
  2974. ac_compiler_gnu=no
  2975. fi
  2976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2977. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2978. fi
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2980. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2981. if test $ac_compiler_gnu = yes; then
  2982. GCC=yes
  2983. else
  2984. GCC=
  2985. fi
  2986. ac_test_CFLAGS=${CFLAGS+set}
  2987. ac_save_CFLAGS=$CFLAGS
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2989. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2990. if test "${ac_cv_prog_cc_g+set}" = set; then :
  2991. $as_echo_n "(cached) " >&6
  2992. else
  2993. ac_save_c_werror_flag=$ac_c_werror_flag
  2994. ac_c_werror_flag=yes
  2995. ac_cv_prog_cc_g=no
  2996. CFLAGS="-g"
  2997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2998. /* end confdefs.h. */
  2999. int
  3000. main ()
  3001. {
  3002. ;
  3003. return 0;
  3004. }
  3005. _ACEOF
  3006. if ac_fn_c_try_compile "$LINENO"; then :
  3007. ac_cv_prog_cc_g=yes
  3008. else
  3009. CFLAGS=""
  3010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3011. /* end confdefs.h. */
  3012. int
  3013. main ()
  3014. {
  3015. ;
  3016. return 0;
  3017. }
  3018. _ACEOF
  3019. if ac_fn_c_try_compile "$LINENO"; then :
  3020. else
  3021. ac_c_werror_flag=$ac_save_c_werror_flag
  3022. CFLAGS="-g"
  3023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3024. /* end confdefs.h. */
  3025. int
  3026. main ()
  3027. {
  3028. ;
  3029. return 0;
  3030. }
  3031. _ACEOF
  3032. if ac_fn_c_try_compile "$LINENO"; then :
  3033. ac_cv_prog_cc_g=yes
  3034. fi
  3035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3036. fi
  3037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3038. fi
  3039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3040. ac_c_werror_flag=$ac_save_c_werror_flag
  3041. fi
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3043. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3044. if test "$ac_test_CFLAGS" = set; then
  3045. CFLAGS=$ac_save_CFLAGS
  3046. elif test $ac_cv_prog_cc_g = yes; then
  3047. if test "$GCC" = yes; then
  3048. CFLAGS="-g -O2"
  3049. else
  3050. CFLAGS="-g"
  3051. fi
  3052. else
  3053. if test "$GCC" = yes; then
  3054. CFLAGS="-O2"
  3055. else
  3056. CFLAGS=
  3057. fi
  3058. fi
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3060. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3061. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3062. $as_echo_n "(cached) " >&6
  3063. else
  3064. ac_cv_prog_cc_c89=no
  3065. ac_save_CC=$CC
  3066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3067. /* end confdefs.h. */
  3068. #include <stdarg.h>
  3069. #include <stdio.h>
  3070. #include <sys/types.h>
  3071. #include <sys/stat.h>
  3072. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3073. struct buf { int x; };
  3074. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3075. static char *e (p, i)
  3076. char **p;
  3077. int i;
  3078. {
  3079. return p[i];
  3080. }
  3081. static char *f (char * (*g) (char **, int), char **p, ...)
  3082. {
  3083. char *s;
  3084. va_list v;
  3085. va_start (v,p);
  3086. s = g (p, va_arg (v,int));
  3087. va_end (v);
  3088. return s;
  3089. }
  3090. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3091. function prototypes and stuff, but not '\xHH' hex character constants.
  3092. These don't provoke an error unfortunately, instead are silently treated
  3093. as 'x'. The following induces an error, until -std is added to get
  3094. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3095. array size at least. It's necessary to write '\x00'==0 to get something
  3096. that's true only with -std. */
  3097. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3098. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3099. inside strings and character constants. */
  3100. #define FOO(x) 'x'
  3101. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3102. int test (int i, double x);
  3103. struct s1 {int (*f) (int a);};
  3104. struct s2 {int (*f) (double a);};
  3105. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3106. int argc;
  3107. char **argv;
  3108. int
  3109. main ()
  3110. {
  3111. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3112. ;
  3113. return 0;
  3114. }
  3115. _ACEOF
  3116. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3117. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3118. do
  3119. CC="$ac_save_CC $ac_arg"
  3120. if ac_fn_c_try_compile "$LINENO"; then :
  3121. ac_cv_prog_cc_c89=$ac_arg
  3122. fi
  3123. rm -f core conftest.err conftest.$ac_objext
  3124. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3125. done
  3126. rm -f conftest.$ac_ext
  3127. CC=$ac_save_CC
  3128. fi
  3129. # AC_CACHE_VAL
  3130. case "x$ac_cv_prog_cc_c89" in
  3131. x)
  3132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3133. $as_echo "none needed" >&6; } ;;
  3134. xno)
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3136. $as_echo "unsupported" >&6; } ;;
  3137. *)
  3138. CC="$CC $ac_cv_prog_cc_c89"
  3139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3140. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3141. esac
  3142. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3143. fi
  3144. ac_ext=c
  3145. ac_cpp='$CPP $CPPFLAGS'
  3146. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3147. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3148. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3149. ac_ext=c
  3150. ac_cpp='$CPP $CPPFLAGS'
  3151. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3152. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3153. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3155. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3156. # On Suns, sometimes $CPP names a directory.
  3157. if test -n "$CPP" && test -d "$CPP"; then
  3158. CPP=
  3159. fi
  3160. if test -z "$CPP"; then
  3161. if test "${ac_cv_prog_CPP+set}" = set; then :
  3162. $as_echo_n "(cached) " >&6
  3163. else
  3164. # Double quotes because CPP needs to be expanded
  3165. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3166. do
  3167. ac_preproc_ok=false
  3168. for ac_c_preproc_warn_flag in '' yes
  3169. do
  3170. # Use a header file that comes with gcc, so configuring glibc
  3171. # with a fresh cross-compiler works.
  3172. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3173. # <limits.h> exists even on freestanding compilers.
  3174. # On the NeXT, cc -E runs the code through the compiler's parser,
  3175. # not just through cpp. "Syntax error" is here to catch this case.
  3176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3177. /* end confdefs.h. */
  3178. #ifdef __STDC__
  3179. # include <limits.h>
  3180. #else
  3181. # include <assert.h>
  3182. #endif
  3183. Syntax error
  3184. _ACEOF
  3185. if ac_fn_c_try_cpp "$LINENO"; then :
  3186. else
  3187. # Broken: fails on valid input.
  3188. continue
  3189. fi
  3190. rm -f conftest.err conftest.$ac_ext
  3191. # OK, works on sane cases. Now check whether nonexistent headers
  3192. # can be detected and how.
  3193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3194. /* end confdefs.h. */
  3195. #include <ac_nonexistent.h>
  3196. _ACEOF
  3197. if ac_fn_c_try_cpp "$LINENO"; then :
  3198. # Broken: success on invalid input.
  3199. continue
  3200. else
  3201. # Passes both tests.
  3202. ac_preproc_ok=:
  3203. break
  3204. fi
  3205. rm -f conftest.err conftest.$ac_ext
  3206. done
  3207. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3208. rm -f conftest.err conftest.$ac_ext
  3209. if $ac_preproc_ok; then :
  3210. break
  3211. fi
  3212. done
  3213. ac_cv_prog_CPP=$CPP
  3214. fi
  3215. CPP=$ac_cv_prog_CPP
  3216. else
  3217. ac_cv_prog_CPP=$CPP
  3218. fi
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3220. $as_echo "$CPP" >&6; }
  3221. ac_preproc_ok=false
  3222. for ac_c_preproc_warn_flag in '' yes
  3223. do
  3224. # Use a header file that comes with gcc, so configuring glibc
  3225. # with a fresh cross-compiler works.
  3226. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3227. # <limits.h> exists even on freestanding compilers.
  3228. # On the NeXT, cc -E runs the code through the compiler's parser,
  3229. # not just through cpp. "Syntax error" is here to catch this case.
  3230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3231. /* end confdefs.h. */
  3232. #ifdef __STDC__
  3233. # include <limits.h>
  3234. #else
  3235. # include <assert.h>
  3236. #endif
  3237. Syntax error
  3238. _ACEOF
  3239. if ac_fn_c_try_cpp "$LINENO"; then :
  3240. else
  3241. # Broken: fails on valid input.
  3242. continue
  3243. fi
  3244. rm -f conftest.err conftest.$ac_ext
  3245. # OK, works on sane cases. Now check whether nonexistent headers
  3246. # can be detected and how.
  3247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3248. /* end confdefs.h. */
  3249. #include <ac_nonexistent.h>
  3250. _ACEOF
  3251. if ac_fn_c_try_cpp "$LINENO"; then :
  3252. # Broken: success on invalid input.
  3253. continue
  3254. else
  3255. # Passes both tests.
  3256. ac_preproc_ok=:
  3257. break
  3258. fi
  3259. rm -f conftest.err conftest.$ac_ext
  3260. done
  3261. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3262. rm -f conftest.err conftest.$ac_ext
  3263. if $ac_preproc_ok; then :
  3264. else
  3265. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3266. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3267. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3268. See \`config.log' for more details." "$LINENO" 5; }
  3269. fi
  3270. ac_ext=c
  3271. ac_cpp='$CPP $CPPFLAGS'
  3272. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3273. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3274. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3276. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3277. if test "${ac_cv_path_GREP+set}" = set; then :
  3278. $as_echo_n "(cached) " >&6
  3279. else
  3280. if test -z "$GREP"; then
  3281. ac_path_GREP_found=false
  3282. # Loop through the user's path and test for each of PROGNAME-LIST
  3283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3284. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3285. do
  3286. IFS=$as_save_IFS
  3287. test -z "$as_dir" && as_dir=.
  3288. for ac_prog in grep ggrep; do
  3289. for ac_exec_ext in '' $ac_executable_extensions; do
  3290. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3291. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3292. # Check for GNU ac_path_GREP and select it if it is found.
  3293. # Check for GNU $ac_path_GREP
  3294. case `"$ac_path_GREP" --version 2>&1` in
  3295. *GNU*)
  3296. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3297. *)
  3298. ac_count=0
  3299. $as_echo_n 0123456789 >"conftest.in"
  3300. while :
  3301. do
  3302. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3303. mv "conftest.tmp" "conftest.in"
  3304. cp "conftest.in" "conftest.nl"
  3305. $as_echo 'GREP' >> "conftest.nl"
  3306. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3307. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3308. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3309. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3310. # Best one so far, save it but keep looking for a better one
  3311. ac_cv_path_GREP="$ac_path_GREP"
  3312. ac_path_GREP_max=$ac_count
  3313. fi
  3314. # 10*(2^10) chars as input seems more than enough
  3315. test $ac_count -gt 10 && break
  3316. done
  3317. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3318. esac
  3319. $ac_path_GREP_found && break 3
  3320. done
  3321. done
  3322. done
  3323. IFS=$as_save_IFS
  3324. if test -z "$ac_cv_path_GREP"; then
  3325. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3326. fi
  3327. else
  3328. ac_cv_path_GREP=$GREP
  3329. fi
  3330. fi
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3332. $as_echo "$ac_cv_path_GREP" >&6; }
  3333. GREP="$ac_cv_path_GREP"
  3334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3335. $as_echo_n "checking for egrep... " >&6; }
  3336. if test "${ac_cv_path_EGREP+set}" = set; then :
  3337. $as_echo_n "(cached) " >&6
  3338. else
  3339. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3340. then ac_cv_path_EGREP="$GREP -E"
  3341. else
  3342. if test -z "$EGREP"; then
  3343. ac_path_EGREP_found=false
  3344. # Loop through the user's path and test for each of PROGNAME-LIST
  3345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3346. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3347. do
  3348. IFS=$as_save_IFS
  3349. test -z "$as_dir" && as_dir=.
  3350. for ac_prog in egrep; do
  3351. for ac_exec_ext in '' $ac_executable_extensions; do
  3352. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3353. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3354. # Check for GNU ac_path_EGREP and select it if it is found.
  3355. # Check for GNU $ac_path_EGREP
  3356. case `"$ac_path_EGREP" --version 2>&1` in
  3357. *GNU*)
  3358. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3359. *)
  3360. ac_count=0
  3361. $as_echo_n 0123456789 >"conftest.in"
  3362. while :
  3363. do
  3364. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3365. mv "conftest.tmp" "conftest.in"
  3366. cp "conftest.in" "conftest.nl"
  3367. $as_echo 'EGREP' >> "conftest.nl"
  3368. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3369. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3370. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3371. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3372. # Best one so far, save it but keep looking for a better one
  3373. ac_cv_path_EGREP="$ac_path_EGREP"
  3374. ac_path_EGREP_max=$ac_count
  3375. fi
  3376. # 10*(2^10) chars as input seems more than enough
  3377. test $ac_count -gt 10 && break
  3378. done
  3379. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3380. esac
  3381. $ac_path_EGREP_found && break 3
  3382. done
  3383. done
  3384. done
  3385. IFS=$as_save_IFS
  3386. if test -z "$ac_cv_path_EGREP"; then
  3387. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3388. fi
  3389. else
  3390. ac_cv_path_EGREP=$EGREP
  3391. fi
  3392. fi
  3393. fi
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3395. $as_echo "$ac_cv_path_EGREP" >&6; }
  3396. EGREP="$ac_cv_path_EGREP"
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3398. $as_echo_n "checking for ANSI C header files... " >&6; }
  3399. if test "${ac_cv_header_stdc+set}" = set; then :
  3400. $as_echo_n "(cached) " >&6
  3401. else
  3402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3403. /* end confdefs.h. */
  3404. #include <stdlib.h>
  3405. #include <stdarg.h>
  3406. #include <string.h>
  3407. #include <float.h>
  3408. int
  3409. main ()
  3410. {
  3411. ;
  3412. return 0;
  3413. }
  3414. _ACEOF
  3415. if ac_fn_c_try_compile "$LINENO"; then :
  3416. ac_cv_header_stdc=yes
  3417. else
  3418. ac_cv_header_stdc=no
  3419. fi
  3420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3421. if test $ac_cv_header_stdc = yes; then
  3422. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3424. /* end confdefs.h. */
  3425. #include <string.h>
  3426. _ACEOF
  3427. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3428. $EGREP "memchr" >/dev/null 2>&1; then :
  3429. else
  3430. ac_cv_header_stdc=no
  3431. fi
  3432. rm -f conftest*
  3433. fi
  3434. if test $ac_cv_header_stdc = yes; then
  3435. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3437. /* end confdefs.h. */
  3438. #include <stdlib.h>
  3439. _ACEOF
  3440. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3441. $EGREP "free" >/dev/null 2>&1; then :
  3442. else
  3443. ac_cv_header_stdc=no
  3444. fi
  3445. rm -f conftest*
  3446. fi
  3447. if test $ac_cv_header_stdc = yes; then
  3448. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3449. if test "$cross_compiling" = yes; then :
  3450. :
  3451. else
  3452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3453. /* end confdefs.h. */
  3454. #include <ctype.h>
  3455. #include <stdlib.h>
  3456. #if ((' ' & 0x0FF) == 0x020)
  3457. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3458. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3459. #else
  3460. # define ISLOWER(c) \
  3461. (('a' <= (c) && (c) <= 'i') \
  3462. || ('j' <= (c) && (c) <= 'r') \
  3463. || ('s' <= (c) && (c) <= 'z'))
  3464. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3465. #endif
  3466. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3467. int
  3468. main ()
  3469. {
  3470. int i;
  3471. for (i = 0; i < 256; i++)
  3472. if (XOR (islower (i), ISLOWER (i))
  3473. || toupper (i) != TOUPPER (i))
  3474. return 2;
  3475. return 0;
  3476. }
  3477. _ACEOF
  3478. if ac_fn_c_try_run "$LINENO"; then :
  3479. else
  3480. ac_cv_header_stdc=no
  3481. fi
  3482. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3483. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3484. fi
  3485. fi
  3486. fi
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3488. $as_echo "$ac_cv_header_stdc" >&6; }
  3489. if test $ac_cv_header_stdc = yes; then
  3490. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3491. fi
  3492. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3493. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3494. inttypes.h stdint.h unistd.h
  3495. do :
  3496. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3497. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3498. "
  3499. eval as_val=\$$as_ac_Header
  3500. if test "x$as_val" = x""yes; then :
  3501. cat >>confdefs.h <<_ACEOF
  3502. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3503. _ACEOF
  3504. fi
  3505. done
  3506. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3507. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  3508. MINIX=yes
  3509. else
  3510. MINIX=
  3511. fi
  3512. if test "$MINIX" = yes; then
  3513. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3514. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3515. $as_echo "#define _MINIX 1" >>confdefs.h
  3516. fi
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3518. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3519. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  3520. $as_echo_n "(cached) " >&6
  3521. else
  3522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3523. /* end confdefs.h. */
  3524. # define __EXTENSIONS__ 1
  3525. $ac_includes_default
  3526. int
  3527. main ()
  3528. {
  3529. ;
  3530. return 0;
  3531. }
  3532. _ACEOF
  3533. if ac_fn_c_try_compile "$LINENO"; then :
  3534. ac_cv_safe_to_define___extensions__=yes
  3535. else
  3536. ac_cv_safe_to_define___extensions__=no
  3537. fi
  3538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3539. fi
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3541. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3542. test $ac_cv_safe_to_define___extensions__ = yes &&
  3543. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3544. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3545. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3546. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3547. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3548. # Do not delete or change the following two lines. For why, see
  3549. # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
  3550. ac_aux_dir=
  3551. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3552. for ac_t in install-sh install.sh shtool; do
  3553. if test -f "$ac_dir/$ac_t"; then
  3554. ac_aux_dir=$ac_dir
  3555. ac_install_sh="$ac_aux_dir/$ac_t -c"
  3556. break 2
  3557. fi
  3558. done
  3559. done
  3560. if test -z "$ac_aux_dir"; then
  3561. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3562. fi
  3563. # These three variables are undocumented and unsupported,
  3564. # and are intended to be withdrawn in a future Autoconf release.
  3565. # They can cause serious problems if a builder's source tree is in a directory
  3566. # whose full name contains unusual characters.
  3567. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3568. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3569. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3570. # Make sure we can run config.sub.
  3571. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3572. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3574. $as_echo_n "checking build system type... " >&6; }
  3575. if test "${ac_cv_build+set}" = set; then :
  3576. $as_echo_n "(cached) " >&6
  3577. else
  3578. ac_build_alias=$build_alias
  3579. test "x$ac_build_alias" = x &&
  3580. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3581. test "x$ac_build_alias" = x &&
  3582. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3583. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3584. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3585. fi
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3587. $as_echo "$ac_cv_build" >&6; }
  3588. case $ac_cv_build in
  3589. *-*-*) ;;
  3590. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3591. esac
  3592. build=$ac_cv_build
  3593. ac_save_IFS=$IFS; IFS='-'
  3594. set x $ac_cv_build
  3595. shift
  3596. build_cpu=$1
  3597. build_vendor=$2
  3598. shift; shift
  3599. # Remember, the first character of IFS is used to create $*,
  3600. # except with old shells:
  3601. build_os=$*
  3602. IFS=$ac_save_IFS
  3603. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3605. $as_echo_n "checking host system type... " >&6; }
  3606. if test "${ac_cv_host+set}" = set; then :
  3607. $as_echo_n "(cached) " >&6
  3608. else
  3609. if test "x$host_alias" = x; then
  3610. ac_cv_host=$ac_cv_build
  3611. else
  3612. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3613. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3614. fi
  3615. fi
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3617. $as_echo "$ac_cv_host" >&6; }
  3618. case $ac_cv_host in
  3619. *-*-*) ;;
  3620. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3621. esac
  3622. host=$ac_cv_host
  3623. ac_save_IFS=$IFS; IFS='-'
  3624. set x $ac_cv_host
  3625. shift
  3626. host_cpu=$1
  3627. host_vendor=$2
  3628. shift; shift
  3629. # Remember, the first character of IFS is used to create $*,
  3630. # except with old shells:
  3631. host_os=$*
  3632. IFS=$ac_save_IFS
  3633. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3635. $as_echo_n "checking target system type... " >&6; }
  3636. if test "${ac_cv_target+set}" = set; then :
  3637. $as_echo_n "(cached) " >&6
  3638. else
  3639. if test "x$target_alias" = x; then
  3640. ac_cv_target=$ac_cv_host
  3641. else
  3642. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  3643. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  3644. fi
  3645. fi
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3647. $as_echo "$ac_cv_target" >&6; }
  3648. case $ac_cv_target in
  3649. *-*-*) ;;
  3650. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  3651. esac
  3652. target=$ac_cv_target
  3653. ac_save_IFS=$IFS; IFS='-'
  3654. set x $ac_cv_target
  3655. shift
  3656. target_cpu=$1
  3657. target_vendor=$2
  3658. shift; shift
  3659. # Remember, the first character of IFS is used to create $*,
  3660. # except with old shells:
  3661. target_os=$*
  3662. IFS=$ac_save_IFS
  3663. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  3664. # The aliases save the names the user supplied, while $host etc.
  3665. # will get canonicalized.
  3666. test -n "$target_alias" &&
  3667. test "$program_prefix$program_suffix$program_transform_name" = \
  3668. NONENONEs,x,x, &&
  3669. program_prefix=${target_alias}-
  3670. target_alias=${target_alias-$host_alias}
  3671. case ${build_alias} in
  3672. "") build_noncanonical=${build} ;;
  3673. *) build_noncanonical=${build_alias} ;;
  3674. esac
  3675. case ${host_alias} in
  3676. "") host_noncanonical=${build_noncanonical} ;;
  3677. *) host_noncanonical=${host_alias} ;;
  3678. esac
  3679. case ${target_alias} in
  3680. "") target_noncanonical=${host_noncanonical} ;;
  3681. *) target_noncanonical=${target_alias} ;;
  3682. esac
  3683. LIBSTDCXX_RAW_CXX_CXXFLAGS="\
  3684. -I\$(top_builddir)/../libstdc++-v3/include \
  3685. -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
  3686. -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
  3687. LIBSTDCXX_RAW_CXX_LDFLAGS="\
  3688. \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
  3689. am__api_version='1.11'
  3690. # Find a good install program. We prefer a C program (faster),
  3691. # so one script is as good as another. But avoid the broken or
  3692. # incompatible versions:
  3693. # SysV /etc/install, /usr/sbin/install
  3694. # SunOS /usr/etc/install
  3695. # IRIX /sbin/install
  3696. # AIX /bin/install
  3697. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3698. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3699. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3700. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3701. # OS/2's system install, which has a completely different semantic
  3702. # ./install, which can be erroneously created by make from ./install.sh.
  3703. # Reject install programs that cannot install multiple files.
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3705. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3706. if test -z "$INSTALL"; then
  3707. if test "${ac_cv_path_install+set}" = set; then :
  3708. $as_echo_n "(cached) " >&6
  3709. else
  3710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3711. for as_dir in $PATH
  3712. do
  3713. IFS=$as_save_IFS
  3714. test -z "$as_dir" && as_dir=.
  3715. # Account for people who put trailing slashes in PATH elements.
  3716. case $as_dir/ in #((
  3717. ./ | .// | /[cC]/* | \
  3718. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3719. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3720. /usr/ucb/* ) ;;
  3721. *)
  3722. # OSF1 and SCO ODT 3.0 have their own names for install.
  3723. # Don't use installbsd from OSF since it installs stuff as root
  3724. # by default.
  3725. for ac_prog in ginstall scoinst install; do
  3726. for ac_exec_ext in '' $ac_executable_extensions; do
  3727. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3728. if test $ac_prog = install &&
  3729. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3730. # AIX install. It has an incompatible calling convention.
  3731. :
  3732. elif test $ac_prog = install &&
  3733. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3734. # program-specific install script used by HP pwplus--don't use.
  3735. :
  3736. else
  3737. rm -rf conftest.one conftest.two conftest.dir
  3738. echo one > conftest.one
  3739. echo two > conftest.two
  3740. mkdir conftest.dir
  3741. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3742. test -s conftest.one && test -s conftest.two &&
  3743. test -s conftest.dir/conftest.one &&
  3744. test -s conftest.dir/conftest.two
  3745. then
  3746. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3747. break 3
  3748. fi
  3749. fi
  3750. fi
  3751. done
  3752. done
  3753. ;;
  3754. esac
  3755. done
  3756. IFS=$as_save_IFS
  3757. rm -rf conftest.one conftest.two conftest.dir
  3758. fi
  3759. if test "${ac_cv_path_install+set}" = set; then
  3760. INSTALL=$ac_cv_path_install
  3761. else
  3762. # As a last resort, use the slow shell script. Don't cache a
  3763. # value for INSTALL within a source directory, because that will
  3764. # break other packages using the cache if that directory is
  3765. # removed, or if the value is a relative name.
  3766. INSTALL=$ac_install_sh
  3767. fi
  3768. fi
  3769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3770. $as_echo "$INSTALL" >&6; }
  3771. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3772. # It thinks the first close brace ends the variable substitution.
  3773. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3774. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3775. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3777. $as_echo_n "checking whether build environment is sane... " >&6; }
  3778. # Just in case
  3779. sleep 1
  3780. echo timestamp > conftest.file
  3781. # Reject unsafe characters in $srcdir or the absolute working directory
  3782. # name. Accept space and tab only in the latter.
  3783. am_lf='
  3784. '
  3785. case `pwd` in
  3786. *[\\\"\#\$\&\'\`$am_lf]*)
  3787. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  3788. esac
  3789. case $srcdir in
  3790. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3791. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  3792. esac
  3793. # Do `set' in a subshell so we don't clobber the current shell's
  3794. # arguments. Must try -L first in case configure is actually a
  3795. # symlink; some systems play weird games with the mod time of symlinks
  3796. # (eg FreeBSD returns the mod time of the symlink's containing
  3797. # directory).
  3798. if (
  3799. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3800. if test "$*" = "X"; then
  3801. # -L didn't work.
  3802. set X `ls -t "$srcdir/configure" conftest.file`
  3803. fi
  3804. rm -f conftest.file
  3805. if test "$*" != "X $srcdir/configure conftest.file" \
  3806. && test "$*" != "X conftest.file $srcdir/configure"; then
  3807. # If neither matched, then we have a broken ls. This can happen
  3808. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3809. # broken ls alias from the environment. This has actually
  3810. # happened. Such a system could not be considered "sane".
  3811. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  3812. alias in your environment" "$LINENO" 5
  3813. fi
  3814. test "$2" = conftest.file
  3815. )
  3816. then
  3817. # Ok.
  3818. :
  3819. else
  3820. as_fn_error "newly created file is older than distributed files!
  3821. Check your system clock" "$LINENO" 5
  3822. fi
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3824. $as_echo "yes" >&6; }
  3825. test "$program_prefix" != NONE &&
  3826. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3827. # Use a double $ so make ignores it.
  3828. test "$program_suffix" != NONE &&
  3829. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3830. # Double any \ or $.
  3831. # By default was `s,x,x', remove it if useless.
  3832. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3833. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3834. # expand $ac_aux_dir to an absolute path
  3835. am_aux_dir=`cd $ac_aux_dir && pwd`
  3836. if test x"${MISSING+set}" != xset; then
  3837. case $am_aux_dir in
  3838. *\ * | *\ *)
  3839. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3840. *)
  3841. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3842. esac
  3843. fi
  3844. # Use eval to expand $SHELL
  3845. if eval "$MISSING --run true"; then
  3846. am_missing_run="$MISSING --run "
  3847. else
  3848. am_missing_run=
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  3850. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  3851. fi
  3852. if test x"${install_sh}" != xset; then
  3853. case $am_aux_dir in
  3854. *\ * | *\ *)
  3855. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3856. *)
  3857. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3858. esac
  3859. fi
  3860. # Installed binaries are usually stripped using `strip' when the user
  3861. # run `make install-strip'. However `strip' might not be the right
  3862. # tool to use in cross-compilation environments, therefore Automake
  3863. # will honor the `STRIP' environment variable to overrule this program.
  3864. if test "$cross_compiling" != no; then
  3865. if test -n "$ac_tool_prefix"; then
  3866. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3867. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3869. $as_echo_n "checking for $ac_word... " >&6; }
  3870. if test "${ac_cv_prog_STRIP+set}" = set; then :
  3871. $as_echo_n "(cached) " >&6
  3872. else
  3873. if test -n "$STRIP"; then
  3874. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3875. else
  3876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3877. for as_dir in $PATH
  3878. do
  3879. IFS=$as_save_IFS
  3880. test -z "$as_dir" && as_dir=.
  3881. for ac_exec_ext in '' $ac_executable_extensions; do
  3882. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3883. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3885. break 2
  3886. fi
  3887. done
  3888. done
  3889. IFS=$as_save_IFS
  3890. fi
  3891. fi
  3892. STRIP=$ac_cv_prog_STRIP
  3893. if test -n "$STRIP"; then
  3894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3895. $as_echo "$STRIP" >&6; }
  3896. else
  3897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3898. $as_echo "no" >&6; }
  3899. fi
  3900. fi
  3901. if test -z "$ac_cv_prog_STRIP"; then
  3902. ac_ct_STRIP=$STRIP
  3903. # Extract the first word of "strip", so it can be a program name with args.
  3904. set dummy strip; ac_word=$2
  3905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3906. $as_echo_n "checking for $ac_word... " >&6; }
  3907. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  3908. $as_echo_n "(cached) " >&6
  3909. else
  3910. if test -n "$ac_ct_STRIP"; then
  3911. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3912. else
  3913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3914. for as_dir in $PATH
  3915. do
  3916. IFS=$as_save_IFS
  3917. test -z "$as_dir" && as_dir=.
  3918. for ac_exec_ext in '' $ac_executable_extensions; do
  3919. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3920. ac_cv_prog_ac_ct_STRIP="strip"
  3921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3922. break 2
  3923. fi
  3924. done
  3925. done
  3926. IFS=$as_save_IFS
  3927. fi
  3928. fi
  3929. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3930. if test -n "$ac_ct_STRIP"; then
  3931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3932. $as_echo "$ac_ct_STRIP" >&6; }
  3933. else
  3934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3935. $as_echo "no" >&6; }
  3936. fi
  3937. if test "x$ac_ct_STRIP" = x; then
  3938. STRIP=":"
  3939. else
  3940. case $cross_compiling:$ac_tool_warned in
  3941. yes:)
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3943. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3944. ac_tool_warned=yes ;;
  3945. esac
  3946. STRIP=$ac_ct_STRIP
  3947. fi
  3948. else
  3949. STRIP="$ac_cv_prog_STRIP"
  3950. fi
  3951. fi
  3952. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3954. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3955. if test -z "$MKDIR_P"; then
  3956. if test "${ac_cv_path_mkdir+set}" = set; then :
  3957. $as_echo_n "(cached) " >&6
  3958. else
  3959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3960. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3961. do
  3962. IFS=$as_save_IFS
  3963. test -z "$as_dir" && as_dir=.
  3964. for ac_prog in mkdir gmkdir; do
  3965. for ac_exec_ext in '' $ac_executable_extensions; do
  3966. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3967. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3968. 'mkdir (GNU coreutils) '* | \
  3969. 'mkdir (coreutils) '* | \
  3970. 'mkdir (fileutils) '4.1*)
  3971. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3972. break 3;;
  3973. esac
  3974. done
  3975. done
  3976. done
  3977. IFS=$as_save_IFS
  3978. fi
  3979. if test "${ac_cv_path_mkdir+set}" = set; then
  3980. MKDIR_P="$ac_cv_path_mkdir -p"
  3981. else
  3982. # As a last resort, use the slow shell script. Don't cache a
  3983. # value for MKDIR_P within a source directory, because that will
  3984. # break other packages using the cache if that directory is
  3985. # removed, or if the value is a relative name.
  3986. test -d ./--version && rmdir ./--version
  3987. MKDIR_P="$ac_install_sh -d"
  3988. fi
  3989. fi
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3991. $as_echo "$MKDIR_P" >&6; }
  3992. mkdir_p="$MKDIR_P"
  3993. case $mkdir_p in
  3994. [\\/$]* | ?:[\\/]*) ;;
  3995. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3996. esac
  3997. for ac_prog in gawk mawk nawk awk
  3998. do
  3999. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4000. set dummy $ac_prog; ac_word=$2
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4002. $as_echo_n "checking for $ac_word... " >&6; }
  4003. if test "${ac_cv_prog_AWK+set}" = set; then :
  4004. $as_echo_n "(cached) " >&6
  4005. else
  4006. if test -n "$AWK"; then
  4007. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4008. else
  4009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4010. for as_dir in $PATH
  4011. do
  4012. IFS=$as_save_IFS
  4013. test -z "$as_dir" && as_dir=.
  4014. for ac_exec_ext in '' $ac_executable_extensions; do
  4015. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4016. ac_cv_prog_AWK="$ac_prog"
  4017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4018. break 2
  4019. fi
  4020. done
  4021. done
  4022. IFS=$as_save_IFS
  4023. fi
  4024. fi
  4025. AWK=$ac_cv_prog_AWK
  4026. if test -n "$AWK"; then
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4028. $as_echo "$AWK" >&6; }
  4029. else
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4031. $as_echo "no" >&6; }
  4032. fi
  4033. test -n "$AWK" && break
  4034. done
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4036. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4037. set x ${MAKE-make}
  4038. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4039. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  4040. $as_echo_n "(cached) " >&6
  4041. else
  4042. cat >conftest.make <<\_ACEOF
  4043. SHELL = /bin/sh
  4044. all:
  4045. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4046. _ACEOF
  4047. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  4048. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4049. *@@@%%%=?*=@@@%%%*)
  4050. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4051. *)
  4052. eval ac_cv_prog_make_${ac_make}_set=no;;
  4053. esac
  4054. rm -f conftest.make
  4055. fi
  4056. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4058. $as_echo "yes" >&6; }
  4059. SET_MAKE=
  4060. else
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4062. $as_echo "no" >&6; }
  4063. SET_MAKE="MAKE=${MAKE-make}"
  4064. fi
  4065. rm -rf .tst 2>/dev/null
  4066. mkdir .tst 2>/dev/null
  4067. if test -d .tst; then
  4068. am__leading_dot=.
  4069. else
  4070. am__leading_dot=_
  4071. fi
  4072. rmdir .tst 2>/dev/null
  4073. DEPDIR="${am__leading_dot}deps"
  4074. ac_config_commands="$ac_config_commands depfiles"
  4075. am_make=${MAKE-make}
  4076. cat > confinc << 'END'
  4077. am__doit:
  4078. @echo this is the am__doit target
  4079. .PHONY: am__doit
  4080. END
  4081. # If we don't find an include directive, just comment out the code.
  4082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  4083. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  4084. am__include="#"
  4085. am__quote=
  4086. _am_result=none
  4087. # First try GNU make style include.
  4088. echo "include confinc" > confmf
  4089. # Ignore all kinds of additional output from `make'.
  4090. case `$am_make -s -f confmf 2> /dev/null` in #(
  4091. *the\ am__doit\ target*)
  4092. am__include=include
  4093. am__quote=
  4094. _am_result=GNU
  4095. ;;
  4096. esac
  4097. # Now try BSD make style include.
  4098. if test "$am__include" = "#"; then
  4099. echo '.include "confinc"' > confmf
  4100. case `$am_make -s -f confmf 2> /dev/null` in #(
  4101. *the\ am__doit\ target*)
  4102. am__include=.include
  4103. am__quote="\""
  4104. _am_result=BSD
  4105. ;;
  4106. esac
  4107. fi
  4108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  4109. $as_echo "$_am_result" >&6; }
  4110. rm -f confinc confmf
  4111. # Check whether --enable-dependency-tracking was given.
  4112. if test "${enable_dependency_tracking+set}" = set; then :
  4113. enableval=$enable_dependency_tracking;
  4114. fi
  4115. if test "x$enable_dependency_tracking" != xno; then
  4116. am_depcomp="$ac_aux_dir/depcomp"
  4117. AMDEPBACKSLASH='\'
  4118. fi
  4119. if test "x$enable_dependency_tracking" != xno; then
  4120. AMDEP_TRUE=
  4121. AMDEP_FALSE='#'
  4122. else
  4123. AMDEP_TRUE='#'
  4124. AMDEP_FALSE=
  4125. fi
  4126. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  4127. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  4128. # is not polluted with repeated "-I."
  4129. am__isrc=' -I$(srcdir)'
  4130. # test to see if srcdir already configured
  4131. if test -f $srcdir/config.status; then
  4132. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  4133. fi
  4134. fi
  4135. # test whether we have cygpath
  4136. if test -z "$CYGPATH_W"; then
  4137. if (cygpath --version) >/dev/null 2>/dev/null; then
  4138. CYGPATH_W='cygpath -w'
  4139. else
  4140. CYGPATH_W=echo
  4141. fi
  4142. fi
  4143. # Define the identity of the package.
  4144. PACKAGE='package-unused'
  4145. VERSION='version-unused'
  4146. cat >>confdefs.h <<_ACEOF
  4147. #define PACKAGE "$PACKAGE"
  4148. _ACEOF
  4149. cat >>confdefs.h <<_ACEOF
  4150. #define VERSION "$VERSION"
  4151. _ACEOF
  4152. # Some tools Automake needs.
  4153. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  4154. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  4155. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  4156. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  4157. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  4158. # We need awk for the "check" target. The system "awk" is bad on
  4159. # some platforms.
  4160. # Always define AMTAR for backward compatibility.
  4161. AMTAR=${AMTAR-"${am_missing_run}tar"}
  4162. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  4163. depcc="$CC" am_compiler_list=
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4165. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4166. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4167. $as_echo_n "(cached) " >&6
  4168. else
  4169. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4170. # We make a subdir and do the tests there. Otherwise we can end up
  4171. # making bogus files that we don't know about and never remove. For
  4172. # instance it was reported that on HP-UX the gcc test will end up
  4173. # making a dummy file named `D' -- because `-MD' means `put the output
  4174. # in D'.
  4175. mkdir conftest.dir
  4176. # Copy depcomp to subdir because otherwise we won't find it if we're
  4177. # using a relative directory.
  4178. cp "$am_depcomp" conftest.dir
  4179. cd conftest.dir
  4180. # We will build objects and dependencies in a subdirectory because
  4181. # it helps to detect inapplicable dependency modes. For instance
  4182. # both Tru64's cc and ICC support -MD to output dependencies as a
  4183. # side effect of compilation, but ICC will put the dependencies in
  4184. # the current directory while Tru64 will put them in the object
  4185. # directory.
  4186. mkdir sub
  4187. am_cv_CC_dependencies_compiler_type=none
  4188. if test "$am_compiler_list" = ""; then
  4189. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4190. fi
  4191. am__universal=false
  4192. case " $depcc " in #(
  4193. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4194. esac
  4195. for depmode in $am_compiler_list; do
  4196. # Setup a source with many dependencies, because some compilers
  4197. # like to wrap large dependency lists on column 80 (with \), and
  4198. # we should not choose a depcomp mode which is confused by this.
  4199. #
  4200. # We need to recreate these files for each test, as the compiler may
  4201. # overwrite some of them when testing with obscure command lines.
  4202. # This happens at least with the AIX C compiler.
  4203. : > sub/conftest.c
  4204. for i in 1 2 3 4 5 6; do
  4205. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4206. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4207. # Solaris 8's {/usr,}/bin/sh.
  4208. touch sub/conftst$i.h
  4209. done
  4210. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4211. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4212. # mode. It turns out that the SunPro C++ compiler does not properly
  4213. # handle `-M -o', and we need to detect this. Also, some Intel
  4214. # versions had trouble with output in subdirs
  4215. am__obj=sub/conftest.${OBJEXT-o}
  4216. am__minus_obj="-o $am__obj"
  4217. case $depmode in
  4218. gcc)
  4219. # This depmode causes a compiler race in universal mode.
  4220. test "$am__universal" = false || continue
  4221. ;;
  4222. nosideeffect)
  4223. # after this tag, mechanisms are not by side-effect, so they'll
  4224. # only be used when explicitly requested
  4225. if test "x$enable_dependency_tracking" = xyes; then
  4226. continue
  4227. else
  4228. break
  4229. fi
  4230. ;;
  4231. msvisualcpp | msvcmsys)
  4232. # This compiler won't grok `-c -o', but also, the minuso test has
  4233. # not run yet. These depmodes are late enough in the game, and
  4234. # so weak that their functioning should not be impacted.
  4235. am__obj=conftest.${OBJEXT-o}
  4236. am__minus_obj=
  4237. ;;
  4238. none) break ;;
  4239. esac
  4240. if depmode=$depmode \
  4241. source=sub/conftest.c object=$am__obj \
  4242. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4243. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4244. >/dev/null 2>conftest.err &&
  4245. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4246. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4247. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4248. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4249. # icc doesn't choke on unknown options, it will just issue warnings
  4250. # or remarks (even with -Werror). So we grep stderr for any message
  4251. # that says an option was ignored or not supported.
  4252. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4253. # icc: Command line warning: ignoring option '-M'; no argument required
  4254. # The diagnosis changed in icc 8.0:
  4255. # icc: Command line remark: option '-MP' not supported
  4256. if (grep 'ignoring option' conftest.err ||
  4257. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4258. am_cv_CC_dependencies_compiler_type=$depmode
  4259. break
  4260. fi
  4261. fi
  4262. done
  4263. cd ..
  4264. rm -rf conftest.dir
  4265. else
  4266. am_cv_CC_dependencies_compiler_type=none
  4267. fi
  4268. fi
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4270. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4271. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4272. if
  4273. test "x$enable_dependency_tracking" != xno \
  4274. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4275. am__fastdepCC_TRUE=
  4276. am__fastdepCC_FALSE='#'
  4277. else
  4278. am__fastdepCC_TRUE='#'
  4279. am__fastdepCC_FALSE=
  4280. fi
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  4282. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  4283. # Check whether --enable-maintainer-mode was given.
  4284. if test "${enable_maintainer_mode+set}" = set; then :
  4285. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  4286. else
  4287. USE_MAINTAINER_MODE=no
  4288. fi
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  4290. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  4291. if test $USE_MAINTAINER_MODE = yes; then
  4292. MAINTAINER_MODE_TRUE=
  4293. MAINTAINER_MODE_FALSE='#'
  4294. else
  4295. MAINTAINER_MODE_TRUE='#'
  4296. MAINTAINER_MODE_FALSE=
  4297. fi
  4298. MAINT=$MAINTAINER_MODE_TRUE
  4299. # Calculate toolexeclibdir
  4300. # Also toolexecdir, though it's only used in toolexeclibdir
  4301. case ${version_specific_libs} in
  4302. yes)
  4303. # Need the gcc compiler version to know where to install libraries
  4304. # and header files if --enable-version-specific-runtime-libs option
  4305. # is selected.
  4306. toolexecdir='$(libdir)/gcc/$(target_alias)'
  4307. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  4308. ;;
  4309. no)
  4310. if test -n "$with_cross_host" &&
  4311. test x"$with_cross_host" != x"no"; then
  4312. # Install a library built with a cross compiler in tooldir, not libdir.
  4313. toolexecdir='$(exec_prefix)/$(target_alias)'
  4314. toolexeclibdir='$(toolexecdir)/lib'
  4315. else
  4316. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  4317. toolexeclibdir='$(libdir)'
  4318. fi
  4319. multi_os_directory=`$CC -print-multi-os-directory`
  4320. case $multi_os_directory in
  4321. .) ;; # Avoid trailing /.
  4322. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  4323. esac
  4324. ;;
  4325. esac
  4326. # Checks for programs.
  4327. ac_ext=c
  4328. ac_cpp='$CPP $CPPFLAGS'
  4329. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4330. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4331. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4332. if test -n "$ac_tool_prefix"; then
  4333. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4334. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4336. $as_echo_n "checking for $ac_word... " >&6; }
  4337. if test "${ac_cv_prog_CC+set}" = set; then :
  4338. $as_echo_n "(cached) " >&6
  4339. else
  4340. if test -n "$CC"; then
  4341. ac_cv_prog_CC="$CC" # Let the user override the test.
  4342. else
  4343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4344. for as_dir in $PATH
  4345. do
  4346. IFS=$as_save_IFS
  4347. test -z "$as_dir" && as_dir=.
  4348. for ac_exec_ext in '' $ac_executable_extensions; do
  4349. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4350. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4352. break 2
  4353. fi
  4354. done
  4355. done
  4356. IFS=$as_save_IFS
  4357. fi
  4358. fi
  4359. CC=$ac_cv_prog_CC
  4360. if test -n "$CC"; then
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4362. $as_echo "$CC" >&6; }
  4363. else
  4364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4365. $as_echo "no" >&6; }
  4366. fi
  4367. fi
  4368. if test -z "$ac_cv_prog_CC"; then
  4369. ac_ct_CC=$CC
  4370. # Extract the first word of "gcc", so it can be a program name with args.
  4371. set dummy gcc; ac_word=$2
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4373. $as_echo_n "checking for $ac_word... " >&6; }
  4374. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4375. $as_echo_n "(cached) " >&6
  4376. else
  4377. if test -n "$ac_ct_CC"; then
  4378. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4379. else
  4380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4381. for as_dir in $PATH
  4382. do
  4383. IFS=$as_save_IFS
  4384. test -z "$as_dir" && as_dir=.
  4385. for ac_exec_ext in '' $ac_executable_extensions; do
  4386. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4387. ac_cv_prog_ac_ct_CC="gcc"
  4388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4389. break 2
  4390. fi
  4391. done
  4392. done
  4393. IFS=$as_save_IFS
  4394. fi
  4395. fi
  4396. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4397. if test -n "$ac_ct_CC"; then
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4399. $as_echo "$ac_ct_CC" >&6; }
  4400. else
  4401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4402. $as_echo "no" >&6; }
  4403. fi
  4404. if test "x$ac_ct_CC" = x; then
  4405. CC=""
  4406. else
  4407. case $cross_compiling:$ac_tool_warned in
  4408. yes:)
  4409. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4410. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4411. ac_tool_warned=yes ;;
  4412. esac
  4413. CC=$ac_ct_CC
  4414. fi
  4415. else
  4416. CC="$ac_cv_prog_CC"
  4417. fi
  4418. if test -z "$CC"; then
  4419. if test -n "$ac_tool_prefix"; then
  4420. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4421. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4423. $as_echo_n "checking for $ac_word... " >&6; }
  4424. if test "${ac_cv_prog_CC+set}" = set; then :
  4425. $as_echo_n "(cached) " >&6
  4426. else
  4427. if test -n "$CC"; then
  4428. ac_cv_prog_CC="$CC" # Let the user override the test.
  4429. else
  4430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4431. for as_dir in $PATH
  4432. do
  4433. IFS=$as_save_IFS
  4434. test -z "$as_dir" && as_dir=.
  4435. for ac_exec_ext in '' $ac_executable_extensions; do
  4436. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4437. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4439. break 2
  4440. fi
  4441. done
  4442. done
  4443. IFS=$as_save_IFS
  4444. fi
  4445. fi
  4446. CC=$ac_cv_prog_CC
  4447. if test -n "$CC"; then
  4448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4449. $as_echo "$CC" >&6; }
  4450. else
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4452. $as_echo "no" >&6; }
  4453. fi
  4454. fi
  4455. fi
  4456. if test -z "$CC"; then
  4457. # Extract the first word of "cc", so it can be a program name with args.
  4458. set dummy cc; ac_word=$2
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4460. $as_echo_n "checking for $ac_word... " >&6; }
  4461. if test "${ac_cv_prog_CC+set}" = set; then :
  4462. $as_echo_n "(cached) " >&6
  4463. else
  4464. if test -n "$CC"; then
  4465. ac_cv_prog_CC="$CC" # Let the user override the test.
  4466. else
  4467. ac_prog_rejected=no
  4468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4469. for as_dir in $PATH
  4470. do
  4471. IFS=$as_save_IFS
  4472. test -z "$as_dir" && as_dir=.
  4473. for ac_exec_ext in '' $ac_executable_extensions; do
  4474. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4475. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4476. ac_prog_rejected=yes
  4477. continue
  4478. fi
  4479. ac_cv_prog_CC="cc"
  4480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4481. break 2
  4482. fi
  4483. done
  4484. done
  4485. IFS=$as_save_IFS
  4486. if test $ac_prog_rejected = yes; then
  4487. # We found a bogon in the path, so make sure we never use it.
  4488. set dummy $ac_cv_prog_CC
  4489. shift
  4490. if test $# != 0; then
  4491. # We chose a different compiler from the bogus one.
  4492. # However, it has the same basename, so the bogon will be chosen
  4493. # first if we set CC to just the basename; use the full file name.
  4494. shift
  4495. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4496. fi
  4497. fi
  4498. fi
  4499. fi
  4500. CC=$ac_cv_prog_CC
  4501. if test -n "$CC"; then
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4503. $as_echo "$CC" >&6; }
  4504. else
  4505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4506. $as_echo "no" >&6; }
  4507. fi
  4508. fi
  4509. if test -z "$CC"; then
  4510. if test -n "$ac_tool_prefix"; then
  4511. for ac_prog in cl.exe
  4512. do
  4513. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4514. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4516. $as_echo_n "checking for $ac_word... " >&6; }
  4517. if test "${ac_cv_prog_CC+set}" = set; then :
  4518. $as_echo_n "(cached) " >&6
  4519. else
  4520. if test -n "$CC"; then
  4521. ac_cv_prog_CC="$CC" # Let the user override the test.
  4522. else
  4523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4524. for as_dir in $PATH
  4525. do
  4526. IFS=$as_save_IFS
  4527. test -z "$as_dir" && as_dir=.
  4528. for ac_exec_ext in '' $ac_executable_extensions; do
  4529. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4530. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4531. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4532. break 2
  4533. fi
  4534. done
  4535. done
  4536. IFS=$as_save_IFS
  4537. fi
  4538. fi
  4539. CC=$ac_cv_prog_CC
  4540. if test -n "$CC"; then
  4541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4542. $as_echo "$CC" >&6; }
  4543. else
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4545. $as_echo "no" >&6; }
  4546. fi
  4547. test -n "$CC" && break
  4548. done
  4549. fi
  4550. if test -z "$CC"; then
  4551. ac_ct_CC=$CC
  4552. for ac_prog in cl.exe
  4553. do
  4554. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4555. set dummy $ac_prog; ac_word=$2
  4556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4557. $as_echo_n "checking for $ac_word... " >&6; }
  4558. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4559. $as_echo_n "(cached) " >&6
  4560. else
  4561. if test -n "$ac_ct_CC"; then
  4562. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4563. else
  4564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4565. for as_dir in $PATH
  4566. do
  4567. IFS=$as_save_IFS
  4568. test -z "$as_dir" && as_dir=.
  4569. for ac_exec_ext in '' $ac_executable_extensions; do
  4570. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4571. ac_cv_prog_ac_ct_CC="$ac_prog"
  4572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4573. break 2
  4574. fi
  4575. done
  4576. done
  4577. IFS=$as_save_IFS
  4578. fi
  4579. fi
  4580. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4581. if test -n "$ac_ct_CC"; then
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4583. $as_echo "$ac_ct_CC" >&6; }
  4584. else
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4586. $as_echo "no" >&6; }
  4587. fi
  4588. test -n "$ac_ct_CC" && break
  4589. done
  4590. if test "x$ac_ct_CC" = x; then
  4591. CC=""
  4592. else
  4593. case $cross_compiling:$ac_tool_warned in
  4594. yes:)
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4596. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4597. ac_tool_warned=yes ;;
  4598. esac
  4599. CC=$ac_ct_CC
  4600. fi
  4601. fi
  4602. fi
  4603. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4604. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4605. as_fn_error "no acceptable C compiler found in \$PATH
  4606. See \`config.log' for more details." "$LINENO" 5; }
  4607. # Provide some information about the compiler.
  4608. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4609. set X $ac_compile
  4610. ac_compiler=$2
  4611. for ac_option in --version -v -V -qversion; do
  4612. { { ac_try="$ac_compiler $ac_option >&5"
  4613. case "(($ac_try" in
  4614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4615. *) ac_try_echo=$ac_try;;
  4616. esac
  4617. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4618. $as_echo "$ac_try_echo"; } >&5
  4619. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4620. ac_status=$?
  4621. if test -s conftest.err; then
  4622. sed '10a\
  4623. ... rest of stderr output deleted ...
  4624. 10q' conftest.err >conftest.er1
  4625. cat conftest.er1 >&5
  4626. rm -f conftest.er1 conftest.err
  4627. fi
  4628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4629. test $ac_status = 0; }
  4630. done
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4632. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4633. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4634. $as_echo_n "(cached) " >&6
  4635. else
  4636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4637. /* end confdefs.h. */
  4638. int
  4639. main ()
  4640. {
  4641. #ifndef __GNUC__
  4642. choke me
  4643. #endif
  4644. ;
  4645. return 0;
  4646. }
  4647. _ACEOF
  4648. if ac_fn_c_try_compile "$LINENO"; then :
  4649. ac_compiler_gnu=yes
  4650. else
  4651. ac_compiler_gnu=no
  4652. fi
  4653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4654. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4655. fi
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4657. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4658. if test $ac_compiler_gnu = yes; then
  4659. GCC=yes
  4660. else
  4661. GCC=
  4662. fi
  4663. ac_test_CFLAGS=${CFLAGS+set}
  4664. ac_save_CFLAGS=$CFLAGS
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4666. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4667. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4668. $as_echo_n "(cached) " >&6
  4669. else
  4670. ac_save_c_werror_flag=$ac_c_werror_flag
  4671. ac_c_werror_flag=yes
  4672. ac_cv_prog_cc_g=no
  4673. CFLAGS="-g"
  4674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4675. /* end confdefs.h. */
  4676. int
  4677. main ()
  4678. {
  4679. ;
  4680. return 0;
  4681. }
  4682. _ACEOF
  4683. if ac_fn_c_try_compile "$LINENO"; then :
  4684. ac_cv_prog_cc_g=yes
  4685. else
  4686. CFLAGS=""
  4687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4688. /* end confdefs.h. */
  4689. int
  4690. main ()
  4691. {
  4692. ;
  4693. return 0;
  4694. }
  4695. _ACEOF
  4696. if ac_fn_c_try_compile "$LINENO"; then :
  4697. else
  4698. ac_c_werror_flag=$ac_save_c_werror_flag
  4699. CFLAGS="-g"
  4700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4701. /* end confdefs.h. */
  4702. int
  4703. main ()
  4704. {
  4705. ;
  4706. return 0;
  4707. }
  4708. _ACEOF
  4709. if ac_fn_c_try_compile "$LINENO"; then :
  4710. ac_cv_prog_cc_g=yes
  4711. fi
  4712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4713. fi
  4714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4715. fi
  4716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4717. ac_c_werror_flag=$ac_save_c_werror_flag
  4718. fi
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4720. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4721. if test "$ac_test_CFLAGS" = set; then
  4722. CFLAGS=$ac_save_CFLAGS
  4723. elif test $ac_cv_prog_cc_g = yes; then
  4724. if test "$GCC" = yes; then
  4725. CFLAGS="-g -O2"
  4726. else
  4727. CFLAGS="-g"
  4728. fi
  4729. else
  4730. if test "$GCC" = yes; then
  4731. CFLAGS="-O2"
  4732. else
  4733. CFLAGS=
  4734. fi
  4735. fi
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4737. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4738. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4739. $as_echo_n "(cached) " >&6
  4740. else
  4741. ac_cv_prog_cc_c89=no
  4742. ac_save_CC=$CC
  4743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4744. /* end confdefs.h. */
  4745. #include <stdarg.h>
  4746. #include <stdio.h>
  4747. #include <sys/types.h>
  4748. #include <sys/stat.h>
  4749. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4750. struct buf { int x; };
  4751. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4752. static char *e (p, i)
  4753. char **p;
  4754. int i;
  4755. {
  4756. return p[i];
  4757. }
  4758. static char *f (char * (*g) (char **, int), char **p, ...)
  4759. {
  4760. char *s;
  4761. va_list v;
  4762. va_start (v,p);
  4763. s = g (p, va_arg (v,int));
  4764. va_end (v);
  4765. return s;
  4766. }
  4767. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4768. function prototypes and stuff, but not '\xHH' hex character constants.
  4769. These don't provoke an error unfortunately, instead are silently treated
  4770. as 'x'. The following induces an error, until -std is added to get
  4771. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4772. array size at least. It's necessary to write '\x00'==0 to get something
  4773. that's true only with -std. */
  4774. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4775. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4776. inside strings and character constants. */
  4777. #define FOO(x) 'x'
  4778. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4779. int test (int i, double x);
  4780. struct s1 {int (*f) (int a);};
  4781. struct s2 {int (*f) (double a);};
  4782. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4783. int argc;
  4784. char **argv;
  4785. int
  4786. main ()
  4787. {
  4788. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4789. ;
  4790. return 0;
  4791. }
  4792. _ACEOF
  4793. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4794. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4795. do
  4796. CC="$ac_save_CC $ac_arg"
  4797. if ac_fn_c_try_compile "$LINENO"; then :
  4798. ac_cv_prog_cc_c89=$ac_arg
  4799. fi
  4800. rm -f core conftest.err conftest.$ac_objext
  4801. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4802. done
  4803. rm -f conftest.$ac_ext
  4804. CC=$ac_save_CC
  4805. fi
  4806. # AC_CACHE_VAL
  4807. case "x$ac_cv_prog_cc_c89" in
  4808. x)
  4809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4810. $as_echo "none needed" >&6; } ;;
  4811. xno)
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4813. $as_echo "unsupported" >&6; } ;;
  4814. *)
  4815. CC="$CC $ac_cv_prog_cc_c89"
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4817. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4818. esac
  4819. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4820. fi
  4821. ac_ext=c
  4822. ac_cpp='$CPP $CPPFLAGS'
  4823. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4824. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4825. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4826. ac_ext=cpp
  4827. ac_cpp='$CXXCPP $CPPFLAGS'
  4828. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4829. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4830. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4831. if test -z "$CXX"; then
  4832. if test -n "$CCC"; then
  4833. CXX=$CCC
  4834. else
  4835. if test -n "$ac_tool_prefix"; then
  4836. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4837. do
  4838. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4839. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4841. $as_echo_n "checking for $ac_word... " >&6; }
  4842. if test "${ac_cv_prog_CXX+set}" = set; then :
  4843. $as_echo_n "(cached) " >&6
  4844. else
  4845. if test -n "$CXX"; then
  4846. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4847. else
  4848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4849. for as_dir in $PATH
  4850. do
  4851. IFS=$as_save_IFS
  4852. test -z "$as_dir" && as_dir=.
  4853. for ac_exec_ext in '' $ac_executable_extensions; do
  4854. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4855. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4857. break 2
  4858. fi
  4859. done
  4860. done
  4861. IFS=$as_save_IFS
  4862. fi
  4863. fi
  4864. CXX=$ac_cv_prog_CXX
  4865. if test -n "$CXX"; then
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4867. $as_echo "$CXX" >&6; }
  4868. else
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4870. $as_echo "no" >&6; }
  4871. fi
  4872. test -n "$CXX" && break
  4873. done
  4874. fi
  4875. if test -z "$CXX"; then
  4876. ac_ct_CXX=$CXX
  4877. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4878. do
  4879. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4880. set dummy $ac_prog; ac_word=$2
  4881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4882. $as_echo_n "checking for $ac_word... " >&6; }
  4883. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  4884. $as_echo_n "(cached) " >&6
  4885. else
  4886. if test -n "$ac_ct_CXX"; then
  4887. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4888. else
  4889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4890. for as_dir in $PATH
  4891. do
  4892. IFS=$as_save_IFS
  4893. test -z "$as_dir" && as_dir=.
  4894. for ac_exec_ext in '' $ac_executable_extensions; do
  4895. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4896. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4898. break 2
  4899. fi
  4900. done
  4901. done
  4902. IFS=$as_save_IFS
  4903. fi
  4904. fi
  4905. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4906. if test -n "$ac_ct_CXX"; then
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4908. $as_echo "$ac_ct_CXX" >&6; }
  4909. else
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4911. $as_echo "no" >&6; }
  4912. fi
  4913. test -n "$ac_ct_CXX" && break
  4914. done
  4915. if test "x$ac_ct_CXX" = x; then
  4916. CXX="g++"
  4917. else
  4918. case $cross_compiling:$ac_tool_warned in
  4919. yes:)
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4921. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4922. ac_tool_warned=yes ;;
  4923. esac
  4924. CXX=$ac_ct_CXX
  4925. fi
  4926. fi
  4927. fi
  4928. fi
  4929. # Provide some information about the compiler.
  4930. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4931. set X $ac_compile
  4932. ac_compiler=$2
  4933. for ac_option in --version -v -V -qversion; do
  4934. { { ac_try="$ac_compiler $ac_option >&5"
  4935. case "(($ac_try" in
  4936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4937. *) ac_try_echo=$ac_try;;
  4938. esac
  4939. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4940. $as_echo "$ac_try_echo"; } >&5
  4941. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4942. ac_status=$?
  4943. if test -s conftest.err; then
  4944. sed '10a\
  4945. ... rest of stderr output deleted ...
  4946. 10q' conftest.err >conftest.er1
  4947. cat conftest.er1 >&5
  4948. rm -f conftest.er1 conftest.err
  4949. fi
  4950. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4951. test $ac_status = 0; }
  4952. done
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4954. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4955. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  4956. $as_echo_n "(cached) " >&6
  4957. else
  4958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4959. /* end confdefs.h. */
  4960. int
  4961. main ()
  4962. {
  4963. #ifndef __GNUC__
  4964. choke me
  4965. #endif
  4966. ;
  4967. return 0;
  4968. }
  4969. _ACEOF
  4970. if ac_fn_cxx_try_compile "$LINENO"; then :
  4971. ac_compiler_gnu=yes
  4972. else
  4973. ac_compiler_gnu=no
  4974. fi
  4975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4976. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4977. fi
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4979. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4980. if test $ac_compiler_gnu = yes; then
  4981. GXX=yes
  4982. else
  4983. GXX=
  4984. fi
  4985. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4986. ac_save_CXXFLAGS=$CXXFLAGS
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4988. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4989. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  4990. $as_echo_n "(cached) " >&6
  4991. else
  4992. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4993. ac_cxx_werror_flag=yes
  4994. ac_cv_prog_cxx_g=no
  4995. CXXFLAGS="-g"
  4996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4997. /* end confdefs.h. */
  4998. int
  4999. main ()
  5000. {
  5001. ;
  5002. return 0;
  5003. }
  5004. _ACEOF
  5005. if ac_fn_cxx_try_compile "$LINENO"; then :
  5006. ac_cv_prog_cxx_g=yes
  5007. else
  5008. CXXFLAGS=""
  5009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5010. /* end confdefs.h. */
  5011. int
  5012. main ()
  5013. {
  5014. ;
  5015. return 0;
  5016. }
  5017. _ACEOF
  5018. if ac_fn_cxx_try_compile "$LINENO"; then :
  5019. else
  5020. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5021. CXXFLAGS="-g"
  5022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5023. /* end confdefs.h. */
  5024. int
  5025. main ()
  5026. {
  5027. ;
  5028. return 0;
  5029. }
  5030. _ACEOF
  5031. if ac_fn_cxx_try_compile "$LINENO"; then :
  5032. ac_cv_prog_cxx_g=yes
  5033. fi
  5034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5035. fi
  5036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5037. fi
  5038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5039. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5040. fi
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  5042. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  5043. if test "$ac_test_CXXFLAGS" = set; then
  5044. CXXFLAGS=$ac_save_CXXFLAGS
  5045. elif test $ac_cv_prog_cxx_g = yes; then
  5046. if test "$GXX" = yes; then
  5047. CXXFLAGS="-g -O2"
  5048. else
  5049. CXXFLAGS="-g"
  5050. fi
  5051. else
  5052. if test "$GXX" = yes; then
  5053. CXXFLAGS="-O2"
  5054. else
  5055. CXXFLAGS=
  5056. fi
  5057. fi
  5058. ac_ext=c
  5059. ac_cpp='$CPP $CPPFLAGS'
  5060. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5061. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5062. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5063. depcc="$CXX" am_compiler_list=
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5065. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5066. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  5067. $as_echo_n "(cached) " >&6
  5068. else
  5069. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5070. # We make a subdir and do the tests there. Otherwise we can end up
  5071. # making bogus files that we don't know about and never remove. For
  5072. # instance it was reported that on HP-UX the gcc test will end up
  5073. # making a dummy file named `D' -- because `-MD' means `put the output
  5074. # in D'.
  5075. mkdir conftest.dir
  5076. # Copy depcomp to subdir because otherwise we won't find it if we're
  5077. # using a relative directory.
  5078. cp "$am_depcomp" conftest.dir
  5079. cd conftest.dir
  5080. # We will build objects and dependencies in a subdirectory because
  5081. # it helps to detect inapplicable dependency modes. For instance
  5082. # both Tru64's cc and ICC support -MD to output dependencies as a
  5083. # side effect of compilation, but ICC will put the dependencies in
  5084. # the current directory while Tru64 will put them in the object
  5085. # directory.
  5086. mkdir sub
  5087. am_cv_CXX_dependencies_compiler_type=none
  5088. if test "$am_compiler_list" = ""; then
  5089. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5090. fi
  5091. am__universal=false
  5092. case " $depcc " in #(
  5093. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5094. esac
  5095. for depmode in $am_compiler_list; do
  5096. # Setup a source with many dependencies, because some compilers
  5097. # like to wrap large dependency lists on column 80 (with \), and
  5098. # we should not choose a depcomp mode which is confused by this.
  5099. #
  5100. # We need to recreate these files for each test, as the compiler may
  5101. # overwrite some of them when testing with obscure command lines.
  5102. # This happens at least with the AIX C compiler.
  5103. : > sub/conftest.c
  5104. for i in 1 2 3 4 5 6; do
  5105. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5106. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5107. # Solaris 8's {/usr,}/bin/sh.
  5108. touch sub/conftst$i.h
  5109. done
  5110. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5111. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5112. # mode. It turns out that the SunPro C++ compiler does not properly
  5113. # handle `-M -o', and we need to detect this. Also, some Intel
  5114. # versions had trouble with output in subdirs
  5115. am__obj=sub/conftest.${OBJEXT-o}
  5116. am__minus_obj="-o $am__obj"
  5117. case $depmode in
  5118. gcc)
  5119. # This depmode causes a compiler race in universal mode.
  5120. test "$am__universal" = false || continue
  5121. ;;
  5122. nosideeffect)
  5123. # after this tag, mechanisms are not by side-effect, so they'll
  5124. # only be used when explicitly requested
  5125. if test "x$enable_dependency_tracking" = xyes; then
  5126. continue
  5127. else
  5128. break
  5129. fi
  5130. ;;
  5131. msvisualcpp | msvcmsys)
  5132. # This compiler won't grok `-c -o', but also, the minuso test has
  5133. # not run yet. These depmodes are late enough in the game, and
  5134. # so weak that their functioning should not be impacted.
  5135. am__obj=conftest.${OBJEXT-o}
  5136. am__minus_obj=
  5137. ;;
  5138. none) break ;;
  5139. esac
  5140. if depmode=$depmode \
  5141. source=sub/conftest.c object=$am__obj \
  5142. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5143. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5144. >/dev/null 2>conftest.err &&
  5145. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5146. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5147. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5148. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5149. # icc doesn't choke on unknown options, it will just issue warnings
  5150. # or remarks (even with -Werror). So we grep stderr for any message
  5151. # that says an option was ignored or not supported.
  5152. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5153. # icc: Command line warning: ignoring option '-M'; no argument required
  5154. # The diagnosis changed in icc 8.0:
  5155. # icc: Command line remark: option '-MP' not supported
  5156. if (grep 'ignoring option' conftest.err ||
  5157. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5158. am_cv_CXX_dependencies_compiler_type=$depmode
  5159. break
  5160. fi
  5161. fi
  5162. done
  5163. cd ..
  5164. rm -rf conftest.dir
  5165. else
  5166. am_cv_CXX_dependencies_compiler_type=none
  5167. fi
  5168. fi
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5170. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  5171. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5172. if
  5173. test "x$enable_dependency_tracking" != xno \
  5174. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5175. am__fastdepCXX_TRUE=
  5176. am__fastdepCXX_FALSE='#'
  5177. else
  5178. am__fastdepCXX_TRUE='#'
  5179. am__fastdepCXX_FALSE=
  5180. fi
  5181. # By default we simply use the C compiler to build assembly code.
  5182. test "${CCAS+set}" = set || CCAS=$CC
  5183. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  5184. depcc="$CCAS" am_compiler_list=
  5185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5186. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5187. if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
  5188. $as_echo_n "(cached) " >&6
  5189. else
  5190. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5191. # We make a subdir and do the tests there. Otherwise we can end up
  5192. # making bogus files that we don't know about and never remove. For
  5193. # instance it was reported that on HP-UX the gcc test will end up
  5194. # making a dummy file named `D' -- because `-MD' means `put the output
  5195. # in D'.
  5196. mkdir conftest.dir
  5197. # Copy depcomp to subdir because otherwise we won't find it if we're
  5198. # using a relative directory.
  5199. cp "$am_depcomp" conftest.dir
  5200. cd conftest.dir
  5201. # We will build objects and dependencies in a subdirectory because
  5202. # it helps to detect inapplicable dependency modes. For instance
  5203. # both Tru64's cc and ICC support -MD to output dependencies as a
  5204. # side effect of compilation, but ICC will put the dependencies in
  5205. # the current directory while Tru64 will put them in the object
  5206. # directory.
  5207. mkdir sub
  5208. am_cv_CCAS_dependencies_compiler_type=none
  5209. if test "$am_compiler_list" = ""; then
  5210. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5211. fi
  5212. am__universal=false
  5213. for depmode in $am_compiler_list; do
  5214. # Setup a source with many dependencies, because some compilers
  5215. # like to wrap large dependency lists on column 80 (with \), and
  5216. # we should not choose a depcomp mode which is confused by this.
  5217. #
  5218. # We need to recreate these files for each test, as the compiler may
  5219. # overwrite some of them when testing with obscure command lines.
  5220. # This happens at least with the AIX C compiler.
  5221. : > sub/conftest.c
  5222. for i in 1 2 3 4 5 6; do
  5223. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5224. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5225. # Solaris 8's {/usr,}/bin/sh.
  5226. touch sub/conftst$i.h
  5227. done
  5228. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5229. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5230. # mode. It turns out that the SunPro C++ compiler does not properly
  5231. # handle `-M -o', and we need to detect this. Also, some Intel
  5232. # versions had trouble with output in subdirs
  5233. am__obj=sub/conftest.${OBJEXT-o}
  5234. am__minus_obj="-o $am__obj"
  5235. case $depmode in
  5236. gcc)
  5237. # This depmode causes a compiler race in universal mode.
  5238. test "$am__universal" = false || continue
  5239. ;;
  5240. nosideeffect)
  5241. # after this tag, mechanisms are not by side-effect, so they'll
  5242. # only be used when explicitly requested
  5243. if test "x$enable_dependency_tracking" = xyes; then
  5244. continue
  5245. else
  5246. break
  5247. fi
  5248. ;;
  5249. msvisualcpp | msvcmsys)
  5250. # This compiler won't grok `-c -o', but also, the minuso test has
  5251. # not run yet. These depmodes are late enough in the game, and
  5252. # so weak that their functioning should not be impacted.
  5253. am__obj=conftest.${OBJEXT-o}
  5254. am__minus_obj=
  5255. ;;
  5256. none) break ;;
  5257. esac
  5258. if depmode=$depmode \
  5259. source=sub/conftest.c object=$am__obj \
  5260. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5261. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5262. >/dev/null 2>conftest.err &&
  5263. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5264. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5265. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5266. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5267. # icc doesn't choke on unknown options, it will just issue warnings
  5268. # or remarks (even with -Werror). So we grep stderr for any message
  5269. # that says an option was ignored or not supported.
  5270. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5271. # icc: Command line warning: ignoring option '-M'; no argument required
  5272. # The diagnosis changed in icc 8.0:
  5273. # icc: Command line remark: option '-MP' not supported
  5274. if (grep 'ignoring option' conftest.err ||
  5275. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5276. am_cv_CCAS_dependencies_compiler_type=$depmode
  5277. break
  5278. fi
  5279. fi
  5280. done
  5281. cd ..
  5282. rm -rf conftest.dir
  5283. else
  5284. am_cv_CCAS_dependencies_compiler_type=none
  5285. fi
  5286. fi
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  5288. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  5289. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  5290. if
  5291. test "x$enable_dependency_tracking" != xno \
  5292. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  5293. am__fastdepCCAS_TRUE=
  5294. am__fastdepCCAS_FALSE='#'
  5295. else
  5296. am__fastdepCCAS_TRUE='#'
  5297. am__fastdepCCAS_FALSE=
  5298. fi
  5299. if test -n "$ac_tool_prefix"; then
  5300. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5301. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5303. $as_echo_n "checking for $ac_word... " >&6; }
  5304. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5305. $as_echo_n "(cached) " >&6
  5306. else
  5307. if test -n "$RANLIB"; then
  5308. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5309. else
  5310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5311. for as_dir in $PATH
  5312. do
  5313. IFS=$as_save_IFS
  5314. test -z "$as_dir" && as_dir=.
  5315. for ac_exec_ext in '' $ac_executable_extensions; do
  5316. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5317. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5318. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5319. break 2
  5320. fi
  5321. done
  5322. done
  5323. IFS=$as_save_IFS
  5324. fi
  5325. fi
  5326. RANLIB=$ac_cv_prog_RANLIB
  5327. if test -n "$RANLIB"; then
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5329. $as_echo "$RANLIB" >&6; }
  5330. else
  5331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5332. $as_echo "no" >&6; }
  5333. fi
  5334. fi
  5335. if test -z "$ac_cv_prog_RANLIB"; then
  5336. ac_ct_RANLIB=$RANLIB
  5337. # Extract the first word of "ranlib", so it can be a program name with args.
  5338. set dummy ranlib; ac_word=$2
  5339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5340. $as_echo_n "checking for $ac_word... " >&6; }
  5341. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5342. $as_echo_n "(cached) " >&6
  5343. else
  5344. if test -n "$ac_ct_RANLIB"; then
  5345. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5346. else
  5347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5348. for as_dir in $PATH
  5349. do
  5350. IFS=$as_save_IFS
  5351. test -z "$as_dir" && as_dir=.
  5352. for ac_exec_ext in '' $ac_executable_extensions; do
  5353. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5354. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5355. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5356. break 2
  5357. fi
  5358. done
  5359. done
  5360. IFS=$as_save_IFS
  5361. fi
  5362. fi
  5363. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5364. if test -n "$ac_ct_RANLIB"; then
  5365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5366. $as_echo "$ac_ct_RANLIB" >&6; }
  5367. else
  5368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5369. $as_echo "no" >&6; }
  5370. fi
  5371. if test "x$ac_ct_RANLIB" = x; then
  5372. RANLIB=":"
  5373. else
  5374. case $cross_compiling:$ac_tool_warned in
  5375. yes:)
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5377. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5378. ac_tool_warned=yes ;;
  5379. esac
  5380. RANLIB=$ac_ct_RANLIB
  5381. fi
  5382. else
  5383. RANLIB="$ac_cv_prog_RANLIB"
  5384. fi
  5385. enable_dlopen=yes
  5386. case `pwd` in
  5387. *\ * | *\ *)
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5389. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5390. esac
  5391. macro_version='2.2.7a'
  5392. macro_revision='1.3134'
  5393. ltmain="$ac_aux_dir/ltmain.sh"
  5394. # Backslashify metacharacters that are still active within
  5395. # double-quoted strings.
  5396. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5397. # Same as above, but do not quote variable references.
  5398. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5399. # Sed substitution to delay expansion of an escaped shell variable in a
  5400. # double_quote_subst'ed string.
  5401. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5402. # Sed substitution to delay expansion of an escaped single quote.
  5403. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5404. # Sed substitution to avoid accidental globbing in evaled expressions
  5405. no_glob_subst='s/\*/\\\*/g'
  5406. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5407. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5408. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5410. $as_echo_n "checking how to print strings... " >&6; }
  5411. # Test print first, because it will be a builtin if present.
  5412. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  5413. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5414. ECHO='print -r --'
  5415. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5416. ECHO='printf %s\n'
  5417. else
  5418. # Use this function as a fallback that always works.
  5419. func_fallback_echo ()
  5420. {
  5421. eval 'cat <<_LTECHO_EOF
  5422. $1
  5423. _LTECHO_EOF'
  5424. }
  5425. ECHO='func_fallback_echo'
  5426. fi
  5427. # func_echo_all arg...
  5428. # Invoke $ECHO with all args, space-separated.
  5429. func_echo_all ()
  5430. {
  5431. $ECHO ""
  5432. }
  5433. case "$ECHO" in
  5434. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5435. $as_echo "printf" >&6; } ;;
  5436. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5437. $as_echo "print -r" >&6; } ;;
  5438. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5439. $as_echo "cat" >&6; } ;;
  5440. esac
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5442. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5443. if test "${ac_cv_path_SED+set}" = set; then :
  5444. $as_echo_n "(cached) " >&6
  5445. else
  5446. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5447. for ac_i in 1 2 3 4 5 6 7; do
  5448. ac_script="$ac_script$as_nl$ac_script"
  5449. done
  5450. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5451. { ac_script=; unset ac_script;}
  5452. if test -z "$SED"; then
  5453. ac_path_SED_found=false
  5454. # Loop through the user's path and test for each of PROGNAME-LIST
  5455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5456. for as_dir in $PATH
  5457. do
  5458. IFS=$as_save_IFS
  5459. test -z "$as_dir" && as_dir=.
  5460. for ac_prog in sed gsed; do
  5461. for ac_exec_ext in '' $ac_executable_extensions; do
  5462. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5463. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  5464. # Check for GNU ac_path_SED and select it if it is found.
  5465. # Check for GNU $ac_path_SED
  5466. case `"$ac_path_SED" --version 2>&1` in
  5467. *GNU*)
  5468. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5469. *)
  5470. ac_count=0
  5471. $as_echo_n 0123456789 >"conftest.in"
  5472. while :
  5473. do
  5474. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5475. mv "conftest.tmp" "conftest.in"
  5476. cp "conftest.in" "conftest.nl"
  5477. $as_echo '' >> "conftest.nl"
  5478. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5479. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5480. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5481. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5482. # Best one so far, save it but keep looking for a better one
  5483. ac_cv_path_SED="$ac_path_SED"
  5484. ac_path_SED_max=$ac_count
  5485. fi
  5486. # 10*(2^10) chars as input seems more than enough
  5487. test $ac_count -gt 10 && break
  5488. done
  5489. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5490. esac
  5491. $ac_path_SED_found && break 3
  5492. done
  5493. done
  5494. done
  5495. IFS=$as_save_IFS
  5496. if test -z "$ac_cv_path_SED"; then
  5497. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5498. fi
  5499. else
  5500. ac_cv_path_SED=$SED
  5501. fi
  5502. fi
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5504. $as_echo "$ac_cv_path_SED" >&6; }
  5505. SED="$ac_cv_path_SED"
  5506. rm -f conftest.sed
  5507. test -z "$SED" && SED=sed
  5508. Xsed="$SED -e 1s/^X//"
  5509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5510. $as_echo_n "checking for fgrep... " >&6; }
  5511. if test "${ac_cv_path_FGREP+set}" = set; then :
  5512. $as_echo_n "(cached) " >&6
  5513. else
  5514. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5515. then ac_cv_path_FGREP="$GREP -F"
  5516. else
  5517. if test -z "$FGREP"; then
  5518. ac_path_FGREP_found=false
  5519. # Loop through the user's path and test for each of PROGNAME-LIST
  5520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5521. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5522. do
  5523. IFS=$as_save_IFS
  5524. test -z "$as_dir" && as_dir=.
  5525. for ac_prog in fgrep; do
  5526. for ac_exec_ext in '' $ac_executable_extensions; do
  5527. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5528. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  5529. # Check for GNU ac_path_FGREP and select it if it is found.
  5530. # Check for GNU $ac_path_FGREP
  5531. case `"$ac_path_FGREP" --version 2>&1` in
  5532. *GNU*)
  5533. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5534. *)
  5535. ac_count=0
  5536. $as_echo_n 0123456789 >"conftest.in"
  5537. while :
  5538. do
  5539. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5540. mv "conftest.tmp" "conftest.in"
  5541. cp "conftest.in" "conftest.nl"
  5542. $as_echo 'FGREP' >> "conftest.nl"
  5543. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5544. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5545. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5546. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5547. # Best one so far, save it but keep looking for a better one
  5548. ac_cv_path_FGREP="$ac_path_FGREP"
  5549. ac_path_FGREP_max=$ac_count
  5550. fi
  5551. # 10*(2^10) chars as input seems more than enough
  5552. test $ac_count -gt 10 && break
  5553. done
  5554. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5555. esac
  5556. $ac_path_FGREP_found && break 3
  5557. done
  5558. done
  5559. done
  5560. IFS=$as_save_IFS
  5561. if test -z "$ac_cv_path_FGREP"; then
  5562. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5563. fi
  5564. else
  5565. ac_cv_path_FGREP=$FGREP
  5566. fi
  5567. fi
  5568. fi
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5570. $as_echo "$ac_cv_path_FGREP" >&6; }
  5571. FGREP="$ac_cv_path_FGREP"
  5572. test -z "$GREP" && GREP=grep
  5573. # Check whether --with-gnu-ld was given.
  5574. if test "${with_gnu_ld+set}" = set; then :
  5575. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5576. else
  5577. with_gnu_ld=no
  5578. fi
  5579. ac_prog=ld
  5580. if test "$GCC" = yes; then
  5581. # Check if gcc -print-prog-name=ld gives a path.
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5583. $as_echo_n "checking for ld used by $CC... " >&6; }
  5584. case $host in
  5585. *-*-mingw*)
  5586. # gcc leaves a trailing carriage return which upsets mingw
  5587. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5588. *)
  5589. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5590. esac
  5591. case $ac_prog in
  5592. # Accept absolute paths.
  5593. [\\/]* | ?:[\\/]*)
  5594. re_direlt='/[^/][^/]*/\.\./'
  5595. # Canonicalize the pathname of ld
  5596. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5597. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5598. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5599. done
  5600. test -z "$LD" && LD="$ac_prog"
  5601. ;;
  5602. "")
  5603. # If it fails, then pretend we aren't using GCC.
  5604. ac_prog=ld
  5605. ;;
  5606. *)
  5607. # If it is relative, then search for the first ld in PATH.
  5608. with_gnu_ld=unknown
  5609. ;;
  5610. esac
  5611. elif test "$with_gnu_ld" = yes; then
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5613. $as_echo_n "checking for GNU ld... " >&6; }
  5614. else
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5616. $as_echo_n "checking for non-GNU ld... " >&6; }
  5617. fi
  5618. if test "${lt_cv_path_LD+set}" = set; then :
  5619. $as_echo_n "(cached) " >&6
  5620. else
  5621. if test -z "$LD"; then
  5622. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5623. for ac_dir in $PATH; do
  5624. IFS="$lt_save_ifs"
  5625. test -z "$ac_dir" && ac_dir=.
  5626. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5627. lt_cv_path_LD="$ac_dir/$ac_prog"
  5628. # Check to see if the program is GNU ld. I'd rather use --version,
  5629. # but apparently some variants of GNU ld only accept -v.
  5630. # Break only if it was the GNU/non-GNU ld that we prefer.
  5631. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5632. *GNU* | *'with BFD'*)
  5633. test "$with_gnu_ld" != no && break
  5634. ;;
  5635. *)
  5636. test "$with_gnu_ld" != yes && break
  5637. ;;
  5638. esac
  5639. fi
  5640. done
  5641. IFS="$lt_save_ifs"
  5642. else
  5643. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5644. fi
  5645. fi
  5646. LD="$lt_cv_path_LD"
  5647. if test -n "$LD"; then
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5649. $as_echo "$LD" >&6; }
  5650. else
  5651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5652. $as_echo "no" >&6; }
  5653. fi
  5654. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5656. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5657. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  5658. $as_echo_n "(cached) " >&6
  5659. else
  5660. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5661. case `$LD -v 2>&1 </dev/null` in
  5662. *GNU* | *'with BFD'*)
  5663. lt_cv_prog_gnu_ld=yes
  5664. ;;
  5665. *)
  5666. lt_cv_prog_gnu_ld=no
  5667. ;;
  5668. esac
  5669. fi
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5671. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5672. with_gnu_ld=$lt_cv_prog_gnu_ld
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5674. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5675. if test "${lt_cv_path_NM+set}" = set; then :
  5676. $as_echo_n "(cached) " >&6
  5677. else
  5678. if test -n "$NM"; then
  5679. # Let the user override the test.
  5680. lt_cv_path_NM="$NM"
  5681. else
  5682. lt_nm_to_check="${ac_tool_prefix}nm"
  5683. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5684. lt_nm_to_check="$lt_nm_to_check nm"
  5685. fi
  5686. for lt_tmp_nm in $lt_nm_to_check; do
  5687. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5688. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5689. IFS="$lt_save_ifs"
  5690. test -z "$ac_dir" && ac_dir=.
  5691. tmp_nm="$ac_dir/$lt_tmp_nm"
  5692. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5693. # Check to see if the nm accepts a BSD-compat flag.
  5694. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5695. # nm: unknown option "B" ignored
  5696. # Tru64's nm complains that /dev/null is an invalid object file
  5697. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5698. */dev/null* | *'Invalid file or object type'*)
  5699. lt_cv_path_NM="$tmp_nm -B"
  5700. break
  5701. ;;
  5702. *)
  5703. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5704. */dev/null*)
  5705. lt_cv_path_NM="$tmp_nm -p"
  5706. break
  5707. ;;
  5708. *)
  5709. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5710. continue # so that we can try to find one that supports BSD flags
  5711. ;;
  5712. esac
  5713. ;;
  5714. esac
  5715. fi
  5716. done
  5717. IFS="$lt_save_ifs"
  5718. done
  5719. : ${lt_cv_path_NM=no}
  5720. fi
  5721. fi
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5723. $as_echo "$lt_cv_path_NM" >&6; }
  5724. if test "$lt_cv_path_NM" != "no"; then
  5725. NM="$lt_cv_path_NM"
  5726. else
  5727. # Didn't find any BSD compatible name lister, look for dumpbin.
  5728. if test -n "$DUMPBIN"; then :
  5729. # Let the user override the test.
  5730. else
  5731. if test -n "$ac_tool_prefix"; then
  5732. for ac_prog in dumpbin "link -dump"
  5733. do
  5734. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5735. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5737. $as_echo_n "checking for $ac_word... " >&6; }
  5738. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  5739. $as_echo_n "(cached) " >&6
  5740. else
  5741. if test -n "$DUMPBIN"; then
  5742. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5743. else
  5744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5745. for as_dir in $PATH
  5746. do
  5747. IFS=$as_save_IFS
  5748. test -z "$as_dir" && as_dir=.
  5749. for ac_exec_ext in '' $ac_executable_extensions; do
  5750. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5751. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5753. break 2
  5754. fi
  5755. done
  5756. done
  5757. IFS=$as_save_IFS
  5758. fi
  5759. fi
  5760. DUMPBIN=$ac_cv_prog_DUMPBIN
  5761. if test -n "$DUMPBIN"; then
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5763. $as_echo "$DUMPBIN" >&6; }
  5764. else
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5766. $as_echo "no" >&6; }
  5767. fi
  5768. test -n "$DUMPBIN" && break
  5769. done
  5770. fi
  5771. if test -z "$DUMPBIN"; then
  5772. ac_ct_DUMPBIN=$DUMPBIN
  5773. for ac_prog in dumpbin "link -dump"
  5774. do
  5775. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5776. set dummy $ac_prog; ac_word=$2
  5777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5778. $as_echo_n "checking for $ac_word... " >&6; }
  5779. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  5780. $as_echo_n "(cached) " >&6
  5781. else
  5782. if test -n "$ac_ct_DUMPBIN"; then
  5783. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5784. else
  5785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5786. for as_dir in $PATH
  5787. do
  5788. IFS=$as_save_IFS
  5789. test -z "$as_dir" && as_dir=.
  5790. for ac_exec_ext in '' $ac_executable_extensions; do
  5791. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5792. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5794. break 2
  5795. fi
  5796. done
  5797. done
  5798. IFS=$as_save_IFS
  5799. fi
  5800. fi
  5801. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5802. if test -n "$ac_ct_DUMPBIN"; then
  5803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5804. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5805. else
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5807. $as_echo "no" >&6; }
  5808. fi
  5809. test -n "$ac_ct_DUMPBIN" && break
  5810. done
  5811. if test "x$ac_ct_DUMPBIN" = x; then
  5812. DUMPBIN=":"
  5813. else
  5814. case $cross_compiling:$ac_tool_warned in
  5815. yes:)
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5817. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5818. ac_tool_warned=yes ;;
  5819. esac
  5820. DUMPBIN=$ac_ct_DUMPBIN
  5821. fi
  5822. fi
  5823. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5824. *COFF*)
  5825. DUMPBIN="$DUMPBIN -symbols"
  5826. ;;
  5827. *)
  5828. DUMPBIN=:
  5829. ;;
  5830. esac
  5831. fi
  5832. if test "$DUMPBIN" != ":"; then
  5833. NM="$DUMPBIN"
  5834. fi
  5835. fi
  5836. test -z "$NM" && NM=nm
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5838. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5839. if test "${lt_cv_nm_interface+set}" = set; then :
  5840. $as_echo_n "(cached) " >&6
  5841. else
  5842. lt_cv_nm_interface="BSD nm"
  5843. echo "int some_variable = 0;" > conftest.$ac_ext
  5844. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5845. (eval "$ac_compile" 2>conftest.err)
  5846. cat conftest.err >&5
  5847. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5848. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5849. cat conftest.err >&5
  5850. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5851. cat conftest.out >&5
  5852. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5853. lt_cv_nm_interface="MS dumpbin"
  5854. fi
  5855. rm -f conftest*
  5856. fi
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5858. $as_echo "$lt_cv_nm_interface" >&6; }
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5860. $as_echo_n "checking whether ln -s works... " >&6; }
  5861. LN_S=$as_ln_s
  5862. if test "$LN_S" = "ln -s"; then
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5864. $as_echo "yes" >&6; }
  5865. else
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5867. $as_echo "no, using $LN_S" >&6; }
  5868. fi
  5869. # find the maximum length of command line arguments
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5871. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5872. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  5873. $as_echo_n "(cached) " >&6
  5874. else
  5875. i=0
  5876. teststring="ABCD"
  5877. case $build_os in
  5878. msdosdjgpp*)
  5879. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5880. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5881. # during glob expansion). Even if it were fixed, the result of this
  5882. # check would be larger than it should be.
  5883. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5884. ;;
  5885. gnu*)
  5886. # Under GNU Hurd, this test is not required because there is
  5887. # no limit to the length of command line arguments.
  5888. # Libtool will interpret -1 as no limit whatsoever
  5889. lt_cv_sys_max_cmd_len=-1;
  5890. ;;
  5891. cygwin* | mingw* | cegcc*)
  5892. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5893. # about 5 minutes as the teststring grows exponentially.
  5894. # Worse, since 9x/ME are not pre-emptively multitasking,
  5895. # you end up with a "frozen" computer, even though with patience
  5896. # the test eventually succeeds (with a max line length of 256k).
  5897. # Instead, let's just punt: use the minimum linelength reported by
  5898. # all of the supported platforms: 8192 (on NT/2K/XP).
  5899. lt_cv_sys_max_cmd_len=8192;
  5900. ;;
  5901. mint*)
  5902. # On MiNT this can take a long time and run out of memory.
  5903. lt_cv_sys_max_cmd_len=8192;
  5904. ;;
  5905. amigaos*)
  5906. # On AmigaOS with pdksh, this test takes hours, literally.
  5907. # So we just punt and use a minimum line length of 8192.
  5908. lt_cv_sys_max_cmd_len=8192;
  5909. ;;
  5910. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5911. # This has been around since 386BSD, at least. Likely further.
  5912. if test -x /sbin/sysctl; then
  5913. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5914. elif test -x /usr/sbin/sysctl; then
  5915. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5916. else
  5917. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5918. fi
  5919. # And add a safety zone
  5920. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5921. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5922. ;;
  5923. interix*)
  5924. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5925. lt_cv_sys_max_cmd_len=196608
  5926. ;;
  5927. osf*)
  5928. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5929. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5930. # nice to cause kernel panics so lets avoid the loop below.
  5931. # First set a reasonable default.
  5932. lt_cv_sys_max_cmd_len=16384
  5933. #
  5934. if test -x /sbin/sysconfig; then
  5935. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5936. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5937. esac
  5938. fi
  5939. ;;
  5940. sco3.2v5*)
  5941. lt_cv_sys_max_cmd_len=102400
  5942. ;;
  5943. sysv5* | sco5v6* | sysv4.2uw2*)
  5944. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5945. if test -n "$kargmax"; then
  5946. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5947. else
  5948. lt_cv_sys_max_cmd_len=32768
  5949. fi
  5950. ;;
  5951. *)
  5952. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5953. if test -n "$lt_cv_sys_max_cmd_len"; then
  5954. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5955. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5956. else
  5957. # Make teststring a little bigger before we do anything with it.
  5958. # a 1K string should be a reasonable start.
  5959. for i in 1 2 3 4 5 6 7 8 ; do
  5960. teststring=$teststring$teststring
  5961. done
  5962. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5963. # If test is not a shell built-in, we'll probably end up computing a
  5964. # maximum length that is only half of the actual maximum length, but
  5965. # we can't tell.
  5966. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5967. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5968. test $i != 17 # 1/2 MB should be enough
  5969. do
  5970. i=`expr $i + 1`
  5971. teststring=$teststring$teststring
  5972. done
  5973. # Only check the string length outside the loop.
  5974. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5975. teststring=
  5976. # Add a significant safety factor because C++ compilers can tack on
  5977. # massive amounts of additional arguments before passing them to the
  5978. # linker. It appears as though 1/2 is a usable value.
  5979. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5980. fi
  5981. ;;
  5982. esac
  5983. fi
  5984. if test -n $lt_cv_sys_max_cmd_len ; then
  5985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5986. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5987. else
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5989. $as_echo "none" >&6; }
  5990. fi
  5991. max_cmd_len=$lt_cv_sys_max_cmd_len
  5992. : ${CP="cp -f"}
  5993. : ${MV="mv -f"}
  5994. : ${RM="rm -f"}
  5995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5996. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5997. # Try some XSI features
  5998. xsi_shell=no
  5999. ( _lt_dummy="a/b/c"
  6000. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  6001. = c,a/b,, \
  6002. && eval 'test $(( 1 + 1 )) -eq 2 \
  6003. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  6004. && xsi_shell=yes
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  6006. $as_echo "$xsi_shell" >&6; }
  6007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  6008. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  6009. lt_shell_append=no
  6010. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  6011. >/dev/null 2>&1 \
  6012. && lt_shell_append=yes
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  6014. $as_echo "$lt_shell_append" >&6; }
  6015. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6016. lt_unset=unset
  6017. else
  6018. lt_unset=false
  6019. fi
  6020. # test EBCDIC or ASCII
  6021. case `echo X|tr X '\101'` in
  6022. A) # ASCII based system
  6023. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6024. lt_SP2NL='tr \040 \012'
  6025. lt_NL2SP='tr \015\012 \040\040'
  6026. ;;
  6027. *) # EBCDIC based system
  6028. lt_SP2NL='tr \100 \n'
  6029. lt_NL2SP='tr \r\n \100\100'
  6030. ;;
  6031. esac
  6032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6033. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6034. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  6035. $as_echo_n "(cached) " >&6
  6036. else
  6037. lt_cv_ld_reload_flag='-r'
  6038. fi
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6040. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6041. reload_flag=$lt_cv_ld_reload_flag
  6042. case $reload_flag in
  6043. "" | " "*) ;;
  6044. *) reload_flag=" $reload_flag" ;;
  6045. esac
  6046. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6047. case $host_os in
  6048. darwin*)
  6049. if test "$GCC" = yes; then
  6050. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  6051. else
  6052. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6053. fi
  6054. ;;
  6055. esac
  6056. if test -n "$ac_tool_prefix"; then
  6057. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6058. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6060. $as_echo_n "checking for $ac_word... " >&6; }
  6061. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  6062. $as_echo_n "(cached) " >&6
  6063. else
  6064. if test -n "$OBJDUMP"; then
  6065. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6066. else
  6067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6068. for as_dir in $PATH
  6069. do
  6070. IFS=$as_save_IFS
  6071. test -z "$as_dir" && as_dir=.
  6072. for ac_exec_ext in '' $ac_executable_extensions; do
  6073. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6074. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6075. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6076. break 2
  6077. fi
  6078. done
  6079. done
  6080. IFS=$as_save_IFS
  6081. fi
  6082. fi
  6083. OBJDUMP=$ac_cv_prog_OBJDUMP
  6084. if test -n "$OBJDUMP"; then
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6086. $as_echo "$OBJDUMP" >&6; }
  6087. else
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6089. $as_echo "no" >&6; }
  6090. fi
  6091. fi
  6092. if test -z "$ac_cv_prog_OBJDUMP"; then
  6093. ac_ct_OBJDUMP=$OBJDUMP
  6094. # Extract the first word of "objdump", so it can be a program name with args.
  6095. set dummy objdump; ac_word=$2
  6096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6097. $as_echo_n "checking for $ac_word... " >&6; }
  6098. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  6099. $as_echo_n "(cached) " >&6
  6100. else
  6101. if test -n "$ac_ct_OBJDUMP"; then
  6102. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6103. else
  6104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6105. for as_dir in $PATH
  6106. do
  6107. IFS=$as_save_IFS
  6108. test -z "$as_dir" && as_dir=.
  6109. for ac_exec_ext in '' $ac_executable_extensions; do
  6110. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6111. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6112. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6113. break 2
  6114. fi
  6115. done
  6116. done
  6117. IFS=$as_save_IFS
  6118. fi
  6119. fi
  6120. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6121. if test -n "$ac_ct_OBJDUMP"; then
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6123. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6124. else
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6126. $as_echo "no" >&6; }
  6127. fi
  6128. if test "x$ac_ct_OBJDUMP" = x; then
  6129. OBJDUMP="false"
  6130. else
  6131. case $cross_compiling:$ac_tool_warned in
  6132. yes:)
  6133. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6134. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6135. ac_tool_warned=yes ;;
  6136. esac
  6137. OBJDUMP=$ac_ct_OBJDUMP
  6138. fi
  6139. else
  6140. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6141. fi
  6142. test -z "$OBJDUMP" && OBJDUMP=objdump
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6144. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6145. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  6146. $as_echo_n "(cached) " >&6
  6147. else
  6148. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6149. lt_cv_file_magic_test_file=
  6150. lt_cv_deplibs_check_method='unknown'
  6151. # Need to set the preceding variable on all platforms that support
  6152. # interlibrary dependencies.
  6153. # 'none' -- dependencies not supported.
  6154. # `unknown' -- same as none, but documents that we really don't know.
  6155. # 'pass_all' -- all dependencies passed with no checks.
  6156. # 'test_compile' -- check by making test program.
  6157. # 'file_magic [[regex]]' -- check by looking for files in library path
  6158. # which responds to the $file_magic_cmd with a given extended regex.
  6159. # If you have `file' or equivalent on your system and you're not sure
  6160. # whether `pass_all' will *always* work, you probably want this one.
  6161. case $host_os in
  6162. aix[4-9]*)
  6163. lt_cv_deplibs_check_method=pass_all
  6164. ;;
  6165. beos*)
  6166. lt_cv_deplibs_check_method=pass_all
  6167. ;;
  6168. bsdi[45]*)
  6169. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6170. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6171. lt_cv_file_magic_test_file=/shlib/libc.so
  6172. ;;
  6173. cygwin*)
  6174. # func_win32_libid is a shell function defined in ltmain.sh
  6175. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6176. lt_cv_file_magic_cmd='func_win32_libid'
  6177. ;;
  6178. mingw* | pw32*)
  6179. # Base MSYS/MinGW do not provide the 'file' command needed by
  6180. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6181. # unless we find 'file', for example because we are cross-compiling.
  6182. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  6183. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  6184. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6185. lt_cv_file_magic_cmd='func_win32_libid'
  6186. else
  6187. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  6188. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6189. fi
  6190. ;;
  6191. cegcc*)
  6192. # use the weaker test based on 'objdump'. See mingw*.
  6193. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6194. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6195. ;;
  6196. darwin* | rhapsody*)
  6197. lt_cv_deplibs_check_method=pass_all
  6198. ;;
  6199. freebsd* | dragonfly*)
  6200. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6201. case $host_cpu in
  6202. i*86 )
  6203. # Not sure whether the presence of OpenBSD here was a mistake.
  6204. # Let's accept both of them until this is cleared up.
  6205. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6206. lt_cv_file_magic_cmd=/usr/bin/file
  6207. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6208. ;;
  6209. esac
  6210. else
  6211. lt_cv_deplibs_check_method=pass_all
  6212. fi
  6213. ;;
  6214. gnu*)
  6215. lt_cv_deplibs_check_method=pass_all
  6216. ;;
  6217. haiku*)
  6218. lt_cv_deplibs_check_method=pass_all
  6219. ;;
  6220. hpux10.20* | hpux11*)
  6221. lt_cv_file_magic_cmd=/usr/bin/file
  6222. case $host_cpu in
  6223. ia64*)
  6224. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6225. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6226. ;;
  6227. hppa*64*)
  6228. 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]'
  6229. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6230. ;;
  6231. *)
  6232. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6233. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6234. ;;
  6235. esac
  6236. ;;
  6237. interix[3-9]*)
  6238. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6239. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6240. ;;
  6241. irix5* | irix6* | nonstopux*)
  6242. case $LD in
  6243. *-32|*"-32 ") libmagic=32-bit;;
  6244. *-n32|*"-n32 ") libmagic=N32;;
  6245. *-64|*"-64 ") libmagic=64-bit;;
  6246. *) libmagic=never-match;;
  6247. esac
  6248. lt_cv_deplibs_check_method=pass_all
  6249. ;;
  6250. # This must be Linux ELF.
  6251. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6252. lt_cv_deplibs_check_method=pass_all
  6253. ;;
  6254. netbsd*)
  6255. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6256. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6257. else
  6258. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6259. fi
  6260. ;;
  6261. newos6*)
  6262. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6263. lt_cv_file_magic_cmd=/usr/bin/file
  6264. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6265. ;;
  6266. *nto* | *qnx*)
  6267. lt_cv_deplibs_check_method=pass_all
  6268. ;;
  6269. openbsd*)
  6270. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6271. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6272. else
  6273. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6274. fi
  6275. ;;
  6276. osf3* | osf4* | osf5*)
  6277. lt_cv_deplibs_check_method=pass_all
  6278. ;;
  6279. rdos*)
  6280. lt_cv_deplibs_check_method=pass_all
  6281. ;;
  6282. solaris*)
  6283. lt_cv_deplibs_check_method=pass_all
  6284. ;;
  6285. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6286. lt_cv_deplibs_check_method=pass_all
  6287. ;;
  6288. sysv4 | sysv4.3*)
  6289. case $host_vendor in
  6290. motorola)
  6291. 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]'
  6292. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6293. ;;
  6294. ncr)
  6295. lt_cv_deplibs_check_method=pass_all
  6296. ;;
  6297. sequent)
  6298. lt_cv_file_magic_cmd='/bin/file'
  6299. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6300. ;;
  6301. sni)
  6302. lt_cv_file_magic_cmd='/bin/file'
  6303. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6304. lt_cv_file_magic_test_file=/lib/libc.so
  6305. ;;
  6306. siemens)
  6307. lt_cv_deplibs_check_method=pass_all
  6308. ;;
  6309. pc)
  6310. lt_cv_deplibs_check_method=pass_all
  6311. ;;
  6312. esac
  6313. ;;
  6314. tpf*)
  6315. lt_cv_deplibs_check_method=pass_all
  6316. ;;
  6317. esac
  6318. fi
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6320. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6321. file_magic_cmd=$lt_cv_file_magic_cmd
  6322. deplibs_check_method=$lt_cv_deplibs_check_method
  6323. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6324. if test -n "$ac_tool_prefix"; then
  6325. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6326. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6328. $as_echo_n "checking for $ac_word... " >&6; }
  6329. if test "${ac_cv_prog_AR+set}" = set; then :
  6330. $as_echo_n "(cached) " >&6
  6331. else
  6332. if test -n "$AR"; then
  6333. ac_cv_prog_AR="$AR" # Let the user override the test.
  6334. else
  6335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6336. for as_dir in $PATH
  6337. do
  6338. IFS=$as_save_IFS
  6339. test -z "$as_dir" && as_dir=.
  6340. for ac_exec_ext in '' $ac_executable_extensions; do
  6341. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6342. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6344. break 2
  6345. fi
  6346. done
  6347. done
  6348. IFS=$as_save_IFS
  6349. fi
  6350. fi
  6351. AR=$ac_cv_prog_AR
  6352. if test -n "$AR"; then
  6353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6354. $as_echo "$AR" >&6; }
  6355. else
  6356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6357. $as_echo "no" >&6; }
  6358. fi
  6359. fi
  6360. if test -z "$ac_cv_prog_AR"; then
  6361. ac_ct_AR=$AR
  6362. # Extract the first word of "ar", so it can be a program name with args.
  6363. set dummy ar; ac_word=$2
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6365. $as_echo_n "checking for $ac_word... " >&6; }
  6366. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  6367. $as_echo_n "(cached) " >&6
  6368. else
  6369. if test -n "$ac_ct_AR"; then
  6370. ac_cv_prog_ac_ct_AR="$ac_ct_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. test -z "$as_dir" && as_dir=.
  6377. for ac_exec_ext in '' $ac_executable_extensions; do
  6378. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6379. ac_cv_prog_ac_ct_AR="ar"
  6380. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6381. break 2
  6382. fi
  6383. done
  6384. done
  6385. IFS=$as_save_IFS
  6386. fi
  6387. fi
  6388. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6389. if test -n "$ac_ct_AR"; then
  6390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6391. $as_echo "$ac_ct_AR" >&6; }
  6392. else
  6393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6394. $as_echo "no" >&6; }
  6395. fi
  6396. if test "x$ac_ct_AR" = x; then
  6397. AR="false"
  6398. else
  6399. case $cross_compiling:$ac_tool_warned in
  6400. yes:)
  6401. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6402. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6403. ac_tool_warned=yes ;;
  6404. esac
  6405. AR=$ac_ct_AR
  6406. fi
  6407. else
  6408. AR="$ac_cv_prog_AR"
  6409. fi
  6410. test -z "$AR" && AR=ar
  6411. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6412. if test -n "$ac_tool_prefix"; then
  6413. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6414. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6416. $as_echo_n "checking for $ac_word... " >&6; }
  6417. if test "${ac_cv_prog_STRIP+set}" = set; then :
  6418. $as_echo_n "(cached) " >&6
  6419. else
  6420. if test -n "$STRIP"; then
  6421. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6422. else
  6423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6424. for as_dir in $PATH
  6425. do
  6426. IFS=$as_save_IFS
  6427. test -z "$as_dir" && as_dir=.
  6428. for ac_exec_ext in '' $ac_executable_extensions; do
  6429. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6430. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6432. break 2
  6433. fi
  6434. done
  6435. done
  6436. IFS=$as_save_IFS
  6437. fi
  6438. fi
  6439. STRIP=$ac_cv_prog_STRIP
  6440. if test -n "$STRIP"; then
  6441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6442. $as_echo "$STRIP" >&6; }
  6443. else
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6445. $as_echo "no" >&6; }
  6446. fi
  6447. fi
  6448. if test -z "$ac_cv_prog_STRIP"; then
  6449. ac_ct_STRIP=$STRIP
  6450. # Extract the first word of "strip", so it can be a program name with args.
  6451. set dummy strip; ac_word=$2
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6453. $as_echo_n "checking for $ac_word... " >&6; }
  6454. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  6455. $as_echo_n "(cached) " >&6
  6456. else
  6457. if test -n "$ac_ct_STRIP"; then
  6458. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6459. else
  6460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6461. for as_dir in $PATH
  6462. do
  6463. IFS=$as_save_IFS
  6464. test -z "$as_dir" && as_dir=.
  6465. for ac_exec_ext in '' $ac_executable_extensions; do
  6466. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6467. ac_cv_prog_ac_ct_STRIP="strip"
  6468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6469. break 2
  6470. fi
  6471. done
  6472. done
  6473. IFS=$as_save_IFS
  6474. fi
  6475. fi
  6476. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6477. if test -n "$ac_ct_STRIP"; then
  6478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6479. $as_echo "$ac_ct_STRIP" >&6; }
  6480. else
  6481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6482. $as_echo "no" >&6; }
  6483. fi
  6484. if test "x$ac_ct_STRIP" = x; then
  6485. STRIP=":"
  6486. else
  6487. case $cross_compiling:$ac_tool_warned in
  6488. yes:)
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6490. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6491. ac_tool_warned=yes ;;
  6492. esac
  6493. STRIP=$ac_ct_STRIP
  6494. fi
  6495. else
  6496. STRIP="$ac_cv_prog_STRIP"
  6497. fi
  6498. test -z "$STRIP" && STRIP=:
  6499. if test -n "$ac_tool_prefix"; then
  6500. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6501. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6503. $as_echo_n "checking for $ac_word... " >&6; }
  6504. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  6505. $as_echo_n "(cached) " >&6
  6506. else
  6507. if test -n "$RANLIB"; then
  6508. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6509. else
  6510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6511. for as_dir in $PATH
  6512. do
  6513. IFS=$as_save_IFS
  6514. test -z "$as_dir" && as_dir=.
  6515. for ac_exec_ext in '' $ac_executable_extensions; do
  6516. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6517. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6519. break 2
  6520. fi
  6521. done
  6522. done
  6523. IFS=$as_save_IFS
  6524. fi
  6525. fi
  6526. RANLIB=$ac_cv_prog_RANLIB
  6527. if test -n "$RANLIB"; then
  6528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6529. $as_echo "$RANLIB" >&6; }
  6530. else
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6532. $as_echo "no" >&6; }
  6533. fi
  6534. fi
  6535. if test -z "$ac_cv_prog_RANLIB"; then
  6536. ac_ct_RANLIB=$RANLIB
  6537. # Extract the first word of "ranlib", so it can be a program name with args.
  6538. set dummy ranlib; ac_word=$2
  6539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6540. $as_echo_n "checking for $ac_word... " >&6; }
  6541. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  6542. $as_echo_n "(cached) " >&6
  6543. else
  6544. if test -n "$ac_ct_RANLIB"; then
  6545. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6546. else
  6547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6548. for as_dir in $PATH
  6549. do
  6550. IFS=$as_save_IFS
  6551. test -z "$as_dir" && as_dir=.
  6552. for ac_exec_ext in '' $ac_executable_extensions; do
  6553. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6554. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6556. break 2
  6557. fi
  6558. done
  6559. done
  6560. IFS=$as_save_IFS
  6561. fi
  6562. fi
  6563. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6564. if test -n "$ac_ct_RANLIB"; then
  6565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6566. $as_echo "$ac_ct_RANLIB" >&6; }
  6567. else
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6569. $as_echo "no" >&6; }
  6570. fi
  6571. if test "x$ac_ct_RANLIB" = x; then
  6572. RANLIB=":"
  6573. else
  6574. case $cross_compiling:$ac_tool_warned in
  6575. yes:)
  6576. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6577. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6578. ac_tool_warned=yes ;;
  6579. esac
  6580. RANLIB=$ac_ct_RANLIB
  6581. fi
  6582. else
  6583. RANLIB="$ac_cv_prog_RANLIB"
  6584. fi
  6585. test -z "$RANLIB" && RANLIB=:
  6586. # Determine commands to create old-style static archives.
  6587. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6588. old_postinstall_cmds='chmod 644 $oldlib'
  6589. old_postuninstall_cmds=
  6590. if test -n "$RANLIB"; then
  6591. case $host_os in
  6592. openbsd*)
  6593. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6594. ;;
  6595. *)
  6596. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6597. ;;
  6598. esac
  6599. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6600. fi
  6601. case $host_os in
  6602. darwin*)
  6603. lock_old_archive_extraction=yes ;;
  6604. *)
  6605. lock_old_archive_extraction=no ;;
  6606. esac
  6607. # If no C compiler was specified, use CC.
  6608. LTCC=${LTCC-"$CC"}
  6609. # If no C compiler flags were specified, use CFLAGS.
  6610. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6611. # Allow CC to be a program name with arguments.
  6612. compiler=$CC
  6613. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6615. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6616. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  6617. $as_echo_n "(cached) " >&6
  6618. else
  6619. # These are sane defaults that work on at least a few old systems.
  6620. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6621. # Character class describing NM global symbol codes.
  6622. symcode='[BCDEGRST]'
  6623. # Regexp to match symbols that can be accessed directly from C.
  6624. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6625. # Define system-specific variables.
  6626. case $host_os in
  6627. aix*)
  6628. symcode='[BCDT]'
  6629. ;;
  6630. cygwin* | mingw* | pw32* | cegcc*)
  6631. symcode='[ABCDGISTW]'
  6632. ;;
  6633. hpux*)
  6634. if test "$host_cpu" = ia64; then
  6635. symcode='[ABCDEGRST]'
  6636. fi
  6637. ;;
  6638. irix* | nonstopux*)
  6639. symcode='[BCDEGRST]'
  6640. ;;
  6641. osf*)
  6642. symcode='[BCDEGQRST]'
  6643. ;;
  6644. solaris*)
  6645. symcode='[BDRT]'
  6646. ;;
  6647. sco3.2v5*)
  6648. symcode='[DT]'
  6649. ;;
  6650. sysv4.2uw2*)
  6651. symcode='[DT]'
  6652. ;;
  6653. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6654. symcode='[ABDT]'
  6655. ;;
  6656. sysv4)
  6657. symcode='[DFNSTU]'
  6658. ;;
  6659. esac
  6660. # If we're using GNU nm, then use its standard symbol codes.
  6661. case `$NM -V 2>&1` in
  6662. *GNU* | *'with BFD'*)
  6663. symcode='[ABCDGIRSTW]' ;;
  6664. esac
  6665. # Transform an extracted symbol line into a proper C declaration.
  6666. # Some systems (esp. on ia64) link data and code symbols differently,
  6667. # so use this general approach.
  6668. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6669. # Transform an extracted symbol line into symbol name and symbol address
  6670. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6671. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  6672. # Handle CRLF in mingw tool chain
  6673. opt_cr=
  6674. case $build_os in
  6675. mingw*)
  6676. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6677. ;;
  6678. esac
  6679. # Try without a prefix underscore, then with it.
  6680. for ac_symprfx in "" "_"; do
  6681. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6682. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6683. # Write the raw and C identifiers.
  6684. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6685. # Fake it for dumpbin and say T for any non-static function
  6686. # and D for any global variable.
  6687. # Also find C++ and __fastcall symbols from MSVC++,
  6688. # which start with @ or ?.
  6689. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6690. " {last_section=section; section=\$ 3};"\
  6691. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6692. " \$ 0!~/External *\|/{next};"\
  6693. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6694. " {if(hide[section]) next};"\
  6695. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6696. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6697. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6698. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6699. " ' prfx=^$ac_symprfx"
  6700. else
  6701. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6702. fi
  6703. # Check to see that the pipe works correctly.
  6704. pipe_works=no
  6705. rm -f conftest*
  6706. cat > conftest.$ac_ext <<_LT_EOF
  6707. #ifdef __cplusplus
  6708. extern "C" {
  6709. #endif
  6710. char nm_test_var;
  6711. void nm_test_func(void);
  6712. void nm_test_func(void){}
  6713. #ifdef __cplusplus
  6714. }
  6715. #endif
  6716. int main(){nm_test_var='a';nm_test_func();return(0);}
  6717. _LT_EOF
  6718. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6719. (eval $ac_compile) 2>&5
  6720. ac_status=$?
  6721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6722. test $ac_status = 0; }; then
  6723. # Now try to grab the symbols.
  6724. nlist=conftest.nm
  6725. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6726. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6727. ac_status=$?
  6728. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6729. test $ac_status = 0; } && test -s "$nlist"; then
  6730. # Try sorting and uniquifying the output.
  6731. if sort "$nlist" | uniq > "$nlist"T; then
  6732. mv -f "$nlist"T "$nlist"
  6733. else
  6734. rm -f "$nlist"T
  6735. fi
  6736. # Make sure that we snagged all the symbols we need.
  6737. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6738. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6739. cat <<_LT_EOF > conftest.$ac_ext
  6740. #ifdef __cplusplus
  6741. extern "C" {
  6742. #endif
  6743. _LT_EOF
  6744. # Now generate the symbol file.
  6745. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6746. cat <<_LT_EOF >> conftest.$ac_ext
  6747. /* The mapping between symbol names and symbols. */
  6748. const struct {
  6749. const char *name;
  6750. void *address;
  6751. }
  6752. lt__PROGRAM__LTX_preloaded_symbols[] =
  6753. {
  6754. { "@PROGRAM@", (void *) 0 },
  6755. _LT_EOF
  6756. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6757. cat <<\_LT_EOF >> conftest.$ac_ext
  6758. {0, (void *) 0}
  6759. };
  6760. /* This works around a problem in FreeBSD linker */
  6761. #ifdef FREEBSD_WORKAROUND
  6762. static const void *lt_preloaded_setup() {
  6763. return lt__PROGRAM__LTX_preloaded_symbols;
  6764. }
  6765. #endif
  6766. #ifdef __cplusplus
  6767. }
  6768. #endif
  6769. _LT_EOF
  6770. # Now try linking the two files.
  6771. mv conftest.$ac_objext conftstm.$ac_objext
  6772. lt_save_LIBS="$LIBS"
  6773. lt_save_CFLAGS="$CFLAGS"
  6774. LIBS="conftstm.$ac_objext"
  6775. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6776. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6777. (eval $ac_link) 2>&5
  6778. ac_status=$?
  6779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6780. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6781. pipe_works=yes
  6782. fi
  6783. LIBS="$lt_save_LIBS"
  6784. CFLAGS="$lt_save_CFLAGS"
  6785. else
  6786. echo "cannot find nm_test_func in $nlist" >&5
  6787. fi
  6788. else
  6789. echo "cannot find nm_test_var in $nlist" >&5
  6790. fi
  6791. else
  6792. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6793. fi
  6794. else
  6795. echo "$progname: failed program was:" >&5
  6796. cat conftest.$ac_ext >&5
  6797. fi
  6798. rm -rf conftest* conftst*
  6799. # Do not use the global_symbol_pipe unless it works.
  6800. if test "$pipe_works" = yes; then
  6801. break
  6802. else
  6803. lt_cv_sys_global_symbol_pipe=
  6804. fi
  6805. done
  6806. fi
  6807. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6808. lt_cv_sys_global_symbol_to_cdecl=
  6809. fi
  6810. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6812. $as_echo "failed" >&6; }
  6813. else
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6815. $as_echo "ok" >&6; }
  6816. fi
  6817. # Check whether --enable-libtool-lock was given.
  6818. if test "${enable_libtool_lock+set}" = set; then :
  6819. enableval=$enable_libtool_lock;
  6820. fi
  6821. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6822. # Some flags need to be propagated to the compiler or linker for good
  6823. # libtool support.
  6824. case $host in
  6825. ia64-*-hpux*)
  6826. # Find out which ABI we are using.
  6827. echo 'int i;' > conftest.$ac_ext
  6828. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6829. (eval $ac_compile) 2>&5
  6830. ac_status=$?
  6831. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6832. test $ac_status = 0; }; then
  6833. case `/usr/bin/file conftest.$ac_objext` in
  6834. *ELF-32*)
  6835. HPUX_IA64_MODE="32"
  6836. ;;
  6837. *ELF-64*)
  6838. HPUX_IA64_MODE="64"
  6839. ;;
  6840. esac
  6841. fi
  6842. rm -rf conftest*
  6843. ;;
  6844. *-*-irix6*)
  6845. # Find out which ABI we are using.
  6846. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6847. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6848. (eval $ac_compile) 2>&5
  6849. ac_status=$?
  6850. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6851. test $ac_status = 0; }; then
  6852. if test "$lt_cv_prog_gnu_ld" = yes; then
  6853. case `/usr/bin/file conftest.$ac_objext` in
  6854. *32-bit*)
  6855. LD="${LD-ld} -melf32bsmip"
  6856. ;;
  6857. *N32*)
  6858. LD="${LD-ld} -melf32bmipn32"
  6859. ;;
  6860. *64-bit*)
  6861. LD="${LD-ld} -melf64bmip"
  6862. ;;
  6863. esac
  6864. else
  6865. case `/usr/bin/file conftest.$ac_objext` in
  6866. *32-bit*)
  6867. LD="${LD-ld} -32"
  6868. ;;
  6869. *N32*)
  6870. LD="${LD-ld} -n32"
  6871. ;;
  6872. *64-bit*)
  6873. LD="${LD-ld} -64"
  6874. ;;
  6875. esac
  6876. fi
  6877. fi
  6878. rm -rf conftest*
  6879. ;;
  6880. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6881. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6882. # Find out which ABI we are using.
  6883. echo 'int i;' > conftest.$ac_ext
  6884. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6885. (eval $ac_compile) 2>&5
  6886. ac_status=$?
  6887. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6888. test $ac_status = 0; }; then
  6889. case `/usr/bin/file conftest.o` in
  6890. *32-bit*)
  6891. case $host in
  6892. x86_64-*kfreebsd*-gnu)
  6893. LD="${LD-ld} -m elf_i386_fbsd"
  6894. ;;
  6895. x86_64-*linux*)
  6896. case `/usr/bin/file conftest.o` in
  6897. *x86-64*)
  6898. LD="${LD-ld} -m elf32_x86_64"
  6899. ;;
  6900. *)
  6901. LD="${LD-ld} -m elf_i386"
  6902. ;;
  6903. esac
  6904. ;;
  6905. powerpc64le-*linux*)
  6906. LD="${LD-ld} -m elf32lppclinux"
  6907. ;;
  6908. powerpc64-*linux*)
  6909. LD="${LD-ld} -m elf32ppclinux"
  6910. ;;
  6911. s390x-*linux*)
  6912. LD="${LD-ld} -m elf_s390"
  6913. ;;
  6914. sparc64-*linux*)
  6915. LD="${LD-ld} -m elf32_sparc"
  6916. ;;
  6917. esac
  6918. ;;
  6919. *64-bit*)
  6920. case $host in
  6921. x86_64-*kfreebsd*-gnu)
  6922. LD="${LD-ld} -m elf_x86_64_fbsd"
  6923. ;;
  6924. x86_64-*linux*)
  6925. LD="${LD-ld} -m elf_x86_64"
  6926. ;;
  6927. powerpcle-*linux*)
  6928. LD="${LD-ld} -m elf64lppc"
  6929. ;;
  6930. powerpc-*linux*)
  6931. LD="${LD-ld} -m elf64ppc"
  6932. ;;
  6933. s390*-*linux*|s390*-*tpf*)
  6934. LD="${LD-ld} -m elf64_s390"
  6935. ;;
  6936. sparc*-*linux*)
  6937. LD="${LD-ld} -m elf64_sparc"
  6938. ;;
  6939. esac
  6940. ;;
  6941. esac
  6942. fi
  6943. rm -rf conftest*
  6944. ;;
  6945. *-*-sco3.2v5*)
  6946. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6947. SAVE_CFLAGS="$CFLAGS"
  6948. CFLAGS="$CFLAGS -belf"
  6949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6950. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6951. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6952. $as_echo_n "(cached) " >&6
  6953. else
  6954. ac_ext=c
  6955. ac_cpp='$CPP $CPPFLAGS'
  6956. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6957. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6958. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6960. /* end confdefs.h. */
  6961. int
  6962. main ()
  6963. {
  6964. ;
  6965. return 0;
  6966. }
  6967. _ACEOF
  6968. if ac_fn_c_try_link "$LINENO"; then :
  6969. lt_cv_cc_needs_belf=yes
  6970. else
  6971. lt_cv_cc_needs_belf=no
  6972. fi
  6973. rm -f core conftest.err conftest.$ac_objext \
  6974. conftest$ac_exeext conftest.$ac_ext
  6975. ac_ext=c
  6976. ac_cpp='$CPP $CPPFLAGS'
  6977. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6978. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6979. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6980. fi
  6981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6982. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6983. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6984. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6985. CFLAGS="$SAVE_CFLAGS"
  6986. fi
  6987. ;;
  6988. sparc*-*solaris*)
  6989. # Find out which ABI we are using.
  6990. echo 'int i;' > conftest.$ac_ext
  6991. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6992. (eval $ac_compile) 2>&5
  6993. ac_status=$?
  6994. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6995. test $ac_status = 0; }; then
  6996. case `/usr/bin/file conftest.o` in
  6997. *64-bit*)
  6998. case $lt_cv_prog_gnu_ld in
  6999. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  7000. *)
  7001. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7002. LD="${LD-ld} -64"
  7003. fi
  7004. ;;
  7005. esac
  7006. ;;
  7007. esac
  7008. fi
  7009. rm -rf conftest*
  7010. ;;
  7011. esac
  7012. need_locks="$enable_libtool_lock"
  7013. case $host_os in
  7014. rhapsody* | darwin*)
  7015. if test -n "$ac_tool_prefix"; then
  7016. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7017. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7019. $as_echo_n "checking for $ac_word... " >&6; }
  7020. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  7021. $as_echo_n "(cached) " >&6
  7022. else
  7023. if test -n "$DSYMUTIL"; then
  7024. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7025. else
  7026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7027. for as_dir in $PATH
  7028. do
  7029. IFS=$as_save_IFS
  7030. test -z "$as_dir" && as_dir=.
  7031. for ac_exec_ext in '' $ac_executable_extensions; do
  7032. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7033. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7034. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7035. break 2
  7036. fi
  7037. done
  7038. done
  7039. IFS=$as_save_IFS
  7040. fi
  7041. fi
  7042. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7043. if test -n "$DSYMUTIL"; then
  7044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7045. $as_echo "$DSYMUTIL" >&6; }
  7046. else
  7047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7048. $as_echo "no" >&6; }
  7049. fi
  7050. fi
  7051. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7052. ac_ct_DSYMUTIL=$DSYMUTIL
  7053. # Extract the first word of "dsymutil", so it can be a program name with args.
  7054. set dummy dsymutil; ac_word=$2
  7055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7056. $as_echo_n "checking for $ac_word... " >&6; }
  7057. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  7058. $as_echo_n "(cached) " >&6
  7059. else
  7060. if test -n "$ac_ct_DSYMUTIL"; then
  7061. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7062. else
  7063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7064. for as_dir in $PATH
  7065. do
  7066. IFS=$as_save_IFS
  7067. test -z "$as_dir" && as_dir=.
  7068. for ac_exec_ext in '' $ac_executable_extensions; do
  7069. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7070. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7071. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7072. break 2
  7073. fi
  7074. done
  7075. done
  7076. IFS=$as_save_IFS
  7077. fi
  7078. fi
  7079. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7080. if test -n "$ac_ct_DSYMUTIL"; then
  7081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7082. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7083. else
  7084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7085. $as_echo "no" >&6; }
  7086. fi
  7087. if test "x$ac_ct_DSYMUTIL" = x; then
  7088. DSYMUTIL=":"
  7089. else
  7090. case $cross_compiling:$ac_tool_warned in
  7091. yes:)
  7092. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7093. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7094. ac_tool_warned=yes ;;
  7095. esac
  7096. DSYMUTIL=$ac_ct_DSYMUTIL
  7097. fi
  7098. else
  7099. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7100. fi
  7101. if test -n "$ac_tool_prefix"; then
  7102. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7103. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7105. $as_echo_n "checking for $ac_word... " >&6; }
  7106. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  7107. $as_echo_n "(cached) " >&6
  7108. else
  7109. if test -n "$NMEDIT"; then
  7110. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7111. else
  7112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7113. for as_dir in $PATH
  7114. do
  7115. IFS=$as_save_IFS
  7116. test -z "$as_dir" && as_dir=.
  7117. for ac_exec_ext in '' $ac_executable_extensions; do
  7118. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7119. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7120. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7121. break 2
  7122. fi
  7123. done
  7124. done
  7125. IFS=$as_save_IFS
  7126. fi
  7127. fi
  7128. NMEDIT=$ac_cv_prog_NMEDIT
  7129. if test -n "$NMEDIT"; then
  7130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7131. $as_echo "$NMEDIT" >&6; }
  7132. else
  7133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7134. $as_echo "no" >&6; }
  7135. fi
  7136. fi
  7137. if test -z "$ac_cv_prog_NMEDIT"; then
  7138. ac_ct_NMEDIT=$NMEDIT
  7139. # Extract the first word of "nmedit", so it can be a program name with args.
  7140. set dummy nmedit; ac_word=$2
  7141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7142. $as_echo_n "checking for $ac_word... " >&6; }
  7143. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  7144. $as_echo_n "(cached) " >&6
  7145. else
  7146. if test -n "$ac_ct_NMEDIT"; then
  7147. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7148. else
  7149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7150. for as_dir in $PATH
  7151. do
  7152. IFS=$as_save_IFS
  7153. test -z "$as_dir" && as_dir=.
  7154. for ac_exec_ext in '' $ac_executable_extensions; do
  7155. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7156. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7157. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7158. break 2
  7159. fi
  7160. done
  7161. done
  7162. IFS=$as_save_IFS
  7163. fi
  7164. fi
  7165. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7166. if test -n "$ac_ct_NMEDIT"; then
  7167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7168. $as_echo "$ac_ct_NMEDIT" >&6; }
  7169. else
  7170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7171. $as_echo "no" >&6; }
  7172. fi
  7173. if test "x$ac_ct_NMEDIT" = x; then
  7174. NMEDIT=":"
  7175. else
  7176. case $cross_compiling:$ac_tool_warned in
  7177. yes:)
  7178. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7179. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7180. ac_tool_warned=yes ;;
  7181. esac
  7182. NMEDIT=$ac_ct_NMEDIT
  7183. fi
  7184. else
  7185. NMEDIT="$ac_cv_prog_NMEDIT"
  7186. fi
  7187. if test -n "$ac_tool_prefix"; then
  7188. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7189. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7191. $as_echo_n "checking for $ac_word... " >&6; }
  7192. if test "${ac_cv_prog_LIPO+set}" = set; then :
  7193. $as_echo_n "(cached) " >&6
  7194. else
  7195. if test -n "$LIPO"; then
  7196. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7197. else
  7198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7199. for as_dir in $PATH
  7200. do
  7201. IFS=$as_save_IFS
  7202. test -z "$as_dir" && as_dir=.
  7203. for ac_exec_ext in '' $ac_executable_extensions; do
  7204. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7205. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7207. break 2
  7208. fi
  7209. done
  7210. done
  7211. IFS=$as_save_IFS
  7212. fi
  7213. fi
  7214. LIPO=$ac_cv_prog_LIPO
  7215. if test -n "$LIPO"; then
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7217. $as_echo "$LIPO" >&6; }
  7218. else
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7220. $as_echo "no" >&6; }
  7221. fi
  7222. fi
  7223. if test -z "$ac_cv_prog_LIPO"; then
  7224. ac_ct_LIPO=$LIPO
  7225. # Extract the first word of "lipo", so it can be a program name with args.
  7226. set dummy lipo; ac_word=$2
  7227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7228. $as_echo_n "checking for $ac_word... " >&6; }
  7229. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  7230. $as_echo_n "(cached) " >&6
  7231. else
  7232. if test -n "$ac_ct_LIPO"; then
  7233. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7234. else
  7235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7236. for as_dir in $PATH
  7237. do
  7238. IFS=$as_save_IFS
  7239. test -z "$as_dir" && as_dir=.
  7240. for ac_exec_ext in '' $ac_executable_extensions; do
  7241. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7242. ac_cv_prog_ac_ct_LIPO="lipo"
  7243. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7244. break 2
  7245. fi
  7246. done
  7247. done
  7248. IFS=$as_save_IFS
  7249. fi
  7250. fi
  7251. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7252. if test -n "$ac_ct_LIPO"; then
  7253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7254. $as_echo "$ac_ct_LIPO" >&6; }
  7255. else
  7256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7257. $as_echo "no" >&6; }
  7258. fi
  7259. if test "x$ac_ct_LIPO" = x; then
  7260. LIPO=":"
  7261. else
  7262. case $cross_compiling:$ac_tool_warned in
  7263. yes:)
  7264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7265. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7266. ac_tool_warned=yes ;;
  7267. esac
  7268. LIPO=$ac_ct_LIPO
  7269. fi
  7270. else
  7271. LIPO="$ac_cv_prog_LIPO"
  7272. fi
  7273. if test -n "$ac_tool_prefix"; then
  7274. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7275. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7277. $as_echo_n "checking for $ac_word... " >&6; }
  7278. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  7279. $as_echo_n "(cached) " >&6
  7280. else
  7281. if test -n "$OTOOL"; then
  7282. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7283. else
  7284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7285. for as_dir in $PATH
  7286. do
  7287. IFS=$as_save_IFS
  7288. test -z "$as_dir" && as_dir=.
  7289. for ac_exec_ext in '' $ac_executable_extensions; do
  7290. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7291. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7292. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7293. break 2
  7294. fi
  7295. done
  7296. done
  7297. IFS=$as_save_IFS
  7298. fi
  7299. fi
  7300. OTOOL=$ac_cv_prog_OTOOL
  7301. if test -n "$OTOOL"; then
  7302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7303. $as_echo "$OTOOL" >&6; }
  7304. else
  7305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7306. $as_echo "no" >&6; }
  7307. fi
  7308. fi
  7309. if test -z "$ac_cv_prog_OTOOL"; then
  7310. ac_ct_OTOOL=$OTOOL
  7311. # Extract the first word of "otool", so it can be a program name with args.
  7312. set dummy otool; ac_word=$2
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7314. $as_echo_n "checking for $ac_word... " >&6; }
  7315. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  7316. $as_echo_n "(cached) " >&6
  7317. else
  7318. if test -n "$ac_ct_OTOOL"; then
  7319. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7320. else
  7321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7322. for as_dir in $PATH
  7323. do
  7324. IFS=$as_save_IFS
  7325. test -z "$as_dir" && as_dir=.
  7326. for ac_exec_ext in '' $ac_executable_extensions; do
  7327. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7328. ac_cv_prog_ac_ct_OTOOL="otool"
  7329. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7330. break 2
  7331. fi
  7332. done
  7333. done
  7334. IFS=$as_save_IFS
  7335. fi
  7336. fi
  7337. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7338. if test -n "$ac_ct_OTOOL"; then
  7339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7340. $as_echo "$ac_ct_OTOOL" >&6; }
  7341. else
  7342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7343. $as_echo "no" >&6; }
  7344. fi
  7345. if test "x$ac_ct_OTOOL" = x; then
  7346. OTOOL=":"
  7347. else
  7348. case $cross_compiling:$ac_tool_warned in
  7349. yes:)
  7350. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7351. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7352. ac_tool_warned=yes ;;
  7353. esac
  7354. OTOOL=$ac_ct_OTOOL
  7355. fi
  7356. else
  7357. OTOOL="$ac_cv_prog_OTOOL"
  7358. fi
  7359. if test -n "$ac_tool_prefix"; then
  7360. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7361. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7363. $as_echo_n "checking for $ac_word... " >&6; }
  7364. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  7365. $as_echo_n "(cached) " >&6
  7366. else
  7367. if test -n "$OTOOL64"; then
  7368. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7369. else
  7370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7371. for as_dir in $PATH
  7372. do
  7373. IFS=$as_save_IFS
  7374. test -z "$as_dir" && as_dir=.
  7375. for ac_exec_ext in '' $ac_executable_extensions; do
  7376. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7377. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7378. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7379. break 2
  7380. fi
  7381. done
  7382. done
  7383. IFS=$as_save_IFS
  7384. fi
  7385. fi
  7386. OTOOL64=$ac_cv_prog_OTOOL64
  7387. if test -n "$OTOOL64"; then
  7388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7389. $as_echo "$OTOOL64" >&6; }
  7390. else
  7391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7392. $as_echo "no" >&6; }
  7393. fi
  7394. fi
  7395. if test -z "$ac_cv_prog_OTOOL64"; then
  7396. ac_ct_OTOOL64=$OTOOL64
  7397. # Extract the first word of "otool64", so it can be a program name with args.
  7398. set dummy otool64; ac_word=$2
  7399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7400. $as_echo_n "checking for $ac_word... " >&6; }
  7401. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  7402. $as_echo_n "(cached) " >&6
  7403. else
  7404. if test -n "$ac_ct_OTOOL64"; then
  7405. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7406. else
  7407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7408. for as_dir in $PATH
  7409. do
  7410. IFS=$as_save_IFS
  7411. test -z "$as_dir" && as_dir=.
  7412. for ac_exec_ext in '' $ac_executable_extensions; do
  7413. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7414. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7415. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7416. break 2
  7417. fi
  7418. done
  7419. done
  7420. IFS=$as_save_IFS
  7421. fi
  7422. fi
  7423. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7424. if test -n "$ac_ct_OTOOL64"; then
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7426. $as_echo "$ac_ct_OTOOL64" >&6; }
  7427. else
  7428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7429. $as_echo "no" >&6; }
  7430. fi
  7431. if test "x$ac_ct_OTOOL64" = x; then
  7432. OTOOL64=":"
  7433. else
  7434. case $cross_compiling:$ac_tool_warned in
  7435. yes:)
  7436. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7437. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7438. ac_tool_warned=yes ;;
  7439. esac
  7440. OTOOL64=$ac_ct_OTOOL64
  7441. fi
  7442. else
  7443. OTOOL64="$ac_cv_prog_OTOOL64"
  7444. fi
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7446. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7447. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  7448. $as_echo_n "(cached) " >&6
  7449. else
  7450. lt_cv_apple_cc_single_mod=no
  7451. if test -z "${LT_MULTI_MODULE}"; then
  7452. # By default we will add the -single_module flag. You can override
  7453. # by either setting the environment variable LT_MULTI_MODULE
  7454. # non-empty at configure time, or by adding -multi_module to the
  7455. # link flags.
  7456. rm -rf libconftest.dylib*
  7457. echo "int foo(void){return 1;}" > conftest.c
  7458. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7459. -dynamiclib -Wl,-single_module conftest.c" >&5
  7460. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7461. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7462. _lt_result=$?
  7463. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7464. lt_cv_apple_cc_single_mod=yes
  7465. else
  7466. cat conftest.err >&5
  7467. fi
  7468. rm -rf libconftest.dylib*
  7469. rm -f conftest.*
  7470. fi
  7471. fi
  7472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7473. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7475. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7476. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  7477. $as_echo_n "(cached) " >&6
  7478. else
  7479. lt_cv_ld_exported_symbols_list=no
  7480. save_LDFLAGS=$LDFLAGS
  7481. echo "_main" > conftest.sym
  7482. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7484. /* end confdefs.h. */
  7485. int
  7486. main ()
  7487. {
  7488. ;
  7489. return 0;
  7490. }
  7491. _ACEOF
  7492. if ac_fn_c_try_link "$LINENO"; then :
  7493. lt_cv_ld_exported_symbols_list=yes
  7494. else
  7495. lt_cv_ld_exported_symbols_list=no
  7496. fi
  7497. rm -f core conftest.err conftest.$ac_objext \
  7498. conftest$ac_exeext conftest.$ac_ext
  7499. LDFLAGS="$save_LDFLAGS"
  7500. fi
  7501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7502. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7504. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7505. if test "${lt_cv_ld_force_load+set}" = set; then :
  7506. $as_echo_n "(cached) " >&6
  7507. else
  7508. lt_cv_ld_force_load=no
  7509. cat > conftest.c << _LT_EOF
  7510. int forced_loaded() { return 2;}
  7511. _LT_EOF
  7512. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7513. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7514. echo "$AR cru libconftest.a conftest.o" >&5
  7515. $AR cru libconftest.a conftest.o 2>&5
  7516. cat > conftest.c << _LT_EOF
  7517. int main() { return 0;}
  7518. _LT_EOF
  7519. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7520. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7521. _lt_result=$?
  7522. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7523. lt_cv_ld_force_load=yes
  7524. else
  7525. cat conftest.err >&5
  7526. fi
  7527. rm -f conftest.err libconftest.a conftest conftest.c
  7528. rm -rf conftest.dSYM
  7529. fi
  7530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7531. $as_echo "$lt_cv_ld_force_load" >&6; }
  7532. case $host_os in
  7533. rhapsody* | darwin1.[012])
  7534. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7535. darwin1.*)
  7536. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7537. darwin*) # darwin 5.x on
  7538. # if running on 10.5 or later, the deployment target defaults
  7539. # to the OS version, if on x86, and 10.4, the deployment
  7540. # target defaults to 10.4. Don't you love it?
  7541. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7542. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7543. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7544. 10.[012][,.]*)
  7545. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7546. 10.*)
  7547. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7548. esac
  7549. ;;
  7550. esac
  7551. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7552. _lt_dar_single_mod='$single_module'
  7553. fi
  7554. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7555. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7556. else
  7557. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7558. fi
  7559. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7560. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7561. else
  7562. _lt_dsymutil=
  7563. fi
  7564. ;;
  7565. esac
  7566. for ac_header in dlfcn.h
  7567. do :
  7568. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7569. "
  7570. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  7571. cat >>confdefs.h <<_ACEOF
  7572. #define HAVE_DLFCN_H 1
  7573. _ACEOF
  7574. fi
  7575. done
  7576. # Set options
  7577. enable_win32_dll=no
  7578. # Check whether --enable-shared was given.
  7579. if test "${enable_shared+set}" = set; then :
  7580. enableval=$enable_shared; p=${PACKAGE-default}
  7581. case $enableval in
  7582. yes) enable_shared=yes ;;
  7583. no) enable_shared=no ;;
  7584. *)
  7585. enable_shared=no
  7586. # Look at the argument we got. We use all the common list separators.
  7587. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7588. for pkg in $enableval; do
  7589. IFS="$lt_save_ifs"
  7590. if test "X$pkg" = "X$p"; then
  7591. enable_shared=yes
  7592. fi
  7593. done
  7594. IFS="$lt_save_ifs"
  7595. ;;
  7596. esac
  7597. else
  7598. enable_shared=yes
  7599. fi
  7600. # Check whether --enable-static was given.
  7601. if test "${enable_static+set}" = set; then :
  7602. enableval=$enable_static; p=${PACKAGE-default}
  7603. case $enableval in
  7604. yes) enable_static=yes ;;
  7605. no) enable_static=no ;;
  7606. *)
  7607. enable_static=no
  7608. # Look at the argument we got. We use all the common list separators.
  7609. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7610. for pkg in $enableval; do
  7611. IFS="$lt_save_ifs"
  7612. if test "X$pkg" = "X$p"; then
  7613. enable_static=yes
  7614. fi
  7615. done
  7616. IFS="$lt_save_ifs"
  7617. ;;
  7618. esac
  7619. else
  7620. enable_static=yes
  7621. fi
  7622. # Check whether --with-pic was given.
  7623. if test "${with_pic+set}" = set; then :
  7624. withval=$with_pic; pic_mode="$withval"
  7625. else
  7626. pic_mode=default
  7627. fi
  7628. test -z "$pic_mode" && pic_mode=default
  7629. # Check whether --enable-fast-install was given.
  7630. if test "${enable_fast_install+set}" = set; then :
  7631. enableval=$enable_fast_install; p=${PACKAGE-default}
  7632. case $enableval in
  7633. yes) enable_fast_install=yes ;;
  7634. no) enable_fast_install=no ;;
  7635. *)
  7636. enable_fast_install=no
  7637. # Look at the argument we got. We use all the common list separators.
  7638. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7639. for pkg in $enableval; do
  7640. IFS="$lt_save_ifs"
  7641. if test "X$pkg" = "X$p"; then
  7642. enable_fast_install=yes
  7643. fi
  7644. done
  7645. IFS="$lt_save_ifs"
  7646. ;;
  7647. esac
  7648. else
  7649. enable_fast_install=yes
  7650. fi
  7651. # This can be used to rebuild libtool when needed
  7652. LIBTOOL_DEPS="$ltmain"
  7653. # Always use our own libtool.
  7654. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7655. test -z "$LN_S" && LN_S="ln -s"
  7656. if test -n "${ZSH_VERSION+set}" ; then
  7657. setopt NO_GLOB_SUBST
  7658. fi
  7659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7660. $as_echo_n "checking for objdir... " >&6; }
  7661. if test "${lt_cv_objdir+set}" = set; then :
  7662. $as_echo_n "(cached) " >&6
  7663. else
  7664. rm -f .libs 2>/dev/null
  7665. mkdir .libs 2>/dev/null
  7666. if test -d .libs; then
  7667. lt_cv_objdir=.libs
  7668. else
  7669. # MS-DOS does not allow filenames that begin with a dot.
  7670. lt_cv_objdir=_libs
  7671. fi
  7672. rmdir .libs 2>/dev/null
  7673. fi
  7674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7675. $as_echo "$lt_cv_objdir" >&6; }
  7676. objdir=$lt_cv_objdir
  7677. cat >>confdefs.h <<_ACEOF
  7678. #define LT_OBJDIR "$lt_cv_objdir/"
  7679. _ACEOF
  7680. case $host_os in
  7681. aix3*)
  7682. # AIX sometimes has problems with the GCC collect2 program. For some
  7683. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7684. # vanish in a puff of smoke.
  7685. if test "X${COLLECT_NAMES+set}" != Xset; then
  7686. COLLECT_NAMES=
  7687. export COLLECT_NAMES
  7688. fi
  7689. ;;
  7690. esac
  7691. # Global variables:
  7692. ofile=libtool
  7693. can_build_shared=yes
  7694. # All known linkers require a `.a' archive for static linking (except MSVC,
  7695. # which needs '.lib').
  7696. libext=a
  7697. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7698. old_CC="$CC"
  7699. old_CFLAGS="$CFLAGS"
  7700. # Set sane defaults for various variables
  7701. test -z "$CC" && CC=cc
  7702. test -z "$LTCC" && LTCC=$CC
  7703. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7704. test -z "$LD" && LD=ld
  7705. test -z "$ac_objext" && ac_objext=o
  7706. for cc_temp in $compiler""; do
  7707. case $cc_temp in
  7708. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7709. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7710. \-*) ;;
  7711. *) break;;
  7712. esac
  7713. done
  7714. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7715. # Only perform the check for file, if the check method requires it
  7716. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7717. case $deplibs_check_method in
  7718. file_magic*)
  7719. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7721. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7722. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7723. $as_echo_n "(cached) " >&6
  7724. else
  7725. case $MAGIC_CMD in
  7726. [\\/*] | ?:[\\/]*)
  7727. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7728. ;;
  7729. *)
  7730. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7731. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7732. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7733. for ac_dir in $ac_dummy; do
  7734. IFS="$lt_save_ifs"
  7735. test -z "$ac_dir" && ac_dir=.
  7736. if test -f $ac_dir/${ac_tool_prefix}file; then
  7737. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7738. if test -n "$file_magic_test_file"; then
  7739. case $deplibs_check_method in
  7740. "file_magic "*)
  7741. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7742. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7743. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7744. $EGREP "$file_magic_regex" > /dev/null; then
  7745. :
  7746. else
  7747. cat <<_LT_EOF 1>&2
  7748. *** Warning: the command libtool uses to detect shared libraries,
  7749. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7750. *** The result is that libtool may fail to recognize shared libraries
  7751. *** as such. This will affect the creation of libtool libraries that
  7752. *** depend on shared libraries, but programs linked with such libtool
  7753. *** libraries will work regardless of this problem. Nevertheless, you
  7754. *** may want to report the problem to your system manager and/or to
  7755. *** bug-libtool@gnu.org
  7756. _LT_EOF
  7757. fi ;;
  7758. esac
  7759. fi
  7760. break
  7761. fi
  7762. done
  7763. IFS="$lt_save_ifs"
  7764. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7765. ;;
  7766. esac
  7767. fi
  7768. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7769. if test -n "$MAGIC_CMD"; then
  7770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7771. $as_echo "$MAGIC_CMD" >&6; }
  7772. else
  7773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7774. $as_echo "no" >&6; }
  7775. fi
  7776. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7777. if test -n "$ac_tool_prefix"; then
  7778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7779. $as_echo_n "checking for file... " >&6; }
  7780. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7781. $as_echo_n "(cached) " >&6
  7782. else
  7783. case $MAGIC_CMD in
  7784. [\\/*] | ?:[\\/]*)
  7785. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7786. ;;
  7787. *)
  7788. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7789. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7790. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7791. for ac_dir in $ac_dummy; do
  7792. IFS="$lt_save_ifs"
  7793. test -z "$ac_dir" && ac_dir=.
  7794. if test -f $ac_dir/file; then
  7795. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7796. if test -n "$file_magic_test_file"; then
  7797. case $deplibs_check_method in
  7798. "file_magic "*)
  7799. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7800. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7801. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7802. $EGREP "$file_magic_regex" > /dev/null; then
  7803. :
  7804. else
  7805. cat <<_LT_EOF 1>&2
  7806. *** Warning: the command libtool uses to detect shared libraries,
  7807. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7808. *** The result is that libtool may fail to recognize shared libraries
  7809. *** as such. This will affect the creation of libtool libraries that
  7810. *** depend on shared libraries, but programs linked with such libtool
  7811. *** libraries will work regardless of this problem. Nevertheless, you
  7812. *** may want to report the problem to your system manager and/or to
  7813. *** bug-libtool@gnu.org
  7814. _LT_EOF
  7815. fi ;;
  7816. esac
  7817. fi
  7818. break
  7819. fi
  7820. done
  7821. IFS="$lt_save_ifs"
  7822. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7823. ;;
  7824. esac
  7825. fi
  7826. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7827. if test -n "$MAGIC_CMD"; then
  7828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7829. $as_echo "$MAGIC_CMD" >&6; }
  7830. else
  7831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7832. $as_echo "no" >&6; }
  7833. fi
  7834. else
  7835. MAGIC_CMD=:
  7836. fi
  7837. fi
  7838. fi
  7839. ;;
  7840. esac
  7841. # Use C for the default configuration in the libtool script
  7842. lt_save_CC="$CC"
  7843. ac_ext=c
  7844. ac_cpp='$CPP $CPPFLAGS'
  7845. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7846. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7847. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7848. # Source file extension for C test sources.
  7849. ac_ext=c
  7850. # Object file extension for compiled C test sources.
  7851. objext=o
  7852. objext=$objext
  7853. # Code to be used in simple compile tests
  7854. lt_simple_compile_test_code="int some_variable = 0;"
  7855. # Code to be used in simple link tests
  7856. lt_simple_link_test_code='int main(){return(0);}'
  7857. # If no C compiler was specified, use CC.
  7858. LTCC=${LTCC-"$CC"}
  7859. # If no C compiler flags were specified, use CFLAGS.
  7860. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7861. # Allow CC to be a program name with arguments.
  7862. compiler=$CC
  7863. # Save the default compiler, since it gets overwritten when the other
  7864. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7865. compiler_DEFAULT=$CC
  7866. # save warnings/boilerplate of simple test code
  7867. ac_outfile=conftest.$ac_objext
  7868. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7869. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7870. _lt_compiler_boilerplate=`cat conftest.err`
  7871. $RM conftest*
  7872. ac_outfile=conftest.$ac_objext
  7873. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7874. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7875. _lt_linker_boilerplate=`cat conftest.err`
  7876. $RM -r conftest*
  7877. ## CAVEAT EMPTOR:
  7878. ## There is no encapsulation within the following macros, do not change
  7879. ## the running order or otherwise move them around unless you know exactly
  7880. ## what you are doing...
  7881. if test -n "$compiler"; then
  7882. lt_prog_compiler_no_builtin_flag=
  7883. if test "$GCC" = yes; then
  7884. case $cc_basename in
  7885. nvcc*)
  7886. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7887. *)
  7888. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7889. esac
  7890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7891. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7892. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7893. $as_echo_n "(cached) " >&6
  7894. else
  7895. lt_cv_prog_compiler_rtti_exceptions=no
  7896. ac_outfile=conftest.$ac_objext
  7897. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7898. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7899. # Insert the option either (1) after the last *FLAGS variable, or
  7900. # (2) before a word containing "conftest.", or (3) at the end.
  7901. # Note that $ac_compile itself does not contain backslashes and begins
  7902. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7903. # The option is referenced via a variable to avoid confusing sed.
  7904. lt_compile=`echo "$ac_compile" | $SED \
  7905. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7906. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7907. -e 's:$: $lt_compiler_flag:'`
  7908. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7909. (eval "$lt_compile" 2>conftest.err)
  7910. ac_status=$?
  7911. cat conftest.err >&5
  7912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7913. if (exit $ac_status) && test -s "$ac_outfile"; then
  7914. # The compiler can only warn and ignore the option if not recognized
  7915. # So say no if there are warnings other than the usual output.
  7916. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7917. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7918. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7919. lt_cv_prog_compiler_rtti_exceptions=yes
  7920. fi
  7921. fi
  7922. $RM conftest*
  7923. fi
  7924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7925. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7926. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7927. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7928. else
  7929. :
  7930. fi
  7931. fi
  7932. lt_prog_compiler_wl=
  7933. lt_prog_compiler_pic=
  7934. lt_prog_compiler_static=
  7935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7936. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7937. if test "$GCC" = yes; then
  7938. lt_prog_compiler_wl='-Wl,'
  7939. lt_prog_compiler_static='-static'
  7940. case $host_os in
  7941. aix*)
  7942. # All AIX code is PIC.
  7943. if test "$host_cpu" = ia64; then
  7944. # AIX 5 now supports IA64 processor
  7945. lt_prog_compiler_static='-Bstatic'
  7946. fi
  7947. lt_prog_compiler_pic='-fPIC'
  7948. ;;
  7949. amigaos*)
  7950. case $host_cpu in
  7951. powerpc)
  7952. # see comment about AmigaOS4 .so support
  7953. lt_prog_compiler_pic='-fPIC'
  7954. ;;
  7955. m68k)
  7956. # FIXME: we need at least 68020 code to build shared libraries, but
  7957. # adding the `-m68020' flag to GCC prevents building anything better,
  7958. # like `-m68040'.
  7959. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7960. ;;
  7961. esac
  7962. ;;
  7963. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7964. # PIC is the default for these OSes.
  7965. ;;
  7966. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7967. # This hack is so that the source file can tell whether it is being
  7968. # built for inclusion in a dll (and should export symbols for example).
  7969. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7970. # (--disable-auto-import) libraries
  7971. lt_prog_compiler_pic='-DDLL_EXPORT'
  7972. ;;
  7973. darwin* | rhapsody*)
  7974. # PIC is the default on this platform
  7975. # Common symbols not allowed in MH_DYLIB files
  7976. lt_prog_compiler_pic='-fno-common'
  7977. ;;
  7978. haiku*)
  7979. # PIC is the default for Haiku.
  7980. # The "-static" flag exists, but is broken.
  7981. lt_prog_compiler_static=
  7982. ;;
  7983. hpux*)
  7984. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7985. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7986. # sets the default TLS model and affects inlining.
  7987. case $host_cpu in
  7988. hppa*64*)
  7989. # +Z the default
  7990. ;;
  7991. *)
  7992. lt_prog_compiler_pic='-fPIC'
  7993. ;;
  7994. esac
  7995. ;;
  7996. interix[3-9]*)
  7997. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7998. # Instead, we relocate shared libraries at runtime.
  7999. ;;
  8000. msdosdjgpp*)
  8001. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8002. # on systems that don't support them.
  8003. lt_prog_compiler_can_build_shared=no
  8004. enable_shared=no
  8005. ;;
  8006. *nto* | *qnx*)
  8007. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8008. # it will coredump.
  8009. lt_prog_compiler_pic='-fPIC -shared'
  8010. ;;
  8011. sysv4*MP*)
  8012. if test -d /usr/nec; then
  8013. lt_prog_compiler_pic=-Kconform_pic
  8014. fi
  8015. ;;
  8016. *)
  8017. lt_prog_compiler_pic='-fPIC'
  8018. ;;
  8019. esac
  8020. case $cc_basename in
  8021. nvcc*) # Cuda Compiler Driver 2.2
  8022. lt_prog_compiler_wl='-Xlinker '
  8023. lt_prog_compiler_pic='-Xcompiler -fPIC'
  8024. ;;
  8025. esac
  8026. else
  8027. # PORTME Check for flag to pass linker flags through the system compiler.
  8028. case $host_os in
  8029. aix*)
  8030. lt_prog_compiler_wl='-Wl,'
  8031. if test "$host_cpu" = ia64; then
  8032. # AIX 5 now supports IA64 processor
  8033. lt_prog_compiler_static='-Bstatic'
  8034. else
  8035. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8036. fi
  8037. ;;
  8038. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8039. # This hack is so that the source file can tell whether it is being
  8040. # built for inclusion in a dll (and should export symbols for example).
  8041. lt_prog_compiler_pic='-DDLL_EXPORT'
  8042. ;;
  8043. hpux9* | hpux10* | hpux11*)
  8044. lt_prog_compiler_wl='-Wl,'
  8045. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8046. # not for PA HP-UX.
  8047. case $host_cpu in
  8048. hppa*64*|ia64*)
  8049. # +Z the default
  8050. ;;
  8051. *)
  8052. lt_prog_compiler_pic='+Z'
  8053. ;;
  8054. esac
  8055. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8056. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8057. ;;
  8058. irix5* | irix6* | nonstopux*)
  8059. lt_prog_compiler_wl='-Wl,'
  8060. # PIC (with -KPIC) is the default.
  8061. lt_prog_compiler_static='-non_shared'
  8062. ;;
  8063. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8064. case $cc_basename in
  8065. # old Intel for x86_64 which still supported -KPIC.
  8066. ecc*)
  8067. lt_prog_compiler_wl='-Wl,'
  8068. lt_prog_compiler_pic='-KPIC'
  8069. lt_prog_compiler_static='-static'
  8070. ;;
  8071. # icc used to be incompatible with GCC.
  8072. # ICC 10 doesn't accept -KPIC any more.
  8073. icc* | ifort*)
  8074. lt_prog_compiler_wl='-Wl,'
  8075. lt_prog_compiler_pic='-fPIC'
  8076. lt_prog_compiler_static='-static'
  8077. ;;
  8078. # Lahey Fortran 8.1.
  8079. lf95*)
  8080. lt_prog_compiler_wl='-Wl,'
  8081. lt_prog_compiler_pic='--shared'
  8082. lt_prog_compiler_static='--static'
  8083. ;;
  8084. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8085. # Portland Group compilers (*not* the Pentium gcc compiler,
  8086. # which looks to be a dead project)
  8087. lt_prog_compiler_wl='-Wl,'
  8088. lt_prog_compiler_pic='-fpic'
  8089. lt_prog_compiler_static='-Bstatic'
  8090. ;;
  8091. ccc*)
  8092. lt_prog_compiler_wl='-Wl,'
  8093. # All Alpha code is PIC.
  8094. lt_prog_compiler_static='-non_shared'
  8095. ;;
  8096. xl* | bgxl* | bgf* | mpixl*)
  8097. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8098. lt_prog_compiler_wl='-Wl,'
  8099. lt_prog_compiler_pic='-qpic'
  8100. lt_prog_compiler_static='-qstaticlink'
  8101. ;;
  8102. *)
  8103. case `$CC -V 2>&1 | sed 5q` in
  8104. *Sun\ F* | *Sun*Fortran*)
  8105. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8106. lt_prog_compiler_pic='-KPIC'
  8107. lt_prog_compiler_static='-Bstatic'
  8108. lt_prog_compiler_wl=''
  8109. ;;
  8110. *Sun\ C*)
  8111. # Sun C 5.9
  8112. lt_prog_compiler_pic='-KPIC'
  8113. lt_prog_compiler_static='-Bstatic'
  8114. lt_prog_compiler_wl='-Wl,'
  8115. ;;
  8116. esac
  8117. ;;
  8118. esac
  8119. ;;
  8120. newsos6)
  8121. lt_prog_compiler_pic='-KPIC'
  8122. lt_prog_compiler_static='-Bstatic'
  8123. ;;
  8124. *nto* | *qnx*)
  8125. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8126. # it will coredump.
  8127. lt_prog_compiler_pic='-fPIC -shared'
  8128. ;;
  8129. osf3* | osf4* | osf5*)
  8130. lt_prog_compiler_wl='-Wl,'
  8131. # All OSF/1 code is PIC.
  8132. lt_prog_compiler_static='-non_shared'
  8133. ;;
  8134. rdos*)
  8135. lt_prog_compiler_static='-non_shared'
  8136. ;;
  8137. solaris*)
  8138. lt_prog_compiler_pic='-KPIC'
  8139. lt_prog_compiler_static='-Bstatic'
  8140. case $cc_basename in
  8141. f77* | f90* | f95*)
  8142. lt_prog_compiler_wl='-Qoption ld ';;
  8143. *)
  8144. lt_prog_compiler_wl='-Wl,';;
  8145. esac
  8146. ;;
  8147. sunos4*)
  8148. lt_prog_compiler_wl='-Qoption ld '
  8149. lt_prog_compiler_pic='-PIC'
  8150. lt_prog_compiler_static='-Bstatic'
  8151. ;;
  8152. sysv4 | sysv4.2uw2* | sysv4.3*)
  8153. lt_prog_compiler_wl='-Wl,'
  8154. lt_prog_compiler_pic='-KPIC'
  8155. lt_prog_compiler_static='-Bstatic'
  8156. ;;
  8157. sysv4*MP*)
  8158. if test -d /usr/nec ;then
  8159. lt_prog_compiler_pic='-Kconform_pic'
  8160. lt_prog_compiler_static='-Bstatic'
  8161. fi
  8162. ;;
  8163. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8164. lt_prog_compiler_wl='-Wl,'
  8165. lt_prog_compiler_pic='-KPIC'
  8166. lt_prog_compiler_static='-Bstatic'
  8167. ;;
  8168. unicos*)
  8169. lt_prog_compiler_wl='-Wl,'
  8170. lt_prog_compiler_can_build_shared=no
  8171. ;;
  8172. uts4*)
  8173. lt_prog_compiler_pic='-pic'
  8174. lt_prog_compiler_static='-Bstatic'
  8175. ;;
  8176. *)
  8177. lt_prog_compiler_can_build_shared=no
  8178. ;;
  8179. esac
  8180. fi
  8181. case $host_os in
  8182. # For platforms which do not support PIC, -DPIC is meaningless:
  8183. *djgpp*)
  8184. lt_prog_compiler_pic=
  8185. ;;
  8186. *)
  8187. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8188. ;;
  8189. esac
  8190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  8191. $as_echo "$lt_prog_compiler_pic" >&6; }
  8192. #
  8193. # Check to make sure the PIC flag actually works.
  8194. #
  8195. if test -n "$lt_prog_compiler_pic"; then
  8196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8197. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8198. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  8199. $as_echo_n "(cached) " >&6
  8200. else
  8201. lt_cv_prog_compiler_pic_works=no
  8202. ac_outfile=conftest.$ac_objext
  8203. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8204. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8205. # Insert the option either (1) after the last *FLAGS variable, or
  8206. # (2) before a word containing "conftest.", or (3) at the end.
  8207. # Note that $ac_compile itself does not contain backslashes and begins
  8208. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8209. # The option is referenced via a variable to avoid confusing sed.
  8210. lt_compile=`echo "$ac_compile" | $SED \
  8211. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8212. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8213. -e 's:$: $lt_compiler_flag:'`
  8214. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8215. (eval "$lt_compile" 2>conftest.err)
  8216. ac_status=$?
  8217. cat conftest.err >&5
  8218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8219. if (exit $ac_status) && test -s "$ac_outfile"; then
  8220. # The compiler can only warn and ignore the option if not recognized
  8221. # So say no if there are warnings other than the usual output.
  8222. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8223. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8224. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8225. lt_cv_prog_compiler_pic_works=yes
  8226. fi
  8227. fi
  8228. $RM conftest*
  8229. fi
  8230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8231. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8232. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8233. case $lt_prog_compiler_pic in
  8234. "" | " "*) ;;
  8235. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8236. esac
  8237. else
  8238. lt_prog_compiler_pic=
  8239. lt_prog_compiler_can_build_shared=no
  8240. fi
  8241. fi
  8242. #
  8243. # Check to make sure the static flag actually works.
  8244. #
  8245. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8247. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8248. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  8249. $as_echo_n "(cached) " >&6
  8250. else
  8251. lt_cv_prog_compiler_static_works=no
  8252. save_LDFLAGS="$LDFLAGS"
  8253. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8254. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8255. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8256. # The linker can only warn and ignore the option if not recognized
  8257. # So say no if there are warnings
  8258. if test -s conftest.err; then
  8259. # Append any errors to the config.log.
  8260. cat conftest.err 1>&5
  8261. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8262. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8263. if diff conftest.exp conftest.er2 >/dev/null; then
  8264. lt_cv_prog_compiler_static_works=yes
  8265. fi
  8266. else
  8267. lt_cv_prog_compiler_static_works=yes
  8268. fi
  8269. fi
  8270. $RM -r conftest*
  8271. LDFLAGS="$save_LDFLAGS"
  8272. fi
  8273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8274. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8275. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8276. :
  8277. else
  8278. lt_prog_compiler_static=
  8279. fi
  8280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8281. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8282. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  8283. $as_echo_n "(cached) " >&6
  8284. else
  8285. lt_cv_prog_compiler_c_o=no
  8286. $RM -r conftest 2>/dev/null
  8287. mkdir conftest
  8288. cd conftest
  8289. mkdir out
  8290. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8291. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8292. # Insert the option either (1) after the last *FLAGS variable, or
  8293. # (2) before a word containing "conftest.", or (3) at the end.
  8294. # Note that $ac_compile itself does not contain backslashes and begins
  8295. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8296. lt_compile=`echo "$ac_compile" | $SED \
  8297. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8298. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8299. -e 's:$: $lt_compiler_flag:'`
  8300. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8301. (eval "$lt_compile" 2>out/conftest.err)
  8302. ac_status=$?
  8303. cat out/conftest.err >&5
  8304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8305. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8306. then
  8307. # The compiler can only warn and ignore the option if not recognized
  8308. # So say no if there are warnings
  8309. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8310. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8311. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8312. lt_cv_prog_compiler_c_o=yes
  8313. fi
  8314. fi
  8315. chmod u+w . 2>&5
  8316. $RM conftest*
  8317. # SGI C++ compiler will create directory out/ii_files/ for
  8318. # template instantiation
  8319. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8320. $RM out/* && rmdir out
  8321. cd ..
  8322. $RM -r conftest
  8323. $RM conftest*
  8324. fi
  8325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8326. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8328. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8329. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  8330. $as_echo_n "(cached) " >&6
  8331. else
  8332. lt_cv_prog_compiler_c_o=no
  8333. $RM -r conftest 2>/dev/null
  8334. mkdir conftest
  8335. cd conftest
  8336. mkdir out
  8337. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8338. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8339. # Insert the option either (1) after the last *FLAGS variable, or
  8340. # (2) before a word containing "conftest.", or (3) at the end.
  8341. # Note that $ac_compile itself does not contain backslashes and begins
  8342. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8343. lt_compile=`echo "$ac_compile" | $SED \
  8344. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8345. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8346. -e 's:$: $lt_compiler_flag:'`
  8347. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8348. (eval "$lt_compile" 2>out/conftest.err)
  8349. ac_status=$?
  8350. cat out/conftest.err >&5
  8351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8352. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8353. then
  8354. # The compiler can only warn and ignore the option if not recognized
  8355. # So say no if there are warnings
  8356. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8357. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8358. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8359. lt_cv_prog_compiler_c_o=yes
  8360. fi
  8361. fi
  8362. chmod u+w . 2>&5
  8363. $RM conftest*
  8364. # SGI C++ compiler will create directory out/ii_files/ for
  8365. # template instantiation
  8366. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8367. $RM out/* && rmdir out
  8368. cd ..
  8369. $RM -r conftest
  8370. $RM conftest*
  8371. fi
  8372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8373. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8374. hard_links="nottested"
  8375. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8376. # do not overwrite the value of need_locks provided by the user
  8377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8378. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8379. hard_links=yes
  8380. $RM conftest*
  8381. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8382. touch conftest.a
  8383. ln conftest.a conftest.b 2>&5 || hard_links=no
  8384. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8386. $as_echo "$hard_links" >&6; }
  8387. if test "$hard_links" = no; then
  8388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8389. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8390. need_locks=warn
  8391. fi
  8392. else
  8393. need_locks=no
  8394. fi
  8395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8396. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8397. runpath_var=
  8398. allow_undefined_flag=
  8399. always_export_symbols=no
  8400. archive_cmds=
  8401. archive_expsym_cmds=
  8402. compiler_needs_object=no
  8403. enable_shared_with_static_runtimes=no
  8404. export_dynamic_flag_spec=
  8405. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8406. hardcode_automatic=no
  8407. hardcode_direct=no
  8408. hardcode_direct_absolute=no
  8409. hardcode_libdir_flag_spec=
  8410. hardcode_libdir_flag_spec_ld=
  8411. hardcode_libdir_separator=
  8412. hardcode_minus_L=no
  8413. hardcode_shlibpath_var=unsupported
  8414. inherit_rpath=no
  8415. link_all_deplibs=unknown
  8416. module_cmds=
  8417. module_expsym_cmds=
  8418. old_archive_from_new_cmds=
  8419. old_archive_from_expsyms_cmds=
  8420. thread_safe_flag_spec=
  8421. whole_archive_flag_spec=
  8422. # include_expsyms should be a list of space-separated symbols to be *always*
  8423. # included in the symbol list
  8424. include_expsyms=
  8425. # exclude_expsyms can be an extended regexp of symbols to exclude
  8426. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8427. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8428. # as well as any symbol that contains `d'.
  8429. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8430. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8431. # platforms (ab)use it in PIC code, but their linkers get confused if
  8432. # the symbol is explicitly referenced. Since portable code cannot
  8433. # rely on this symbol name, it's probably fine to never include it in
  8434. # preloaded symbol tables.
  8435. # Exclude shared library initialization/finalization symbols.
  8436. extract_expsyms_cmds=
  8437. case $host_os in
  8438. cygwin* | mingw* | pw32* | cegcc*)
  8439. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8440. # When not using gcc, we currently assume that we are using
  8441. # Microsoft Visual C++.
  8442. if test "$GCC" != yes; then
  8443. with_gnu_ld=no
  8444. fi
  8445. ;;
  8446. interix*)
  8447. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8448. with_gnu_ld=yes
  8449. ;;
  8450. openbsd*)
  8451. with_gnu_ld=no
  8452. ;;
  8453. esac
  8454. ld_shlibs=yes
  8455. # On some targets, GNU ld is compatible enough with the native linker
  8456. # that we're better off using the native interface for both.
  8457. lt_use_gnu_ld_interface=no
  8458. if test "$with_gnu_ld" = yes; then
  8459. case $host_os in
  8460. aix*)
  8461. # The AIX port of GNU ld has always aspired to compatibility
  8462. # with the native linker. However, as the warning in the GNU ld
  8463. # block says, versions before 2.19.5* couldn't really create working
  8464. # shared libraries, regardless of the interface used.
  8465. case `$LD -v 2>&1` in
  8466. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8467. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8468. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8469. *)
  8470. lt_use_gnu_ld_interface=yes
  8471. ;;
  8472. esac
  8473. ;;
  8474. *)
  8475. lt_use_gnu_ld_interface=yes
  8476. ;;
  8477. esac
  8478. fi
  8479. if test "$lt_use_gnu_ld_interface" = yes; then
  8480. # If archive_cmds runs LD, not CC, wlarc should be empty
  8481. wlarc='${wl}'
  8482. # Set some defaults for GNU ld with shared library support. These
  8483. # are reset later if shared libraries are not supported. Putting them
  8484. # here allows them to be overridden if necessary.
  8485. runpath_var=LD_RUN_PATH
  8486. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8487. export_dynamic_flag_spec='${wl}--export-dynamic'
  8488. # ancient GNU ld didn't support --whole-archive et. al.
  8489. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8490. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8491. else
  8492. whole_archive_flag_spec=
  8493. fi
  8494. supports_anon_versioning=no
  8495. case `$LD -v 2>&1` in
  8496. *GNU\ gold*) supports_anon_versioning=yes ;;
  8497. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8498. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8499. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8500. *\ 2.11.*) ;; # other 2.11 versions
  8501. *) supports_anon_versioning=yes ;;
  8502. esac
  8503. # See if GNU ld supports shared libraries.
  8504. case $host_os in
  8505. aix[3-9]*)
  8506. # On AIX/PPC, the GNU linker is very broken
  8507. if test "$host_cpu" != ia64; then
  8508. ld_shlibs=no
  8509. cat <<_LT_EOF 1>&2
  8510. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8511. *** to be unable to reliably create shared libraries on AIX.
  8512. *** Therefore, libtool is disabling shared libraries support. If you
  8513. *** really care for shared libraries, you may want to install binutils
  8514. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8515. *** You will then need to restart the configuration process.
  8516. _LT_EOF
  8517. fi
  8518. ;;
  8519. amigaos*)
  8520. case $host_cpu in
  8521. powerpc)
  8522. # see comment about AmigaOS4 .so support
  8523. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8524. archive_expsym_cmds=''
  8525. ;;
  8526. m68k)
  8527. 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)'
  8528. hardcode_libdir_flag_spec='-L$libdir'
  8529. hardcode_minus_L=yes
  8530. ;;
  8531. esac
  8532. ;;
  8533. beos*)
  8534. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8535. allow_undefined_flag=unsupported
  8536. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8537. # support --undefined. This deserves some investigation. FIXME
  8538. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8539. else
  8540. ld_shlibs=no
  8541. fi
  8542. ;;
  8543. cygwin* | mingw* | pw32* | cegcc*)
  8544. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8545. # as there is no search path for DLLs.
  8546. hardcode_libdir_flag_spec='-L$libdir'
  8547. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8548. allow_undefined_flag=unsupported
  8549. always_export_symbols=no
  8550. enable_shared_with_static_runtimes=yes
  8551. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8552. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8553. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8554. # If the export-symbols file already is a .def file (1st line
  8555. # is EXPORTS), use it as is; otherwise, prepend...
  8556. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8557. cp $export_symbols $output_objdir/$soname.def;
  8558. else
  8559. echo EXPORTS > $output_objdir/$soname.def;
  8560. cat $export_symbols >> $output_objdir/$soname.def;
  8561. fi~
  8562. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8563. else
  8564. ld_shlibs=no
  8565. fi
  8566. ;;
  8567. haiku*)
  8568. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8569. link_all_deplibs=yes
  8570. ;;
  8571. interix[3-9]*)
  8572. hardcode_direct=no
  8573. hardcode_shlibpath_var=no
  8574. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8575. export_dynamic_flag_spec='${wl}-E'
  8576. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8577. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8578. # default) and relocated if they conflict, which is a slow very memory
  8579. # consuming and fragmenting process. To avoid this, we pick a random,
  8580. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8581. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8582. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8583. 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'
  8584. ;;
  8585. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8586. tmp_diet=no
  8587. if test "$host_os" = linux-dietlibc; then
  8588. case $cc_basename in
  8589. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8590. esac
  8591. fi
  8592. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8593. && test "$tmp_diet" = no
  8594. then
  8595. tmp_addflag=' $pic_flag'
  8596. tmp_sharedflag='-shared'
  8597. case $cc_basename,$host_cpu in
  8598. pgcc*) # Portland Group C compiler
  8599. 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'
  8600. tmp_addflag=' $pic_flag'
  8601. ;;
  8602. pgf77* | pgf90* | pgf95* | pgfortran*)
  8603. # Portland Group f77 and f90 compilers
  8604. 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'
  8605. tmp_addflag=' $pic_flag -Mnomain' ;;
  8606. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8607. tmp_addflag=' -i_dynamic' ;;
  8608. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8609. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8610. ifc* | ifort*) # Intel Fortran compiler
  8611. tmp_addflag=' -nofor_main' ;;
  8612. lf95*) # Lahey Fortran 8.1
  8613. whole_archive_flag_spec=
  8614. tmp_sharedflag='--shared' ;;
  8615. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8616. tmp_sharedflag='-qmkshrobj'
  8617. tmp_addflag= ;;
  8618. nvcc*) # Cuda Compiler Driver 2.2
  8619. 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'
  8620. compiler_needs_object=yes
  8621. ;;
  8622. esac
  8623. case `$CC -V 2>&1 | sed 5q` in
  8624. *Sun\ C*) # Sun C 5.9
  8625. 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'
  8626. compiler_needs_object=yes
  8627. tmp_sharedflag='-G' ;;
  8628. *Sun\ F*) # Sun Fortran 8.3
  8629. tmp_sharedflag='-G' ;;
  8630. esac
  8631. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8632. if test "x$supports_anon_versioning" = xyes; then
  8633. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8634. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8635. echo "local: *; };" >> $output_objdir/$libname.ver~
  8636. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8637. fi
  8638. case $cc_basename in
  8639. xlf* | bgf* | bgxlf* | mpixlf*)
  8640. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8641. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8642. hardcode_libdir_flag_spec=
  8643. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8644. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8645. if test "x$supports_anon_versioning" = xyes; then
  8646. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8647. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8648. echo "local: *; };" >> $output_objdir/$libname.ver~
  8649. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8650. fi
  8651. ;;
  8652. esac
  8653. else
  8654. ld_shlibs=no
  8655. fi
  8656. ;;
  8657. netbsd*)
  8658. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8659. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8660. wlarc=
  8661. else
  8662. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8663. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8664. fi
  8665. ;;
  8666. solaris*)
  8667. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8668. ld_shlibs=no
  8669. cat <<_LT_EOF 1>&2
  8670. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8671. *** create shared libraries on Solaris systems. Therefore, libtool
  8672. *** is disabling shared libraries support. We urge you to upgrade GNU
  8673. *** binutils to release 2.9.1 or newer. Another option is to modify
  8674. *** your PATH or compiler configuration so that the native linker is
  8675. *** used, and then restart.
  8676. _LT_EOF
  8677. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8678. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8679. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8680. else
  8681. ld_shlibs=no
  8682. fi
  8683. ;;
  8684. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8685. case `$LD -v 2>&1` in
  8686. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8687. ld_shlibs=no
  8688. cat <<_LT_EOF 1>&2
  8689. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8690. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8691. *** is disabling shared libraries support. We urge you to upgrade GNU
  8692. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8693. *** your PATH or compiler configuration so that the native linker is
  8694. *** used, and then restart.
  8695. _LT_EOF
  8696. ;;
  8697. *)
  8698. # For security reasons, it is highly recommended that you always
  8699. # use absolute paths for naming shared libraries, and exclude the
  8700. # DT_RUNPATH tag from executables and libraries. But doing so
  8701. # requires that you compile everything twice, which is a pain.
  8702. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8703. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8704. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8705. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8706. else
  8707. ld_shlibs=no
  8708. fi
  8709. ;;
  8710. esac
  8711. ;;
  8712. sunos4*)
  8713. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8714. wlarc=
  8715. hardcode_direct=yes
  8716. hardcode_shlibpath_var=no
  8717. ;;
  8718. *)
  8719. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8720. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8721. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8722. else
  8723. ld_shlibs=no
  8724. fi
  8725. ;;
  8726. esac
  8727. if test "$ld_shlibs" = no; then
  8728. runpath_var=
  8729. hardcode_libdir_flag_spec=
  8730. export_dynamic_flag_spec=
  8731. whole_archive_flag_spec=
  8732. fi
  8733. else
  8734. # PORTME fill in a description of your system's linker (not GNU ld)
  8735. case $host_os in
  8736. aix3*)
  8737. allow_undefined_flag=unsupported
  8738. always_export_symbols=yes
  8739. 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'
  8740. # Note: this linker hardcodes the directories in LIBPATH if there
  8741. # are no directories specified by -L.
  8742. hardcode_minus_L=yes
  8743. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8744. # Neither direct hardcoding nor static linking is supported with a
  8745. # broken collect2.
  8746. hardcode_direct=unsupported
  8747. fi
  8748. ;;
  8749. aix[4-9]*)
  8750. if test "$host_cpu" = ia64; then
  8751. # On IA64, the linker does run time linking by default, so we don't
  8752. # have to do anything special.
  8753. aix_use_runtimelinking=no
  8754. exp_sym_flag='-Bexport'
  8755. no_entry_flag=""
  8756. else
  8757. # If we're using GNU nm, then we don't want the "-C" option.
  8758. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8759. # Also, AIX nm treats weak defined symbols like other global
  8760. # defined symbols, whereas GNU nm marks them as "W".
  8761. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8762. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8763. else
  8764. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8765. fi
  8766. aix_use_runtimelinking=no
  8767. # Test if we are trying to use run time linking or normal
  8768. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8769. # need to do runtime linking.
  8770. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8771. for ld_flag in $LDFLAGS; do
  8772. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8773. aix_use_runtimelinking=yes
  8774. break
  8775. fi
  8776. done
  8777. ;;
  8778. esac
  8779. exp_sym_flag='-bexport'
  8780. no_entry_flag='-bnoentry'
  8781. fi
  8782. # When large executables or shared objects are built, AIX ld can
  8783. # have problems creating the table of contents. If linking a library
  8784. # or program results in "error TOC overflow" add -mminimal-toc to
  8785. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8786. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8787. archive_cmds=''
  8788. hardcode_direct=yes
  8789. hardcode_direct_absolute=yes
  8790. hardcode_libdir_separator=':'
  8791. link_all_deplibs=yes
  8792. file_list_spec='${wl}-f,'
  8793. if test "$GCC" = yes; then
  8794. case $host_os in aix4.[012]|aix4.[012].*)
  8795. # We only want to do this on AIX 4.2 and lower, the check
  8796. # below for broken collect2 doesn't work under 4.3+
  8797. collect2name=`${CC} -print-prog-name=collect2`
  8798. if test -f "$collect2name" &&
  8799. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8800. then
  8801. # We have reworked collect2
  8802. :
  8803. else
  8804. # We have old collect2
  8805. hardcode_direct=unsupported
  8806. # It fails to find uninstalled libraries when the uninstalled
  8807. # path is not listed in the libpath. Setting hardcode_minus_L
  8808. # to unsupported forces relinking
  8809. hardcode_minus_L=yes
  8810. hardcode_libdir_flag_spec='-L$libdir'
  8811. hardcode_libdir_separator=
  8812. fi
  8813. ;;
  8814. esac
  8815. shared_flag='-shared'
  8816. if test "$aix_use_runtimelinking" = yes; then
  8817. shared_flag="$shared_flag "'${wl}-G'
  8818. fi
  8819. else
  8820. # not using gcc
  8821. if test "$host_cpu" = ia64; then
  8822. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8823. # chokes on -Wl,-G. The following line is correct:
  8824. shared_flag='-G'
  8825. else
  8826. if test "$aix_use_runtimelinking" = yes; then
  8827. shared_flag='${wl}-G'
  8828. else
  8829. shared_flag='${wl}-bM:SRE'
  8830. fi
  8831. fi
  8832. fi
  8833. export_dynamic_flag_spec='${wl}-bexpall'
  8834. # It seems that -bexpall does not export symbols beginning with
  8835. # underscore (_), so it is better to generate a list of symbols to export.
  8836. always_export_symbols=yes
  8837. if test "$aix_use_runtimelinking" = yes; then
  8838. # Warning - without using the other runtime loading flags (-brtl),
  8839. # -berok will link without error, but may produce a broken library.
  8840. allow_undefined_flag='-berok'
  8841. # Determine the default libpath from the value encoded in an
  8842. # empty executable.
  8843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8844. /* end confdefs.h. */
  8845. int
  8846. main ()
  8847. {
  8848. ;
  8849. return 0;
  8850. }
  8851. _ACEOF
  8852. if ac_fn_c_try_link "$LINENO"; then :
  8853. lt_aix_libpath_sed='
  8854. /Import File Strings/,/^$/ {
  8855. /^0/ {
  8856. s/^0 *\(.*\)$/\1/
  8857. p
  8858. }
  8859. }'
  8860. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8861. # Check for a 64-bit object if we didn't find anything.
  8862. if test -z "$aix_libpath"; then
  8863. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8864. fi
  8865. fi
  8866. rm -f core conftest.err conftest.$ac_objext \
  8867. conftest$ac_exeext conftest.$ac_ext
  8868. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8869. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8870. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8871. else
  8872. if test "$host_cpu" = ia64; then
  8873. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8874. allow_undefined_flag="-z nodefs"
  8875. 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"
  8876. else
  8877. # Determine the default libpath from the value encoded in an
  8878. # empty executable.
  8879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8880. /* end confdefs.h. */
  8881. int
  8882. main ()
  8883. {
  8884. ;
  8885. return 0;
  8886. }
  8887. _ACEOF
  8888. if ac_fn_c_try_link "$LINENO"; then :
  8889. lt_aix_libpath_sed='
  8890. /Import File Strings/,/^$/ {
  8891. /^0/ {
  8892. s/^0 *\(.*\)$/\1/
  8893. p
  8894. }
  8895. }'
  8896. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8897. # Check for a 64-bit object if we didn't find anything.
  8898. if test -z "$aix_libpath"; then
  8899. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8900. fi
  8901. fi
  8902. rm -f core conftest.err conftest.$ac_objext \
  8903. conftest$ac_exeext conftest.$ac_ext
  8904. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8905. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8906. # Warning - without using the other run time loading flags,
  8907. # -berok will link without error, but may produce a broken library.
  8908. no_undefined_flag=' ${wl}-bernotok'
  8909. allow_undefined_flag=' ${wl}-berok'
  8910. if test "$with_gnu_ld" = yes; then
  8911. # We only use this code for GNU lds that support --whole-archive.
  8912. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8913. else
  8914. # Exported symbols can be pulled into shared objects from archives
  8915. whole_archive_flag_spec='$convenience'
  8916. fi
  8917. archive_cmds_need_lc=yes
  8918. # This is similar to how AIX traditionally builds its shared libraries.
  8919. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8920. fi
  8921. fi
  8922. ;;
  8923. amigaos*)
  8924. case $host_cpu in
  8925. powerpc)
  8926. # see comment about AmigaOS4 .so support
  8927. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8928. archive_expsym_cmds=''
  8929. ;;
  8930. m68k)
  8931. 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)'
  8932. hardcode_libdir_flag_spec='-L$libdir'
  8933. hardcode_minus_L=yes
  8934. ;;
  8935. esac
  8936. ;;
  8937. bsdi[45]*)
  8938. export_dynamic_flag_spec=-rdynamic
  8939. ;;
  8940. cygwin* | mingw* | pw32* | cegcc*)
  8941. # When not using gcc, we currently assume that we are using
  8942. # Microsoft Visual C++.
  8943. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8944. # no search path for DLLs.
  8945. hardcode_libdir_flag_spec=' '
  8946. allow_undefined_flag=unsupported
  8947. # Tell ltmain to make .lib files, not .a files.
  8948. libext=lib
  8949. # Tell ltmain to make .dll files, not .so files.
  8950. shrext_cmds=".dll"
  8951. # FIXME: Setting linknames here is a bad hack.
  8952. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8953. # The linker will automatically build a .lib file if we build a DLL.
  8954. old_archive_from_new_cmds='true'
  8955. # FIXME: Should let the user specify the lib program.
  8956. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8957. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8958. enable_shared_with_static_runtimes=yes
  8959. ;;
  8960. darwin* | rhapsody*)
  8961. archive_cmds_need_lc=no
  8962. hardcode_direct=no
  8963. hardcode_automatic=yes
  8964. hardcode_shlibpath_var=unsupported
  8965. if test "$lt_cv_ld_force_load" = "yes"; then
  8966. 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\"`'
  8967. else
  8968. whole_archive_flag_spec=''
  8969. fi
  8970. link_all_deplibs=yes
  8971. allow_undefined_flag="$_lt_dar_allow_undefined"
  8972. case $cc_basename in
  8973. ifort*) _lt_dar_can_shared=yes ;;
  8974. *) _lt_dar_can_shared=$GCC ;;
  8975. esac
  8976. if test "$_lt_dar_can_shared" = "yes"; then
  8977. output_verbose_link_cmd=func_echo_all
  8978. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8979. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8980. 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}"
  8981. 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}"
  8982. else
  8983. ld_shlibs=no
  8984. fi
  8985. ;;
  8986. dgux*)
  8987. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8988. hardcode_libdir_flag_spec='-L$libdir'
  8989. hardcode_shlibpath_var=no
  8990. ;;
  8991. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8992. # support. Future versions do this automatically, but an explicit c++rt0.o
  8993. # does not break anything, and helps significantly (at the cost of a little
  8994. # extra space).
  8995. freebsd2.2*)
  8996. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8997. hardcode_libdir_flag_spec='-R$libdir'
  8998. hardcode_direct=yes
  8999. hardcode_shlibpath_var=no
  9000. ;;
  9001. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9002. freebsd2.*)
  9003. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9004. hardcode_direct=yes
  9005. hardcode_minus_L=yes
  9006. hardcode_shlibpath_var=no
  9007. ;;
  9008. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9009. freebsd* | dragonfly*)
  9010. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9011. hardcode_libdir_flag_spec='-R$libdir'
  9012. hardcode_direct=yes
  9013. hardcode_shlibpath_var=no
  9014. ;;
  9015. hpux9*)
  9016. if test "$GCC" = yes; then
  9017. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9018. else
  9019. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9020. fi
  9021. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9022. hardcode_libdir_separator=:
  9023. hardcode_direct=yes
  9024. # hardcode_minus_L: Not really in the search PATH,
  9025. # but as the default location of the library.
  9026. hardcode_minus_L=yes
  9027. export_dynamic_flag_spec='${wl}-E'
  9028. ;;
  9029. hpux10*)
  9030. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9031. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9032. else
  9033. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9034. fi
  9035. if test "$with_gnu_ld" = no; then
  9036. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9037. hardcode_libdir_flag_spec_ld='+b $libdir'
  9038. hardcode_libdir_separator=:
  9039. hardcode_direct=yes
  9040. hardcode_direct_absolute=yes
  9041. export_dynamic_flag_spec='${wl}-E'
  9042. # hardcode_minus_L: Not really in the search PATH,
  9043. # but as the default location of the library.
  9044. hardcode_minus_L=yes
  9045. fi
  9046. ;;
  9047. hpux11*)
  9048. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9049. case $host_cpu in
  9050. hppa*64*)
  9051. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9052. ;;
  9053. ia64*)
  9054. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9055. ;;
  9056. *)
  9057. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9058. ;;
  9059. esac
  9060. else
  9061. case $host_cpu in
  9062. hppa*64*)
  9063. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9064. ;;
  9065. ia64*)
  9066. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9067. ;;
  9068. *)
  9069. # Older versions of the 11.00 compiler do not understand -b yet
  9070. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9072. $as_echo_n "checking if $CC understands -b... " >&6; }
  9073. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  9074. $as_echo_n "(cached) " >&6
  9075. else
  9076. lt_cv_prog_compiler__b=no
  9077. save_LDFLAGS="$LDFLAGS"
  9078. LDFLAGS="$LDFLAGS -b"
  9079. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9080. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9081. # The linker can only warn and ignore the option if not recognized
  9082. # So say no if there are warnings
  9083. if test -s conftest.err; then
  9084. # Append any errors to the config.log.
  9085. cat conftest.err 1>&5
  9086. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9087. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9088. if diff conftest.exp conftest.er2 >/dev/null; then
  9089. lt_cv_prog_compiler__b=yes
  9090. fi
  9091. else
  9092. lt_cv_prog_compiler__b=yes
  9093. fi
  9094. fi
  9095. $RM -r conftest*
  9096. LDFLAGS="$save_LDFLAGS"
  9097. fi
  9098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9099. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9100. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9101. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9102. else
  9103. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9104. fi
  9105. ;;
  9106. esac
  9107. fi
  9108. if test "$with_gnu_ld" = no; then
  9109. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9110. hardcode_libdir_separator=:
  9111. case $host_cpu in
  9112. hppa*64*|ia64*)
  9113. hardcode_direct=no
  9114. hardcode_shlibpath_var=no
  9115. ;;
  9116. *)
  9117. hardcode_direct=yes
  9118. hardcode_direct_absolute=yes
  9119. export_dynamic_flag_spec='${wl}-E'
  9120. # hardcode_minus_L: Not really in the search PATH,
  9121. # but as the default location of the library.
  9122. hardcode_minus_L=yes
  9123. ;;
  9124. esac
  9125. fi
  9126. ;;
  9127. irix5* | irix6* | nonstopux*)
  9128. if test "$GCC" = yes; then
  9129. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9130. # Try to use the -exported_symbol ld option, if it does not
  9131. # work, assume that -exports_file does not work either and
  9132. # implicitly export all symbols.
  9133. save_LDFLAGS="$LDFLAGS"
  9134. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9136. /* end confdefs.h. */
  9137. int foo(void) {}
  9138. _ACEOF
  9139. if ac_fn_c_try_link "$LINENO"; then :
  9140. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  9141. fi
  9142. rm -f core conftest.err conftest.$ac_objext \
  9143. conftest$ac_exeext conftest.$ac_ext
  9144. LDFLAGS="$save_LDFLAGS"
  9145. else
  9146. 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'
  9147. 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'
  9148. fi
  9149. archive_cmds_need_lc='no'
  9150. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9151. hardcode_libdir_separator=:
  9152. inherit_rpath=yes
  9153. link_all_deplibs=yes
  9154. ;;
  9155. netbsd*)
  9156. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9157. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9158. else
  9159. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9160. fi
  9161. hardcode_libdir_flag_spec='-R$libdir'
  9162. hardcode_direct=yes
  9163. hardcode_shlibpath_var=no
  9164. ;;
  9165. newsos6)
  9166. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9167. hardcode_direct=yes
  9168. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9169. hardcode_libdir_separator=:
  9170. hardcode_shlibpath_var=no
  9171. ;;
  9172. *nto* | *qnx*)
  9173. ;;
  9174. openbsd*)
  9175. if test -f /usr/libexec/ld.so; then
  9176. hardcode_direct=yes
  9177. hardcode_shlibpath_var=no
  9178. hardcode_direct_absolute=yes
  9179. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9180. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9181. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9182. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9183. export_dynamic_flag_spec='${wl}-E'
  9184. else
  9185. case $host_os in
  9186. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9187. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9188. hardcode_libdir_flag_spec='-R$libdir'
  9189. ;;
  9190. *)
  9191. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9192. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9193. ;;
  9194. esac
  9195. fi
  9196. else
  9197. ld_shlibs=no
  9198. fi
  9199. ;;
  9200. os2*)
  9201. hardcode_libdir_flag_spec='-L$libdir'
  9202. hardcode_minus_L=yes
  9203. allow_undefined_flag=unsupported
  9204. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  9205. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9206. ;;
  9207. osf3*)
  9208. if test "$GCC" = yes; then
  9209. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9210. 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'
  9211. else
  9212. allow_undefined_flag=' -expect_unresolved \*'
  9213. 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'
  9214. fi
  9215. archive_cmds_need_lc='no'
  9216. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9217. hardcode_libdir_separator=:
  9218. ;;
  9219. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9220. if test "$GCC" = yes; then
  9221. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9222. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9223. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9224. else
  9225. allow_undefined_flag=' -expect_unresolved \*'
  9226. 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'
  9227. 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~
  9228. $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'
  9229. # Both c and cxx compiler support -rpath directly
  9230. hardcode_libdir_flag_spec='-rpath $libdir'
  9231. fi
  9232. archive_cmds_need_lc='no'
  9233. hardcode_libdir_separator=:
  9234. ;;
  9235. solaris*)
  9236. no_undefined_flag=' -z defs'
  9237. if test "$GCC" = yes; then
  9238. wlarc='${wl}'
  9239. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9240. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9241. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9242. else
  9243. case `$CC -V 2>&1` in
  9244. *"Compilers 5.0"*)
  9245. wlarc=''
  9246. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9247. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9248. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9249. ;;
  9250. *)
  9251. wlarc='${wl}'
  9252. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9253. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9254. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9255. ;;
  9256. esac
  9257. fi
  9258. hardcode_libdir_flag_spec='-R$libdir'
  9259. hardcode_shlibpath_var=no
  9260. case $host_os in
  9261. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9262. *)
  9263. # The compiler driver will combine and reorder linker options,
  9264. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9265. # but is careful enough not to reorder.
  9266. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9267. if test "$GCC" = yes; then
  9268. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9269. else
  9270. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9271. fi
  9272. ;;
  9273. esac
  9274. link_all_deplibs=yes
  9275. ;;
  9276. sunos4*)
  9277. if test "x$host_vendor" = xsequent; then
  9278. # Use $CC to link under sequent, because it throws in some extra .o
  9279. # files that make .init and .fini sections work.
  9280. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9281. else
  9282. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9283. fi
  9284. hardcode_libdir_flag_spec='-L$libdir'
  9285. hardcode_direct=yes
  9286. hardcode_minus_L=yes
  9287. hardcode_shlibpath_var=no
  9288. ;;
  9289. sysv4)
  9290. case $host_vendor in
  9291. sni)
  9292. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9293. hardcode_direct=yes # is this really true???
  9294. ;;
  9295. siemens)
  9296. ## LD is ld it makes a PLAMLIB
  9297. ## CC just makes a GrossModule.
  9298. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9299. reload_cmds='$CC -r -o $output$reload_objs'
  9300. hardcode_direct=no
  9301. ;;
  9302. motorola)
  9303. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9304. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9305. ;;
  9306. esac
  9307. runpath_var='LD_RUN_PATH'
  9308. hardcode_shlibpath_var=no
  9309. ;;
  9310. sysv4.3*)
  9311. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9312. hardcode_shlibpath_var=no
  9313. export_dynamic_flag_spec='-Bexport'
  9314. ;;
  9315. sysv4*MP*)
  9316. if test -d /usr/nec; then
  9317. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9318. hardcode_shlibpath_var=no
  9319. runpath_var=LD_RUN_PATH
  9320. hardcode_runpath_var=yes
  9321. ld_shlibs=yes
  9322. fi
  9323. ;;
  9324. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9325. no_undefined_flag='${wl}-z,text'
  9326. archive_cmds_need_lc=no
  9327. hardcode_shlibpath_var=no
  9328. runpath_var='LD_RUN_PATH'
  9329. if test "$GCC" = yes; then
  9330. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9331. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9332. else
  9333. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9334. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9335. fi
  9336. ;;
  9337. sysv5* | sco3.2v5* | sco5v6*)
  9338. # Note: We can NOT use -z defs as we might desire, because we do not
  9339. # link with -lc, and that would cause any symbols used from libc to
  9340. # always be unresolved, which means just about no library would
  9341. # ever link correctly. If we're not using GNU ld we use -z text
  9342. # though, which does catch some bad symbols but isn't as heavy-handed
  9343. # as -z defs.
  9344. no_undefined_flag='${wl}-z,text'
  9345. allow_undefined_flag='${wl}-z,nodefs'
  9346. archive_cmds_need_lc=no
  9347. hardcode_shlibpath_var=no
  9348. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9349. hardcode_libdir_separator=':'
  9350. link_all_deplibs=yes
  9351. export_dynamic_flag_spec='${wl}-Bexport'
  9352. runpath_var='LD_RUN_PATH'
  9353. if test "$GCC" = yes; then
  9354. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9355. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9356. else
  9357. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9358. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9359. fi
  9360. ;;
  9361. uts4*)
  9362. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9363. hardcode_libdir_flag_spec='-L$libdir'
  9364. hardcode_shlibpath_var=no
  9365. ;;
  9366. *)
  9367. ld_shlibs=no
  9368. ;;
  9369. esac
  9370. if test x$host_vendor = xsni; then
  9371. case $host in
  9372. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9373. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9374. ;;
  9375. esac
  9376. fi
  9377. fi
  9378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9379. $as_echo "$ld_shlibs" >&6; }
  9380. test "$ld_shlibs" = no && can_build_shared=no
  9381. with_gnu_ld=$with_gnu_ld
  9382. #
  9383. # Do we need to explicitly link libc?
  9384. #
  9385. case "x$archive_cmds_need_lc" in
  9386. x|xyes)
  9387. # Assume -lc should be added
  9388. archive_cmds_need_lc=yes
  9389. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9390. case $archive_cmds in
  9391. *'~'*)
  9392. # FIXME: we may have to deal with multi-command sequences.
  9393. ;;
  9394. '$CC '*)
  9395. # Test whether the compiler implicitly links with -lc since on some
  9396. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9397. # to ld, don't add -lc before -lgcc.
  9398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9399. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9400. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  9401. $as_echo_n "(cached) " >&6
  9402. else
  9403. $RM conftest*
  9404. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9405. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9406. (eval $ac_compile) 2>&5
  9407. ac_status=$?
  9408. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9409. test $ac_status = 0; } 2>conftest.err; then
  9410. soname=conftest
  9411. lib=conftest
  9412. libobjs=conftest.$ac_objext
  9413. deplibs=
  9414. wl=$lt_prog_compiler_wl
  9415. pic_flag=$lt_prog_compiler_pic
  9416. compiler_flags=-v
  9417. linker_flags=-v
  9418. verstring=
  9419. output_objdir=.
  9420. libname=conftest
  9421. lt_save_allow_undefined_flag=$allow_undefined_flag
  9422. allow_undefined_flag=
  9423. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9424. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9425. ac_status=$?
  9426. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9427. test $ac_status = 0; }
  9428. then
  9429. lt_cv_archive_cmds_need_lc=no
  9430. else
  9431. lt_cv_archive_cmds_need_lc=yes
  9432. fi
  9433. allow_undefined_flag=$lt_save_allow_undefined_flag
  9434. else
  9435. cat conftest.err 1>&5
  9436. fi
  9437. $RM conftest*
  9438. fi
  9439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9440. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9441. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9442. ;;
  9443. esac
  9444. fi
  9445. ;;
  9446. esac
  9447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9448. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9449. if test "$GCC" = yes; then
  9450. case $host_os in
  9451. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9452. *) lt_awk_arg="/^libraries:/" ;;
  9453. esac
  9454. case $host_os in
  9455. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9456. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9457. esac
  9458. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9459. case $lt_search_path_spec in
  9460. *\;*)
  9461. # if the path contains ";" then we assume it to be the separator
  9462. # otherwise default to the standard path separator (i.e. ":") - it is
  9463. # assumed that no part of a normal pathname contains ";" but that should
  9464. # okay in the real world where ";" in dirpaths is itself problematic.
  9465. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9466. ;;
  9467. *)
  9468. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9469. ;;
  9470. esac
  9471. # Ok, now we have the path, separated by spaces, we can step through it
  9472. # and add multilib dir if necessary.
  9473. lt_tmp_lt_search_path_spec=
  9474. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9475. for lt_sys_path in $lt_search_path_spec; do
  9476. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9477. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9478. else
  9479. test -d "$lt_sys_path" && \
  9480. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9481. fi
  9482. done
  9483. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9484. BEGIN {RS=" "; FS="/|\n";} {
  9485. lt_foo="";
  9486. lt_count=0;
  9487. for (lt_i = NF; lt_i > 0; lt_i--) {
  9488. if ($lt_i != "" && $lt_i != ".") {
  9489. if ($lt_i == "..") {
  9490. lt_count++;
  9491. } else {
  9492. if (lt_count == 0) {
  9493. lt_foo="/" $lt_i lt_foo;
  9494. } else {
  9495. lt_count--;
  9496. }
  9497. }
  9498. }
  9499. }
  9500. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9501. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9502. }'`
  9503. # AWK program above erroneously prepends '/' to C:/dos/paths
  9504. # for these hosts.
  9505. case $host_os in
  9506. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9507. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9508. esac
  9509. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9510. else
  9511. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9512. fi
  9513. library_names_spec=
  9514. libname_spec='lib$name'
  9515. soname_spec=
  9516. shrext_cmds=".so"
  9517. postinstall_cmds=
  9518. postuninstall_cmds=
  9519. finish_cmds=
  9520. finish_eval=
  9521. shlibpath_var=
  9522. shlibpath_overrides_runpath=unknown
  9523. version_type=none
  9524. dynamic_linker="$host_os ld.so"
  9525. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9526. need_lib_prefix=unknown
  9527. hardcode_into_libs=no
  9528. # when you set need_version to no, make sure it does not cause -set_version
  9529. # flags to be left without arguments
  9530. need_version=unknown
  9531. case $host_os in
  9532. aix3*)
  9533. version_type=linux
  9534. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9535. shlibpath_var=LIBPATH
  9536. # AIX 3 has no versioning support, so we append a major version to the name.
  9537. soname_spec='${libname}${release}${shared_ext}$major'
  9538. ;;
  9539. aix[4-9]*)
  9540. version_type=linux
  9541. need_lib_prefix=no
  9542. need_version=no
  9543. hardcode_into_libs=yes
  9544. if test "$host_cpu" = ia64; then
  9545. # AIX 5 supports IA64
  9546. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9547. shlibpath_var=LD_LIBRARY_PATH
  9548. else
  9549. # With GCC up to 2.95.x, collect2 would create an import file
  9550. # for dependence libraries. The import file would start with
  9551. # the line `#! .'. This would cause the generated library to
  9552. # depend on `.', always an invalid library. This was fixed in
  9553. # development snapshots of GCC prior to 3.0.
  9554. case $host_os in
  9555. aix4 | aix4.[01] | aix4.[01].*)
  9556. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9557. echo ' yes '
  9558. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9559. :
  9560. else
  9561. can_build_shared=no
  9562. fi
  9563. ;;
  9564. esac
  9565. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9566. # soname into executable. Probably we can add versioning support to
  9567. # collect2, so additional links can be useful in future.
  9568. if test "$aix_use_runtimelinking" = yes; then
  9569. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9570. # instead of lib<name>.a to let people know that these are not
  9571. # typical AIX shared libraries.
  9572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9573. else
  9574. # We preserve .a as extension for shared libraries through AIX4.2
  9575. # and later when we are not doing run time linking.
  9576. library_names_spec='${libname}${release}.a $libname.a'
  9577. soname_spec='${libname}${release}${shared_ext}$major'
  9578. fi
  9579. shlibpath_var=LIBPATH
  9580. fi
  9581. ;;
  9582. amigaos*)
  9583. case $host_cpu in
  9584. powerpc)
  9585. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9586. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9587. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9588. ;;
  9589. m68k)
  9590. library_names_spec='$libname.ixlibrary $libname.a'
  9591. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9592. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9593. ;;
  9594. esac
  9595. ;;
  9596. beos*)
  9597. library_names_spec='${libname}${shared_ext}'
  9598. dynamic_linker="$host_os ld.so"
  9599. shlibpath_var=LIBRARY_PATH
  9600. ;;
  9601. bsdi[45]*)
  9602. version_type=linux
  9603. need_version=no
  9604. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9605. soname_spec='${libname}${release}${shared_ext}$major'
  9606. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9607. shlibpath_var=LD_LIBRARY_PATH
  9608. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9609. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9610. # the default ld.so.conf also contains /usr/contrib/lib and
  9611. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9612. # libtool to hard-code these into programs
  9613. ;;
  9614. cygwin* | mingw* | pw32* | cegcc*)
  9615. version_type=windows
  9616. shrext_cmds=".dll"
  9617. need_version=no
  9618. need_lib_prefix=no
  9619. case $GCC,$host_os in
  9620. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9621. library_names_spec='$libname.dll.a'
  9622. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9623. postinstall_cmds='base_file=`basename \${file}`~
  9624. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9625. dldir=$destdir/`dirname \$dlpath`~
  9626. test -d \$dldir || mkdir -p \$dldir~
  9627. $install_prog $dir/$dlname \$dldir/$dlname~
  9628. chmod a+x \$dldir/$dlname~
  9629. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9630. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9631. fi'
  9632. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9633. dlpath=$dir/\$dldll~
  9634. $RM \$dlpath'
  9635. shlibpath_overrides_runpath=yes
  9636. case $host_os in
  9637. cygwin*)
  9638. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9639. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9640. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9641. ;;
  9642. mingw* | cegcc*)
  9643. # MinGW DLLs use traditional 'lib' prefix
  9644. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9645. ;;
  9646. pw32*)
  9647. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9648. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9649. ;;
  9650. esac
  9651. ;;
  9652. *)
  9653. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9654. ;;
  9655. esac
  9656. dynamic_linker='Win32 ld.exe'
  9657. # FIXME: first we should search . and the directory the executable is in
  9658. shlibpath_var=PATH
  9659. ;;
  9660. darwin* | rhapsody*)
  9661. dynamic_linker="$host_os dyld"
  9662. version_type=darwin
  9663. need_lib_prefix=no
  9664. need_version=no
  9665. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9666. soname_spec='${libname}${release}${major}$shared_ext'
  9667. shlibpath_overrides_runpath=yes
  9668. shlibpath_var=DYLD_LIBRARY_PATH
  9669. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9670. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9671. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9672. ;;
  9673. dgux*)
  9674. version_type=linux
  9675. need_lib_prefix=no
  9676. need_version=no
  9677. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9678. soname_spec='${libname}${release}${shared_ext}$major'
  9679. shlibpath_var=LD_LIBRARY_PATH
  9680. ;;
  9681. freebsd* | dragonfly*)
  9682. # DragonFly does not have aout. When/if they implement a new
  9683. # versioning mechanism, adjust this.
  9684. if test -x /usr/bin/objformat; then
  9685. objformat=`/usr/bin/objformat`
  9686. else
  9687. case $host_os in
  9688. freebsd[23].*) objformat=aout ;;
  9689. *) objformat=elf ;;
  9690. esac
  9691. fi
  9692. version_type=freebsd-$objformat
  9693. case $version_type in
  9694. freebsd-elf*)
  9695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9696. need_version=no
  9697. need_lib_prefix=no
  9698. ;;
  9699. freebsd-*)
  9700. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9701. need_version=yes
  9702. ;;
  9703. esac
  9704. shlibpath_var=LD_LIBRARY_PATH
  9705. case $host_os in
  9706. freebsd2.*)
  9707. shlibpath_overrides_runpath=yes
  9708. ;;
  9709. freebsd3.[01]* | freebsdelf3.[01]*)
  9710. shlibpath_overrides_runpath=yes
  9711. hardcode_into_libs=yes
  9712. ;;
  9713. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9714. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9715. shlibpath_overrides_runpath=no
  9716. hardcode_into_libs=yes
  9717. ;;
  9718. *) # from 4.6 on, and DragonFly
  9719. shlibpath_overrides_runpath=yes
  9720. hardcode_into_libs=yes
  9721. ;;
  9722. esac
  9723. ;;
  9724. gnu*)
  9725. version_type=linux
  9726. need_lib_prefix=no
  9727. need_version=no
  9728. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9729. soname_spec='${libname}${release}${shared_ext}$major'
  9730. shlibpath_var=LD_LIBRARY_PATH
  9731. hardcode_into_libs=yes
  9732. ;;
  9733. haiku*)
  9734. version_type=linux
  9735. need_lib_prefix=no
  9736. need_version=no
  9737. dynamic_linker="$host_os runtime_loader"
  9738. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9739. soname_spec='${libname}${release}${shared_ext}$major'
  9740. shlibpath_var=LIBRARY_PATH
  9741. shlibpath_overrides_runpath=yes
  9742. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9743. hardcode_into_libs=yes
  9744. ;;
  9745. hpux9* | hpux10* | hpux11*)
  9746. # Give a soname corresponding to the major version so that dld.sl refuses to
  9747. # link against other versions.
  9748. version_type=sunos
  9749. need_lib_prefix=no
  9750. need_version=no
  9751. case $host_cpu in
  9752. ia64*)
  9753. shrext_cmds='.so'
  9754. hardcode_into_libs=yes
  9755. dynamic_linker="$host_os dld.so"
  9756. shlibpath_var=LD_LIBRARY_PATH
  9757. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9758. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9759. soname_spec='${libname}${release}${shared_ext}$major'
  9760. if test "X$HPUX_IA64_MODE" = X32; then
  9761. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9762. else
  9763. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9764. fi
  9765. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9766. ;;
  9767. hppa*64*)
  9768. shrext_cmds='.sl'
  9769. hardcode_into_libs=yes
  9770. dynamic_linker="$host_os dld.sl"
  9771. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9772. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9773. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9774. soname_spec='${libname}${release}${shared_ext}$major'
  9775. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9776. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9777. ;;
  9778. *)
  9779. shrext_cmds='.sl'
  9780. dynamic_linker="$host_os dld.sl"
  9781. shlibpath_var=SHLIB_PATH
  9782. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9783. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9784. soname_spec='${libname}${release}${shared_ext}$major'
  9785. ;;
  9786. esac
  9787. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9788. postinstall_cmds='chmod 555 $lib'
  9789. # or fails outright, so override atomically:
  9790. install_override_mode=555
  9791. ;;
  9792. interix[3-9]*)
  9793. version_type=linux
  9794. need_lib_prefix=no
  9795. need_version=no
  9796. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9797. soname_spec='${libname}${release}${shared_ext}$major'
  9798. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9799. shlibpath_var=LD_LIBRARY_PATH
  9800. shlibpath_overrides_runpath=no
  9801. hardcode_into_libs=yes
  9802. ;;
  9803. irix5* | irix6* | nonstopux*)
  9804. case $host_os in
  9805. nonstopux*) version_type=nonstopux ;;
  9806. *)
  9807. if test "$lt_cv_prog_gnu_ld" = yes; then
  9808. version_type=linux
  9809. else
  9810. version_type=irix
  9811. fi ;;
  9812. esac
  9813. need_lib_prefix=no
  9814. need_version=no
  9815. soname_spec='${libname}${release}${shared_ext}$major'
  9816. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9817. case $host_os in
  9818. irix5* | nonstopux*)
  9819. libsuff= shlibsuff=
  9820. ;;
  9821. *)
  9822. case $LD in # libtool.m4 will add one of these switches to LD
  9823. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9824. libsuff= shlibsuff= libmagic=32-bit;;
  9825. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9826. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9827. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9828. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9829. *) libsuff= shlibsuff= libmagic=never-match;;
  9830. esac
  9831. ;;
  9832. esac
  9833. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9834. shlibpath_overrides_runpath=no
  9835. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9836. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9837. hardcode_into_libs=yes
  9838. ;;
  9839. # No shared lib support for Linux oldld, aout, or coff.
  9840. linux*oldld* | linux*aout* | linux*coff*)
  9841. dynamic_linker=no
  9842. ;;
  9843. # This must be Linux ELF.
  9844. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9845. version_type=linux
  9846. need_lib_prefix=no
  9847. need_version=no
  9848. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9849. soname_spec='${libname}${release}${shared_ext}$major'
  9850. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9851. shlibpath_var=LD_LIBRARY_PATH
  9852. shlibpath_overrides_runpath=no
  9853. # Some binutils ld are patched to set DT_RUNPATH
  9854. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9855. $as_echo_n "(cached) " >&6
  9856. else
  9857. lt_cv_shlibpath_overrides_runpath=no
  9858. save_LDFLAGS=$LDFLAGS
  9859. save_libdir=$libdir
  9860. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9861. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9863. /* end confdefs.h. */
  9864. int
  9865. main ()
  9866. {
  9867. ;
  9868. return 0;
  9869. }
  9870. _ACEOF
  9871. if ac_fn_c_try_link "$LINENO"; then :
  9872. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9873. lt_cv_shlibpath_overrides_runpath=yes
  9874. fi
  9875. fi
  9876. rm -f core conftest.err conftest.$ac_objext \
  9877. conftest$ac_exeext conftest.$ac_ext
  9878. LDFLAGS=$save_LDFLAGS
  9879. libdir=$save_libdir
  9880. fi
  9881. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9882. # This implies no fast_install, which is unacceptable.
  9883. # Some rework will be needed to allow for fast_install
  9884. # before this can be enabled.
  9885. hardcode_into_libs=yes
  9886. # Append ld.so.conf contents to the search path
  9887. if test -f /etc/ld.so.conf; then
  9888. 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' ' '`
  9889. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9890. fi
  9891. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9892. # powerpc, because MkLinux only supported shared libraries with the
  9893. # GNU dynamic linker. Since this was broken with cross compilers,
  9894. # most powerpc-linux boxes support dynamic linking these days and
  9895. # people can always --disable-shared, the test was removed, and we
  9896. # assume the GNU/Linux dynamic linker is in use.
  9897. dynamic_linker='GNU/Linux ld.so'
  9898. ;;
  9899. netbsd*)
  9900. version_type=sunos
  9901. need_lib_prefix=no
  9902. need_version=no
  9903. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9905. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9906. dynamic_linker='NetBSD (a.out) ld.so'
  9907. else
  9908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9909. soname_spec='${libname}${release}${shared_ext}$major'
  9910. dynamic_linker='NetBSD ld.elf_so'
  9911. fi
  9912. shlibpath_var=LD_LIBRARY_PATH
  9913. shlibpath_overrides_runpath=yes
  9914. hardcode_into_libs=yes
  9915. ;;
  9916. newsos6)
  9917. version_type=linux
  9918. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9919. shlibpath_var=LD_LIBRARY_PATH
  9920. shlibpath_overrides_runpath=yes
  9921. ;;
  9922. *nto* | *qnx*)
  9923. version_type=qnx
  9924. need_lib_prefix=no
  9925. need_version=no
  9926. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9927. soname_spec='${libname}${release}${shared_ext}$major'
  9928. shlibpath_var=LD_LIBRARY_PATH
  9929. shlibpath_overrides_runpath=no
  9930. hardcode_into_libs=yes
  9931. dynamic_linker='ldqnx.so'
  9932. ;;
  9933. openbsd*)
  9934. version_type=sunos
  9935. sys_lib_dlsearch_path_spec="/usr/lib"
  9936. need_lib_prefix=no
  9937. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9938. case $host_os in
  9939. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9940. *) need_version=no ;;
  9941. esac
  9942. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9943. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9944. shlibpath_var=LD_LIBRARY_PATH
  9945. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9946. case $host_os in
  9947. openbsd2.[89] | openbsd2.[89].*)
  9948. shlibpath_overrides_runpath=no
  9949. ;;
  9950. *)
  9951. shlibpath_overrides_runpath=yes
  9952. ;;
  9953. esac
  9954. else
  9955. shlibpath_overrides_runpath=yes
  9956. fi
  9957. ;;
  9958. os2*)
  9959. libname_spec='$name'
  9960. shrext_cmds=".dll"
  9961. need_lib_prefix=no
  9962. library_names_spec='$libname${shared_ext} $libname.a'
  9963. dynamic_linker='OS/2 ld.exe'
  9964. shlibpath_var=LIBPATH
  9965. ;;
  9966. osf3* | osf4* | osf5*)
  9967. version_type=osf
  9968. need_lib_prefix=no
  9969. need_version=no
  9970. soname_spec='${libname}${release}${shared_ext}$major'
  9971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9972. shlibpath_var=LD_LIBRARY_PATH
  9973. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9974. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9975. ;;
  9976. rdos*)
  9977. dynamic_linker=no
  9978. ;;
  9979. solaris*)
  9980. version_type=linux
  9981. need_lib_prefix=no
  9982. need_version=no
  9983. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9984. soname_spec='${libname}${release}${shared_ext}$major'
  9985. shlibpath_var=LD_LIBRARY_PATH
  9986. shlibpath_overrides_runpath=yes
  9987. hardcode_into_libs=yes
  9988. # ldd complains unless libraries are executable
  9989. postinstall_cmds='chmod +x $lib'
  9990. ;;
  9991. sunos4*)
  9992. version_type=sunos
  9993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9994. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9995. shlibpath_var=LD_LIBRARY_PATH
  9996. shlibpath_overrides_runpath=yes
  9997. if test "$with_gnu_ld" = yes; then
  9998. need_lib_prefix=no
  9999. fi
  10000. need_version=yes
  10001. ;;
  10002. sysv4 | sysv4.3*)
  10003. version_type=linux
  10004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10005. soname_spec='${libname}${release}${shared_ext}$major'
  10006. shlibpath_var=LD_LIBRARY_PATH
  10007. case $host_vendor in
  10008. sni)
  10009. shlibpath_overrides_runpath=no
  10010. need_lib_prefix=no
  10011. runpath_var=LD_RUN_PATH
  10012. ;;
  10013. siemens)
  10014. need_lib_prefix=no
  10015. ;;
  10016. motorola)
  10017. need_lib_prefix=no
  10018. need_version=no
  10019. shlibpath_overrides_runpath=no
  10020. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10021. ;;
  10022. esac
  10023. ;;
  10024. sysv4*MP*)
  10025. if test -d /usr/nec ;then
  10026. version_type=linux
  10027. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10028. soname_spec='$libname${shared_ext}.$major'
  10029. shlibpath_var=LD_LIBRARY_PATH
  10030. fi
  10031. ;;
  10032. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10033. version_type=freebsd-elf
  10034. need_lib_prefix=no
  10035. need_version=no
  10036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10037. soname_spec='${libname}${release}${shared_ext}$major'
  10038. shlibpath_var=LD_LIBRARY_PATH
  10039. shlibpath_overrides_runpath=yes
  10040. hardcode_into_libs=yes
  10041. if test "$with_gnu_ld" = yes; then
  10042. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10043. else
  10044. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10045. case $host_os in
  10046. sco3.2v5*)
  10047. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10048. ;;
  10049. esac
  10050. fi
  10051. sys_lib_dlsearch_path_spec='/usr/lib'
  10052. ;;
  10053. tpf*)
  10054. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10055. version_type=linux
  10056. need_lib_prefix=no
  10057. need_version=no
  10058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10059. shlibpath_var=LD_LIBRARY_PATH
  10060. shlibpath_overrides_runpath=no
  10061. hardcode_into_libs=yes
  10062. ;;
  10063. uts4*)
  10064. version_type=linux
  10065. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10066. soname_spec='${libname}${release}${shared_ext}$major'
  10067. shlibpath_var=LD_LIBRARY_PATH
  10068. ;;
  10069. *)
  10070. dynamic_linker=no
  10071. ;;
  10072. esac
  10073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10074. $as_echo "$dynamic_linker" >&6; }
  10075. test "$dynamic_linker" = no && can_build_shared=no
  10076. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10077. if test "$GCC" = yes; then
  10078. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10079. fi
  10080. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10081. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10082. fi
  10083. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10084. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10085. fi
  10086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10087. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10088. hardcode_action=
  10089. if test -n "$hardcode_libdir_flag_spec" ||
  10090. test -n "$runpath_var" ||
  10091. test "X$hardcode_automatic" = "Xyes" ; then
  10092. # We can hardcode non-existent directories.
  10093. if test "$hardcode_direct" != no &&
  10094. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10095. # have to relink, otherwise we might link with an installed library
  10096. # when we should be linking with a yet-to-be-installed one
  10097. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10098. test "$hardcode_minus_L" != no; then
  10099. # Linking always hardcodes the temporary library directory.
  10100. hardcode_action=relink
  10101. else
  10102. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10103. hardcode_action=immediate
  10104. fi
  10105. else
  10106. # We cannot hardcode anything, or else we can only hardcode existing
  10107. # directories.
  10108. hardcode_action=unsupported
  10109. fi
  10110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10111. $as_echo "$hardcode_action" >&6; }
  10112. if test "$hardcode_action" = relink ||
  10113. test "$inherit_rpath" = yes; then
  10114. # Fast installation is not supported
  10115. enable_fast_install=no
  10116. elif test "$shlibpath_overrides_runpath" = yes ||
  10117. test "$enable_shared" = no; then
  10118. # Fast installation is not necessary
  10119. enable_fast_install=needless
  10120. fi
  10121. if test "x$enable_dlopen" != xyes; then
  10122. enable_dlopen=unknown
  10123. enable_dlopen_self=unknown
  10124. enable_dlopen_self_static=unknown
  10125. else
  10126. lt_cv_dlopen=no
  10127. lt_cv_dlopen_libs=
  10128. case $host_os in
  10129. beos*)
  10130. lt_cv_dlopen="load_add_on"
  10131. lt_cv_dlopen_libs=
  10132. lt_cv_dlopen_self=yes
  10133. ;;
  10134. mingw* | pw32* | cegcc*)
  10135. lt_cv_dlopen="LoadLibrary"
  10136. lt_cv_dlopen_libs=
  10137. ;;
  10138. cygwin*)
  10139. lt_cv_dlopen="dlopen"
  10140. lt_cv_dlopen_libs=
  10141. ;;
  10142. darwin*)
  10143. # if libdl is installed we need to link against it
  10144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10145. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10146. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  10147. $as_echo_n "(cached) " >&6
  10148. else
  10149. ac_check_lib_save_LIBS=$LIBS
  10150. LIBS="-ldl $LIBS"
  10151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10152. /* end confdefs.h. */
  10153. /* Override any GCC internal prototype to avoid an error.
  10154. Use char because int might match the return type of a GCC
  10155. builtin and then its argument prototype would still apply. */
  10156. #ifdef __cplusplus
  10157. extern "C"
  10158. #endif
  10159. char dlopen ();
  10160. int
  10161. main ()
  10162. {
  10163. return dlopen ();
  10164. ;
  10165. return 0;
  10166. }
  10167. _ACEOF
  10168. if ac_fn_c_try_link "$LINENO"; then :
  10169. ac_cv_lib_dl_dlopen=yes
  10170. else
  10171. ac_cv_lib_dl_dlopen=no
  10172. fi
  10173. rm -f core conftest.err conftest.$ac_objext \
  10174. conftest$ac_exeext conftest.$ac_ext
  10175. LIBS=$ac_check_lib_save_LIBS
  10176. fi
  10177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10178. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10179. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  10180. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10181. else
  10182. lt_cv_dlopen="dyld"
  10183. lt_cv_dlopen_libs=
  10184. lt_cv_dlopen_self=yes
  10185. fi
  10186. ;;
  10187. *)
  10188. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10189. if test "x$ac_cv_func_shl_load" = x""yes; then :
  10190. lt_cv_dlopen="shl_load"
  10191. else
  10192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10193. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10194. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  10195. $as_echo_n "(cached) " >&6
  10196. else
  10197. ac_check_lib_save_LIBS=$LIBS
  10198. LIBS="-ldld $LIBS"
  10199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10200. /* end confdefs.h. */
  10201. /* Override any GCC internal prototype to avoid an error.
  10202. Use char because int might match the return type of a GCC
  10203. builtin and then its argument prototype would still apply. */
  10204. #ifdef __cplusplus
  10205. extern "C"
  10206. #endif
  10207. char shl_load ();
  10208. int
  10209. main ()
  10210. {
  10211. return shl_load ();
  10212. ;
  10213. return 0;
  10214. }
  10215. _ACEOF
  10216. if ac_fn_c_try_link "$LINENO"; then :
  10217. ac_cv_lib_dld_shl_load=yes
  10218. else
  10219. ac_cv_lib_dld_shl_load=no
  10220. fi
  10221. rm -f core conftest.err conftest.$ac_objext \
  10222. conftest$ac_exeext conftest.$ac_ext
  10223. LIBS=$ac_check_lib_save_LIBS
  10224. fi
  10225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10226. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10227. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  10228. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10229. else
  10230. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10231. if test "x$ac_cv_func_dlopen" = x""yes; then :
  10232. lt_cv_dlopen="dlopen"
  10233. else
  10234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10235. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10236. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  10237. $as_echo_n "(cached) " >&6
  10238. else
  10239. ac_check_lib_save_LIBS=$LIBS
  10240. LIBS="-ldl $LIBS"
  10241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10242. /* end confdefs.h. */
  10243. /* Override any GCC internal prototype to avoid an error.
  10244. Use char because int might match the return type of a GCC
  10245. builtin and then its argument prototype would still apply. */
  10246. #ifdef __cplusplus
  10247. extern "C"
  10248. #endif
  10249. char dlopen ();
  10250. int
  10251. main ()
  10252. {
  10253. return dlopen ();
  10254. ;
  10255. return 0;
  10256. }
  10257. _ACEOF
  10258. if ac_fn_c_try_link "$LINENO"; then :
  10259. ac_cv_lib_dl_dlopen=yes
  10260. else
  10261. ac_cv_lib_dl_dlopen=no
  10262. fi
  10263. rm -f core conftest.err conftest.$ac_objext \
  10264. conftest$ac_exeext conftest.$ac_ext
  10265. LIBS=$ac_check_lib_save_LIBS
  10266. fi
  10267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10268. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10269. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  10270. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10271. else
  10272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10273. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10274. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  10275. $as_echo_n "(cached) " >&6
  10276. else
  10277. ac_check_lib_save_LIBS=$LIBS
  10278. LIBS="-lsvld $LIBS"
  10279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10280. /* end confdefs.h. */
  10281. /* Override any GCC internal prototype to avoid an error.
  10282. Use char because int might match the return type of a GCC
  10283. builtin and then its argument prototype would still apply. */
  10284. #ifdef __cplusplus
  10285. extern "C"
  10286. #endif
  10287. char dlopen ();
  10288. int
  10289. main ()
  10290. {
  10291. return dlopen ();
  10292. ;
  10293. return 0;
  10294. }
  10295. _ACEOF
  10296. if ac_fn_c_try_link "$LINENO"; then :
  10297. ac_cv_lib_svld_dlopen=yes
  10298. else
  10299. ac_cv_lib_svld_dlopen=no
  10300. fi
  10301. rm -f core conftest.err conftest.$ac_objext \
  10302. conftest$ac_exeext conftest.$ac_ext
  10303. LIBS=$ac_check_lib_save_LIBS
  10304. fi
  10305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10306. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10307. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  10308. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10309. else
  10310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10311. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10312. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  10313. $as_echo_n "(cached) " >&6
  10314. else
  10315. ac_check_lib_save_LIBS=$LIBS
  10316. LIBS="-ldld $LIBS"
  10317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10318. /* end confdefs.h. */
  10319. /* Override any GCC internal prototype to avoid an error.
  10320. Use char because int might match the return type of a GCC
  10321. builtin and then its argument prototype would still apply. */
  10322. #ifdef __cplusplus
  10323. extern "C"
  10324. #endif
  10325. char dld_link ();
  10326. int
  10327. main ()
  10328. {
  10329. return dld_link ();
  10330. ;
  10331. return 0;
  10332. }
  10333. _ACEOF
  10334. if ac_fn_c_try_link "$LINENO"; then :
  10335. ac_cv_lib_dld_dld_link=yes
  10336. else
  10337. ac_cv_lib_dld_dld_link=no
  10338. fi
  10339. rm -f core conftest.err conftest.$ac_objext \
  10340. conftest$ac_exeext conftest.$ac_ext
  10341. LIBS=$ac_check_lib_save_LIBS
  10342. fi
  10343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10344. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10345. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  10346. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10347. fi
  10348. fi
  10349. fi
  10350. fi
  10351. fi
  10352. fi
  10353. ;;
  10354. esac
  10355. if test "x$lt_cv_dlopen" != xno; then
  10356. enable_dlopen=yes
  10357. else
  10358. enable_dlopen=no
  10359. fi
  10360. case $lt_cv_dlopen in
  10361. dlopen)
  10362. save_CPPFLAGS="$CPPFLAGS"
  10363. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10364. save_LDFLAGS="$LDFLAGS"
  10365. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10366. save_LIBS="$LIBS"
  10367. LIBS="$lt_cv_dlopen_libs $LIBS"
  10368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10369. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10370. if test "${lt_cv_dlopen_self+set}" = set; then :
  10371. $as_echo_n "(cached) " >&6
  10372. else
  10373. if test "$cross_compiling" = yes; then :
  10374. lt_cv_dlopen_self=cross
  10375. else
  10376. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10377. lt_status=$lt_dlunknown
  10378. cat > conftest.$ac_ext <<_LT_EOF
  10379. #line 12025 "configure"
  10380. #include "confdefs.h"
  10381. #if HAVE_DLFCN_H
  10382. #include <dlfcn.h>
  10383. #endif
  10384. #include <stdio.h>
  10385. #ifdef RTLD_GLOBAL
  10386. # define LT_DLGLOBAL RTLD_GLOBAL
  10387. #else
  10388. # ifdef DL_GLOBAL
  10389. # define LT_DLGLOBAL DL_GLOBAL
  10390. # else
  10391. # define LT_DLGLOBAL 0
  10392. # endif
  10393. #endif
  10394. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10395. find out it does not work in some platform. */
  10396. #ifndef LT_DLLAZY_OR_NOW
  10397. # ifdef RTLD_LAZY
  10398. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10399. # else
  10400. # ifdef DL_LAZY
  10401. # define LT_DLLAZY_OR_NOW DL_LAZY
  10402. # else
  10403. # ifdef RTLD_NOW
  10404. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10405. # else
  10406. # ifdef DL_NOW
  10407. # define LT_DLLAZY_OR_NOW DL_NOW
  10408. # else
  10409. # define LT_DLLAZY_OR_NOW 0
  10410. # endif
  10411. # endif
  10412. # endif
  10413. # endif
  10414. #endif
  10415. /* When -fvisbility=hidden is used, assume the code has been annotated
  10416. correspondingly for the symbols needed. */
  10417. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10418. void fnord () __attribute__((visibility("default")));
  10419. #endif
  10420. void fnord () { int i=42; }
  10421. int main ()
  10422. {
  10423. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10424. int status = $lt_dlunknown;
  10425. if (self)
  10426. {
  10427. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10428. else
  10429. {
  10430. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10431. else puts (dlerror ());
  10432. }
  10433. /* dlclose (self); */
  10434. }
  10435. else
  10436. puts (dlerror ());
  10437. return status;
  10438. }
  10439. _LT_EOF
  10440. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10441. (eval $ac_link) 2>&5
  10442. ac_status=$?
  10443. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10444. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10445. (./conftest; exit; ) >&5 2>/dev/null
  10446. lt_status=$?
  10447. case x$lt_status in
  10448. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10449. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10450. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10451. esac
  10452. else :
  10453. # compilation failed
  10454. lt_cv_dlopen_self=no
  10455. fi
  10456. fi
  10457. rm -fr conftest*
  10458. fi
  10459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10460. $as_echo "$lt_cv_dlopen_self" >&6; }
  10461. if test "x$lt_cv_dlopen_self" = xyes; then
  10462. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10464. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10465. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  10466. $as_echo_n "(cached) " >&6
  10467. else
  10468. if test "$cross_compiling" = yes; then :
  10469. lt_cv_dlopen_self_static=cross
  10470. else
  10471. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10472. lt_status=$lt_dlunknown
  10473. cat > conftest.$ac_ext <<_LT_EOF
  10474. #line 12131 "configure"
  10475. #include "confdefs.h"
  10476. #if HAVE_DLFCN_H
  10477. #include <dlfcn.h>
  10478. #endif
  10479. #include <stdio.h>
  10480. #ifdef RTLD_GLOBAL
  10481. # define LT_DLGLOBAL RTLD_GLOBAL
  10482. #else
  10483. # ifdef DL_GLOBAL
  10484. # define LT_DLGLOBAL DL_GLOBAL
  10485. # else
  10486. # define LT_DLGLOBAL 0
  10487. # endif
  10488. #endif
  10489. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10490. find out it does not work in some platform. */
  10491. #ifndef LT_DLLAZY_OR_NOW
  10492. # ifdef RTLD_LAZY
  10493. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10494. # else
  10495. # ifdef DL_LAZY
  10496. # define LT_DLLAZY_OR_NOW DL_LAZY
  10497. # else
  10498. # ifdef RTLD_NOW
  10499. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10500. # else
  10501. # ifdef DL_NOW
  10502. # define LT_DLLAZY_OR_NOW DL_NOW
  10503. # else
  10504. # define LT_DLLAZY_OR_NOW 0
  10505. # endif
  10506. # endif
  10507. # endif
  10508. # endif
  10509. #endif
  10510. /* When -fvisbility=hidden is used, assume the code has been annotated
  10511. correspondingly for the symbols needed. */
  10512. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10513. void fnord () __attribute__((visibility("default")));
  10514. #endif
  10515. void fnord () { int i=42; }
  10516. int main ()
  10517. {
  10518. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10519. int status = $lt_dlunknown;
  10520. if (self)
  10521. {
  10522. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10523. else
  10524. {
  10525. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10526. else puts (dlerror ());
  10527. }
  10528. /* dlclose (self); */
  10529. }
  10530. else
  10531. puts (dlerror ());
  10532. return status;
  10533. }
  10534. _LT_EOF
  10535. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10536. (eval $ac_link) 2>&5
  10537. ac_status=$?
  10538. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10539. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10540. (./conftest; exit; ) >&5 2>/dev/null
  10541. lt_status=$?
  10542. case x$lt_status in
  10543. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10544. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10545. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10546. esac
  10547. else :
  10548. # compilation failed
  10549. lt_cv_dlopen_self_static=no
  10550. fi
  10551. fi
  10552. rm -fr conftest*
  10553. fi
  10554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10555. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10556. fi
  10557. CPPFLAGS="$save_CPPFLAGS"
  10558. LDFLAGS="$save_LDFLAGS"
  10559. LIBS="$save_LIBS"
  10560. ;;
  10561. esac
  10562. case $lt_cv_dlopen_self in
  10563. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10564. *) enable_dlopen_self=unknown ;;
  10565. esac
  10566. case $lt_cv_dlopen_self_static in
  10567. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10568. *) enable_dlopen_self_static=unknown ;;
  10569. esac
  10570. fi
  10571. striplib=
  10572. old_striplib=
  10573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10574. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10575. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10576. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10577. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10579. $as_echo "yes" >&6; }
  10580. else
  10581. # FIXME - insert some real tests, host_os isn't really good enough
  10582. case $host_os in
  10583. darwin*)
  10584. if test -n "$STRIP" ; then
  10585. striplib="$STRIP -x"
  10586. old_striplib="$STRIP -S"
  10587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10588. $as_echo "yes" >&6; }
  10589. else
  10590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10591. $as_echo "no" >&6; }
  10592. fi
  10593. ;;
  10594. *)
  10595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10596. $as_echo "no" >&6; }
  10597. ;;
  10598. esac
  10599. fi
  10600. # Report which library types will actually be built
  10601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10602. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10604. $as_echo "$can_build_shared" >&6; }
  10605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10606. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10607. test "$can_build_shared" = "no" && enable_shared=no
  10608. # On AIX, shared libraries and static libraries use the same namespace, and
  10609. # are all built from PIC.
  10610. case $host_os in
  10611. aix3*)
  10612. test "$enable_shared" = yes && enable_static=no
  10613. if test -n "$RANLIB"; then
  10614. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10615. postinstall_cmds='$RANLIB $lib'
  10616. fi
  10617. ;;
  10618. aix[4-9]*)
  10619. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10620. test "$enable_shared" = yes && enable_static=no
  10621. fi
  10622. ;;
  10623. esac
  10624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10625. $as_echo "$enable_shared" >&6; }
  10626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10627. $as_echo_n "checking whether to build static libraries... " >&6; }
  10628. # Make sure either enable_shared or enable_static is yes.
  10629. test "$enable_shared" = yes || enable_static=yes
  10630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10631. $as_echo "$enable_static" >&6; }
  10632. fi
  10633. ac_ext=c
  10634. ac_cpp='$CPP $CPPFLAGS'
  10635. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10636. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10637. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10638. CC="$lt_save_CC"
  10639. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10640. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10641. (test "X$CXX" != "Xg++"))) ; then
  10642. ac_ext=cpp
  10643. ac_cpp='$CXXCPP $CPPFLAGS'
  10644. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10645. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10646. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10648. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10649. if test -z "$CXXCPP"; then
  10650. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  10651. $as_echo_n "(cached) " >&6
  10652. else
  10653. # Double quotes because CXXCPP needs to be expanded
  10654. for CXXCPP in "$CXX -E" "/lib/cpp"
  10655. do
  10656. ac_preproc_ok=false
  10657. for ac_cxx_preproc_warn_flag in '' yes
  10658. do
  10659. # Use a header file that comes with gcc, so configuring glibc
  10660. # with a fresh cross-compiler works.
  10661. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10662. # <limits.h> exists even on freestanding compilers.
  10663. # On the NeXT, cc -E runs the code through the compiler's parser,
  10664. # not just through cpp. "Syntax error" is here to catch this case.
  10665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10666. /* end confdefs.h. */
  10667. #ifdef __STDC__
  10668. # include <limits.h>
  10669. #else
  10670. # include <assert.h>
  10671. #endif
  10672. Syntax error
  10673. _ACEOF
  10674. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10675. else
  10676. # Broken: fails on valid input.
  10677. continue
  10678. fi
  10679. rm -f conftest.err conftest.$ac_ext
  10680. # OK, works on sane cases. Now check whether nonexistent headers
  10681. # can be detected and how.
  10682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10683. /* end confdefs.h. */
  10684. #include <ac_nonexistent.h>
  10685. _ACEOF
  10686. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10687. # Broken: success on invalid input.
  10688. continue
  10689. else
  10690. # Passes both tests.
  10691. ac_preproc_ok=:
  10692. break
  10693. fi
  10694. rm -f conftest.err conftest.$ac_ext
  10695. done
  10696. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10697. rm -f conftest.err conftest.$ac_ext
  10698. if $ac_preproc_ok; then :
  10699. break
  10700. fi
  10701. done
  10702. ac_cv_prog_CXXCPP=$CXXCPP
  10703. fi
  10704. CXXCPP=$ac_cv_prog_CXXCPP
  10705. else
  10706. ac_cv_prog_CXXCPP=$CXXCPP
  10707. fi
  10708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10709. $as_echo "$CXXCPP" >&6; }
  10710. ac_preproc_ok=false
  10711. for ac_cxx_preproc_warn_flag in '' yes
  10712. do
  10713. # Use a header file that comes with gcc, so configuring glibc
  10714. # with a fresh cross-compiler works.
  10715. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10716. # <limits.h> exists even on freestanding compilers.
  10717. # On the NeXT, cc -E runs the code through the compiler's parser,
  10718. # not just through cpp. "Syntax error" is here to catch this case.
  10719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10720. /* end confdefs.h. */
  10721. #ifdef __STDC__
  10722. # include <limits.h>
  10723. #else
  10724. # include <assert.h>
  10725. #endif
  10726. Syntax error
  10727. _ACEOF
  10728. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10729. else
  10730. # Broken: fails on valid input.
  10731. continue
  10732. fi
  10733. rm -f conftest.err conftest.$ac_ext
  10734. # OK, works on sane cases. Now check whether nonexistent headers
  10735. # can be detected and how.
  10736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10737. /* end confdefs.h. */
  10738. #include <ac_nonexistent.h>
  10739. _ACEOF
  10740. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10741. # Broken: success on invalid input.
  10742. continue
  10743. else
  10744. # Passes both tests.
  10745. ac_preproc_ok=:
  10746. break
  10747. fi
  10748. rm -f conftest.err conftest.$ac_ext
  10749. done
  10750. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10751. rm -f conftest.err conftest.$ac_ext
  10752. if $ac_preproc_ok; then :
  10753. else
  10754. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10755. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10756. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  10757. See \`config.log' for more details." "$LINENO" 5; }
  10758. fi
  10759. ac_ext=c
  10760. ac_cpp='$CPP $CPPFLAGS'
  10761. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10762. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10763. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10764. else
  10765. _lt_caught_CXX_error=yes
  10766. fi
  10767. ac_ext=cpp
  10768. ac_cpp='$CXXCPP $CPPFLAGS'
  10769. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10770. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10771. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10772. archive_cmds_need_lc_CXX=no
  10773. allow_undefined_flag_CXX=
  10774. always_export_symbols_CXX=no
  10775. archive_expsym_cmds_CXX=
  10776. compiler_needs_object_CXX=no
  10777. export_dynamic_flag_spec_CXX=
  10778. hardcode_direct_CXX=no
  10779. hardcode_direct_absolute_CXX=no
  10780. hardcode_libdir_flag_spec_CXX=
  10781. hardcode_libdir_flag_spec_ld_CXX=
  10782. hardcode_libdir_separator_CXX=
  10783. hardcode_minus_L_CXX=no
  10784. hardcode_shlibpath_var_CXX=unsupported
  10785. hardcode_automatic_CXX=no
  10786. inherit_rpath_CXX=no
  10787. module_cmds_CXX=
  10788. module_expsym_cmds_CXX=
  10789. link_all_deplibs_CXX=unknown
  10790. old_archive_cmds_CXX=$old_archive_cmds
  10791. reload_flag_CXX=$reload_flag
  10792. reload_cmds_CXX=$reload_cmds
  10793. no_undefined_flag_CXX=
  10794. whole_archive_flag_spec_CXX=
  10795. enable_shared_with_static_runtimes_CXX=no
  10796. # Source file extension for C++ test sources.
  10797. ac_ext=cpp
  10798. # Object file extension for compiled C++ test sources.
  10799. objext=o
  10800. objext_CXX=$objext
  10801. # No sense in running all these tests if we already determined that
  10802. # the CXX compiler isn't working. Some variables (like enable_shared)
  10803. # are currently assumed to apply to all compilers on this platform,
  10804. # and will be corrupted by setting them based on a non-working compiler.
  10805. if test "$_lt_caught_CXX_error" != yes; then
  10806. # Code to be used in simple compile tests
  10807. lt_simple_compile_test_code="int some_variable = 0;"
  10808. # Code to be used in simple link tests
  10809. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10810. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10811. # If no C compiler was specified, use CC.
  10812. LTCC=${LTCC-"$CC"}
  10813. # If no C compiler flags were specified, use CFLAGS.
  10814. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10815. # Allow CC to be a program name with arguments.
  10816. compiler=$CC
  10817. # save warnings/boilerplate of simple test code
  10818. ac_outfile=conftest.$ac_objext
  10819. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10820. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10821. _lt_compiler_boilerplate=`cat conftest.err`
  10822. $RM conftest*
  10823. ac_outfile=conftest.$ac_objext
  10824. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10825. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10826. _lt_linker_boilerplate=`cat conftest.err`
  10827. $RM -r conftest*
  10828. # Allow CC to be a program name with arguments.
  10829. lt_save_CC=$CC
  10830. lt_save_LD=$LD
  10831. lt_save_GCC=$GCC
  10832. GCC=$GXX
  10833. lt_save_with_gnu_ld=$with_gnu_ld
  10834. lt_save_path_LD=$lt_cv_path_LD
  10835. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10836. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10837. else
  10838. $as_unset lt_cv_prog_gnu_ld
  10839. fi
  10840. if test -n "${lt_cv_path_LDCXX+set}"; then
  10841. lt_cv_path_LD=$lt_cv_path_LDCXX
  10842. else
  10843. $as_unset lt_cv_path_LD
  10844. fi
  10845. test -z "${LDCXX+set}" || LD=$LDCXX
  10846. CC=${CXX-"c++"}
  10847. compiler=$CC
  10848. compiler_CXX=$CC
  10849. for cc_temp in $compiler""; do
  10850. case $cc_temp in
  10851. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10852. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10853. \-*) ;;
  10854. *) break;;
  10855. esac
  10856. done
  10857. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10858. if test -n "$compiler"; then
  10859. # We don't want -fno-exception when compiling C++ code, so set the
  10860. # no_builtin_flag separately
  10861. if test "$GXX" = yes; then
  10862. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10863. else
  10864. lt_prog_compiler_no_builtin_flag_CXX=
  10865. fi
  10866. if test "$GXX" = yes; then
  10867. # Set up default GNU C++ configuration
  10868. # Check whether --with-gnu-ld was given.
  10869. if test "${with_gnu_ld+set}" = set; then :
  10870. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10871. else
  10872. with_gnu_ld=no
  10873. fi
  10874. ac_prog=ld
  10875. if test "$GCC" = yes; then
  10876. # Check if gcc -print-prog-name=ld gives a path.
  10877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10878. $as_echo_n "checking for ld used by $CC... " >&6; }
  10879. case $host in
  10880. *-*-mingw*)
  10881. # gcc leaves a trailing carriage return which upsets mingw
  10882. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10883. *)
  10884. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10885. esac
  10886. case $ac_prog in
  10887. # Accept absolute paths.
  10888. [\\/]* | ?:[\\/]*)
  10889. re_direlt='/[^/][^/]*/\.\./'
  10890. # Canonicalize the pathname of ld
  10891. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10892. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10893. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10894. done
  10895. test -z "$LD" && LD="$ac_prog"
  10896. ;;
  10897. "")
  10898. # If it fails, then pretend we aren't using GCC.
  10899. ac_prog=ld
  10900. ;;
  10901. *)
  10902. # If it is relative, then search for the first ld in PATH.
  10903. with_gnu_ld=unknown
  10904. ;;
  10905. esac
  10906. elif test "$with_gnu_ld" = yes; then
  10907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10908. $as_echo_n "checking for GNU ld... " >&6; }
  10909. else
  10910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10911. $as_echo_n "checking for non-GNU ld... " >&6; }
  10912. fi
  10913. if test "${lt_cv_path_LD+set}" = set; then :
  10914. $as_echo_n "(cached) " >&6
  10915. else
  10916. if test -z "$LD"; then
  10917. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10918. for ac_dir in $PATH; do
  10919. IFS="$lt_save_ifs"
  10920. test -z "$ac_dir" && ac_dir=.
  10921. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10922. lt_cv_path_LD="$ac_dir/$ac_prog"
  10923. # Check to see if the program is GNU ld. I'd rather use --version,
  10924. # but apparently some variants of GNU ld only accept -v.
  10925. # Break only if it was the GNU/non-GNU ld that we prefer.
  10926. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10927. *GNU* | *'with BFD'*)
  10928. test "$with_gnu_ld" != no && break
  10929. ;;
  10930. *)
  10931. test "$with_gnu_ld" != yes && break
  10932. ;;
  10933. esac
  10934. fi
  10935. done
  10936. IFS="$lt_save_ifs"
  10937. else
  10938. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10939. fi
  10940. fi
  10941. LD="$lt_cv_path_LD"
  10942. if test -n "$LD"; then
  10943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10944. $as_echo "$LD" >&6; }
  10945. else
  10946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10947. $as_echo "no" >&6; }
  10948. fi
  10949. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10951. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10952. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10953. $as_echo_n "(cached) " >&6
  10954. else
  10955. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10956. case `$LD -v 2>&1 </dev/null` in
  10957. *GNU* | *'with BFD'*)
  10958. lt_cv_prog_gnu_ld=yes
  10959. ;;
  10960. *)
  10961. lt_cv_prog_gnu_ld=no
  10962. ;;
  10963. esac
  10964. fi
  10965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10966. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10967. with_gnu_ld=$lt_cv_prog_gnu_ld
  10968. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10969. # archiving commands below assume that GNU ld is being used.
  10970. if test "$with_gnu_ld" = yes; then
  10971. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10972. 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'
  10973. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10974. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10975. # If archive_cmds runs LD, not CC, wlarc should be empty
  10976. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10977. # investigate it a little bit more. (MM)
  10978. wlarc='${wl}'
  10979. # ancient GNU ld didn't support --whole-archive et. al.
  10980. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10981. $GREP 'no-whole-archive' > /dev/null; then
  10982. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10983. else
  10984. whole_archive_flag_spec_CXX=
  10985. fi
  10986. else
  10987. with_gnu_ld=no
  10988. wlarc=
  10989. # A generic and very simple default shared library creation
  10990. # command for GNU C++ for the case where it uses the native
  10991. # linker, instead of GNU ld. If possible, this setting should
  10992. # overridden to take advantage of the native linker features on
  10993. # the platform it is being used on.
  10994. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10995. fi
  10996. # Commands to make compiler produce verbose output that lists
  10997. # what "hidden" libraries, object files and flags are used when
  10998. # linking a shared library.
  10999. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11000. else
  11001. GXX=no
  11002. with_gnu_ld=no
  11003. wlarc=
  11004. fi
  11005. # PORTME: fill in a description of your system's C++ link characteristics
  11006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11007. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11008. ld_shlibs_CXX=yes
  11009. case $host_os in
  11010. aix3*)
  11011. # FIXME: insert proper C++ library support
  11012. ld_shlibs_CXX=no
  11013. ;;
  11014. aix[4-9]*)
  11015. if test "$host_cpu" = ia64; then
  11016. # On IA64, the linker does run time linking by default, so we don't
  11017. # have to do anything special.
  11018. aix_use_runtimelinking=no
  11019. exp_sym_flag='-Bexport'
  11020. no_entry_flag=""
  11021. else
  11022. aix_use_runtimelinking=no
  11023. # Test if we are trying to use run time linking or normal
  11024. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11025. # need to do runtime linking.
  11026. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11027. for ld_flag in $LDFLAGS; do
  11028. case $ld_flag in
  11029. *-brtl*)
  11030. aix_use_runtimelinking=yes
  11031. break
  11032. ;;
  11033. esac
  11034. done
  11035. ;;
  11036. esac
  11037. exp_sym_flag='-bexport'
  11038. no_entry_flag='-bnoentry'
  11039. fi
  11040. # When large executables or shared objects are built, AIX ld can
  11041. # have problems creating the table of contents. If linking a library
  11042. # or program results in "error TOC overflow" add -mminimal-toc to
  11043. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11044. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11045. archive_cmds_CXX=''
  11046. hardcode_direct_CXX=yes
  11047. hardcode_direct_absolute_CXX=yes
  11048. hardcode_libdir_separator_CXX=':'
  11049. link_all_deplibs_CXX=yes
  11050. file_list_spec_CXX='${wl}-f,'
  11051. if test "$GXX" = yes; then
  11052. case $host_os in aix4.[012]|aix4.[012].*)
  11053. # We only want to do this on AIX 4.2 and lower, the check
  11054. # below for broken collect2 doesn't work under 4.3+
  11055. collect2name=`${CC} -print-prog-name=collect2`
  11056. if test -f "$collect2name" &&
  11057. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11058. then
  11059. # We have reworked collect2
  11060. :
  11061. else
  11062. # We have old collect2
  11063. hardcode_direct_CXX=unsupported
  11064. # It fails to find uninstalled libraries when the uninstalled
  11065. # path is not listed in the libpath. Setting hardcode_minus_L
  11066. # to unsupported forces relinking
  11067. hardcode_minus_L_CXX=yes
  11068. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11069. hardcode_libdir_separator_CXX=
  11070. fi
  11071. esac
  11072. shared_flag='-shared'
  11073. if test "$aix_use_runtimelinking" = yes; then
  11074. shared_flag="$shared_flag "'${wl}-G'
  11075. fi
  11076. else
  11077. # not using gcc
  11078. if test "$host_cpu" = ia64; then
  11079. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11080. # chokes on -Wl,-G. The following line is correct:
  11081. shared_flag='-G'
  11082. else
  11083. if test "$aix_use_runtimelinking" = yes; then
  11084. shared_flag='${wl}-G'
  11085. else
  11086. shared_flag='${wl}-bM:SRE'
  11087. fi
  11088. fi
  11089. fi
  11090. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11091. # It seems that -bexpall does not export symbols beginning with
  11092. # underscore (_), so it is better to generate a list of symbols to
  11093. # export.
  11094. always_export_symbols_CXX=yes
  11095. if test "$aix_use_runtimelinking" = yes; then
  11096. # Warning - without using the other runtime loading flags (-brtl),
  11097. # -berok will link without error, but may produce a broken library.
  11098. allow_undefined_flag_CXX='-berok'
  11099. # Determine the default libpath from the value encoded in an empty
  11100. # executable.
  11101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11102. /* end confdefs.h. */
  11103. int
  11104. main ()
  11105. {
  11106. ;
  11107. return 0;
  11108. }
  11109. _ACEOF
  11110. if ac_fn_cxx_try_link "$LINENO"; then :
  11111. lt_aix_libpath_sed='
  11112. /Import File Strings/,/^$/ {
  11113. /^0/ {
  11114. s/^0 *\(.*\)$/\1/
  11115. p
  11116. }
  11117. }'
  11118. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11119. # Check for a 64-bit object if we didn't find anything.
  11120. if test -z "$aix_libpath"; then
  11121. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11122. fi
  11123. fi
  11124. rm -f core conftest.err conftest.$ac_objext \
  11125. conftest$ac_exeext conftest.$ac_ext
  11126. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11127. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11128. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11129. else
  11130. if test "$host_cpu" = ia64; then
  11131. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11132. allow_undefined_flag_CXX="-z nodefs"
  11133. 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"
  11134. else
  11135. # Determine the default libpath from the value encoded in an
  11136. # empty executable.
  11137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11138. /* end confdefs.h. */
  11139. int
  11140. main ()
  11141. {
  11142. ;
  11143. return 0;
  11144. }
  11145. _ACEOF
  11146. if ac_fn_cxx_try_link "$LINENO"; then :
  11147. lt_aix_libpath_sed='
  11148. /Import File Strings/,/^$/ {
  11149. /^0/ {
  11150. s/^0 *\(.*\)$/\1/
  11151. p
  11152. }
  11153. }'
  11154. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11155. # Check for a 64-bit object if we didn't find anything.
  11156. if test -z "$aix_libpath"; then
  11157. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11158. fi
  11159. fi
  11160. rm -f core conftest.err conftest.$ac_objext \
  11161. conftest$ac_exeext conftest.$ac_ext
  11162. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11163. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11164. # Warning - without using the other run time loading flags,
  11165. # -berok will link without error, but may produce a broken library.
  11166. no_undefined_flag_CXX=' ${wl}-bernotok'
  11167. allow_undefined_flag_CXX=' ${wl}-berok'
  11168. if test "$with_gnu_ld" = yes; then
  11169. # We only use this code for GNU lds that support --whole-archive.
  11170. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11171. else
  11172. # Exported symbols can be pulled into shared objects from archives
  11173. whole_archive_flag_spec_CXX='$convenience'
  11174. fi
  11175. archive_cmds_need_lc_CXX=yes
  11176. # This is similar to how AIX traditionally builds its shared
  11177. # libraries.
  11178. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11179. fi
  11180. fi
  11181. ;;
  11182. beos*)
  11183. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11184. allow_undefined_flag_CXX=unsupported
  11185. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11186. # support --undefined. This deserves some investigation. FIXME
  11187. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11188. else
  11189. ld_shlibs_CXX=no
  11190. fi
  11191. ;;
  11192. chorus*)
  11193. case $cc_basename in
  11194. *)
  11195. # FIXME: insert proper C++ library support
  11196. ld_shlibs_CXX=no
  11197. ;;
  11198. esac
  11199. ;;
  11200. cygwin* | mingw* | pw32* | cegcc*)
  11201. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11202. # as there is no search path for DLLs.
  11203. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11204. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11205. allow_undefined_flag_CXX=unsupported
  11206. always_export_symbols_CXX=no
  11207. enable_shared_with_static_runtimes_CXX=yes
  11208. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11209. 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'
  11210. # If the export-symbols file already is a .def file (1st line
  11211. # is EXPORTS), use it as is; otherwise, prepend...
  11212. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11213. cp $export_symbols $output_objdir/$soname.def;
  11214. else
  11215. echo EXPORTS > $output_objdir/$soname.def;
  11216. cat $export_symbols >> $output_objdir/$soname.def;
  11217. fi~
  11218. $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'
  11219. else
  11220. ld_shlibs_CXX=no
  11221. fi
  11222. ;;
  11223. darwin* | rhapsody*)
  11224. archive_cmds_need_lc_CXX=no
  11225. hardcode_direct_CXX=no
  11226. hardcode_automatic_CXX=yes
  11227. hardcode_shlibpath_var_CXX=unsupported
  11228. if test "$lt_cv_ld_force_load" = "yes"; then
  11229. 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\"`'
  11230. else
  11231. whole_archive_flag_spec_CXX=''
  11232. fi
  11233. link_all_deplibs_CXX=yes
  11234. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11235. case $cc_basename in
  11236. ifort*) _lt_dar_can_shared=yes ;;
  11237. *) _lt_dar_can_shared=$GCC ;;
  11238. esac
  11239. if test "$_lt_dar_can_shared" = "yes"; then
  11240. output_verbose_link_cmd=func_echo_all
  11241. 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}"
  11242. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11243. 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}"
  11244. 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}"
  11245. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11246. 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}"
  11247. 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}"
  11248. fi
  11249. else
  11250. ld_shlibs_CXX=no
  11251. fi
  11252. ;;
  11253. dgux*)
  11254. case $cc_basename in
  11255. ec++*)
  11256. # FIXME: insert proper C++ library support
  11257. ld_shlibs_CXX=no
  11258. ;;
  11259. ghcx*)
  11260. # Green Hills C++ Compiler
  11261. # FIXME: insert proper C++ library support
  11262. ld_shlibs_CXX=no
  11263. ;;
  11264. *)
  11265. # FIXME: insert proper C++ library support
  11266. ld_shlibs_CXX=no
  11267. ;;
  11268. esac
  11269. ;;
  11270. freebsd2.*)
  11271. # C++ shared libraries reported to be fairly broken before
  11272. # switch to ELF
  11273. ld_shlibs_CXX=no
  11274. ;;
  11275. freebsd-elf*)
  11276. archive_cmds_need_lc_CXX=no
  11277. ;;
  11278. freebsd* | dragonfly*)
  11279. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11280. # conventions
  11281. ld_shlibs_CXX=yes
  11282. ;;
  11283. gnu*)
  11284. ;;
  11285. haiku*)
  11286. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11287. link_all_deplibs_CXX=yes
  11288. ;;
  11289. hpux9*)
  11290. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11291. hardcode_libdir_separator_CXX=:
  11292. export_dynamic_flag_spec_CXX='${wl}-E'
  11293. hardcode_direct_CXX=yes
  11294. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11295. # but as the default
  11296. # location of the library.
  11297. case $cc_basename in
  11298. CC*)
  11299. # FIXME: insert proper C++ library support
  11300. ld_shlibs_CXX=no
  11301. ;;
  11302. aCC*)
  11303. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11304. # Commands to make compiler produce verbose output that lists
  11305. # what "hidden" libraries, object files and flags are used when
  11306. # linking a shared library.
  11307. #
  11308. # There doesn't appear to be a way to prevent this compiler from
  11309. # explicitly linking system object files so we need to strip them
  11310. # from the output so that they don't get included in the library
  11311. # dependencies.
  11312. 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"'
  11313. ;;
  11314. *)
  11315. if test "$GXX" = yes; then
  11316. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11317. else
  11318. # FIXME: insert proper C++ library support
  11319. ld_shlibs_CXX=no
  11320. fi
  11321. ;;
  11322. esac
  11323. ;;
  11324. hpux10*|hpux11*)
  11325. if test $with_gnu_ld = no; then
  11326. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11327. hardcode_libdir_separator_CXX=:
  11328. case $host_cpu in
  11329. hppa*64*|ia64*)
  11330. ;;
  11331. *)
  11332. export_dynamic_flag_spec_CXX='${wl}-E'
  11333. ;;
  11334. esac
  11335. fi
  11336. case $host_cpu in
  11337. hppa*64*|ia64*)
  11338. hardcode_direct_CXX=no
  11339. hardcode_shlibpath_var_CXX=no
  11340. ;;
  11341. *)
  11342. hardcode_direct_CXX=yes
  11343. hardcode_direct_absolute_CXX=yes
  11344. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11345. # but as the default
  11346. # location of the library.
  11347. ;;
  11348. esac
  11349. case $cc_basename in
  11350. CC*)
  11351. # FIXME: insert proper C++ library support
  11352. ld_shlibs_CXX=no
  11353. ;;
  11354. aCC*)
  11355. case $host_cpu in
  11356. hppa*64*)
  11357. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11358. ;;
  11359. ia64*)
  11360. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11361. ;;
  11362. *)
  11363. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11364. ;;
  11365. esac
  11366. # Commands to make compiler produce verbose output that lists
  11367. # what "hidden" libraries, object files and flags are used when
  11368. # linking a shared library.
  11369. #
  11370. # There doesn't appear to be a way to prevent this compiler from
  11371. # explicitly linking system object files so we need to strip them
  11372. # from the output so that they don't get included in the library
  11373. # dependencies.
  11374. 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"'
  11375. ;;
  11376. *)
  11377. if test "$GXX" = yes; then
  11378. if test $with_gnu_ld = no; then
  11379. case $host_cpu in
  11380. hppa*64*)
  11381. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11382. ;;
  11383. ia64*)
  11384. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11385. ;;
  11386. *)
  11387. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11388. ;;
  11389. esac
  11390. fi
  11391. else
  11392. # FIXME: insert proper C++ library support
  11393. ld_shlibs_CXX=no
  11394. fi
  11395. ;;
  11396. esac
  11397. ;;
  11398. interix[3-9]*)
  11399. hardcode_direct_CXX=no
  11400. hardcode_shlibpath_var_CXX=no
  11401. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11402. export_dynamic_flag_spec_CXX='${wl}-E'
  11403. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11404. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11405. # default) and relocated if they conflict, which is a slow very memory
  11406. # consuming and fragmenting process. To avoid this, we pick a random,
  11407. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11408. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11409. 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'
  11410. 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'
  11411. ;;
  11412. irix5* | irix6*)
  11413. case $cc_basename in
  11414. CC*)
  11415. # SGI C++
  11416. 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'
  11417. # Archives containing C++ object files must be created using
  11418. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11419. # necessary to make sure instantiated templates are included
  11420. # in the archive.
  11421. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11422. ;;
  11423. *)
  11424. if test "$GXX" = yes; then
  11425. if test "$with_gnu_ld" = no; then
  11426. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11427. else
  11428. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11429. fi
  11430. fi
  11431. link_all_deplibs_CXX=yes
  11432. ;;
  11433. esac
  11434. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11435. hardcode_libdir_separator_CXX=:
  11436. inherit_rpath_CXX=yes
  11437. ;;
  11438. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11439. case $cc_basename in
  11440. KCC*)
  11441. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11442. # KCC will only create a shared library if the output file
  11443. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11444. # to its proper name (with version) after linking.
  11445. 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'
  11446. 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'
  11447. # Commands to make compiler produce verbose output that lists
  11448. # what "hidden" libraries, object files and flags are used when
  11449. # linking a shared library.
  11450. #
  11451. # There doesn't appear to be a way to prevent this compiler from
  11452. # explicitly linking system object files so we need to strip them
  11453. # from the output so that they don't get included in the library
  11454. # dependencies.
  11455. 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"'
  11456. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11457. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11458. # Archives containing C++ object files must be created using
  11459. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11460. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11461. ;;
  11462. icpc* | ecpc* )
  11463. # Intel C++
  11464. with_gnu_ld=yes
  11465. # version 8.0 and above of icpc choke on multiply defined symbols
  11466. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11467. # earlier do not add the objects themselves.
  11468. case `$CC -V 2>&1` in
  11469. *"Version 7."*)
  11470. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11471. 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'
  11472. ;;
  11473. *) # Version 8.0 or newer
  11474. tmp_idyn=
  11475. case $host_cpu in
  11476. ia64*) tmp_idyn=' -i_dynamic';;
  11477. esac
  11478. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11479. 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'
  11480. ;;
  11481. esac
  11482. archive_cmds_need_lc_CXX=no
  11483. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11484. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11485. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11486. ;;
  11487. pgCC* | pgcpp*)
  11488. # Portland Group C++ compiler
  11489. case `$CC -V` in
  11490. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11491. prelink_cmds_CXX='tpldir=Template.dir~
  11492. rm -rf $tpldir~
  11493. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11494. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11495. old_archive_cmds_CXX='tpldir=Template.dir~
  11496. rm -rf $tpldir~
  11497. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11498. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11499. $RANLIB $oldlib'
  11500. archive_cmds_CXX='tpldir=Template.dir~
  11501. rm -rf $tpldir~
  11502. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11503. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11504. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11505. rm -rf $tpldir~
  11506. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11507. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11508. ;;
  11509. *) # Version 6 and above use weak symbols
  11510. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11511. 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'
  11512. ;;
  11513. esac
  11514. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11515. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11516. 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'
  11517. ;;
  11518. cxx*)
  11519. # Compaq C++
  11520. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11521. 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'
  11522. runpath_var=LD_RUN_PATH
  11523. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11524. hardcode_libdir_separator_CXX=:
  11525. # Commands to make compiler produce verbose output that lists
  11526. # what "hidden" libraries, object files and flags are used when
  11527. # linking a shared library.
  11528. #
  11529. # There doesn't appear to be a way to prevent this compiler from
  11530. # explicitly linking system object files so we need to strip them
  11531. # from the output so that they don't get included in the library
  11532. # dependencies.
  11533. 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'
  11534. ;;
  11535. xl* | mpixl* | bgxl*)
  11536. # IBM XL 8.0 on PPC, with GNU ld
  11537. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11538. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11539. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11540. if test "x$supports_anon_versioning" = xyes; then
  11541. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11542. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11543. echo "local: *; };" >> $output_objdir/$libname.ver~
  11544. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11545. fi
  11546. ;;
  11547. *)
  11548. case `$CC -V 2>&1 | sed 5q` in
  11549. *Sun\ C*)
  11550. # Sun C++ 5.9
  11551. no_undefined_flag_CXX=' -zdefs'
  11552. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11553. 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'
  11554. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11555. 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'
  11556. compiler_needs_object_CXX=yes
  11557. # Not sure whether something based on
  11558. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11559. # would be better.
  11560. output_verbose_link_cmd='func_echo_all'
  11561. # Archives containing C++ object files must be created using
  11562. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11563. # necessary to make sure instantiated templates are included
  11564. # in the archive.
  11565. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11566. ;;
  11567. esac
  11568. ;;
  11569. esac
  11570. ;;
  11571. lynxos*)
  11572. # FIXME: insert proper C++ library support
  11573. ld_shlibs_CXX=no
  11574. ;;
  11575. m88k*)
  11576. # FIXME: insert proper C++ library support
  11577. ld_shlibs_CXX=no
  11578. ;;
  11579. mvs*)
  11580. case $cc_basename in
  11581. cxx*)
  11582. # FIXME: insert proper C++ library support
  11583. ld_shlibs_CXX=no
  11584. ;;
  11585. *)
  11586. # FIXME: insert proper C++ library support
  11587. ld_shlibs_CXX=no
  11588. ;;
  11589. esac
  11590. ;;
  11591. netbsd*)
  11592. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11593. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11594. wlarc=
  11595. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11596. hardcode_direct_CXX=yes
  11597. hardcode_shlibpath_var_CXX=no
  11598. fi
  11599. # Workaround some broken pre-1.5 toolchains
  11600. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11601. ;;
  11602. *nto* | *qnx*)
  11603. ld_shlibs_CXX=yes
  11604. ;;
  11605. openbsd2*)
  11606. # C++ shared libraries are fairly broken
  11607. ld_shlibs_CXX=no
  11608. ;;
  11609. openbsd*)
  11610. if test -f /usr/libexec/ld.so; then
  11611. hardcode_direct_CXX=yes
  11612. hardcode_shlibpath_var_CXX=no
  11613. hardcode_direct_absolute_CXX=yes
  11614. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11615. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11616. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11617. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11618. export_dynamic_flag_spec_CXX='${wl}-E'
  11619. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11620. fi
  11621. output_verbose_link_cmd=func_echo_all
  11622. else
  11623. ld_shlibs_CXX=no
  11624. fi
  11625. ;;
  11626. osf3* | osf4* | osf5*)
  11627. case $cc_basename in
  11628. KCC*)
  11629. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11630. # KCC will only create a shared library if the output file
  11631. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11632. # to its proper name (with version) after linking.
  11633. 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'
  11634. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11635. hardcode_libdir_separator_CXX=:
  11636. # Archives containing C++ object files must be created using
  11637. # the KAI C++ compiler.
  11638. case $host in
  11639. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11640. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11641. esac
  11642. ;;
  11643. RCC*)
  11644. # Rational C++ 2.4.1
  11645. # FIXME: insert proper C++ library support
  11646. ld_shlibs_CXX=no
  11647. ;;
  11648. cxx*)
  11649. case $host in
  11650. osf3*)
  11651. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11652. 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'
  11653. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11654. ;;
  11655. *)
  11656. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11657. 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'
  11658. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11659. echo "-hidden">> $lib.exp~
  11660. $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~
  11661. $RM $lib.exp'
  11662. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11663. ;;
  11664. esac
  11665. hardcode_libdir_separator_CXX=:
  11666. # Commands to make compiler produce verbose output that lists
  11667. # what "hidden" libraries, object files and flags are used when
  11668. # linking a shared library.
  11669. #
  11670. # There doesn't appear to be a way to prevent this compiler from
  11671. # explicitly linking system object files so we need to strip them
  11672. # from the output so that they don't get included in the library
  11673. # dependencies.
  11674. 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"'
  11675. ;;
  11676. *)
  11677. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11678. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11679. case $host in
  11680. osf3*)
  11681. 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'
  11682. ;;
  11683. *)
  11684. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11685. ;;
  11686. esac
  11687. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11688. hardcode_libdir_separator_CXX=:
  11689. # Commands to make compiler produce verbose output that lists
  11690. # what "hidden" libraries, object files and flags are used when
  11691. # linking a shared library.
  11692. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11693. else
  11694. # FIXME: insert proper C++ library support
  11695. ld_shlibs_CXX=no
  11696. fi
  11697. ;;
  11698. esac
  11699. ;;
  11700. psos*)
  11701. # FIXME: insert proper C++ library support
  11702. ld_shlibs_CXX=no
  11703. ;;
  11704. sunos4*)
  11705. case $cc_basename in
  11706. CC*)
  11707. # Sun C++ 4.x
  11708. # FIXME: insert proper C++ library support
  11709. ld_shlibs_CXX=no
  11710. ;;
  11711. lcc*)
  11712. # Lucid
  11713. # FIXME: insert proper C++ library support
  11714. ld_shlibs_CXX=no
  11715. ;;
  11716. *)
  11717. # FIXME: insert proper C++ library support
  11718. ld_shlibs_CXX=no
  11719. ;;
  11720. esac
  11721. ;;
  11722. solaris*)
  11723. case $cc_basename in
  11724. CC*)
  11725. # Sun C++ 4.2, 5.x and Centerline C++
  11726. archive_cmds_need_lc_CXX=yes
  11727. no_undefined_flag_CXX=' -zdefs'
  11728. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11729. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11730. $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'
  11731. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11732. hardcode_shlibpath_var_CXX=no
  11733. case $host_os in
  11734. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11735. *)
  11736. # The compiler driver will combine and reorder linker options,
  11737. # but understands `-z linker_flag'.
  11738. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11739. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11740. ;;
  11741. esac
  11742. link_all_deplibs_CXX=yes
  11743. output_verbose_link_cmd='func_echo_all'
  11744. # Archives containing C++ object files must be created using
  11745. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11746. # necessary to make sure instantiated templates are included
  11747. # in the archive.
  11748. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11749. ;;
  11750. gcx*)
  11751. # Green Hills C++ Compiler
  11752. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11753. # The C++ compiler must be used to create the archive.
  11754. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11755. ;;
  11756. *)
  11757. # GNU C++ compiler with Solaris linker
  11758. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11759. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11760. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11761. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11762. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11763. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11764. # Commands to make compiler produce verbose output that lists
  11765. # what "hidden" libraries, object files and flags are used when
  11766. # linking a shared library.
  11767. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11768. else
  11769. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11770. # platform.
  11771. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11772. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11773. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11774. # Commands to make compiler produce verbose output that lists
  11775. # what "hidden" libraries, object files and flags are used when
  11776. # linking a shared library.
  11777. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11778. fi
  11779. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11780. case $host_os in
  11781. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11782. *)
  11783. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11784. ;;
  11785. esac
  11786. fi
  11787. ;;
  11788. esac
  11789. ;;
  11790. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11791. no_undefined_flag_CXX='${wl}-z,text'
  11792. archive_cmds_need_lc_CXX=no
  11793. hardcode_shlibpath_var_CXX=no
  11794. runpath_var='LD_RUN_PATH'
  11795. case $cc_basename in
  11796. CC*)
  11797. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11798. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11799. ;;
  11800. *)
  11801. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11802. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11803. ;;
  11804. esac
  11805. ;;
  11806. sysv5* | sco3.2v5* | sco5v6*)
  11807. # Note: We can NOT use -z defs as we might desire, because we do not
  11808. # link with -lc, and that would cause any symbols used from libc to
  11809. # always be unresolved, which means just about no library would
  11810. # ever link correctly. If we're not using GNU ld we use -z text
  11811. # though, which does catch some bad symbols but isn't as heavy-handed
  11812. # as -z defs.
  11813. no_undefined_flag_CXX='${wl}-z,text'
  11814. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11815. archive_cmds_need_lc_CXX=no
  11816. hardcode_shlibpath_var_CXX=no
  11817. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11818. hardcode_libdir_separator_CXX=':'
  11819. link_all_deplibs_CXX=yes
  11820. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11821. runpath_var='LD_RUN_PATH'
  11822. case $cc_basename in
  11823. CC*)
  11824. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11825. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11826. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11827. '"$old_archive_cmds_CXX"
  11828. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11829. '"$reload_cmds_CXX"
  11830. ;;
  11831. *)
  11832. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11833. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11834. ;;
  11835. esac
  11836. ;;
  11837. tandem*)
  11838. case $cc_basename in
  11839. NCC*)
  11840. # NonStop-UX NCC 3.20
  11841. # FIXME: insert proper C++ library support
  11842. ld_shlibs_CXX=no
  11843. ;;
  11844. *)
  11845. # FIXME: insert proper C++ library support
  11846. ld_shlibs_CXX=no
  11847. ;;
  11848. esac
  11849. ;;
  11850. vxworks*)
  11851. # FIXME: insert proper C++ library support
  11852. ld_shlibs_CXX=no
  11853. ;;
  11854. *)
  11855. # FIXME: insert proper C++ library support
  11856. ld_shlibs_CXX=no
  11857. ;;
  11858. esac
  11859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11860. $as_echo "$ld_shlibs_CXX" >&6; }
  11861. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11862. GCC_CXX="$GXX"
  11863. LD_CXX="$LD"
  11864. ## CAVEAT EMPTOR:
  11865. ## There is no encapsulation within the following macros, do not change
  11866. ## the running order or otherwise move them around unless you know exactly
  11867. ## what you are doing...
  11868. # Dependencies to place before and after the object being linked:
  11869. predep_objects_CXX=
  11870. postdep_objects_CXX=
  11871. predeps_CXX=
  11872. postdeps_CXX=
  11873. compiler_lib_search_path_CXX=
  11874. cat > conftest.$ac_ext <<_LT_EOF
  11875. class Foo
  11876. {
  11877. public:
  11878. Foo (void) { a = 0; }
  11879. private:
  11880. int a;
  11881. };
  11882. _LT_EOF
  11883. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11884. (eval $ac_compile) 2>&5
  11885. ac_status=$?
  11886. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11887. test $ac_status = 0; }; then
  11888. # Parse the compiler output and extract the necessary
  11889. # objects, libraries and library flags.
  11890. # Sentinel used to keep track of whether or not we are before
  11891. # the conftest object file.
  11892. pre_test_object_deps_done=no
  11893. for p in `eval "$output_verbose_link_cmd"`; do
  11894. case $p in
  11895. -L* | -R* | -l*)
  11896. # Some compilers place space between "-{L,R}" and the path.
  11897. # Remove the space.
  11898. if test $p = "-L" ||
  11899. test $p = "-R"; then
  11900. prev=$p
  11901. continue
  11902. else
  11903. prev=
  11904. fi
  11905. if test "$pre_test_object_deps_done" = no; then
  11906. case $p in
  11907. -L* | -R*)
  11908. # Internal compiler library paths should come after those
  11909. # provided the user. The postdeps already come after the
  11910. # user supplied libs so there is no need to process them.
  11911. if test -z "$compiler_lib_search_path_CXX"; then
  11912. compiler_lib_search_path_CXX="${prev}${p}"
  11913. else
  11914. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11915. fi
  11916. ;;
  11917. # The "-l" case would never come before the object being
  11918. # linked, so don't bother handling this case.
  11919. esac
  11920. else
  11921. if test -z "$postdeps_CXX"; then
  11922. postdeps_CXX="${prev}${p}"
  11923. else
  11924. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11925. fi
  11926. fi
  11927. ;;
  11928. *.$objext)
  11929. # This assumes that the test object file only shows up
  11930. # once in the compiler output.
  11931. if test "$p" = "conftest.$objext"; then
  11932. pre_test_object_deps_done=yes
  11933. continue
  11934. fi
  11935. if test "$pre_test_object_deps_done" = no; then
  11936. if test -z "$predep_objects_CXX"; then
  11937. predep_objects_CXX="$p"
  11938. else
  11939. predep_objects_CXX="$predep_objects_CXX $p"
  11940. fi
  11941. else
  11942. if test -z "$postdep_objects_CXX"; then
  11943. postdep_objects_CXX="$p"
  11944. else
  11945. postdep_objects_CXX="$postdep_objects_CXX $p"
  11946. fi
  11947. fi
  11948. ;;
  11949. *) ;; # Ignore the rest.
  11950. esac
  11951. done
  11952. # Clean up.
  11953. rm -f a.out a.exe
  11954. else
  11955. echo "libtool.m4: error: problem compiling CXX test program"
  11956. fi
  11957. $RM -f confest.$objext
  11958. # PORTME: override above test on systems where it is broken
  11959. case $host_os in
  11960. interix[3-9]*)
  11961. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11962. # hack all around it, let's just trust "g++" to DTRT.
  11963. predep_objects_CXX=
  11964. postdep_objects_CXX=
  11965. postdeps_CXX=
  11966. ;;
  11967. linux*)
  11968. case `$CC -V 2>&1 | sed 5q` in
  11969. *Sun\ C*)
  11970. # Sun C++ 5.9
  11971. # The more standards-conforming stlport4 library is
  11972. # incompatible with the Cstd library. Avoid specifying
  11973. # it if it's in CXXFLAGS. Ignore libCrun as
  11974. # -library=stlport4 depends on it.
  11975. case " $CXX $CXXFLAGS " in
  11976. *" -library=stlport4 "*)
  11977. solaris_use_stlport4=yes
  11978. ;;
  11979. esac
  11980. if test "$solaris_use_stlport4" != yes; then
  11981. postdeps_CXX='-library=Cstd -library=Crun'
  11982. fi
  11983. ;;
  11984. esac
  11985. ;;
  11986. solaris*)
  11987. case $cc_basename in
  11988. CC*)
  11989. # The more standards-conforming stlport4 library is
  11990. # incompatible with the Cstd library. Avoid specifying
  11991. # it if it's in CXXFLAGS. Ignore libCrun as
  11992. # -library=stlport4 depends on it.
  11993. case " $CXX $CXXFLAGS " in
  11994. *" -library=stlport4 "*)
  11995. solaris_use_stlport4=yes
  11996. ;;
  11997. esac
  11998. # Adding this requires a known-good setup of shared libraries for
  11999. # Sun compiler versions before 5.6, else PIC objects from an old
  12000. # archive will be linked into the output, leading to subtle bugs.
  12001. if test "$solaris_use_stlport4" != yes; then
  12002. postdeps_CXX='-library=Cstd -library=Crun'
  12003. fi
  12004. ;;
  12005. esac
  12006. ;;
  12007. esac
  12008. case " $postdeps_CXX " in
  12009. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12010. esac
  12011. compiler_lib_search_dirs_CXX=
  12012. if test -n "${compiler_lib_search_path_CXX}"; then
  12013. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12014. fi
  12015. lt_prog_compiler_wl_CXX=
  12016. lt_prog_compiler_pic_CXX=
  12017. lt_prog_compiler_static_CXX=
  12018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12019. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12020. # C++ specific cases for pic, static, wl, etc.
  12021. if test "$GXX" = yes; then
  12022. lt_prog_compiler_wl_CXX='-Wl,'
  12023. lt_prog_compiler_static_CXX='-static'
  12024. case $host_os in
  12025. aix*)
  12026. # All AIX code is PIC.
  12027. if test "$host_cpu" = ia64; then
  12028. # AIX 5 now supports IA64 processor
  12029. lt_prog_compiler_static_CXX='-Bstatic'
  12030. fi
  12031. lt_prog_compiler_pic_CXX='-fPIC'
  12032. ;;
  12033. amigaos*)
  12034. case $host_cpu in
  12035. powerpc)
  12036. # see comment about AmigaOS4 .so support
  12037. lt_prog_compiler_pic_CXX='-fPIC'
  12038. ;;
  12039. m68k)
  12040. # FIXME: we need at least 68020 code to build shared libraries, but
  12041. # adding the `-m68020' flag to GCC prevents building anything better,
  12042. # like `-m68040'.
  12043. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12044. ;;
  12045. esac
  12046. ;;
  12047. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12048. # PIC is the default for these OSes.
  12049. ;;
  12050. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12051. # This hack is so that the source file can tell whether it is being
  12052. # built for inclusion in a dll (and should export symbols for example).
  12053. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12054. # (--disable-auto-import) libraries
  12055. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12056. ;;
  12057. darwin* | rhapsody*)
  12058. # PIC is the default on this platform
  12059. # Common symbols not allowed in MH_DYLIB files
  12060. lt_prog_compiler_pic_CXX='-fno-common'
  12061. ;;
  12062. *djgpp*)
  12063. # DJGPP does not support shared libraries at all
  12064. lt_prog_compiler_pic_CXX=
  12065. ;;
  12066. haiku*)
  12067. # PIC is the default for Haiku.
  12068. # The "-static" flag exists, but is broken.
  12069. lt_prog_compiler_static_CXX=
  12070. ;;
  12071. interix[3-9]*)
  12072. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12073. # Instead, we relocate shared libraries at runtime.
  12074. ;;
  12075. sysv4*MP*)
  12076. if test -d /usr/nec; then
  12077. lt_prog_compiler_pic_CXX=-Kconform_pic
  12078. fi
  12079. ;;
  12080. hpux*)
  12081. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12082. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12083. # sets the default TLS model and affects inlining.
  12084. case $host_cpu in
  12085. hppa*64*)
  12086. ;;
  12087. *)
  12088. lt_prog_compiler_pic_CXX='-fPIC'
  12089. ;;
  12090. esac
  12091. ;;
  12092. *qnx* | *nto*)
  12093. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12094. # it will coredump.
  12095. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12096. ;;
  12097. *)
  12098. lt_prog_compiler_pic_CXX='-fPIC'
  12099. ;;
  12100. esac
  12101. else
  12102. case $host_os in
  12103. aix[4-9]*)
  12104. # All AIX code is PIC.
  12105. if test "$host_cpu" = ia64; then
  12106. # AIX 5 now supports IA64 processor
  12107. lt_prog_compiler_static_CXX='-Bstatic'
  12108. else
  12109. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12110. fi
  12111. ;;
  12112. chorus*)
  12113. case $cc_basename in
  12114. cxch68*)
  12115. # Green Hills C++ Compiler
  12116. # _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"
  12117. ;;
  12118. esac
  12119. ;;
  12120. dgux*)
  12121. case $cc_basename in
  12122. ec++*)
  12123. lt_prog_compiler_pic_CXX='-KPIC'
  12124. ;;
  12125. ghcx*)
  12126. # Green Hills C++ Compiler
  12127. lt_prog_compiler_pic_CXX='-pic'
  12128. ;;
  12129. *)
  12130. ;;
  12131. esac
  12132. ;;
  12133. freebsd* | dragonfly*)
  12134. # FreeBSD uses GNU C++
  12135. ;;
  12136. hpux9* | hpux10* | hpux11*)
  12137. case $cc_basename in
  12138. CC*)
  12139. lt_prog_compiler_wl_CXX='-Wl,'
  12140. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12141. if test "$host_cpu" != ia64; then
  12142. lt_prog_compiler_pic_CXX='+Z'
  12143. fi
  12144. ;;
  12145. aCC*)
  12146. lt_prog_compiler_wl_CXX='-Wl,'
  12147. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12148. case $host_cpu in
  12149. hppa*64*|ia64*)
  12150. # +Z the default
  12151. ;;
  12152. *)
  12153. lt_prog_compiler_pic_CXX='+Z'
  12154. ;;
  12155. esac
  12156. ;;
  12157. *)
  12158. ;;
  12159. esac
  12160. ;;
  12161. interix*)
  12162. # This is c89, which is MS Visual C++ (no shared libs)
  12163. # Anyone wants to do a port?
  12164. ;;
  12165. irix5* | irix6* | nonstopux*)
  12166. case $cc_basename in
  12167. CC*)
  12168. lt_prog_compiler_wl_CXX='-Wl,'
  12169. lt_prog_compiler_static_CXX='-non_shared'
  12170. # CC pic flag -KPIC is the default.
  12171. ;;
  12172. *)
  12173. ;;
  12174. esac
  12175. ;;
  12176. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12177. case $cc_basename in
  12178. KCC*)
  12179. # KAI C++ Compiler
  12180. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12181. lt_prog_compiler_pic_CXX='-fPIC'
  12182. ;;
  12183. ecpc* )
  12184. # old Intel C++ for x86_64 which still supported -KPIC.
  12185. lt_prog_compiler_wl_CXX='-Wl,'
  12186. lt_prog_compiler_pic_CXX='-KPIC'
  12187. lt_prog_compiler_static_CXX='-static'
  12188. ;;
  12189. icpc* )
  12190. # Intel C++, used to be incompatible with GCC.
  12191. # ICC 10 doesn't accept -KPIC any more.
  12192. lt_prog_compiler_wl_CXX='-Wl,'
  12193. lt_prog_compiler_pic_CXX='-fPIC'
  12194. lt_prog_compiler_static_CXX='-static'
  12195. ;;
  12196. pgCC* | pgcpp*)
  12197. # Portland Group C++ compiler
  12198. lt_prog_compiler_wl_CXX='-Wl,'
  12199. lt_prog_compiler_pic_CXX='-fpic'
  12200. lt_prog_compiler_static_CXX='-Bstatic'
  12201. ;;
  12202. cxx*)
  12203. # Compaq C++
  12204. # Make sure the PIC flag is empty. It appears that all Alpha
  12205. # Linux and Compaq Tru64 Unix objects are PIC.
  12206. lt_prog_compiler_pic_CXX=
  12207. lt_prog_compiler_static_CXX='-non_shared'
  12208. ;;
  12209. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12210. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12211. lt_prog_compiler_wl_CXX='-Wl,'
  12212. lt_prog_compiler_pic_CXX='-qpic'
  12213. lt_prog_compiler_static_CXX='-qstaticlink'
  12214. ;;
  12215. *)
  12216. case `$CC -V 2>&1 | sed 5q` in
  12217. *Sun\ C*)
  12218. # Sun C++ 5.9
  12219. lt_prog_compiler_pic_CXX='-KPIC'
  12220. lt_prog_compiler_static_CXX='-Bstatic'
  12221. lt_prog_compiler_wl_CXX='-Qoption ld '
  12222. ;;
  12223. esac
  12224. ;;
  12225. esac
  12226. ;;
  12227. lynxos*)
  12228. ;;
  12229. m88k*)
  12230. ;;
  12231. mvs*)
  12232. case $cc_basename in
  12233. cxx*)
  12234. lt_prog_compiler_pic_CXX='-W c,exportall'
  12235. ;;
  12236. *)
  12237. ;;
  12238. esac
  12239. ;;
  12240. netbsd*)
  12241. ;;
  12242. *qnx* | *nto*)
  12243. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12244. # it will coredump.
  12245. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12246. ;;
  12247. osf3* | osf4* | osf5*)
  12248. case $cc_basename in
  12249. KCC*)
  12250. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12251. ;;
  12252. RCC*)
  12253. # Rational C++ 2.4.1
  12254. lt_prog_compiler_pic_CXX='-pic'
  12255. ;;
  12256. cxx*)
  12257. # Digital/Compaq C++
  12258. lt_prog_compiler_wl_CXX='-Wl,'
  12259. # Make sure the PIC flag is empty. It appears that all Alpha
  12260. # Linux and Compaq Tru64 Unix objects are PIC.
  12261. lt_prog_compiler_pic_CXX=
  12262. lt_prog_compiler_static_CXX='-non_shared'
  12263. ;;
  12264. *)
  12265. ;;
  12266. esac
  12267. ;;
  12268. psos*)
  12269. ;;
  12270. solaris*)
  12271. case $cc_basename in
  12272. CC*)
  12273. # Sun C++ 4.2, 5.x and Centerline C++
  12274. lt_prog_compiler_pic_CXX='-KPIC'
  12275. lt_prog_compiler_static_CXX='-Bstatic'
  12276. lt_prog_compiler_wl_CXX='-Qoption ld '
  12277. ;;
  12278. gcx*)
  12279. # Green Hills C++ Compiler
  12280. lt_prog_compiler_pic_CXX='-PIC'
  12281. ;;
  12282. *)
  12283. ;;
  12284. esac
  12285. ;;
  12286. sunos4*)
  12287. case $cc_basename in
  12288. CC*)
  12289. # Sun C++ 4.x
  12290. lt_prog_compiler_pic_CXX='-pic'
  12291. lt_prog_compiler_static_CXX='-Bstatic'
  12292. ;;
  12293. lcc*)
  12294. # Lucid
  12295. lt_prog_compiler_pic_CXX='-pic'
  12296. ;;
  12297. *)
  12298. ;;
  12299. esac
  12300. ;;
  12301. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12302. case $cc_basename in
  12303. CC*)
  12304. lt_prog_compiler_wl_CXX='-Wl,'
  12305. lt_prog_compiler_pic_CXX='-KPIC'
  12306. lt_prog_compiler_static_CXX='-Bstatic'
  12307. ;;
  12308. esac
  12309. ;;
  12310. tandem*)
  12311. case $cc_basename in
  12312. NCC*)
  12313. # NonStop-UX NCC 3.20
  12314. lt_prog_compiler_pic_CXX='-KPIC'
  12315. ;;
  12316. *)
  12317. ;;
  12318. esac
  12319. ;;
  12320. vxworks*)
  12321. ;;
  12322. *)
  12323. lt_prog_compiler_can_build_shared_CXX=no
  12324. ;;
  12325. esac
  12326. fi
  12327. case $host_os in
  12328. # For platforms which do not support PIC, -DPIC is meaningless:
  12329. *djgpp*)
  12330. lt_prog_compiler_pic_CXX=
  12331. ;;
  12332. *)
  12333. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12334. ;;
  12335. esac
  12336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  12337. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12338. #
  12339. # Check to make sure the PIC flag actually works.
  12340. #
  12341. if test -n "$lt_prog_compiler_pic_CXX"; then
  12342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12343. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12344. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  12345. $as_echo_n "(cached) " >&6
  12346. else
  12347. lt_cv_prog_compiler_pic_works_CXX=no
  12348. ac_outfile=conftest.$ac_objext
  12349. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12350. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12351. # Insert the option either (1) after the last *FLAGS variable, or
  12352. # (2) before a word containing "conftest.", or (3) at the end.
  12353. # Note that $ac_compile itself does not contain backslashes and begins
  12354. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12355. # The option is referenced via a variable to avoid confusing sed.
  12356. lt_compile=`echo "$ac_compile" | $SED \
  12357. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12358. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12359. -e 's:$: $lt_compiler_flag:'`
  12360. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12361. (eval "$lt_compile" 2>conftest.err)
  12362. ac_status=$?
  12363. cat conftest.err >&5
  12364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12365. if (exit $ac_status) && test -s "$ac_outfile"; then
  12366. # The compiler can only warn and ignore the option if not recognized
  12367. # So say no if there are warnings other than the usual output.
  12368. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12369. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12370. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12371. lt_cv_prog_compiler_pic_works_CXX=yes
  12372. fi
  12373. fi
  12374. $RM conftest*
  12375. fi
  12376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12377. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12378. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12379. case $lt_prog_compiler_pic_CXX in
  12380. "" | " "*) ;;
  12381. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12382. esac
  12383. else
  12384. lt_prog_compiler_pic_CXX=
  12385. lt_prog_compiler_can_build_shared_CXX=no
  12386. fi
  12387. fi
  12388. #
  12389. # Check to make sure the static flag actually works.
  12390. #
  12391. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12393. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12394. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  12395. $as_echo_n "(cached) " >&6
  12396. else
  12397. lt_cv_prog_compiler_static_works_CXX=no
  12398. save_LDFLAGS="$LDFLAGS"
  12399. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12400. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12401. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12402. # The linker can only warn and ignore the option if not recognized
  12403. # So say no if there are warnings
  12404. if test -s conftest.err; then
  12405. # Append any errors to the config.log.
  12406. cat conftest.err 1>&5
  12407. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12408. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12409. if diff conftest.exp conftest.er2 >/dev/null; then
  12410. lt_cv_prog_compiler_static_works_CXX=yes
  12411. fi
  12412. else
  12413. lt_cv_prog_compiler_static_works_CXX=yes
  12414. fi
  12415. fi
  12416. $RM -r conftest*
  12417. LDFLAGS="$save_LDFLAGS"
  12418. fi
  12419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12420. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12421. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12422. :
  12423. else
  12424. lt_prog_compiler_static_CXX=
  12425. fi
  12426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12427. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12428. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  12429. $as_echo_n "(cached) " >&6
  12430. else
  12431. lt_cv_prog_compiler_c_o_CXX=no
  12432. $RM -r conftest 2>/dev/null
  12433. mkdir conftest
  12434. cd conftest
  12435. mkdir out
  12436. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12437. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12438. # Insert the option either (1) after the last *FLAGS variable, or
  12439. # (2) before a word containing "conftest.", or (3) at the end.
  12440. # Note that $ac_compile itself does not contain backslashes and begins
  12441. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12442. lt_compile=`echo "$ac_compile" | $SED \
  12443. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12444. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12445. -e 's:$: $lt_compiler_flag:'`
  12446. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12447. (eval "$lt_compile" 2>out/conftest.err)
  12448. ac_status=$?
  12449. cat out/conftest.err >&5
  12450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12451. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12452. then
  12453. # The compiler can only warn and ignore the option if not recognized
  12454. # So say no if there are warnings
  12455. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12456. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12457. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12458. lt_cv_prog_compiler_c_o_CXX=yes
  12459. fi
  12460. fi
  12461. chmod u+w . 2>&5
  12462. $RM conftest*
  12463. # SGI C++ compiler will create directory out/ii_files/ for
  12464. # template instantiation
  12465. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12466. $RM out/* && rmdir out
  12467. cd ..
  12468. $RM -r conftest
  12469. $RM conftest*
  12470. fi
  12471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12472. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12474. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12475. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  12476. $as_echo_n "(cached) " >&6
  12477. else
  12478. lt_cv_prog_compiler_c_o_CXX=no
  12479. $RM -r conftest 2>/dev/null
  12480. mkdir conftest
  12481. cd conftest
  12482. mkdir out
  12483. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12484. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12485. # Insert the option either (1) after the last *FLAGS variable, or
  12486. # (2) before a word containing "conftest.", or (3) at the end.
  12487. # Note that $ac_compile itself does not contain backslashes and begins
  12488. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12489. lt_compile=`echo "$ac_compile" | $SED \
  12490. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12491. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12492. -e 's:$: $lt_compiler_flag:'`
  12493. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12494. (eval "$lt_compile" 2>out/conftest.err)
  12495. ac_status=$?
  12496. cat out/conftest.err >&5
  12497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12498. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12499. then
  12500. # The compiler can only warn and ignore the option if not recognized
  12501. # So say no if there are warnings
  12502. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12503. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12504. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12505. lt_cv_prog_compiler_c_o_CXX=yes
  12506. fi
  12507. fi
  12508. chmod u+w . 2>&5
  12509. $RM conftest*
  12510. # SGI C++ compiler will create directory out/ii_files/ for
  12511. # template instantiation
  12512. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12513. $RM out/* && rmdir out
  12514. cd ..
  12515. $RM -r conftest
  12516. $RM conftest*
  12517. fi
  12518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12519. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12520. hard_links="nottested"
  12521. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12522. # do not overwrite the value of need_locks provided by the user
  12523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12524. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12525. hard_links=yes
  12526. $RM conftest*
  12527. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12528. touch conftest.a
  12529. ln conftest.a conftest.b 2>&5 || hard_links=no
  12530. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12532. $as_echo "$hard_links" >&6; }
  12533. if test "$hard_links" = no; then
  12534. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12535. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12536. need_locks=warn
  12537. fi
  12538. else
  12539. need_locks=no
  12540. fi
  12541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12542. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12543. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12544. case $host_os in
  12545. aix[4-9]*)
  12546. # If we're using GNU nm, then we don't want the "-C" option.
  12547. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12548. # Also, AIX nm treats weak defined symbols like other global defined
  12549. # symbols, whereas GNU nm marks them as "W".
  12550. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12551. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12552. else
  12553. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12554. fi
  12555. ;;
  12556. pw32*)
  12557. export_symbols_cmds_CXX="$ltdll_cmds"
  12558. ;;
  12559. cygwin* | mingw* | cegcc*)
  12560. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12561. ;;
  12562. *)
  12563. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12564. ;;
  12565. esac
  12566. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12568. $as_echo "$ld_shlibs_CXX" >&6; }
  12569. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12570. with_gnu_ld_CXX=$with_gnu_ld
  12571. #
  12572. # Do we need to explicitly link libc?
  12573. #
  12574. case "x$archive_cmds_need_lc_CXX" in
  12575. x|xyes)
  12576. # Assume -lc should be added
  12577. archive_cmds_need_lc_CXX=yes
  12578. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12579. case $archive_cmds_CXX in
  12580. *'~'*)
  12581. # FIXME: we may have to deal with multi-command sequences.
  12582. ;;
  12583. '$CC '*)
  12584. # Test whether the compiler implicitly links with -lc since on some
  12585. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12586. # to ld, don't add -lc before -lgcc.
  12587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12588. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12589. if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
  12590. $as_echo_n "(cached) " >&6
  12591. else
  12592. $RM conftest*
  12593. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12594. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12595. (eval $ac_compile) 2>&5
  12596. ac_status=$?
  12597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12598. test $ac_status = 0; } 2>conftest.err; then
  12599. soname=conftest
  12600. lib=conftest
  12601. libobjs=conftest.$ac_objext
  12602. deplibs=
  12603. wl=$lt_prog_compiler_wl_CXX
  12604. pic_flag=$lt_prog_compiler_pic_CXX
  12605. compiler_flags=-v
  12606. linker_flags=-v
  12607. verstring=
  12608. output_objdir=.
  12609. libname=conftest
  12610. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12611. allow_undefined_flag_CXX=
  12612. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12613. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12614. ac_status=$?
  12615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12616. test $ac_status = 0; }
  12617. then
  12618. lt_cv_archive_cmds_need_lc_CXX=no
  12619. else
  12620. lt_cv_archive_cmds_need_lc_CXX=yes
  12621. fi
  12622. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12623. else
  12624. cat conftest.err 1>&5
  12625. fi
  12626. $RM conftest*
  12627. fi
  12628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12629. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12630. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12631. ;;
  12632. esac
  12633. fi
  12634. ;;
  12635. esac
  12636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12637. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12638. library_names_spec=
  12639. libname_spec='lib$name'
  12640. soname_spec=
  12641. shrext_cmds=".so"
  12642. postinstall_cmds=
  12643. postuninstall_cmds=
  12644. finish_cmds=
  12645. finish_eval=
  12646. shlibpath_var=
  12647. shlibpath_overrides_runpath=unknown
  12648. version_type=none
  12649. dynamic_linker="$host_os ld.so"
  12650. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12651. need_lib_prefix=unknown
  12652. hardcode_into_libs=no
  12653. # when you set need_version to no, make sure it does not cause -set_version
  12654. # flags to be left without arguments
  12655. need_version=unknown
  12656. case $host_os in
  12657. aix3*)
  12658. version_type=linux
  12659. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12660. shlibpath_var=LIBPATH
  12661. # AIX 3 has no versioning support, so we append a major version to the name.
  12662. soname_spec='${libname}${release}${shared_ext}$major'
  12663. ;;
  12664. aix[4-9]*)
  12665. version_type=linux
  12666. need_lib_prefix=no
  12667. need_version=no
  12668. hardcode_into_libs=yes
  12669. if test "$host_cpu" = ia64; then
  12670. # AIX 5 supports IA64
  12671. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12672. shlibpath_var=LD_LIBRARY_PATH
  12673. else
  12674. # With GCC up to 2.95.x, collect2 would create an import file
  12675. # for dependence libraries. The import file would start with
  12676. # the line `#! .'. This would cause the generated library to
  12677. # depend on `.', always an invalid library. This was fixed in
  12678. # development snapshots of GCC prior to 3.0.
  12679. case $host_os in
  12680. aix4 | aix4.[01] | aix4.[01].*)
  12681. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12682. echo ' yes '
  12683. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12684. :
  12685. else
  12686. can_build_shared=no
  12687. fi
  12688. ;;
  12689. esac
  12690. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12691. # soname into executable. Probably we can add versioning support to
  12692. # collect2, so additional links can be useful in future.
  12693. if test "$aix_use_runtimelinking" = yes; then
  12694. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12695. # instead of lib<name>.a to let people know that these are not
  12696. # typical AIX shared libraries.
  12697. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12698. else
  12699. # We preserve .a as extension for shared libraries through AIX4.2
  12700. # and later when we are not doing run time linking.
  12701. library_names_spec='${libname}${release}.a $libname.a'
  12702. soname_spec='${libname}${release}${shared_ext}$major'
  12703. fi
  12704. shlibpath_var=LIBPATH
  12705. fi
  12706. ;;
  12707. amigaos*)
  12708. case $host_cpu in
  12709. powerpc)
  12710. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12711. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12712. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12713. ;;
  12714. m68k)
  12715. library_names_spec='$libname.ixlibrary $libname.a'
  12716. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12717. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12718. ;;
  12719. esac
  12720. ;;
  12721. beos*)
  12722. library_names_spec='${libname}${shared_ext}'
  12723. dynamic_linker="$host_os ld.so"
  12724. shlibpath_var=LIBRARY_PATH
  12725. ;;
  12726. bsdi[45]*)
  12727. version_type=linux
  12728. need_version=no
  12729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12730. soname_spec='${libname}${release}${shared_ext}$major'
  12731. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12732. shlibpath_var=LD_LIBRARY_PATH
  12733. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12734. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12735. # the default ld.so.conf also contains /usr/contrib/lib and
  12736. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12737. # libtool to hard-code these into programs
  12738. ;;
  12739. cygwin* | mingw* | pw32* | cegcc*)
  12740. version_type=windows
  12741. shrext_cmds=".dll"
  12742. need_version=no
  12743. need_lib_prefix=no
  12744. case $GCC,$host_os in
  12745. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12746. library_names_spec='$libname.dll.a'
  12747. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12748. postinstall_cmds='base_file=`basename \${file}`~
  12749. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12750. dldir=$destdir/`dirname \$dlpath`~
  12751. test -d \$dldir || mkdir -p \$dldir~
  12752. $install_prog $dir/$dlname \$dldir/$dlname~
  12753. chmod a+x \$dldir/$dlname~
  12754. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12755. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12756. fi'
  12757. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12758. dlpath=$dir/\$dldll~
  12759. $RM \$dlpath'
  12760. shlibpath_overrides_runpath=yes
  12761. case $host_os in
  12762. cygwin*)
  12763. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12764. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12765. ;;
  12766. mingw* | cegcc*)
  12767. # MinGW DLLs use traditional 'lib' prefix
  12768. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12769. ;;
  12770. pw32*)
  12771. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12772. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12773. ;;
  12774. esac
  12775. ;;
  12776. *)
  12777. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12778. ;;
  12779. esac
  12780. dynamic_linker='Win32 ld.exe'
  12781. # FIXME: first we should search . and the directory the executable is in
  12782. shlibpath_var=PATH
  12783. ;;
  12784. darwin* | rhapsody*)
  12785. dynamic_linker="$host_os dyld"
  12786. version_type=darwin
  12787. need_lib_prefix=no
  12788. need_version=no
  12789. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12790. soname_spec='${libname}${release}${major}$shared_ext'
  12791. shlibpath_overrides_runpath=yes
  12792. shlibpath_var=DYLD_LIBRARY_PATH
  12793. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12794. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12795. ;;
  12796. dgux*)
  12797. version_type=linux
  12798. need_lib_prefix=no
  12799. need_version=no
  12800. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12801. soname_spec='${libname}${release}${shared_ext}$major'
  12802. shlibpath_var=LD_LIBRARY_PATH
  12803. ;;
  12804. freebsd* | dragonfly*)
  12805. # DragonFly does not have aout. When/if they implement a new
  12806. # versioning mechanism, adjust this.
  12807. if test -x /usr/bin/objformat; then
  12808. objformat=`/usr/bin/objformat`
  12809. else
  12810. case $host_os in
  12811. freebsd[23].*) objformat=aout ;;
  12812. *) objformat=elf ;;
  12813. esac
  12814. fi
  12815. version_type=freebsd-$objformat
  12816. case $version_type in
  12817. freebsd-elf*)
  12818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12819. need_version=no
  12820. need_lib_prefix=no
  12821. ;;
  12822. freebsd-*)
  12823. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12824. need_version=yes
  12825. ;;
  12826. esac
  12827. shlibpath_var=LD_LIBRARY_PATH
  12828. case $host_os in
  12829. freebsd2.*)
  12830. shlibpath_overrides_runpath=yes
  12831. ;;
  12832. freebsd3.[01]* | freebsdelf3.[01]*)
  12833. shlibpath_overrides_runpath=yes
  12834. hardcode_into_libs=yes
  12835. ;;
  12836. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12837. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12838. shlibpath_overrides_runpath=no
  12839. hardcode_into_libs=yes
  12840. ;;
  12841. *) # from 4.6 on, and DragonFly
  12842. shlibpath_overrides_runpath=yes
  12843. hardcode_into_libs=yes
  12844. ;;
  12845. esac
  12846. ;;
  12847. gnu*)
  12848. version_type=linux
  12849. need_lib_prefix=no
  12850. need_version=no
  12851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12852. soname_spec='${libname}${release}${shared_ext}$major'
  12853. shlibpath_var=LD_LIBRARY_PATH
  12854. hardcode_into_libs=yes
  12855. ;;
  12856. haiku*)
  12857. version_type=linux
  12858. need_lib_prefix=no
  12859. need_version=no
  12860. dynamic_linker="$host_os runtime_loader"
  12861. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12862. soname_spec='${libname}${release}${shared_ext}$major'
  12863. shlibpath_var=LIBRARY_PATH
  12864. shlibpath_overrides_runpath=yes
  12865. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  12866. hardcode_into_libs=yes
  12867. ;;
  12868. hpux9* | hpux10* | hpux11*)
  12869. # Give a soname corresponding to the major version so that dld.sl refuses to
  12870. # link against other versions.
  12871. version_type=sunos
  12872. need_lib_prefix=no
  12873. need_version=no
  12874. case $host_cpu in
  12875. ia64*)
  12876. shrext_cmds='.so'
  12877. hardcode_into_libs=yes
  12878. dynamic_linker="$host_os dld.so"
  12879. shlibpath_var=LD_LIBRARY_PATH
  12880. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12881. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12882. soname_spec='${libname}${release}${shared_ext}$major'
  12883. if test "X$HPUX_IA64_MODE" = X32; then
  12884. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12885. else
  12886. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12887. fi
  12888. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12889. ;;
  12890. hppa*64*)
  12891. shrext_cmds='.sl'
  12892. hardcode_into_libs=yes
  12893. dynamic_linker="$host_os dld.sl"
  12894. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12895. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12897. soname_spec='${libname}${release}${shared_ext}$major'
  12898. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12899. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12900. ;;
  12901. *)
  12902. shrext_cmds='.sl'
  12903. dynamic_linker="$host_os dld.sl"
  12904. shlibpath_var=SHLIB_PATH
  12905. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12907. soname_spec='${libname}${release}${shared_ext}$major'
  12908. ;;
  12909. esac
  12910. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12911. postinstall_cmds='chmod 555 $lib'
  12912. # or fails outright, so override atomically:
  12913. install_override_mode=555
  12914. ;;
  12915. interix[3-9]*)
  12916. version_type=linux
  12917. need_lib_prefix=no
  12918. need_version=no
  12919. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12920. soname_spec='${libname}${release}${shared_ext}$major'
  12921. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12922. shlibpath_var=LD_LIBRARY_PATH
  12923. shlibpath_overrides_runpath=no
  12924. hardcode_into_libs=yes
  12925. ;;
  12926. irix5* | irix6* | nonstopux*)
  12927. case $host_os in
  12928. nonstopux*) version_type=nonstopux ;;
  12929. *)
  12930. if test "$lt_cv_prog_gnu_ld" = yes; then
  12931. version_type=linux
  12932. else
  12933. version_type=irix
  12934. fi ;;
  12935. esac
  12936. need_lib_prefix=no
  12937. need_version=no
  12938. soname_spec='${libname}${release}${shared_ext}$major'
  12939. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12940. case $host_os in
  12941. irix5* | nonstopux*)
  12942. libsuff= shlibsuff=
  12943. ;;
  12944. *)
  12945. case $LD in # libtool.m4 will add one of these switches to LD
  12946. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12947. libsuff= shlibsuff= libmagic=32-bit;;
  12948. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12949. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12950. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12951. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12952. *) libsuff= shlibsuff= libmagic=never-match;;
  12953. esac
  12954. ;;
  12955. esac
  12956. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12957. shlibpath_overrides_runpath=no
  12958. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12959. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12960. hardcode_into_libs=yes
  12961. ;;
  12962. # No shared lib support for Linux oldld, aout, or coff.
  12963. linux*oldld* | linux*aout* | linux*coff*)
  12964. dynamic_linker=no
  12965. ;;
  12966. # This must be Linux ELF.
  12967. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12968. version_type=linux
  12969. need_lib_prefix=no
  12970. need_version=no
  12971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12972. soname_spec='${libname}${release}${shared_ext}$major'
  12973. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12974. shlibpath_var=LD_LIBRARY_PATH
  12975. shlibpath_overrides_runpath=no
  12976. # Some binutils ld are patched to set DT_RUNPATH
  12977. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  12978. $as_echo_n "(cached) " >&6
  12979. else
  12980. lt_cv_shlibpath_overrides_runpath=no
  12981. save_LDFLAGS=$LDFLAGS
  12982. save_libdir=$libdir
  12983. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12984. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12986. /* end confdefs.h. */
  12987. int
  12988. main ()
  12989. {
  12990. ;
  12991. return 0;
  12992. }
  12993. _ACEOF
  12994. if ac_fn_cxx_try_link "$LINENO"; then :
  12995. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12996. lt_cv_shlibpath_overrides_runpath=yes
  12997. fi
  12998. fi
  12999. rm -f core conftest.err conftest.$ac_objext \
  13000. conftest$ac_exeext conftest.$ac_ext
  13001. LDFLAGS=$save_LDFLAGS
  13002. libdir=$save_libdir
  13003. fi
  13004. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13005. # This implies no fast_install, which is unacceptable.
  13006. # Some rework will be needed to allow for fast_install
  13007. # before this can be enabled.
  13008. hardcode_into_libs=yes
  13009. # Append ld.so.conf contents to the search path
  13010. if test -f /etc/ld.so.conf; then
  13011. 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' ' '`
  13012. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13013. fi
  13014. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13015. # powerpc, because MkLinux only supported shared libraries with the
  13016. # GNU dynamic linker. Since this was broken with cross compilers,
  13017. # most powerpc-linux boxes support dynamic linking these days and
  13018. # people can always --disable-shared, the test was removed, and we
  13019. # assume the GNU/Linux dynamic linker is in use.
  13020. dynamic_linker='GNU/Linux ld.so'
  13021. ;;
  13022. netbsd*)
  13023. version_type=sunos
  13024. need_lib_prefix=no
  13025. need_version=no
  13026. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13028. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13029. dynamic_linker='NetBSD (a.out) ld.so'
  13030. else
  13031. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13032. soname_spec='${libname}${release}${shared_ext}$major'
  13033. dynamic_linker='NetBSD ld.elf_so'
  13034. fi
  13035. shlibpath_var=LD_LIBRARY_PATH
  13036. shlibpath_overrides_runpath=yes
  13037. hardcode_into_libs=yes
  13038. ;;
  13039. newsos6)
  13040. version_type=linux
  13041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13042. shlibpath_var=LD_LIBRARY_PATH
  13043. shlibpath_overrides_runpath=yes
  13044. ;;
  13045. *nto* | *qnx*)
  13046. version_type=qnx
  13047. need_lib_prefix=no
  13048. need_version=no
  13049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13050. soname_spec='${libname}${release}${shared_ext}$major'
  13051. shlibpath_var=LD_LIBRARY_PATH
  13052. shlibpath_overrides_runpath=no
  13053. hardcode_into_libs=yes
  13054. dynamic_linker='ldqnx.so'
  13055. ;;
  13056. openbsd*)
  13057. version_type=sunos
  13058. sys_lib_dlsearch_path_spec="/usr/lib"
  13059. need_lib_prefix=no
  13060. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13061. case $host_os in
  13062. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13063. *) need_version=no ;;
  13064. esac
  13065. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13066. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13067. shlibpath_var=LD_LIBRARY_PATH
  13068. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13069. case $host_os in
  13070. openbsd2.[89] | openbsd2.[89].*)
  13071. shlibpath_overrides_runpath=no
  13072. ;;
  13073. *)
  13074. shlibpath_overrides_runpath=yes
  13075. ;;
  13076. esac
  13077. else
  13078. shlibpath_overrides_runpath=yes
  13079. fi
  13080. ;;
  13081. os2*)
  13082. libname_spec='$name'
  13083. shrext_cmds=".dll"
  13084. need_lib_prefix=no
  13085. library_names_spec='$libname${shared_ext} $libname.a'
  13086. dynamic_linker='OS/2 ld.exe'
  13087. shlibpath_var=LIBPATH
  13088. ;;
  13089. osf3* | osf4* | osf5*)
  13090. version_type=osf
  13091. need_lib_prefix=no
  13092. need_version=no
  13093. soname_spec='${libname}${release}${shared_ext}$major'
  13094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13095. shlibpath_var=LD_LIBRARY_PATH
  13096. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13097. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13098. ;;
  13099. rdos*)
  13100. dynamic_linker=no
  13101. ;;
  13102. solaris*)
  13103. version_type=linux
  13104. need_lib_prefix=no
  13105. need_version=no
  13106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13107. soname_spec='${libname}${release}${shared_ext}$major'
  13108. shlibpath_var=LD_LIBRARY_PATH
  13109. shlibpath_overrides_runpath=yes
  13110. hardcode_into_libs=yes
  13111. # ldd complains unless libraries are executable
  13112. postinstall_cmds='chmod +x $lib'
  13113. ;;
  13114. sunos4*)
  13115. version_type=sunos
  13116. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13117. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13118. shlibpath_var=LD_LIBRARY_PATH
  13119. shlibpath_overrides_runpath=yes
  13120. if test "$with_gnu_ld" = yes; then
  13121. need_lib_prefix=no
  13122. fi
  13123. need_version=yes
  13124. ;;
  13125. sysv4 | sysv4.3*)
  13126. version_type=linux
  13127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13128. soname_spec='${libname}${release}${shared_ext}$major'
  13129. shlibpath_var=LD_LIBRARY_PATH
  13130. case $host_vendor in
  13131. sni)
  13132. shlibpath_overrides_runpath=no
  13133. need_lib_prefix=no
  13134. runpath_var=LD_RUN_PATH
  13135. ;;
  13136. siemens)
  13137. need_lib_prefix=no
  13138. ;;
  13139. motorola)
  13140. need_lib_prefix=no
  13141. need_version=no
  13142. shlibpath_overrides_runpath=no
  13143. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13144. ;;
  13145. esac
  13146. ;;
  13147. sysv4*MP*)
  13148. if test -d /usr/nec ;then
  13149. version_type=linux
  13150. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13151. soname_spec='$libname${shared_ext}.$major'
  13152. shlibpath_var=LD_LIBRARY_PATH
  13153. fi
  13154. ;;
  13155. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13156. version_type=freebsd-elf
  13157. need_lib_prefix=no
  13158. need_version=no
  13159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13160. soname_spec='${libname}${release}${shared_ext}$major'
  13161. shlibpath_var=LD_LIBRARY_PATH
  13162. shlibpath_overrides_runpath=yes
  13163. hardcode_into_libs=yes
  13164. if test "$with_gnu_ld" = yes; then
  13165. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13166. else
  13167. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13168. case $host_os in
  13169. sco3.2v5*)
  13170. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13171. ;;
  13172. esac
  13173. fi
  13174. sys_lib_dlsearch_path_spec='/usr/lib'
  13175. ;;
  13176. tpf*)
  13177. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13178. version_type=linux
  13179. need_lib_prefix=no
  13180. need_version=no
  13181. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13182. shlibpath_var=LD_LIBRARY_PATH
  13183. shlibpath_overrides_runpath=no
  13184. hardcode_into_libs=yes
  13185. ;;
  13186. uts4*)
  13187. version_type=linux
  13188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13189. soname_spec='${libname}${release}${shared_ext}$major'
  13190. shlibpath_var=LD_LIBRARY_PATH
  13191. ;;
  13192. *)
  13193. dynamic_linker=no
  13194. ;;
  13195. esac
  13196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13197. $as_echo "$dynamic_linker" >&6; }
  13198. test "$dynamic_linker" = no && can_build_shared=no
  13199. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13200. if test "$GCC" = yes; then
  13201. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13202. fi
  13203. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13204. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13205. fi
  13206. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13207. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13208. fi
  13209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13210. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13211. hardcode_action_CXX=
  13212. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13213. test -n "$runpath_var_CXX" ||
  13214. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13215. # We can hardcode non-existent directories.
  13216. if test "$hardcode_direct_CXX" != no &&
  13217. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13218. # have to relink, otherwise we might link with an installed library
  13219. # when we should be linking with a yet-to-be-installed one
  13220. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13221. test "$hardcode_minus_L_CXX" != no; then
  13222. # Linking always hardcodes the temporary library directory.
  13223. hardcode_action_CXX=relink
  13224. else
  13225. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13226. hardcode_action_CXX=immediate
  13227. fi
  13228. else
  13229. # We cannot hardcode anything, or else we can only hardcode existing
  13230. # directories.
  13231. hardcode_action_CXX=unsupported
  13232. fi
  13233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13234. $as_echo "$hardcode_action_CXX" >&6; }
  13235. if test "$hardcode_action_CXX" = relink ||
  13236. test "$inherit_rpath_CXX" = yes; then
  13237. # Fast installation is not supported
  13238. enable_fast_install=no
  13239. elif test "$shlibpath_overrides_runpath" = yes ||
  13240. test "$enable_shared" = no; then
  13241. # Fast installation is not necessary
  13242. enable_fast_install=needless
  13243. fi
  13244. fi # test -n "$compiler"
  13245. CC=$lt_save_CC
  13246. LDCXX=$LD
  13247. LD=$lt_save_LD
  13248. GCC=$lt_save_GCC
  13249. with_gnu_ld=$lt_save_with_gnu_ld
  13250. lt_cv_path_LDCXX=$lt_cv_path_LD
  13251. lt_cv_path_LD=$lt_save_path_LD
  13252. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13253. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13254. fi # test "$_lt_caught_CXX_error" != yes
  13255. ac_ext=c
  13256. ac_cpp='$CPP $CPPFLAGS'
  13257. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13258. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13259. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13260. ac_config_commands="$ac_config_commands libtool"
  13261. # Only expand once:
  13262. for ac_prog in gawk mawk nawk awk
  13263. do
  13264. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13265. set dummy $ac_prog; ac_word=$2
  13266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13267. $as_echo_n "checking for $ac_word... " >&6; }
  13268. if test "${ac_cv_prog_AWK+set}" = set; then :
  13269. $as_echo_n "(cached) " >&6
  13270. else
  13271. if test -n "$AWK"; then
  13272. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  13273. else
  13274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13275. for as_dir in $PATH
  13276. do
  13277. IFS=$as_save_IFS
  13278. test -z "$as_dir" && as_dir=.
  13279. for ac_exec_ext in '' $ac_executable_extensions; do
  13280. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13281. ac_cv_prog_AWK="$ac_prog"
  13282. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13283. break 2
  13284. fi
  13285. done
  13286. done
  13287. IFS=$as_save_IFS
  13288. fi
  13289. fi
  13290. AWK=$ac_cv_prog_AWK
  13291. if test -n "$AWK"; then
  13292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  13293. $as_echo "$AWK" >&6; }
  13294. else
  13295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13296. $as_echo "no" >&6; }
  13297. fi
  13298. test -n "$AWK" && break
  13299. done
  13300. case "$AWK" in
  13301. "") as_fn_error "can't build without awk" "$LINENO" 5 ;;
  13302. esac
  13303. # The cast to long int works around a bug in the HP C Compiler
  13304. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13305. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13306. # This bug is HP SR number 8606223364.
  13307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  13308. $as_echo_n "checking size of void *... " >&6; }
  13309. if test "${ac_cv_sizeof_void_p+set}" = set; then :
  13310. $as_echo_n "(cached) " >&6
  13311. else
  13312. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  13313. else
  13314. if test "$ac_cv_type_void_p" = yes; then
  13315. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13316. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13317. { as_fn_set_status 77
  13318. as_fn_error "cannot compute sizeof (void *)
  13319. See \`config.log' for more details." "$LINENO" 5; }; }
  13320. else
  13321. ac_cv_sizeof_void_p=0
  13322. fi
  13323. fi
  13324. fi
  13325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  13326. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  13327. cat >>confdefs.h <<_ACEOF
  13328. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  13329. _ACEOF
  13330. if test "${multilib}" = "yes"; then
  13331. multilib_arg="--enable-multilib"
  13332. else
  13333. multilib_arg=
  13334. fi
  13335. # Get target configury.
  13336. unset TSAN_SUPPORTED
  13337. unset LSAN_SUPPORTED
  13338. . ${srcdir}/configure.tgt
  13339. if test "x$TSAN_SUPPORTED" = "xyes"; then
  13340. TSAN_SUPPORTED_TRUE=
  13341. TSAN_SUPPORTED_FALSE='#'
  13342. else
  13343. TSAN_SUPPORTED_TRUE='#'
  13344. TSAN_SUPPORTED_FALSE=
  13345. fi
  13346. if test "x$LSAN_SUPPORTED" = "xyes"; then
  13347. LSAN_SUPPORTED_TRUE=
  13348. LSAN_SUPPORTED_FALSE='#'
  13349. else
  13350. LSAN_SUPPORTED_TRUE='#'
  13351. LSAN_SUPPORTED_FALSE=
  13352. fi
  13353. # Check for functions needed.
  13354. for ac_func in clock_getres clock_gettime clock_settime
  13355. do :
  13356. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13357. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13358. eval as_val=\$$as_ac_var
  13359. if test "x$as_val" = x""yes; then :
  13360. cat >>confdefs.h <<_ACEOF
  13361. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13362. _ACEOF
  13363. fi
  13364. done
  13365. # Common libraries that we need to link against for all sanitizer libs.
  13366. link_sanitizer_common='-lpthread -ldl -lm'
  13367. # Set up the set of additional libraries that we need to link against for libasan.
  13368. link_libasan=$link_sanitizer_common
  13369. # Set up the set of additional libraries that we need to link against for libtsan.
  13370. link_libtsan=$link_sanitizer_common
  13371. # Set up the set of additional libraries that we need to link against for libubsan.
  13372. link_libubsan=$link_sanitizer_common
  13373. # Set up the set of additional libraries that we need to link against for liblsan.
  13374. link_liblsan=$link_sanitizer_common
  13375. # At least for glibc, clock_gettime is in librt. But don't pull that
  13376. # in if it still doesn't give us the function we want. This
  13377. # test is copied from libgomp.
  13378. if test $ac_cv_func_clock_gettime = no; then
  13379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  13380. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  13381. if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
  13382. $as_echo_n "(cached) " >&6
  13383. else
  13384. ac_check_lib_save_LIBS=$LIBS
  13385. LIBS="-lrt $LIBS"
  13386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13387. /* end confdefs.h. */
  13388. /* Override any GCC internal prototype to avoid an error.
  13389. Use char because int might match the return type of a GCC
  13390. builtin and then its argument prototype would still apply. */
  13391. #ifdef __cplusplus
  13392. extern "C"
  13393. #endif
  13394. char clock_gettime ();
  13395. int
  13396. main ()
  13397. {
  13398. return clock_gettime ();
  13399. ;
  13400. return 0;
  13401. }
  13402. _ACEOF
  13403. if ac_fn_c_try_link "$LINENO"; then :
  13404. ac_cv_lib_rt_clock_gettime=yes
  13405. else
  13406. ac_cv_lib_rt_clock_gettime=no
  13407. fi
  13408. rm -f core conftest.err conftest.$ac_objext \
  13409. conftest$ac_exeext conftest.$ac_ext
  13410. LIBS=$ac_check_lib_save_LIBS
  13411. fi
  13412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  13413. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  13414. if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
  13415. link_libasan="-lrt $link_libasan"
  13416. link_libtsan="-lrt $link_libtsan"
  13417. # Other sanitizers do not override clock_* API
  13418. fi
  13419. fi
  13420. case "$host" in
  13421. *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
  13422. *) MAC_INTERPOSE=false ;;
  13423. esac
  13424. if $MAC_INTERPOSE; then
  13425. USING_MAC_INTERPOSE_TRUE=
  13426. USING_MAC_INTERPOSE_FALSE='#'
  13427. else
  13428. USING_MAC_INTERPOSE_TRUE='#'
  13429. USING_MAC_INTERPOSE_FALSE=
  13430. fi
  13431. backtrace_supported=yes
  13432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
  13433. $as_echo_n "checking for necessary platform features... " >&6; }
  13434. case "$target" in
  13435. *-*-linux*)
  13436. # Some old Linux distributions miss required syscalls.
  13437. sanitizer_supported=no
  13438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13439. /* end confdefs.h. */
  13440. #include <sys/syscall.h>
  13441. int
  13442. main ()
  13443. {
  13444. syscall (__NR_gettid);
  13445. syscall (__NR_futex);
  13446. syscall (__NR_exit_group);
  13447. ;
  13448. return 0;
  13449. }
  13450. _ACEOF
  13451. if ac_fn_c_try_compile "$LINENO"; then :
  13452. sanitizer_supported=yes
  13453. fi
  13454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13455. ;;
  13456. *)
  13457. sanitizer_supported=yes
  13458. ;;
  13459. esac
  13460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
  13461. $as_echo "$sanitizer_supported" >&6; }
  13462. if test "$sanitizer_supported" = yes; then
  13463. SANITIZER_SUPPORTED_TRUE=
  13464. SANITIZER_SUPPORTED_FALSE='#'
  13465. else
  13466. SANITIZER_SUPPORTED_TRUE='#'
  13467. SANITIZER_SUPPORTED_FALSE=
  13468. fi
  13469. # Test for __sync support.
  13470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
  13471. $as_echo_n "checking __sync extensions... " >&6; }
  13472. if test "${libsanitizer_cv_sys_sync+set}" = set; then :
  13473. $as_echo_n "(cached) " >&6
  13474. else
  13475. if test -n "${with_target_subdir}"; then
  13476. libsanitizer_cv_sys_sync=yes
  13477. else
  13478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13479. /* end confdefs.h. */
  13480. int i;
  13481. int
  13482. main ()
  13483. {
  13484. __sync_bool_compare_and_swap (&i, i, i);
  13485. __sync_lock_test_and_set (&i, 1);
  13486. __sync_lock_release (&i);
  13487. ;
  13488. return 0;
  13489. }
  13490. _ACEOF
  13491. if ac_fn_c_try_link "$LINENO"; then :
  13492. libsanitizer_cv_sys_sync=yes
  13493. else
  13494. libsanitizer_cv_sys_sync=no
  13495. fi
  13496. rm -f core conftest.err conftest.$ac_objext \
  13497. conftest$ac_exeext conftest.$ac_ext
  13498. fi
  13499. fi
  13500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
  13501. $as_echo "$libsanitizer_cv_sys_sync" >&6; }
  13502. if test "$libsanitizer_cv_sys_sync" = "yes"; then
  13503. $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
  13504. fi
  13505. # Test for __atomic support.
  13506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
  13507. $as_echo_n "checking __atomic extensions... " >&6; }
  13508. if test "${libsanitizer_cv_sys_atomic+set}" = set; then :
  13509. $as_echo_n "(cached) " >&6
  13510. else
  13511. if test -n "${with_target_subdir}"; then
  13512. libsanitizer_cv_sys_atomic=yes
  13513. else
  13514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13515. /* end confdefs.h. */
  13516. int i;
  13517. int
  13518. main ()
  13519. {
  13520. __atomic_load_n (&i, __ATOMIC_ACQUIRE);
  13521. __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
  13522. ;
  13523. return 0;
  13524. }
  13525. _ACEOF
  13526. if ac_fn_c_try_link "$LINENO"; then :
  13527. libsanitizer_cv_sys_atomic=yes
  13528. else
  13529. libsanitizer_cv_sys_atomic=no
  13530. fi
  13531. rm -f core conftest.err conftest.$ac_objext \
  13532. conftest$ac_exeext conftest.$ac_ext
  13533. fi
  13534. fi
  13535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
  13536. $as_echo "$libsanitizer_cv_sys_atomic" >&6; }
  13537. if test "$libsanitizer_cv_sys_atomic" = "yes"; then
  13538. $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
  13539. fi
  13540. # The library needs to be able to read the executable itself. Compile
  13541. # a file to determine the executable format. The awk script
  13542. # filetype.awk prints out the file type.
  13543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
  13544. $as_echo_n "checking output filetype... " >&6; }
  13545. if test "${libsanitizer_cv_sys_filetype+set}" = set; then :
  13546. $as_echo_n "(cached) " >&6
  13547. else
  13548. filetype=
  13549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13550. /* end confdefs.h. */
  13551. int i;
  13552. int
  13553. main ()
  13554. {
  13555. int j;
  13556. ;
  13557. return 0;
  13558. }
  13559. _ACEOF
  13560. if ac_fn_c_try_compile "$LINENO"; then :
  13561. filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
  13562. else
  13563. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13564. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13565. as_fn_error "compiler failed
  13566. See \`config.log' for more details." "$LINENO" 5; }
  13567. fi
  13568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13569. libsanitizer_cv_sys_filetype=$filetype
  13570. fi
  13571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
  13572. $as_echo "$libsanitizer_cv_sys_filetype" >&6; }
  13573. # Match the file type to decide what files to compile.
  13574. FORMAT_FILE=
  13575. case "$libsanitizer_cv_sys_filetype" in
  13576. elf*) FORMAT_FILE="elf.lo" ;;
  13577. *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
  13578. $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
  13579. FORMAT_FILE="unknown.lo"
  13580. backtrace_supported=no
  13581. ;;
  13582. esac
  13583. # ELF defines.
  13584. elfsize=
  13585. case "$libsanitizer_cv_sys_filetype" in
  13586. elf32) elfsize=32 ;;
  13587. elf64) elfsize=64 ;;
  13588. esac
  13589. cat >>confdefs.h <<_ACEOF
  13590. #define BACKTRACE_ELF_SIZE $elfsize
  13591. _ACEOF
  13592. BACKTRACE_SUPPORTED=0
  13593. if test "$backtrace_supported" = "yes"; then
  13594. BACKTRACE_SUPPORTED=1
  13595. fi
  13596. inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
  13597. acx_cv_header_stdint=stddef.h
  13598. acx_cv_header_stdint_kind="(already complete)"
  13599. for i in stdint.h $inttype_headers; do
  13600. unset ac_cv_type_uintptr_t
  13601. unset ac_cv_type_uintmax_t
  13602. unset ac_cv_type_int_least32_t
  13603. unset ac_cv_type_int_fast32_t
  13604. unset ac_cv_type_uint64_t
  13605. $as_echo_n "looking for a compliant stdint.h in $i, " >&6
  13606. ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
  13607. #include <$i>
  13608. "
  13609. if test "x$ac_cv_type_uintmax_t" = x""yes; then :
  13610. acx_cv_header_stdint=$i
  13611. else
  13612. continue
  13613. fi
  13614. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  13615. #include <$i>
  13616. "
  13617. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  13618. else
  13619. acx_cv_header_stdint_kind="(mostly complete)"
  13620. fi
  13621. ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
  13622. #include <$i>
  13623. "
  13624. if test "x$ac_cv_type_int_least32_t" = x""yes; then :
  13625. else
  13626. acx_cv_header_stdint_kind="(mostly complete)"
  13627. fi
  13628. ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
  13629. #include <$i>
  13630. "
  13631. if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
  13632. else
  13633. acx_cv_header_stdint_kind="(mostly complete)"
  13634. fi
  13635. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  13636. #include <$i>
  13637. "
  13638. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  13639. else
  13640. acx_cv_header_stdint_kind="(lacks uint64_t)"
  13641. fi
  13642. break
  13643. done
  13644. if test "$acx_cv_header_stdint" = stddef.h; then
  13645. acx_cv_header_stdint_kind="(lacks uintmax_t)"
  13646. for i in stdint.h $inttype_headers; do
  13647. unset ac_cv_type_uintptr_t
  13648. unset ac_cv_type_uint32_t
  13649. unset ac_cv_type_uint64_t
  13650. $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
  13651. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
  13652. #include <$i>
  13653. "
  13654. if test "x$ac_cv_type_uint32_t" = x""yes; then :
  13655. acx_cv_header_stdint=$i
  13656. else
  13657. continue
  13658. fi
  13659. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  13660. #include <$i>
  13661. "
  13662. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  13663. fi
  13664. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  13665. #include <$i>
  13666. "
  13667. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  13668. fi
  13669. break
  13670. done
  13671. fi
  13672. if test "$acx_cv_header_stdint" = stddef.h; then
  13673. acx_cv_header_stdint_kind="(u_intXX_t style)"
  13674. for i in sys/types.h $inttype_headers; do
  13675. unset ac_cv_type_u_int32_t
  13676. unset ac_cv_type_u_int64_t
  13677. $as_echo_n "looking for u_intXX_t types in $i, " >&6
  13678. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
  13679. #include <$i>
  13680. "
  13681. if test "x$ac_cv_type_u_int32_t" = x""yes; then :
  13682. acx_cv_header_stdint=$i
  13683. else
  13684. continue
  13685. fi
  13686. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
  13687. #include <$i>
  13688. "
  13689. if test "x$ac_cv_type_u_int64_t" = x""yes; then :
  13690. fi
  13691. break
  13692. done
  13693. fi
  13694. if test "$acx_cv_header_stdint" = stddef.h; then
  13695. acx_cv_header_stdint_kind="(using manual detection)"
  13696. fi
  13697. test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
  13698. test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
  13699. test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
  13700. test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
  13701. test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
  13702. # ----------------- Summarize what we found so far
  13703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
  13704. $as_echo_n "checking what to include in gstdint.h... " >&6; }
  13705. case `$as_basename -- gstdint.h ||
  13706. $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
  13707. Xgstdint.h : 'X\(//\)$' \| \
  13708. Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
  13709. $as_echo X/gstdint.h |
  13710. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13711. s//\1/
  13712. q
  13713. }
  13714. /^X\/\(\/\/\)$/{
  13715. s//\1/
  13716. q
  13717. }
  13718. /^X\/\(\/\).*/{
  13719. s//\1/
  13720. q
  13721. }
  13722. s/.*/./; q'` in
  13723. stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  13724. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  13725. inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  13726. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  13727. *) ;;
  13728. esac
  13729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
  13730. $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
  13731. # ----------------- done included file, check C basic types --------
  13732. # Lacking an uintptr_t? Test size of void *
  13733. case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
  13734. stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
  13735. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13736. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13737. # This bug is HP SR number 8606223364.
  13738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  13739. $as_echo_n "checking size of void *... " >&6; }
  13740. if test "${ac_cv_sizeof_void_p+set}" = set; then :
  13741. $as_echo_n "(cached) " >&6
  13742. else
  13743. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  13744. else
  13745. if test "$ac_cv_type_void_p" = yes; then
  13746. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13747. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13748. { as_fn_set_status 77
  13749. as_fn_error "cannot compute sizeof (void *)
  13750. See \`config.log' for more details." "$LINENO" 5; }; }
  13751. else
  13752. ac_cv_sizeof_void_p=0
  13753. fi
  13754. fi
  13755. fi
  13756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  13757. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  13758. cat >>confdefs.h <<_ACEOF
  13759. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  13760. _ACEOF
  13761. ;;
  13762. esac
  13763. # Lacking an uint64_t? Test size of long
  13764. case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
  13765. stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
  13766. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13767. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13768. # This bug is HP SR number 8606223364.
  13769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  13770. $as_echo_n "checking size of long... " >&6; }
  13771. if test "${ac_cv_sizeof_long+set}" = set; then :
  13772. $as_echo_n "(cached) " >&6
  13773. else
  13774. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  13775. else
  13776. if test "$ac_cv_type_long" = yes; then
  13777. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13778. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13779. { as_fn_set_status 77
  13780. as_fn_error "cannot compute sizeof (long)
  13781. See \`config.log' for more details." "$LINENO" 5; }; }
  13782. else
  13783. ac_cv_sizeof_long=0
  13784. fi
  13785. fi
  13786. fi
  13787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  13788. $as_echo "$ac_cv_sizeof_long" >&6; }
  13789. cat >>confdefs.h <<_ACEOF
  13790. #define SIZEOF_LONG $ac_cv_sizeof_long
  13791. _ACEOF
  13792. ;;
  13793. esac
  13794. if test $acx_cv_header_stdint = stddef.h; then
  13795. # Lacking a good header? Test size of everything and deduce all types.
  13796. # The cast to long int works around a bug in the HP C Compiler
  13797. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13798. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13799. # This bug is HP SR number 8606223364.
  13800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  13801. $as_echo_n "checking size of int... " >&6; }
  13802. if test "${ac_cv_sizeof_int+set}" = set; then :
  13803. $as_echo_n "(cached) " >&6
  13804. else
  13805. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  13806. else
  13807. if test "$ac_cv_type_int" = yes; then
  13808. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13809. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13810. { as_fn_set_status 77
  13811. as_fn_error "cannot compute sizeof (int)
  13812. See \`config.log' for more details." "$LINENO" 5; }; }
  13813. else
  13814. ac_cv_sizeof_int=0
  13815. fi
  13816. fi
  13817. fi
  13818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  13819. $as_echo "$ac_cv_sizeof_int" >&6; }
  13820. cat >>confdefs.h <<_ACEOF
  13821. #define SIZEOF_INT $ac_cv_sizeof_int
  13822. _ACEOF
  13823. # The cast to long int works around a bug in the HP C Compiler
  13824. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13825. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13826. # This bug is HP SR number 8606223364.
  13827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  13828. $as_echo_n "checking size of short... " >&6; }
  13829. if test "${ac_cv_sizeof_short+set}" = set; then :
  13830. $as_echo_n "(cached) " >&6
  13831. else
  13832. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  13833. else
  13834. if test "$ac_cv_type_short" = yes; then
  13835. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13836. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13837. { as_fn_set_status 77
  13838. as_fn_error "cannot compute sizeof (short)
  13839. See \`config.log' for more details." "$LINENO" 5; }; }
  13840. else
  13841. ac_cv_sizeof_short=0
  13842. fi
  13843. fi
  13844. fi
  13845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  13846. $as_echo "$ac_cv_sizeof_short" >&6; }
  13847. cat >>confdefs.h <<_ACEOF
  13848. #define SIZEOF_SHORT $ac_cv_sizeof_short
  13849. _ACEOF
  13850. # The cast to long int works around a bug in the HP C Compiler
  13851. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13852. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13853. # This bug is HP SR number 8606223364.
  13854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
  13855. $as_echo_n "checking size of char... " >&6; }
  13856. if test "${ac_cv_sizeof_char+set}" = set; then :
  13857. $as_echo_n "(cached) " >&6
  13858. else
  13859. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
  13860. else
  13861. if test "$ac_cv_type_char" = yes; then
  13862. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13863. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13864. { as_fn_set_status 77
  13865. as_fn_error "cannot compute sizeof (char)
  13866. See \`config.log' for more details." "$LINENO" 5; }; }
  13867. else
  13868. ac_cv_sizeof_char=0
  13869. fi
  13870. fi
  13871. fi
  13872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
  13873. $as_echo "$ac_cv_sizeof_char" >&6; }
  13874. cat >>confdefs.h <<_ACEOF
  13875. #define SIZEOF_CHAR $ac_cv_sizeof_char
  13876. _ACEOF
  13877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
  13878. $as_echo_n "checking for type equivalent to int8_t... " >&6; }
  13879. case "$ac_cv_sizeof_char" in
  13880. 1) acx_cv_type_int8_t=char ;;
  13881. *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
  13882. esac
  13883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
  13884. $as_echo "$acx_cv_type_int8_t" >&6; }
  13885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
  13886. $as_echo_n "checking for type equivalent to int16_t... " >&6; }
  13887. case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
  13888. 2:*) acx_cv_type_int16_t=int ;;
  13889. *:2) acx_cv_type_int16_t=short ;;
  13890. *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
  13891. esac
  13892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
  13893. $as_echo "$acx_cv_type_int16_t" >&6; }
  13894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
  13895. $as_echo_n "checking for type equivalent to int32_t... " >&6; }
  13896. case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
  13897. 4:*) acx_cv_type_int32_t=int ;;
  13898. *:4) acx_cv_type_int32_t=long ;;
  13899. *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
  13900. esac
  13901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
  13902. $as_echo "$acx_cv_type_int32_t" >&6; }
  13903. fi
  13904. # These tests are here to make the output prettier
  13905. if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
  13906. case "$ac_cv_sizeof_long" in
  13907. 8) acx_cv_type_int64_t=long ;;
  13908. esac
  13909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
  13910. $as_echo_n "checking for type equivalent to int64_t... " >&6; }
  13911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
  13912. $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
  13913. fi
  13914. # Now we can use the above types
  13915. if test "$ac_cv_type_uintptr_t" != yes; then
  13916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
  13917. $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
  13918. case $ac_cv_sizeof_void_p in
  13919. 2) acx_cv_type_intptr_t=int16_t ;;
  13920. 4) acx_cv_type_intptr_t=int32_t ;;
  13921. 8) acx_cv_type_intptr_t=int64_t ;;
  13922. *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
  13923. esac
  13924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
  13925. $as_echo "$acx_cv_type_intptr_t" >&6; }
  13926. fi
  13927. # ----------------- done all checks, emit header -------------
  13928. ac_config_commands="$ac_config_commands gstdint.h"
  13929. for ac_header in sys/mman.h alloca.h
  13930. do :
  13931. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13932. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13933. eval as_val=\$$as_ac_Header
  13934. if test "x$as_val" = x""yes; then :
  13935. cat >>confdefs.h <<_ACEOF
  13936. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13937. _ACEOF
  13938. fi
  13939. done
  13940. if test "$ac_cv_header_sys_mman_h" = "no"; then
  13941. have_mmap=no
  13942. else
  13943. if test -n "${with_target_subdir}"; then
  13944. # When built as a GCC target library, we can't do a link test. We
  13945. # simply assume that if we have mman.h, we have mmap.
  13946. have_mmap=yes
  13947. else
  13948. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  13949. if test "x$ac_cv_func_mmap" = x""yes; then :
  13950. have_mmap=yes
  13951. else
  13952. have_mmap=no
  13953. fi
  13954. fi
  13955. fi
  13956. if test "$have_mmap" = "no"; then
  13957. VIEW_FILE=read.lo
  13958. ALLOC_FILE=alloc.lo
  13959. else
  13960. VIEW_FILE=mmapio.lo
  13961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13962. /* end confdefs.h. */
  13963. #include <sys/mman.h>
  13964. #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
  13965. #error no MAP_ANONYMOUS
  13966. #endif
  13967. _ACEOF
  13968. if ac_fn_c_try_cpp "$LINENO"; then :
  13969. ALLOC_FILE=mmap.lo
  13970. else
  13971. ALLOC_FILE=alloc.lo
  13972. fi
  13973. rm -f conftest.err conftest.$ac_ext
  13974. fi
  13975. BACKTRACE_USES_MALLOC=0
  13976. if test "$ALLOC_FILE" = "alloc.lo"; then
  13977. BACKTRACE_USES_MALLOC=1
  13978. fi
  13979. # Don't care about thread support
  13980. BACKTRACE_SUPPORTS_THREADS=0
  13981. # Check for dl_iterate_phdr.
  13982. for ac_header in link.h
  13983. do :
  13984. ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
  13985. if test "x$ac_cv_header_link_h" = x""yes; then :
  13986. cat >>confdefs.h <<_ACEOF
  13987. #define HAVE_LINK_H 1
  13988. _ACEOF
  13989. fi
  13990. done
  13991. if test "$ac_cv_header_link_h" = "no"; then
  13992. have_dl_iterate_phdr=no
  13993. else
  13994. # When built as a GCC target library, we can't do a link test.
  13995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13996. /* end confdefs.h. */
  13997. #include <link.h>
  13998. _ACEOF
  13999. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14000. $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
  14001. have_dl_iterate_phdr=yes
  14002. else
  14003. have_dl_iterate_phdr=no
  14004. fi
  14005. rm -f conftest*
  14006. case "${host}" in
  14007. *-*-solaris2.10*)
  14008. # Avoid dl_iterate_phdr on Solaris 10, where it is in the
  14009. # header file but is only in -ldl.
  14010. have_dl_iterate_phdr=no ;;
  14011. esac
  14012. fi
  14013. if test "$have_dl_iterate_phdr" = "yes"; then
  14014. $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
  14015. fi
  14016. # Check for the fcntl function.
  14017. if test -n "${with_target_subdir}"; then
  14018. case "${host}" in
  14019. *-*-mingw*) have_fcntl=no ;;
  14020. *) have_fcntl=yes ;;
  14021. esac
  14022. else
  14023. ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
  14024. if test "x$ac_cv_func_fcntl" = x""yes; then :
  14025. have_fcntl=yes
  14026. else
  14027. have_fcntl=no
  14028. fi
  14029. fi
  14030. if test "$have_fcntl" = "yes"; then
  14031. $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
  14032. fi
  14033. ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
  14034. if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
  14035. ac_have_decl=1
  14036. else
  14037. ac_have_decl=0
  14038. fi
  14039. cat >>confdefs.h <<_ACEOF
  14040. #define HAVE_DECL_STRNLEN $ac_have_decl
  14041. _ACEOF
  14042. # Check for getexecname function.
  14043. if test -n "${with_target_subdir}"; then
  14044. case "${host}" in
  14045. *-*-solaris2*) have_getexecname=yes ;;
  14046. *) have_getexecname=no ;;
  14047. esac
  14048. else
  14049. ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
  14050. if test "x$ac_cv_func_getexecname" = x""yes; then :
  14051. have_getexecname=yes
  14052. else
  14053. have_getexecname=no
  14054. fi
  14055. fi
  14056. if test "$have_getexecname" = "yes"; then
  14057. $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
  14058. fi
  14059. # Check for rpc/xdr.h
  14060. for ac_header in rpc/xdr.h
  14061. do :
  14062. ac_fn_c_check_header_mongrel "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default"
  14063. if test "x$ac_cv_header_rpc_xdr_h" = x""yes; then :
  14064. cat >>confdefs.h <<_ACEOF
  14065. #define HAVE_RPC_XDR_H 1
  14066. _ACEOF
  14067. fi
  14068. done
  14069. if test x"$ac_cv_header_rpc_xdr_h" = xyes; then
  14070. rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=1"
  14071. else
  14072. rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=0"
  14073. fi
  14074. # Check for tirpc/rpc/xdr.h
  14075. for ac_header in tirpc/rpc/xdr.h
  14076. do :
  14077. ac_fn_c_check_header_mongrel "$LINENO" "tirpc/rpc/xdr.h" "ac_cv_header_tirpc_rpc_xdr_h" "$ac_includes_default"
  14078. if test "x$ac_cv_header_tirpc_rpc_xdr_h" = x""yes; then :
  14079. cat >>confdefs.h <<_ACEOF
  14080. #define HAVE_TIRPC_RPC_XDR_H 1
  14081. _ACEOF
  14082. fi
  14083. done
  14084. if test x"$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then
  14085. rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=1"
  14086. else
  14087. rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=0"
  14088. fi
  14089. RPC_DEFS=$rpc_defs
  14090. if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
  14091. LIBBACKTRACE_SUPPORTED_TRUE=
  14092. LIBBACKTRACE_SUPPORTED_FALSE='#'
  14093. else
  14094. LIBBACKTRACE_SUPPORTED_TRUE='#'
  14095. LIBBACKTRACE_SUPPORTED_FALSE=
  14096. fi
  14097. ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
  14098. ac_config_headers="$ac_config_headers config.h"
  14099. ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
  14100. if test "x$TSAN_SUPPORTED" = "xyes"; then
  14101. ac_config_files="$ac_config_files tsan/Makefile"
  14102. fi
  14103. cat >confcache <<\_ACEOF
  14104. # This file is a shell script that caches the results of configure
  14105. # tests run on this system so they can be shared between configure
  14106. # scripts and configure runs, see configure's option --config-cache.
  14107. # It is not useful on other systems. If it contains results you don't
  14108. # want to keep, you may remove or edit it.
  14109. #
  14110. # config.status only pays attention to the cache file if you give it
  14111. # the --recheck option to rerun configure.
  14112. #
  14113. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14114. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14115. # following values.
  14116. _ACEOF
  14117. # The following way of writing the cache mishandles newlines in values,
  14118. # but we know of no workaround that is simple, portable, and efficient.
  14119. # So, we kill variables containing newlines.
  14120. # Ultrix sh set writes to stderr and can't be redirected directly,
  14121. # and sets the high bit in the cache file unless we assign to the vars.
  14122. (
  14123. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14124. eval ac_val=\$$ac_var
  14125. case $ac_val in #(
  14126. *${as_nl}*)
  14127. case $ac_var in #(
  14128. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14129. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14130. esac
  14131. case $ac_var in #(
  14132. _ | IFS | as_nl) ;; #(
  14133. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14134. *) { eval $ac_var=; unset $ac_var;} ;;
  14135. esac ;;
  14136. esac
  14137. done
  14138. (set) 2>&1 |
  14139. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14140. *${as_nl}ac_space=\ *)
  14141. # `set' does not quote correctly, so add quotes: double-quote
  14142. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14143. sed -n \
  14144. "s/'/'\\\\''/g;
  14145. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14146. ;; #(
  14147. *)
  14148. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14149. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14150. ;;
  14151. esac |
  14152. sort
  14153. ) |
  14154. sed '
  14155. /^ac_cv_env_/b end
  14156. t clear
  14157. :clear
  14158. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14159. t end
  14160. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14161. :end' >>confcache
  14162. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14163. if test -w "$cache_file"; then
  14164. test "x$cache_file" != "x/dev/null" &&
  14165. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14166. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14167. cat confcache >$cache_file
  14168. else
  14169. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14170. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14171. fi
  14172. fi
  14173. rm -f confcache
  14174. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14175. # Let make expand exec_prefix.
  14176. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14177. DEFS=-DHAVE_CONFIG_H
  14178. ac_libobjs=
  14179. ac_ltlibobjs=
  14180. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14181. # 1. Remove the extension, and $U if already installed.
  14182. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14183. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14184. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14185. # will be set to the directory where LIBOBJS objects are built.
  14186. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14187. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14188. done
  14189. LIBOBJS=$ac_libobjs
  14190. LTLIBOBJS=$ac_ltlibobjs
  14191. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14192. as_fn_error "conditional \"AMDEP\" was never defined.
  14193. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14194. fi
  14195. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14196. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  14197. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14198. fi
  14199. if test -n "$EXEEXT"; then
  14200. am__EXEEXT_TRUE=
  14201. am__EXEEXT_FALSE='#'
  14202. else
  14203. am__EXEEXT_TRUE='#'
  14204. am__EXEEXT_FALSE=
  14205. fi
  14206. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  14207. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  14208. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14209. fi
  14210. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14211. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  14212. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14213. fi
  14214. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  14215. as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
  14216. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14217. fi
  14218. if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
  14219. as_fn_error "conditional \"TSAN_SUPPORTED\" was never defined.
  14220. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14221. fi
  14222. if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
  14223. as_fn_error "conditional \"LSAN_SUPPORTED\" was never defined.
  14224. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14225. fi
  14226. if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
  14227. as_fn_error "conditional \"USING_MAC_INTERPOSE\" was never defined.
  14228. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14229. fi
  14230. if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
  14231. as_fn_error "conditional \"SANITIZER_SUPPORTED\" was never defined.
  14232. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14233. fi
  14234. if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
  14235. as_fn_error "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
  14236. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14237. fi
  14238. : ${CONFIG_STATUS=./config.status}
  14239. ac_write_fail=0
  14240. ac_clean_files_save=$ac_clean_files
  14241. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14242. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14243. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14244. as_write_fail=0
  14245. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14246. #! $SHELL
  14247. # Generated by $as_me.
  14248. # Run this file to recreate the current configuration.
  14249. # Compiler output produced by configure, useful for debugging
  14250. # configure, is in config.log if it exists.
  14251. debug=false
  14252. ac_cs_recheck=false
  14253. ac_cs_silent=false
  14254. SHELL=\${CONFIG_SHELL-$SHELL}
  14255. export SHELL
  14256. _ASEOF
  14257. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14258. ## -------------------- ##
  14259. ## M4sh Initialization. ##
  14260. ## -------------------- ##
  14261. # Be more Bourne compatible
  14262. DUALCASE=1; export DUALCASE # for MKS sh
  14263. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14264. emulate sh
  14265. NULLCMD=:
  14266. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14267. # is contrary to our usage. Disable this feature.
  14268. alias -g '${1+"$@"}'='"$@"'
  14269. setopt NO_GLOB_SUBST
  14270. else
  14271. case `(set -o) 2>/dev/null` in #(
  14272. *posix*) :
  14273. set -o posix ;; #(
  14274. *) :
  14275. ;;
  14276. esac
  14277. fi
  14278. as_nl='
  14279. '
  14280. export as_nl
  14281. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14282. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14283. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14284. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14285. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14286. # but without wasting forks for bash or zsh.
  14287. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14288. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14289. as_echo='print -r --'
  14290. as_echo_n='print -rn --'
  14291. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14292. as_echo='printf %s\n'
  14293. as_echo_n='printf %s'
  14294. else
  14295. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14296. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14297. as_echo_n='/usr/ucb/echo -n'
  14298. else
  14299. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14300. as_echo_n_body='eval
  14301. arg=$1;
  14302. case $arg in #(
  14303. *"$as_nl"*)
  14304. expr "X$arg" : "X\\(.*\\)$as_nl";
  14305. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14306. esac;
  14307. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14308. '
  14309. export as_echo_n_body
  14310. as_echo_n='sh -c $as_echo_n_body as_echo'
  14311. fi
  14312. export as_echo_body
  14313. as_echo='sh -c $as_echo_body as_echo'
  14314. fi
  14315. # The user is always right.
  14316. if test "${PATH_SEPARATOR+set}" != set; then
  14317. PATH_SEPARATOR=:
  14318. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14319. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14320. PATH_SEPARATOR=';'
  14321. }
  14322. fi
  14323. # IFS
  14324. # We need space, tab and new line, in precisely that order. Quoting is
  14325. # there to prevent editors from complaining about space-tab.
  14326. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14327. # splitting by setting IFS to empty value.)
  14328. IFS=" "" $as_nl"
  14329. # Find who we are. Look in the path if we contain no directory separator.
  14330. case $0 in #((
  14331. *[\\/]* ) as_myself=$0 ;;
  14332. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14333. for as_dir in $PATH
  14334. do
  14335. IFS=$as_save_IFS
  14336. test -z "$as_dir" && as_dir=.
  14337. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14338. done
  14339. IFS=$as_save_IFS
  14340. ;;
  14341. esac
  14342. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14343. # in which case we are not to be found in the path.
  14344. if test "x$as_myself" = x; then
  14345. as_myself=$0
  14346. fi
  14347. if test ! -f "$as_myself"; then
  14348. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14349. exit 1
  14350. fi
  14351. # Unset variables that we do not need and which cause bugs (e.g. in
  14352. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14353. # suppresses any "Segmentation fault" message there. '((' could
  14354. # trigger a bug in pdksh 5.2.14.
  14355. for as_var in BASH_ENV ENV MAIL MAILPATH
  14356. do eval test x\${$as_var+set} = xset \
  14357. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14358. done
  14359. PS1='$ '
  14360. PS2='> '
  14361. PS4='+ '
  14362. # NLS nuisances.
  14363. LC_ALL=C
  14364. export LC_ALL
  14365. LANGUAGE=C
  14366. export LANGUAGE
  14367. # CDPATH.
  14368. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14369. # as_fn_error ERROR [LINENO LOG_FD]
  14370. # ---------------------------------
  14371. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14372. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14373. # script with status $?, using 1 if that was 0.
  14374. as_fn_error ()
  14375. {
  14376. as_status=$?; test $as_status -eq 0 && as_status=1
  14377. if test "$3"; then
  14378. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14379. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  14380. fi
  14381. $as_echo "$as_me: error: $1" >&2
  14382. as_fn_exit $as_status
  14383. } # as_fn_error
  14384. # as_fn_set_status STATUS
  14385. # -----------------------
  14386. # Set $? to STATUS, without forking.
  14387. as_fn_set_status ()
  14388. {
  14389. return $1
  14390. } # as_fn_set_status
  14391. # as_fn_exit STATUS
  14392. # -----------------
  14393. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14394. as_fn_exit ()
  14395. {
  14396. set +e
  14397. as_fn_set_status $1
  14398. exit $1
  14399. } # as_fn_exit
  14400. # as_fn_unset VAR
  14401. # ---------------
  14402. # Portably unset VAR.
  14403. as_fn_unset ()
  14404. {
  14405. { eval $1=; unset $1;}
  14406. }
  14407. as_unset=as_fn_unset
  14408. # as_fn_append VAR VALUE
  14409. # ----------------------
  14410. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14411. # advantage of any shell optimizations that allow amortized linear growth over
  14412. # repeated appends, instead of the typical quadratic growth present in naive
  14413. # implementations.
  14414. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14415. eval 'as_fn_append ()
  14416. {
  14417. eval $1+=\$2
  14418. }'
  14419. else
  14420. as_fn_append ()
  14421. {
  14422. eval $1=\$$1\$2
  14423. }
  14424. fi # as_fn_append
  14425. # as_fn_arith ARG...
  14426. # ------------------
  14427. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14428. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14429. # must be portable across $(()) and expr.
  14430. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14431. eval 'as_fn_arith ()
  14432. {
  14433. as_val=$(( $* ))
  14434. }'
  14435. else
  14436. as_fn_arith ()
  14437. {
  14438. as_val=`expr "$@" || test $? -eq 1`
  14439. }
  14440. fi # as_fn_arith
  14441. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14442. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14443. as_expr=expr
  14444. else
  14445. as_expr=false
  14446. fi
  14447. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14448. as_basename=basename
  14449. else
  14450. as_basename=false
  14451. fi
  14452. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14453. as_dirname=dirname
  14454. else
  14455. as_dirname=false
  14456. fi
  14457. as_me=`$as_basename -- "$0" ||
  14458. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14459. X"$0" : 'X\(//\)$' \| \
  14460. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14461. $as_echo X/"$0" |
  14462. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14463. s//\1/
  14464. q
  14465. }
  14466. /^X\/\(\/\/\)$/{
  14467. s//\1/
  14468. q
  14469. }
  14470. /^X\/\(\/\).*/{
  14471. s//\1/
  14472. q
  14473. }
  14474. s/.*/./; q'`
  14475. # Avoid depending upon Character Ranges.
  14476. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14477. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14478. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14479. as_cr_digits='0123456789'
  14480. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14481. ECHO_C= ECHO_N= ECHO_T=
  14482. case `echo -n x` in #(((((
  14483. -n*)
  14484. case `echo 'xy\c'` in
  14485. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14486. xy) ECHO_C='\c';;
  14487. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14488. ECHO_T=' ';;
  14489. esac;;
  14490. *)
  14491. ECHO_N='-n';;
  14492. esac
  14493. rm -f conf$$ conf$$.exe conf$$.file
  14494. if test -d conf$$.dir; then
  14495. rm -f conf$$.dir/conf$$.file
  14496. else
  14497. rm -f conf$$.dir
  14498. mkdir conf$$.dir 2>/dev/null
  14499. fi
  14500. if (echo >conf$$.file) 2>/dev/null; then
  14501. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14502. as_ln_s='ln -s'
  14503. # ... but there are two gotchas:
  14504. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14505. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14506. # In both cases, we have to default to `cp -p'.
  14507. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14508. as_ln_s='cp -p'
  14509. elif ln conf$$.file conf$$ 2>/dev/null; then
  14510. as_ln_s=ln
  14511. else
  14512. as_ln_s='cp -p'
  14513. fi
  14514. else
  14515. as_ln_s='cp -p'
  14516. fi
  14517. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14518. rmdir conf$$.dir 2>/dev/null
  14519. # as_fn_mkdir_p
  14520. # -------------
  14521. # Create "$as_dir" as a directory, including parents if necessary.
  14522. as_fn_mkdir_p ()
  14523. {
  14524. case $as_dir in #(
  14525. -*) as_dir=./$as_dir;;
  14526. esac
  14527. test -d "$as_dir" || eval $as_mkdir_p || {
  14528. as_dirs=
  14529. while :; do
  14530. case $as_dir in #(
  14531. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14532. *) as_qdir=$as_dir;;
  14533. esac
  14534. as_dirs="'$as_qdir' $as_dirs"
  14535. as_dir=`$as_dirname -- "$as_dir" ||
  14536. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14537. X"$as_dir" : 'X\(//\)[^/]' \| \
  14538. X"$as_dir" : 'X\(//\)$' \| \
  14539. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14540. $as_echo X"$as_dir" |
  14541. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14542. s//\1/
  14543. q
  14544. }
  14545. /^X\(\/\/\)[^/].*/{
  14546. s//\1/
  14547. q
  14548. }
  14549. /^X\(\/\/\)$/{
  14550. s//\1/
  14551. q
  14552. }
  14553. /^X\(\/\).*/{
  14554. s//\1/
  14555. q
  14556. }
  14557. s/.*/./; q'`
  14558. test -d "$as_dir" && break
  14559. done
  14560. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14561. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  14562. } # as_fn_mkdir_p
  14563. if mkdir -p . 2>/dev/null; then
  14564. as_mkdir_p='mkdir -p "$as_dir"'
  14565. else
  14566. test -d ./-p && rmdir ./-p
  14567. as_mkdir_p=false
  14568. fi
  14569. if test -x / >/dev/null 2>&1; then
  14570. as_test_x='test -x'
  14571. else
  14572. if ls -dL / >/dev/null 2>&1; then
  14573. as_ls_L_option=L
  14574. else
  14575. as_ls_L_option=
  14576. fi
  14577. as_test_x='
  14578. eval sh -c '\''
  14579. if test -d "$1"; then
  14580. test -d "$1/.";
  14581. else
  14582. case $1 in #(
  14583. -*)set "./$1";;
  14584. esac;
  14585. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14586. ???[sx]*):;;*)false;;esac;fi
  14587. '\'' sh
  14588. '
  14589. fi
  14590. as_executable_p=$as_test_x
  14591. # Sed expression to map a string onto a valid CPP name.
  14592. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14593. # Sed expression to map a string onto a valid variable name.
  14594. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14595. exec 6>&1
  14596. ## ----------------------------------- ##
  14597. ## Main body of $CONFIG_STATUS script. ##
  14598. ## ----------------------------------- ##
  14599. _ASEOF
  14600. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14601. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14602. # Save the log message, to keep $0 and so on meaningful, and to
  14603. # report actual input values of CONFIG_FILES etc. instead of their
  14604. # values after options handling.
  14605. ac_log="
  14606. This file was extended by package-unused $as_me version-unused, which was
  14607. generated by GNU Autoconf 2.64. Invocation command line was
  14608. CONFIG_FILES = $CONFIG_FILES
  14609. CONFIG_HEADERS = $CONFIG_HEADERS
  14610. CONFIG_LINKS = $CONFIG_LINKS
  14611. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14612. $ $0 $@
  14613. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14614. "
  14615. _ACEOF
  14616. case $ac_config_files in *"
  14617. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14618. esac
  14619. case $ac_config_headers in *"
  14620. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14621. esac
  14622. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14623. # Files that config.status was made for.
  14624. config_files="$ac_config_files"
  14625. config_headers="$ac_config_headers"
  14626. config_commands="$ac_config_commands"
  14627. _ACEOF
  14628. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14629. ac_cs_usage="\
  14630. \`$as_me' instantiates files and other configuration actions
  14631. from templates according to the current configuration. Unless the files
  14632. and actions are specified as TAGs, all are instantiated by default.
  14633. Usage: $0 [OPTION]... [TAG]...
  14634. -h, --help print this help, then exit
  14635. -V, --version print version number and configuration settings, then exit
  14636. -q, --quiet, --silent
  14637. do not print progress messages
  14638. -d, --debug don't remove temporary files
  14639. --recheck update $as_me by reconfiguring in the same conditions
  14640. --file=FILE[:TEMPLATE]
  14641. instantiate the configuration file FILE
  14642. --header=FILE[:TEMPLATE]
  14643. instantiate the configuration header FILE
  14644. Configuration files:
  14645. $config_files
  14646. Configuration headers:
  14647. $config_headers
  14648. Configuration commands:
  14649. $config_commands
  14650. Report bugs to <libsanitizer>."
  14651. _ACEOF
  14652. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14653. ac_cs_version="\\
  14654. package-unused config.status version-unused
  14655. configured by $0, generated by GNU Autoconf 2.64,
  14656. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  14657. Copyright (C) 2009 Free Software Foundation, Inc.
  14658. This config.status script is free software; the Free Software Foundation
  14659. gives unlimited permission to copy, distribute and modify it."
  14660. ac_pwd='$ac_pwd'
  14661. srcdir='$srcdir'
  14662. INSTALL='$INSTALL'
  14663. MKDIR_P='$MKDIR_P'
  14664. AWK='$AWK'
  14665. test -n "\$AWK" || AWK=awk
  14666. _ACEOF
  14667. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14668. # The default lists apply if the user does not specify any file.
  14669. ac_need_defaults=:
  14670. while test $# != 0
  14671. do
  14672. case $1 in
  14673. --*=*)
  14674. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14675. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14676. ac_shift=:
  14677. ;;
  14678. *)
  14679. ac_option=$1
  14680. ac_optarg=$2
  14681. ac_shift=shift
  14682. ;;
  14683. esac
  14684. case $ac_option in
  14685. # Handling of the options.
  14686. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14687. ac_cs_recheck=: ;;
  14688. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14689. $as_echo "$ac_cs_version"; exit ;;
  14690. --debug | --debu | --deb | --de | --d | -d )
  14691. debug=: ;;
  14692. --file | --fil | --fi | --f )
  14693. $ac_shift
  14694. case $ac_optarg in
  14695. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14696. esac
  14697. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14698. ac_need_defaults=false;;
  14699. --header | --heade | --head | --hea )
  14700. $ac_shift
  14701. case $ac_optarg in
  14702. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14703. esac
  14704. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14705. ac_need_defaults=false;;
  14706. --he | --h)
  14707. # Conflict between --help and --header
  14708. as_fn_error "ambiguous option: \`$1'
  14709. Try \`$0 --help' for more information.";;
  14710. --help | --hel | -h )
  14711. $as_echo "$ac_cs_usage"; exit ;;
  14712. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14713. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14714. ac_cs_silent=: ;;
  14715. # This is an error.
  14716. -*) as_fn_error "unrecognized option: \`$1'
  14717. Try \`$0 --help' for more information." ;;
  14718. *) as_fn_append ac_config_targets " $1"
  14719. ac_need_defaults=false ;;
  14720. esac
  14721. shift
  14722. done
  14723. ac_configure_extra_args=
  14724. if $ac_cs_silent; then
  14725. exec 6>/dev/null
  14726. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14727. fi
  14728. _ACEOF
  14729. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14730. if \$ac_cs_recheck; then
  14731. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14732. shift
  14733. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14734. CONFIG_SHELL='$SHELL'
  14735. export CONFIG_SHELL
  14736. exec "\$@"
  14737. fi
  14738. _ACEOF
  14739. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14740. exec 5>>config.log
  14741. {
  14742. echo
  14743. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14744. ## Running $as_me. ##
  14745. _ASBOX
  14746. $as_echo "$ac_log"
  14747. } >&5
  14748. _ACEOF
  14749. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14750. #
  14751. # INIT-COMMANDS
  14752. #
  14753. srcdir="$srcdir"
  14754. host="$host"
  14755. target="$target"
  14756. with_multisubdir="$with_multisubdir"
  14757. with_multisrctop="$with_multisrctop"
  14758. with_target_subdir="$with_target_subdir"
  14759. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  14760. multi_basedir="$multi_basedir"
  14761. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  14762. CC="$CC"
  14763. CXX="$CXX"
  14764. GFORTRAN="$GFORTRAN"
  14765. GCJ="$GCJ"
  14766. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14767. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14768. # if CDPATH is set.
  14769. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14770. sed_quote_subst='$sed_quote_subst'
  14771. double_quote_subst='$double_quote_subst'
  14772. delay_variable_subst='$delay_variable_subst'
  14773. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14774. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14775. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14776. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14777. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14778. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14779. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14780. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14781. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14782. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14783. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14784. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14785. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14786. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14787. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14788. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14789. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14790. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14791. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14792. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14793. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14794. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14795. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14796. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14797. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14798. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14799. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14800. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14801. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14802. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14803. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14804. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14805. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14806. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14807. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14808. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14809. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14810. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14811. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14812. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14813. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14814. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14815. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14816. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14817. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14818. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14819. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14820. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14821. 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"`'
  14822. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14823. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14824. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14825. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14826. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14827. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14828. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14829. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14830. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14831. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14832. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14833. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14834. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14835. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14836. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14837. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14838. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14839. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14840. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14841. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14842. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14843. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14844. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14845. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14846. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14847. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14848. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14849. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14850. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14851. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14852. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14853. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  14854. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14855. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14856. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14857. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14858. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14859. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14860. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14861. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14862. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  14863. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14864. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14865. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14866. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14867. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14868. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14869. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14870. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14871. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14872. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14873. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14874. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14875. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14876. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14877. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14878. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14879. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14880. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14881. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14882. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14883. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14884. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14885. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14886. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14887. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14888. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14889. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14890. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14891. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14892. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14893. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  14894. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  14895. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  14896. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  14897. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  14898. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  14899. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  14900. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14901. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14902. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14903. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  14904. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  14905. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14906. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  14907. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  14908. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  14909. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  14910. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  14911. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  14912. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14913. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14914. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  14915. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14916. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14917. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14918. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14919. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14920. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14921. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14922. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14923. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14924. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14925. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14926. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  14927. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  14928. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  14929. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  14930. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  14931. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  14932. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  14933. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  14934. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  14935. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  14936. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14937. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14938. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14939. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14940. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14941. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  14942. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  14943. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14944. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14945. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  14946. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  14947. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  14948. LTCC='$LTCC'
  14949. LTCFLAGS='$LTCFLAGS'
  14950. compiler='$compiler_DEFAULT'
  14951. # A function that is used when there is no print builtin or printf.
  14952. func_fallback_echo ()
  14953. {
  14954. eval 'cat <<_LTECHO_EOF
  14955. \$1
  14956. _LTECHO_EOF'
  14957. }
  14958. # Quote evaled strings.
  14959. for var in SHELL \
  14960. ECHO \
  14961. SED \
  14962. GREP \
  14963. EGREP \
  14964. FGREP \
  14965. LD \
  14966. NM \
  14967. LN_S \
  14968. lt_SP2NL \
  14969. lt_NL2SP \
  14970. reload_flag \
  14971. OBJDUMP \
  14972. deplibs_check_method \
  14973. file_magic_cmd \
  14974. AR \
  14975. AR_FLAGS \
  14976. STRIP \
  14977. RANLIB \
  14978. CC \
  14979. CFLAGS \
  14980. compiler \
  14981. lt_cv_sys_global_symbol_pipe \
  14982. lt_cv_sys_global_symbol_to_cdecl \
  14983. lt_cv_sys_global_symbol_to_c_name_address \
  14984. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14985. lt_prog_compiler_no_builtin_flag \
  14986. lt_prog_compiler_wl \
  14987. lt_prog_compiler_pic \
  14988. lt_prog_compiler_static \
  14989. lt_cv_prog_compiler_c_o \
  14990. need_locks \
  14991. DSYMUTIL \
  14992. NMEDIT \
  14993. LIPO \
  14994. OTOOL \
  14995. OTOOL64 \
  14996. shrext_cmds \
  14997. export_dynamic_flag_spec \
  14998. whole_archive_flag_spec \
  14999. compiler_needs_object \
  15000. with_gnu_ld \
  15001. allow_undefined_flag \
  15002. no_undefined_flag \
  15003. hardcode_libdir_flag_spec \
  15004. hardcode_libdir_flag_spec_ld \
  15005. hardcode_libdir_separator \
  15006. fix_srcfile_path \
  15007. exclude_expsyms \
  15008. include_expsyms \
  15009. file_list_spec \
  15010. variables_saved_for_relink \
  15011. libname_spec \
  15012. library_names_spec \
  15013. soname_spec \
  15014. install_override_mode \
  15015. finish_eval \
  15016. old_striplib \
  15017. striplib \
  15018. compiler_lib_search_dirs \
  15019. predep_objects \
  15020. postdep_objects \
  15021. predeps \
  15022. postdeps \
  15023. compiler_lib_search_path \
  15024. LD_CXX \
  15025. reload_flag_CXX \
  15026. compiler_CXX \
  15027. lt_prog_compiler_no_builtin_flag_CXX \
  15028. lt_prog_compiler_wl_CXX \
  15029. lt_prog_compiler_pic_CXX \
  15030. lt_prog_compiler_static_CXX \
  15031. lt_cv_prog_compiler_c_o_CXX \
  15032. export_dynamic_flag_spec_CXX \
  15033. whole_archive_flag_spec_CXX \
  15034. compiler_needs_object_CXX \
  15035. with_gnu_ld_CXX \
  15036. allow_undefined_flag_CXX \
  15037. no_undefined_flag_CXX \
  15038. hardcode_libdir_flag_spec_CXX \
  15039. hardcode_libdir_flag_spec_ld_CXX \
  15040. hardcode_libdir_separator_CXX \
  15041. fix_srcfile_path_CXX \
  15042. exclude_expsyms_CXX \
  15043. include_expsyms_CXX \
  15044. file_list_spec_CXX \
  15045. compiler_lib_search_dirs_CXX \
  15046. predep_objects_CXX \
  15047. postdep_objects_CXX \
  15048. predeps_CXX \
  15049. postdeps_CXX \
  15050. compiler_lib_search_path_CXX; do
  15051. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15052. *[\\\\\\\`\\"\\\$]*)
  15053. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15054. ;;
  15055. *)
  15056. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15057. ;;
  15058. esac
  15059. done
  15060. # Double-quote double-evaled strings.
  15061. for var in reload_cmds \
  15062. old_postinstall_cmds \
  15063. old_postuninstall_cmds \
  15064. old_archive_cmds \
  15065. extract_expsyms_cmds \
  15066. old_archive_from_new_cmds \
  15067. old_archive_from_expsyms_cmds \
  15068. archive_cmds \
  15069. archive_expsym_cmds \
  15070. module_cmds \
  15071. module_expsym_cmds \
  15072. export_symbols_cmds \
  15073. prelink_cmds \
  15074. postinstall_cmds \
  15075. postuninstall_cmds \
  15076. finish_cmds \
  15077. sys_lib_search_path_spec \
  15078. sys_lib_dlsearch_path_spec \
  15079. reload_cmds_CXX \
  15080. old_archive_cmds_CXX \
  15081. old_archive_from_new_cmds_CXX \
  15082. old_archive_from_expsyms_cmds_CXX \
  15083. archive_cmds_CXX \
  15084. archive_expsym_cmds_CXX \
  15085. module_cmds_CXX \
  15086. module_expsym_cmds_CXX \
  15087. export_symbols_cmds_CXX \
  15088. prelink_cmds_CXX; do
  15089. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15090. *[\\\\\\\`\\"\\\$]*)
  15091. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15092. ;;
  15093. *)
  15094. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15095. ;;
  15096. esac
  15097. done
  15098. ac_aux_dir='$ac_aux_dir'
  15099. xsi_shell='$xsi_shell'
  15100. lt_shell_append='$lt_shell_append'
  15101. # See if we are running on zsh, and set the options which allow our
  15102. # commands through without removal of \ escapes INIT.
  15103. if test -n "\${ZSH_VERSION+set}" ; then
  15104. setopt NO_GLOB_SUBST
  15105. fi
  15106. PACKAGE='$PACKAGE'
  15107. VERSION='$VERSION'
  15108. TIMESTAMP='$TIMESTAMP'
  15109. RM='$RM'
  15110. ofile='$ofile'
  15111. GCC="$GCC"
  15112. CC="$CC"
  15113. acx_cv_header_stdint="$acx_cv_header_stdint"
  15114. acx_cv_type_int8_t="$acx_cv_type_int8_t"
  15115. acx_cv_type_int16_t="$acx_cv_type_int16_t"
  15116. acx_cv_type_int32_t="$acx_cv_type_int32_t"
  15117. acx_cv_type_int64_t="$acx_cv_type_int64_t"
  15118. acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
  15119. ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
  15120. ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
  15121. ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
  15122. ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
  15123. ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
  15124. ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
  15125. ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
  15126. ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
  15127. _ACEOF
  15128. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15129. # Handling of arguments.
  15130. for ac_config_target in $ac_config_targets
  15131. do
  15132. case $ac_config_target in
  15133. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  15134. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15135. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15136. "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
  15137. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15138. "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
  15139. "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
  15140. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15141. "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
  15142. "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
  15143. "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;;
  15144. "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
  15145. "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
  15146. "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
  15147. "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
  15148. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15149. esac
  15150. done
  15151. # If the user did not use the arguments to specify the items to instantiate,
  15152. # then the envvar interface is used. Set only those that are not.
  15153. # We use the long form for the default assignment because of an extremely
  15154. # bizarre bug on SunOS 4.1.3.
  15155. if $ac_need_defaults; then
  15156. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15157. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15158. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15159. fi
  15160. # Have a temporary directory for convenience. Make it in the build tree
  15161. # simply because there is no reason against having it here, and in addition,
  15162. # creating and moving files from /tmp can sometimes cause problems.
  15163. # Hook for its removal unless debugging.
  15164. # Note that there is a small window in which the directory will not be cleaned:
  15165. # after its creation but before its name has been assigned to `$tmp'.
  15166. $debug ||
  15167. {
  15168. tmp=
  15169. trap 'exit_status=$?
  15170. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  15171. ' 0
  15172. trap 'as_fn_exit 1' 1 2 13 15
  15173. }
  15174. # Create a (secure) tmp directory for tmp files.
  15175. {
  15176. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15177. test -n "$tmp" && test -d "$tmp"
  15178. } ||
  15179. {
  15180. tmp=./conf$$-$RANDOM
  15181. (umask 077 && mkdir "$tmp")
  15182. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  15183. # Set up the scripts for CONFIG_FILES section.
  15184. # No need to generate them if there are no CONFIG_FILES.
  15185. # This happens for instance with `./config.status config.h'.
  15186. if test -n "$CONFIG_FILES"; then
  15187. ac_cr=`echo X | tr X '\015'`
  15188. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15189. # But we know of no other shell where ac_cr would be empty at this
  15190. # point, so we can use a bashism as a fallback.
  15191. if test "x$ac_cr" = x; then
  15192. eval ac_cr=\$\'\\r\'
  15193. fi
  15194. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15195. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15196. ac_cs_awk_cr='\r'
  15197. else
  15198. ac_cs_awk_cr=$ac_cr
  15199. fi
  15200. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  15201. _ACEOF
  15202. {
  15203. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15204. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15205. echo "_ACEOF"
  15206. } >conf$$subs.sh ||
  15207. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15208. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  15209. ac_delim='%!_!# '
  15210. for ac_last_try in false false false false false :; do
  15211. . ./conf$$subs.sh ||
  15212. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15213. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15214. if test $ac_delim_n = $ac_delim_num; then
  15215. break
  15216. elif $ac_last_try; then
  15217. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15218. else
  15219. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15220. fi
  15221. done
  15222. rm -f conf$$subs.sh
  15223. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15224. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  15225. _ACEOF
  15226. sed -n '
  15227. h
  15228. s/^/S["/; s/!.*/"]=/
  15229. p
  15230. g
  15231. s/^[^!]*!//
  15232. :repl
  15233. t repl
  15234. s/'"$ac_delim"'$//
  15235. t delim
  15236. :nl
  15237. h
  15238. s/\(.\{148\}\).*/\1/
  15239. t more1
  15240. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15241. p
  15242. n
  15243. b repl
  15244. :more1
  15245. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15246. p
  15247. g
  15248. s/.\{148\}//
  15249. t nl
  15250. :delim
  15251. h
  15252. s/\(.\{148\}\).*/\1/
  15253. t more2
  15254. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15255. p
  15256. b
  15257. :more2
  15258. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15259. p
  15260. g
  15261. s/.\{148\}//
  15262. t delim
  15263. ' <conf$$subs.awk | sed '
  15264. /^[^""]/{
  15265. N
  15266. s/\n//
  15267. }
  15268. ' >>$CONFIG_STATUS || ac_write_fail=1
  15269. rm -f conf$$subs.awk
  15270. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15271. _ACAWK
  15272. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  15273. for (key in S) S_is_set[key] = 1
  15274. FS = ""
  15275. }
  15276. {
  15277. line = $ 0
  15278. nfields = split(line, field, "@")
  15279. substed = 0
  15280. len = length(field[1])
  15281. for (i = 2; i < nfields; i++) {
  15282. key = field[i]
  15283. keylen = length(key)
  15284. if (S_is_set[key]) {
  15285. value = S[key]
  15286. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15287. len += length(value) + length(field[++i])
  15288. substed = 1
  15289. } else
  15290. len += 1 + keylen
  15291. }
  15292. print line
  15293. }
  15294. _ACAWK
  15295. _ACEOF
  15296. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15297. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15298. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15299. else
  15300. cat
  15301. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  15302. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  15303. _ACEOF
  15304. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  15305. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  15306. # trailing colons and then remove the whole line if VPATH becomes empty
  15307. # (actually we leave an empty line to preserve line numbers).
  15308. if test "x$srcdir" = x.; then
  15309. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  15310. s/:*\$(srcdir):*/:/
  15311. s/:*\${srcdir}:*/:/
  15312. s/:*@srcdir@:*/:/
  15313. s/^\([^=]*=[ ]*\):*/\1/
  15314. s/:*$//
  15315. s/^[^=]*=[ ]*$//
  15316. }'
  15317. fi
  15318. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15319. fi # test -n "$CONFIG_FILES"
  15320. # Set up the scripts for CONFIG_HEADERS section.
  15321. # No need to generate them if there are no CONFIG_HEADERS.
  15322. # This happens for instance with `./config.status Makefile'.
  15323. if test -n "$CONFIG_HEADERS"; then
  15324. cat >"$tmp/defines.awk" <<\_ACAWK ||
  15325. BEGIN {
  15326. _ACEOF
  15327. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15328. # here-document in config.status, that substitutes the proper values into
  15329. # config.h.in to produce config.h.
  15330. # Create a delimiter string that does not exist in confdefs.h, to ease
  15331. # handling of long lines.
  15332. ac_delim='%!_!# '
  15333. for ac_last_try in false false :; do
  15334. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  15335. if test -z "$ac_t"; then
  15336. break
  15337. elif $ac_last_try; then
  15338. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  15339. else
  15340. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15341. fi
  15342. done
  15343. # For the awk script, D is an array of macro values keyed by name,
  15344. # likewise P contains macro parameters if any. Preserve backslash
  15345. # newline sequences.
  15346. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15347. sed -n '
  15348. s/.\{148\}/&'"$ac_delim"'/g
  15349. t rset
  15350. :rset
  15351. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15352. t def
  15353. d
  15354. :def
  15355. s/\\$//
  15356. t bsnl
  15357. s/["\\]/\\&/g
  15358. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15359. D["\1"]=" \3"/p
  15360. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15361. d
  15362. :bsnl
  15363. s/["\\]/\\&/g
  15364. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15365. D["\1"]=" \3\\\\\\n"\\/p
  15366. t cont
  15367. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15368. t cont
  15369. d
  15370. :cont
  15371. n
  15372. s/.\{148\}/&'"$ac_delim"'/g
  15373. t clear
  15374. :clear
  15375. s/\\$//
  15376. t bsnlc
  15377. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15378. d
  15379. :bsnlc
  15380. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15381. b cont
  15382. ' <confdefs.h | sed '
  15383. s/'"$ac_delim"'/"\\\
  15384. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15385. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15386. for (key in D) D_is_set[key] = 1
  15387. FS = ""
  15388. }
  15389. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15390. line = \$ 0
  15391. split(line, arg, " ")
  15392. if (arg[1] == "#") {
  15393. defundef = arg[2]
  15394. mac1 = arg[3]
  15395. } else {
  15396. defundef = substr(arg[1], 2)
  15397. mac1 = arg[2]
  15398. }
  15399. split(mac1, mac2, "(") #)
  15400. macro = mac2[1]
  15401. prefix = substr(line, 1, index(line, defundef) - 1)
  15402. if (D_is_set[macro]) {
  15403. # Preserve the white space surrounding the "#".
  15404. print prefix "define", macro P[macro] D[macro]
  15405. next
  15406. } else {
  15407. # Replace #undef with comments. This is necessary, for example,
  15408. # in the case of _POSIX_SOURCE, which is predefined and required
  15409. # on some systems where configure will not decide to define it.
  15410. if (defundef == "undef") {
  15411. print "/*", prefix defundef, macro, "*/"
  15412. next
  15413. }
  15414. }
  15415. }
  15416. { print }
  15417. _ACAWK
  15418. _ACEOF
  15419. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15420. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  15421. fi # test -n "$CONFIG_HEADERS"
  15422. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15423. shift
  15424. for ac_tag
  15425. do
  15426. case $ac_tag in
  15427. :[FHLC]) ac_mode=$ac_tag; continue;;
  15428. esac
  15429. case $ac_mode$ac_tag in
  15430. :[FHL]*:*);;
  15431. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15432. :[FH]-) ac_tag=-:-;;
  15433. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15434. esac
  15435. ac_save_IFS=$IFS
  15436. IFS=:
  15437. set x $ac_tag
  15438. IFS=$ac_save_IFS
  15439. shift
  15440. ac_file=$1
  15441. shift
  15442. case $ac_mode in
  15443. :L) ac_source=$1;;
  15444. :[FH])
  15445. ac_file_inputs=
  15446. for ac_f
  15447. do
  15448. case $ac_f in
  15449. -) ac_f="$tmp/stdin";;
  15450. *) # Look for the file first in the build tree, then in the source tree
  15451. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15452. # because $ac_f cannot contain `:'.
  15453. test -f "$ac_f" ||
  15454. case $ac_f in
  15455. [\\/$]*) false;;
  15456. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15457. esac ||
  15458. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15459. esac
  15460. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15461. as_fn_append ac_file_inputs " '$ac_f'"
  15462. done
  15463. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15464. # use $as_me), people would be surprised to read:
  15465. # /* config.h. Generated by config.status. */
  15466. configure_input='Generated from '`
  15467. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15468. `' by configure.'
  15469. if test x"$ac_file" != x-; then
  15470. configure_input="$ac_file. $configure_input"
  15471. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15472. $as_echo "$as_me: creating $ac_file" >&6;}
  15473. fi
  15474. # Neutralize special characters interpreted by sed in replacement strings.
  15475. case $configure_input in #(
  15476. *\&* | *\|* | *\\* )
  15477. ac_sed_conf_input=`$as_echo "$configure_input" |
  15478. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15479. *) ac_sed_conf_input=$configure_input;;
  15480. esac
  15481. case $ac_tag in
  15482. *:-:* | *:-) cat >"$tmp/stdin" \
  15483. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  15484. esac
  15485. ;;
  15486. esac
  15487. ac_dir=`$as_dirname -- "$ac_file" ||
  15488. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15489. X"$ac_file" : 'X\(//\)[^/]' \| \
  15490. X"$ac_file" : 'X\(//\)$' \| \
  15491. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15492. $as_echo X"$ac_file" |
  15493. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15494. s//\1/
  15495. q
  15496. }
  15497. /^X\(\/\/\)[^/].*/{
  15498. s//\1/
  15499. q
  15500. }
  15501. /^X\(\/\/\)$/{
  15502. s//\1/
  15503. q
  15504. }
  15505. /^X\(\/\).*/{
  15506. s//\1/
  15507. q
  15508. }
  15509. s/.*/./; q'`
  15510. as_dir="$ac_dir"; as_fn_mkdir_p
  15511. ac_builddir=.
  15512. case "$ac_dir" in
  15513. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15514. *)
  15515. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15516. # A ".." for each directory in $ac_dir_suffix.
  15517. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15518. case $ac_top_builddir_sub in
  15519. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15520. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15521. esac ;;
  15522. esac
  15523. ac_abs_top_builddir=$ac_pwd
  15524. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15525. # for backward compatibility:
  15526. ac_top_builddir=$ac_top_build_prefix
  15527. case $srcdir in
  15528. .) # We are building in place.
  15529. ac_srcdir=.
  15530. ac_top_srcdir=$ac_top_builddir_sub
  15531. ac_abs_top_srcdir=$ac_pwd ;;
  15532. [\\/]* | ?:[\\/]* ) # Absolute name.
  15533. ac_srcdir=$srcdir$ac_dir_suffix;
  15534. ac_top_srcdir=$srcdir
  15535. ac_abs_top_srcdir=$srcdir ;;
  15536. *) # Relative name.
  15537. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15538. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15539. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15540. esac
  15541. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15542. case $ac_mode in
  15543. :F)
  15544. #
  15545. # CONFIG_FILE
  15546. #
  15547. case $INSTALL in
  15548. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15549. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15550. esac
  15551. ac_MKDIR_P=$MKDIR_P
  15552. case $MKDIR_P in
  15553. [\\/$]* | ?:[\\/]* ) ;;
  15554. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15555. esac
  15556. _ACEOF
  15557. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15558. # If the template does not know about datarootdir, expand it.
  15559. # FIXME: This hack should be removed a few years after 2.60.
  15560. ac_datarootdir_hack=; ac_datarootdir_seen=
  15561. ac_sed_dataroot='
  15562. /datarootdir/ {
  15563. p
  15564. q
  15565. }
  15566. /@datadir@/p
  15567. /@docdir@/p
  15568. /@infodir@/p
  15569. /@localedir@/p
  15570. /@mandir@/p'
  15571. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15572. *datarootdir*) ac_datarootdir_seen=yes;;
  15573. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15575. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15576. _ACEOF
  15577. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15578. ac_datarootdir_hack='
  15579. s&@datadir@&$datadir&g
  15580. s&@docdir@&$docdir&g
  15581. s&@infodir@&$infodir&g
  15582. s&@localedir@&$localedir&g
  15583. s&@mandir@&$mandir&g
  15584. s&\\\${datarootdir}&$datarootdir&g' ;;
  15585. esac
  15586. _ACEOF
  15587. # Neutralize VPATH when `$srcdir' = `.'.
  15588. # Shell code in configure.ac might set extrasub.
  15589. # FIXME: do we really want to maintain this feature?
  15590. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15591. ac_sed_extra="$ac_vpsub
  15592. $extrasub
  15593. _ACEOF
  15594. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15595. :t
  15596. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15597. s|@configure_input@|$ac_sed_conf_input|;t t
  15598. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15599. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15600. s&@srcdir@&$ac_srcdir&;t t
  15601. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15602. s&@top_srcdir@&$ac_top_srcdir&;t t
  15603. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15604. s&@builddir@&$ac_builddir&;t t
  15605. s&@abs_builddir@&$ac_abs_builddir&;t t
  15606. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15607. s&@INSTALL@&$ac_INSTALL&;t t
  15608. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15609. $ac_datarootdir_hack
  15610. "
  15611. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  15612. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15613. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15614. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  15615. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  15616. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15617. which seems to be undefined. Please make sure it is defined." >&5
  15618. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15619. which seems to be undefined. Please make sure it is defined." >&2;}
  15620. rm -f "$tmp/stdin"
  15621. case $ac_file in
  15622. -) cat "$tmp/out" && rm -f "$tmp/out";;
  15623. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  15624. esac \
  15625. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15626. ;;
  15627. :H)
  15628. #
  15629. # CONFIG_HEADER
  15630. #
  15631. if test x"$ac_file" != x-; then
  15632. {
  15633. $as_echo "/* $configure_input */" \
  15634. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  15635. } >"$tmp/config.h" \
  15636. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15637. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  15638. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15639. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15640. else
  15641. rm -f "$ac_file"
  15642. mv "$tmp/config.h" "$ac_file" \
  15643. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15644. fi
  15645. else
  15646. $as_echo "/* $configure_input */" \
  15647. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  15648. || as_fn_error "could not create -" "$LINENO" 5
  15649. fi
  15650. # Compute "$ac_file"'s index in $config_headers.
  15651. _am_arg="$ac_file"
  15652. _am_stamp_count=1
  15653. for _am_header in $config_headers :; do
  15654. case $_am_header in
  15655. $_am_arg | $_am_arg:* )
  15656. break ;;
  15657. * )
  15658. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15659. esac
  15660. done
  15661. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15662. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15663. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15664. X"$_am_arg" : 'X\(//\)$' \| \
  15665. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15666. $as_echo X"$_am_arg" |
  15667. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15668. s//\1/
  15669. q
  15670. }
  15671. /^X\(\/\/\)[^/].*/{
  15672. s//\1/
  15673. q
  15674. }
  15675. /^X\(\/\/\)$/{
  15676. s//\1/
  15677. q
  15678. }
  15679. /^X\(\/\).*/{
  15680. s//\1/
  15681. q
  15682. }
  15683. s/.*/./; q'`/stamp-h$_am_stamp_count
  15684. ;;
  15685. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15686. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15687. ;;
  15688. esac
  15689. case $ac_file$ac_mode in
  15690. "default-1":C)
  15691. # Only add multilib support code if we just rebuilt the top-level
  15692. # Makefile.
  15693. case " $CONFIG_FILES " in
  15694. *" Makefile "*)
  15695. ac_file=Makefile . ${multi_basedir}/config-ml.in
  15696. ;;
  15697. esac ;;
  15698. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15699. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15700. # are listed without --file. Let's play safe and only enable the eval
  15701. # if we detect the quoting.
  15702. case $CONFIG_FILES in
  15703. *\'*) eval set x "$CONFIG_FILES" ;;
  15704. *) set x $CONFIG_FILES ;;
  15705. esac
  15706. shift
  15707. for mf
  15708. do
  15709. # Strip MF so we end up with the name of the file.
  15710. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15711. # Check whether this is an Automake generated Makefile or not.
  15712. # We used to match only the files named `Makefile.in', but
  15713. # some people rename them; so instead we look at the file content.
  15714. # Grep'ing the first line is not enough: some people post-process
  15715. # each Makefile.in and add a new line on top of each file to say so.
  15716. # Grep'ing the whole file is not good either: AIX grep has a line
  15717. # limit of 2048, but all sed's we know have understand at least 4000.
  15718. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15719. dirpart=`$as_dirname -- "$mf" ||
  15720. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15721. X"$mf" : 'X\(//\)[^/]' \| \
  15722. X"$mf" : 'X\(//\)$' \| \
  15723. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15724. $as_echo X"$mf" |
  15725. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15726. s//\1/
  15727. q
  15728. }
  15729. /^X\(\/\/\)[^/].*/{
  15730. s//\1/
  15731. q
  15732. }
  15733. /^X\(\/\/\)$/{
  15734. s//\1/
  15735. q
  15736. }
  15737. /^X\(\/\).*/{
  15738. s//\1/
  15739. q
  15740. }
  15741. s/.*/./; q'`
  15742. else
  15743. continue
  15744. fi
  15745. # Extract the definition of DEPDIR, am__include, and am__quote
  15746. # from the Makefile without running `make'.
  15747. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15748. test -z "$DEPDIR" && continue
  15749. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15750. test -z "am__include" && continue
  15751. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15752. # When using ansi2knr, U may be empty or an underscore; expand it
  15753. U=`sed -n 's/^U = //p' < "$mf"`
  15754. # Find all dependency output files, they are included files with
  15755. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15756. # simplest approach to changing $(DEPDIR) to its actual value in the
  15757. # expansion.
  15758. for file in `sed -n "
  15759. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15760. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15761. # Make sure the directory exists.
  15762. test -f "$dirpart/$file" && continue
  15763. fdir=`$as_dirname -- "$file" ||
  15764. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15765. X"$file" : 'X\(//\)[^/]' \| \
  15766. X"$file" : 'X\(//\)$' \| \
  15767. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15768. $as_echo X"$file" |
  15769. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15770. s//\1/
  15771. q
  15772. }
  15773. /^X\(\/\/\)[^/].*/{
  15774. s//\1/
  15775. q
  15776. }
  15777. /^X\(\/\/\)$/{
  15778. s//\1/
  15779. q
  15780. }
  15781. /^X\(\/\).*/{
  15782. s//\1/
  15783. q
  15784. }
  15785. s/.*/./; q'`
  15786. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15787. # echo "creating $dirpart/$file"
  15788. echo '# dummy' > "$dirpart/$file"
  15789. done
  15790. done
  15791. }
  15792. ;;
  15793. "libtool":C)
  15794. # See if we are running on zsh, and set the options which allow our
  15795. # commands through without removal of \ escapes.
  15796. if test -n "${ZSH_VERSION+set}" ; then
  15797. setopt NO_GLOB_SUBST
  15798. fi
  15799. cfgfile="${ofile}T"
  15800. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15801. $RM "$cfgfile"
  15802. cat <<_LT_EOF >> "$cfgfile"
  15803. #! $SHELL
  15804. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15805. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15806. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15807. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15808. #
  15809. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15810. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  15811. # Written by Gordon Matzigkeit, 1996
  15812. #
  15813. # This file is part of GNU Libtool.
  15814. #
  15815. # GNU Libtool is free software; you can redistribute it and/or
  15816. # modify it under the terms of the GNU General Public License as
  15817. # published by the Free Software Foundation; either version 2 of
  15818. # the License, or (at your option) any later version.
  15819. #
  15820. # As a special exception to the GNU General Public License,
  15821. # if you distribute this file as part of a program or library that
  15822. # is built using GNU Libtool, you may include this file under the
  15823. # same distribution terms that you use for the rest of that program.
  15824. #
  15825. # GNU Libtool is distributed in the hope that it will be useful,
  15826. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15827. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15828. # GNU General Public License for more details.
  15829. #
  15830. # You should have received a copy of the GNU General Public License
  15831. # along with GNU Libtool; see the file COPYING. If not, a copy
  15832. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15833. # obtained by writing to the Free Software Foundation, Inc.,
  15834. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15835. # The names of the tagged configurations supported by this script.
  15836. available_tags="CXX "
  15837. # ### BEGIN LIBTOOL CONFIG
  15838. # Which release of libtool.m4 was used?
  15839. macro_version=$macro_version
  15840. macro_revision=$macro_revision
  15841. # Whether or not to build shared libraries.
  15842. build_libtool_libs=$enable_shared
  15843. # Whether or not to build static libraries.
  15844. build_old_libs=$enable_static
  15845. # What type of objects to build.
  15846. pic_mode=$pic_mode
  15847. # Whether or not to optimize for fast installation.
  15848. fast_install=$enable_fast_install
  15849. # Shell to use when invoking shell scripts.
  15850. SHELL=$lt_SHELL
  15851. # An echo program that protects backslashes.
  15852. ECHO=$lt_ECHO
  15853. # The host system.
  15854. host_alias=$host_alias
  15855. host=$host
  15856. host_os=$host_os
  15857. # The build system.
  15858. build_alias=$build_alias
  15859. build=$build
  15860. build_os=$build_os
  15861. # A sed program that does not truncate output.
  15862. SED=$lt_SED
  15863. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15864. Xsed="\$SED -e 1s/^X//"
  15865. # A grep program that handles long lines.
  15866. GREP=$lt_GREP
  15867. # An ERE matcher.
  15868. EGREP=$lt_EGREP
  15869. # A literal string matcher.
  15870. FGREP=$lt_FGREP
  15871. # A BSD- or MS-compatible name lister.
  15872. NM=$lt_NM
  15873. # Whether we need soft or hard links.
  15874. LN_S=$lt_LN_S
  15875. # What is the maximum length of a command?
  15876. max_cmd_len=$max_cmd_len
  15877. # Object file suffix (normally "o").
  15878. objext=$ac_objext
  15879. # Executable file suffix (normally "").
  15880. exeext=$exeext
  15881. # whether the shell understands "unset".
  15882. lt_unset=$lt_unset
  15883. # turn spaces into newlines.
  15884. SP2NL=$lt_lt_SP2NL
  15885. # turn newlines into spaces.
  15886. NL2SP=$lt_lt_NL2SP
  15887. # An object symbol dumper.
  15888. OBJDUMP=$lt_OBJDUMP
  15889. # Method to check whether dependent libraries are shared objects.
  15890. deplibs_check_method=$lt_deplibs_check_method
  15891. # Command to use when deplibs_check_method == "file_magic".
  15892. file_magic_cmd=$lt_file_magic_cmd
  15893. # The archiver.
  15894. AR=$lt_AR
  15895. AR_FLAGS=$lt_AR_FLAGS
  15896. # A symbol stripping program.
  15897. STRIP=$lt_STRIP
  15898. # Commands used to install an old-style archive.
  15899. RANLIB=$lt_RANLIB
  15900. old_postinstall_cmds=$lt_old_postinstall_cmds
  15901. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15902. # Whether to use a lock for old archive extraction.
  15903. lock_old_archive_extraction=$lock_old_archive_extraction
  15904. # A C compiler.
  15905. LTCC=$lt_CC
  15906. # LTCC compiler flags.
  15907. LTCFLAGS=$lt_CFLAGS
  15908. # Take the output of nm and produce a listing of raw symbols and C names.
  15909. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15910. # Transform the output of nm in a proper C declaration.
  15911. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15912. # Transform the output of nm in a C name address pair.
  15913. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15914. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15915. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15916. # The name of the directory that contains temporary libtool files.
  15917. objdir=$objdir
  15918. # Used to examine libraries when file_magic_cmd begins with "file".
  15919. MAGIC_CMD=$MAGIC_CMD
  15920. # Must we lock files when doing compilation?
  15921. need_locks=$lt_need_locks
  15922. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15923. DSYMUTIL=$lt_DSYMUTIL
  15924. # Tool to change global to local symbols on Mac OS X.
  15925. NMEDIT=$lt_NMEDIT
  15926. # Tool to manipulate fat objects and archives on Mac OS X.
  15927. LIPO=$lt_LIPO
  15928. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15929. OTOOL=$lt_OTOOL
  15930. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15931. OTOOL64=$lt_OTOOL64
  15932. # Old archive suffix (normally "a").
  15933. libext=$libext
  15934. # Shared library suffix (normally ".so").
  15935. shrext_cmds=$lt_shrext_cmds
  15936. # The commands to extract the exported symbol list from a shared archive.
  15937. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15938. # Variables whose values should be saved in libtool wrapper scripts and
  15939. # restored at link time.
  15940. variables_saved_for_relink=$lt_variables_saved_for_relink
  15941. # Do we need the "lib" prefix for modules?
  15942. need_lib_prefix=$need_lib_prefix
  15943. # Do we need a version for libraries?
  15944. need_version=$need_version
  15945. # Library versioning type.
  15946. version_type=$version_type
  15947. # Shared library runtime path variable.
  15948. runpath_var=$runpath_var
  15949. # Shared library path variable.
  15950. shlibpath_var=$shlibpath_var
  15951. # Is shlibpath searched before the hard-coded library search path?
  15952. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15953. # Format of library name prefix.
  15954. libname_spec=$lt_libname_spec
  15955. # List of archive names. First name is the real one, the rest are links.
  15956. # The last name is the one that the linker finds with -lNAME
  15957. library_names_spec=$lt_library_names_spec
  15958. # The coded name of the library, if different from the real name.
  15959. soname_spec=$lt_soname_spec
  15960. # Permission mode override for installation of shared libraries.
  15961. install_override_mode=$lt_install_override_mode
  15962. # Command to use after installation of a shared archive.
  15963. postinstall_cmds=$lt_postinstall_cmds
  15964. # Command to use after uninstallation of a shared archive.
  15965. postuninstall_cmds=$lt_postuninstall_cmds
  15966. # Commands used to finish a libtool library installation in a directory.
  15967. finish_cmds=$lt_finish_cmds
  15968. # As "finish_cmds", except a single script fragment to be evaled but
  15969. # not shown.
  15970. finish_eval=$lt_finish_eval
  15971. # Whether we should hardcode library paths into libraries.
  15972. hardcode_into_libs=$hardcode_into_libs
  15973. # Compile-time system search path for libraries.
  15974. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15975. # Run-time system search path for libraries.
  15976. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15977. # Whether dlopen is supported.
  15978. dlopen_support=$enable_dlopen
  15979. # Whether dlopen of programs is supported.
  15980. dlopen_self=$enable_dlopen_self
  15981. # Whether dlopen of statically linked programs is supported.
  15982. dlopen_self_static=$enable_dlopen_self_static
  15983. # Commands to strip libraries.
  15984. old_striplib=$lt_old_striplib
  15985. striplib=$lt_striplib
  15986. # The linker used to build libraries.
  15987. LD=$lt_LD
  15988. # How to create reloadable object files.
  15989. reload_flag=$lt_reload_flag
  15990. reload_cmds=$lt_reload_cmds
  15991. # Commands used to build an old-style archive.
  15992. old_archive_cmds=$lt_old_archive_cmds
  15993. # A language specific compiler.
  15994. CC=$lt_compiler
  15995. # Is the compiler the GNU compiler?
  15996. with_gcc=$GCC
  15997. # Compiler flag to turn off builtin functions.
  15998. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15999. # How to pass a linker flag through the compiler.
  16000. wl=$lt_lt_prog_compiler_wl
  16001. # Additional compiler flags for building library objects.
  16002. pic_flag=$lt_lt_prog_compiler_pic
  16003. # Compiler flag to prevent dynamic linking.
  16004. link_static_flag=$lt_lt_prog_compiler_static
  16005. # Does compiler simultaneously support -c and -o options?
  16006. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16007. # Whether or not to add -lc for building shared libraries.
  16008. build_libtool_need_lc=$archive_cmds_need_lc
  16009. # Whether or not to disallow shared libs when runtime libs are static.
  16010. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16011. # Compiler flag to allow reflexive dlopens.
  16012. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16013. # Compiler flag to generate shared objects directly from archives.
  16014. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16015. # Whether the compiler copes with passing no objects directly.
  16016. compiler_needs_object=$lt_compiler_needs_object
  16017. # Create an old-style archive from a shared archive.
  16018. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16019. # Create a temporary old-style archive to link instead of a shared archive.
  16020. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16021. # Commands used to build a shared archive.
  16022. archive_cmds=$lt_archive_cmds
  16023. archive_expsym_cmds=$lt_archive_expsym_cmds
  16024. # Commands used to build a loadable module if different from building
  16025. # a shared archive.
  16026. module_cmds=$lt_module_cmds
  16027. module_expsym_cmds=$lt_module_expsym_cmds
  16028. # Whether we are building with GNU ld or not.
  16029. with_gnu_ld=$lt_with_gnu_ld
  16030. # Flag that allows shared libraries with undefined symbols to be built.
  16031. allow_undefined_flag=$lt_allow_undefined_flag
  16032. # Flag that enforces no undefined symbols.
  16033. no_undefined_flag=$lt_no_undefined_flag
  16034. # Flag to hardcode \$libdir into a binary during linking.
  16035. # This must work even if \$libdir does not exist
  16036. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16037. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16038. # during linking. This must work even if \$libdir does not exist.
  16039. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  16040. # Whether we need a single "-rpath" flag with a separated argument.
  16041. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16042. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16043. # DIR into the resulting binary.
  16044. hardcode_direct=$hardcode_direct
  16045. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16046. # DIR into the resulting binary and the resulting library dependency is
  16047. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16048. # library is relocated.
  16049. hardcode_direct_absolute=$hardcode_direct_absolute
  16050. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16051. # into the resulting binary.
  16052. hardcode_minus_L=$hardcode_minus_L
  16053. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16054. # into the resulting binary.
  16055. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16056. # Set to "yes" if building a shared library automatically hardcodes DIR
  16057. # into the library and all subsequent libraries and executables linked
  16058. # against it.
  16059. hardcode_automatic=$hardcode_automatic
  16060. # Set to yes if linker adds runtime paths of dependent libraries
  16061. # to runtime path list.
  16062. inherit_rpath=$inherit_rpath
  16063. # Whether libtool must link a program against all its dependency libraries.
  16064. link_all_deplibs=$link_all_deplibs
  16065. # Fix the shell variable \$srcfile for the compiler.
  16066. fix_srcfile_path=$lt_fix_srcfile_path
  16067. # Set to "yes" if exported symbols are required.
  16068. always_export_symbols=$always_export_symbols
  16069. # The commands to list exported symbols.
  16070. export_symbols_cmds=$lt_export_symbols_cmds
  16071. # Symbols that should not be listed in the preloaded symbols.
  16072. exclude_expsyms=$lt_exclude_expsyms
  16073. # Symbols that must always be exported.
  16074. include_expsyms=$lt_include_expsyms
  16075. # Commands necessary for linking programs (against libraries) with templates.
  16076. prelink_cmds=$lt_prelink_cmds
  16077. # Specify filename containing input files.
  16078. file_list_spec=$lt_file_list_spec
  16079. # How to hardcode a shared library path into an executable.
  16080. hardcode_action=$hardcode_action
  16081. # The directories searched by this compiler when creating a shared library.
  16082. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16083. # Dependencies to place before and after the objects being linked to
  16084. # create a shared library.
  16085. predep_objects=$lt_predep_objects
  16086. postdep_objects=$lt_postdep_objects
  16087. predeps=$lt_predeps
  16088. postdeps=$lt_postdeps
  16089. # The library search path used internally by the compiler when linking
  16090. # a shared library.
  16091. compiler_lib_search_path=$lt_compiler_lib_search_path
  16092. # ### END LIBTOOL CONFIG
  16093. _LT_EOF
  16094. case $host_os in
  16095. aix3*)
  16096. cat <<\_LT_EOF >> "$cfgfile"
  16097. # AIX sometimes has problems with the GCC collect2 program. For some
  16098. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16099. # vanish in a puff of smoke.
  16100. if test "X${COLLECT_NAMES+set}" != Xset; then
  16101. COLLECT_NAMES=
  16102. export COLLECT_NAMES
  16103. fi
  16104. _LT_EOF
  16105. ;;
  16106. esac
  16107. ltmain="$ac_aux_dir/ltmain.sh"
  16108. # We use sed instead of cat because bash on DJGPP gets confused if
  16109. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16110. # text mode, it properly converts lines to CR/LF. This bash problem
  16111. # is reportedly fixed, but why not run on old versions too?
  16112. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  16113. || (rm -f "$cfgfile"; exit 1)
  16114. case $xsi_shell in
  16115. yes)
  16116. cat << \_LT_EOF >> "$cfgfile"
  16117. # func_dirname file append nondir_replacement
  16118. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16119. # otherwise set result to NONDIR_REPLACEMENT.
  16120. func_dirname ()
  16121. {
  16122. case ${1} in
  16123. */*) func_dirname_result="${1%/*}${2}" ;;
  16124. * ) func_dirname_result="${3}" ;;
  16125. esac
  16126. }
  16127. # func_basename file
  16128. func_basename ()
  16129. {
  16130. func_basename_result="${1##*/}"
  16131. }
  16132. # func_dirname_and_basename file append nondir_replacement
  16133. # perform func_basename and func_dirname in a single function
  16134. # call:
  16135. # dirname: Compute the dirname of FILE. If nonempty,
  16136. # add APPEND to the result, otherwise set result
  16137. # to NONDIR_REPLACEMENT.
  16138. # value returned in "$func_dirname_result"
  16139. # basename: Compute filename of FILE.
  16140. # value retuned in "$func_basename_result"
  16141. # Implementation must be kept synchronized with func_dirname
  16142. # and func_basename. For efficiency, we do not delegate to
  16143. # those functions but instead duplicate the functionality here.
  16144. func_dirname_and_basename ()
  16145. {
  16146. case ${1} in
  16147. */*) func_dirname_result="${1%/*}${2}" ;;
  16148. * ) func_dirname_result="${3}" ;;
  16149. esac
  16150. func_basename_result="${1##*/}"
  16151. }
  16152. # func_stripname prefix suffix name
  16153. # strip PREFIX and SUFFIX off of NAME.
  16154. # PREFIX and SUFFIX must not contain globbing or regex special
  16155. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16156. # dot (in which case that matches only a dot).
  16157. func_stripname ()
  16158. {
  16159. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  16160. # positional parameters, so assign one to ordinary parameter first.
  16161. func_stripname_result=${3}
  16162. func_stripname_result=${func_stripname_result#"${1}"}
  16163. func_stripname_result=${func_stripname_result%"${2}"}
  16164. }
  16165. # func_opt_split
  16166. func_opt_split ()
  16167. {
  16168. func_opt_split_opt=${1%%=*}
  16169. func_opt_split_arg=${1#*=}
  16170. }
  16171. # func_lo2o object
  16172. func_lo2o ()
  16173. {
  16174. case ${1} in
  16175. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  16176. *) func_lo2o_result=${1} ;;
  16177. esac
  16178. }
  16179. # func_xform libobj-or-source
  16180. func_xform ()
  16181. {
  16182. func_xform_result=${1%.*}.lo
  16183. }
  16184. # func_arith arithmetic-term...
  16185. func_arith ()
  16186. {
  16187. func_arith_result=$(( $* ))
  16188. }
  16189. # func_len string
  16190. # STRING may not start with a hyphen.
  16191. func_len ()
  16192. {
  16193. func_len_result=${#1}
  16194. }
  16195. _LT_EOF
  16196. ;;
  16197. *) # Bourne compatible functions.
  16198. cat << \_LT_EOF >> "$cfgfile"
  16199. # func_dirname file append nondir_replacement
  16200. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16201. # otherwise set result to NONDIR_REPLACEMENT.
  16202. func_dirname ()
  16203. {
  16204. # Extract subdirectory from the argument.
  16205. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  16206. if test "X$func_dirname_result" = "X${1}"; then
  16207. func_dirname_result="${3}"
  16208. else
  16209. func_dirname_result="$func_dirname_result${2}"
  16210. fi
  16211. }
  16212. # func_basename file
  16213. func_basename ()
  16214. {
  16215. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  16216. }
  16217. # func_stripname prefix suffix name
  16218. # strip PREFIX and SUFFIX off of NAME.
  16219. # PREFIX and SUFFIX must not contain globbing or regex special
  16220. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16221. # dot (in which case that matches only a dot).
  16222. # func_strip_suffix prefix name
  16223. func_stripname ()
  16224. {
  16225. case ${2} in
  16226. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  16227. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  16228. esac
  16229. }
  16230. # sed scripts:
  16231. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  16232. my_sed_long_arg='1s/^-[^=]*=//'
  16233. # func_opt_split
  16234. func_opt_split ()
  16235. {
  16236. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  16237. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  16238. }
  16239. # func_lo2o object
  16240. func_lo2o ()
  16241. {
  16242. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  16243. }
  16244. # func_xform libobj-or-source
  16245. func_xform ()
  16246. {
  16247. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  16248. }
  16249. # func_arith arithmetic-term...
  16250. func_arith ()
  16251. {
  16252. func_arith_result=`expr "$@"`
  16253. }
  16254. # func_len string
  16255. # STRING may not start with a hyphen.
  16256. func_len ()
  16257. {
  16258. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  16259. }
  16260. _LT_EOF
  16261. esac
  16262. case $lt_shell_append in
  16263. yes)
  16264. cat << \_LT_EOF >> "$cfgfile"
  16265. # func_append var value
  16266. # Append VALUE to the end of shell variable VAR.
  16267. func_append ()
  16268. {
  16269. eval "$1+=\$2"
  16270. }
  16271. _LT_EOF
  16272. ;;
  16273. *)
  16274. cat << \_LT_EOF >> "$cfgfile"
  16275. # func_append var value
  16276. # Append VALUE to the end of shell variable VAR.
  16277. func_append ()
  16278. {
  16279. eval "$1=\$$1\$2"
  16280. }
  16281. _LT_EOF
  16282. ;;
  16283. esac
  16284. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  16285. || (rm -f "$cfgfile"; exit 1)
  16286. mv -f "$cfgfile" "$ofile" ||
  16287. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16288. chmod +x "$ofile"
  16289. cat <<_LT_EOF >> "$ofile"
  16290. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16291. # The linker used to build libraries.
  16292. LD=$lt_LD_CXX
  16293. # How to create reloadable object files.
  16294. reload_flag=$lt_reload_flag_CXX
  16295. reload_cmds=$lt_reload_cmds_CXX
  16296. # Commands used to build an old-style archive.
  16297. old_archive_cmds=$lt_old_archive_cmds_CXX
  16298. # A language specific compiler.
  16299. CC=$lt_compiler_CXX
  16300. # Is the compiler the GNU compiler?
  16301. with_gcc=$GCC_CXX
  16302. # Compiler flag to turn off builtin functions.
  16303. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16304. # How to pass a linker flag through the compiler.
  16305. wl=$lt_lt_prog_compiler_wl_CXX
  16306. # Additional compiler flags for building library objects.
  16307. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16308. # Compiler flag to prevent dynamic linking.
  16309. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16310. # Does compiler simultaneously support -c and -o options?
  16311. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16312. # Whether or not to add -lc for building shared libraries.
  16313. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16314. # Whether or not to disallow shared libs when runtime libs are static.
  16315. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16316. # Compiler flag to allow reflexive dlopens.
  16317. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16318. # Compiler flag to generate shared objects directly from archives.
  16319. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16320. # Whether the compiler copes with passing no objects directly.
  16321. compiler_needs_object=$lt_compiler_needs_object_CXX
  16322. # Create an old-style archive from a shared archive.
  16323. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16324. # Create a temporary old-style archive to link instead of a shared archive.
  16325. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16326. # Commands used to build a shared archive.
  16327. archive_cmds=$lt_archive_cmds_CXX
  16328. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16329. # Commands used to build a loadable module if different from building
  16330. # a shared archive.
  16331. module_cmds=$lt_module_cmds_CXX
  16332. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16333. # Whether we are building with GNU ld or not.
  16334. with_gnu_ld=$lt_with_gnu_ld_CXX
  16335. # Flag that allows shared libraries with undefined symbols to be built.
  16336. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16337. # Flag that enforces no undefined symbols.
  16338. no_undefined_flag=$lt_no_undefined_flag_CXX
  16339. # Flag to hardcode \$libdir into a binary during linking.
  16340. # This must work even if \$libdir does not exist
  16341. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16342. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16343. # during linking. This must work even if \$libdir does not exist.
  16344. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  16345. # Whether we need a single "-rpath" flag with a separated argument.
  16346. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16347. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16348. # DIR into the resulting binary.
  16349. hardcode_direct=$hardcode_direct_CXX
  16350. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16351. # DIR into the resulting binary and the resulting library dependency is
  16352. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16353. # library is relocated.
  16354. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16355. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16356. # into the resulting binary.
  16357. hardcode_minus_L=$hardcode_minus_L_CXX
  16358. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16359. # into the resulting binary.
  16360. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16361. # Set to "yes" if building a shared library automatically hardcodes DIR
  16362. # into the library and all subsequent libraries and executables linked
  16363. # against it.
  16364. hardcode_automatic=$hardcode_automatic_CXX
  16365. # Set to yes if linker adds runtime paths of dependent libraries
  16366. # to runtime path list.
  16367. inherit_rpath=$inherit_rpath_CXX
  16368. # Whether libtool must link a program against all its dependency libraries.
  16369. link_all_deplibs=$link_all_deplibs_CXX
  16370. # Fix the shell variable \$srcfile for the compiler.
  16371. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  16372. # Set to "yes" if exported symbols are required.
  16373. always_export_symbols=$always_export_symbols_CXX
  16374. # The commands to list exported symbols.
  16375. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16376. # Symbols that should not be listed in the preloaded symbols.
  16377. exclude_expsyms=$lt_exclude_expsyms_CXX
  16378. # Symbols that must always be exported.
  16379. include_expsyms=$lt_include_expsyms_CXX
  16380. # Commands necessary for linking programs (against libraries) with templates.
  16381. prelink_cmds=$lt_prelink_cmds_CXX
  16382. # Specify filename containing input files.
  16383. file_list_spec=$lt_file_list_spec_CXX
  16384. # How to hardcode a shared library path into an executable.
  16385. hardcode_action=$hardcode_action_CXX
  16386. # The directories searched by this compiler when creating a shared library.
  16387. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16388. # Dependencies to place before and after the objects being linked to
  16389. # create a shared library.
  16390. predep_objects=$lt_predep_objects_CXX
  16391. postdep_objects=$lt_postdep_objects_CXX
  16392. predeps=$lt_predeps_CXX
  16393. postdeps=$lt_postdeps_CXX
  16394. # The library search path used internally by the compiler when linking
  16395. # a shared library.
  16396. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16397. # ### END LIBTOOL TAG CONFIG: CXX
  16398. _LT_EOF
  16399. ;;
  16400. "gstdint.h":C)
  16401. if test "$GCC" = yes; then
  16402. echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
  16403. else
  16404. echo "/* generated for $CC */" > tmp-stdint.h
  16405. fi
  16406. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16407. #ifndef GCC_GENERATED_STDINT_H
  16408. #define GCC_GENERATED_STDINT_H 1
  16409. #include <sys/types.h>
  16410. EOF
  16411. if test "$acx_cv_header_stdint" != stdint.h; then
  16412. echo "#include <stddef.h>" >> tmp-stdint.h
  16413. fi
  16414. if test "$acx_cv_header_stdint" != stddef.h; then
  16415. echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
  16416. fi
  16417. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16418. /* glibc uses these symbols as guards to prevent redefinitions. */
  16419. #ifdef __int8_t_defined
  16420. #define _INT8_T
  16421. #define _INT16_T
  16422. #define _INT32_T
  16423. #endif
  16424. #ifdef __uint32_t_defined
  16425. #define _UINT32_T
  16426. #endif
  16427. EOF
  16428. # ----------------- done header, emit basic int types -------------
  16429. if test "$acx_cv_header_stdint" = stddef.h; then
  16430. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16431. #ifndef _UINT8_T
  16432. #define _UINT8_T
  16433. #ifndef __uint8_t_defined
  16434. #define __uint8_t_defined
  16435. #ifndef uint8_t
  16436. typedef unsigned $acx_cv_type_int8_t uint8_t;
  16437. #endif
  16438. #endif
  16439. #endif
  16440. #ifndef _UINT16_T
  16441. #define _UINT16_T
  16442. #ifndef __uint16_t_defined
  16443. #define __uint16_t_defined
  16444. #ifndef uint16_t
  16445. typedef unsigned $acx_cv_type_int16_t uint16_t;
  16446. #endif
  16447. #endif
  16448. #endif
  16449. #ifndef _UINT32_T
  16450. #define _UINT32_T
  16451. #ifndef __uint32_t_defined
  16452. #define __uint32_t_defined
  16453. #ifndef uint32_t
  16454. typedef unsigned $acx_cv_type_int32_t uint32_t;
  16455. #endif
  16456. #endif
  16457. #endif
  16458. #ifndef _INT8_T
  16459. #define _INT8_T
  16460. #ifndef __int8_t_defined
  16461. #define __int8_t_defined
  16462. #ifndef int8_t
  16463. typedef $acx_cv_type_int8_t int8_t;
  16464. #endif
  16465. #endif
  16466. #endif
  16467. #ifndef _INT16_T
  16468. #define _INT16_T
  16469. #ifndef __int16_t_defined
  16470. #define __int16_t_defined
  16471. #ifndef int16_t
  16472. typedef $acx_cv_type_int16_t int16_t;
  16473. #endif
  16474. #endif
  16475. #endif
  16476. #ifndef _INT32_T
  16477. #define _INT32_T
  16478. #ifndef __int32_t_defined
  16479. #define __int32_t_defined
  16480. #ifndef int32_t
  16481. typedef $acx_cv_type_int32_t int32_t;
  16482. #endif
  16483. #endif
  16484. #endif
  16485. EOF
  16486. elif test "$ac_cv_type_u_int32_t" = yes; then
  16487. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16488. /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
  16489. #ifndef _INT8_T
  16490. #define _INT8_T
  16491. #endif
  16492. #ifndef _INT16_T
  16493. #define _INT16_T
  16494. #endif
  16495. #ifndef _INT32_T
  16496. #define _INT32_T
  16497. #endif
  16498. #ifndef _UINT8_T
  16499. #define _UINT8_T
  16500. #ifndef __uint8_t_defined
  16501. #define __uint8_t_defined
  16502. #ifndef uint8_t
  16503. typedef u_int8_t uint8_t;
  16504. #endif
  16505. #endif
  16506. #endif
  16507. #ifndef _UINT16_T
  16508. #define _UINT16_T
  16509. #ifndef __uint16_t_defined
  16510. #define __uint16_t_defined
  16511. #ifndef uint16_t
  16512. typedef u_int16_t uint16_t;
  16513. #endif
  16514. #endif
  16515. #endif
  16516. #ifndef _UINT32_T
  16517. #define _UINT32_T
  16518. #ifndef __uint32_t_defined
  16519. #define __uint32_t_defined
  16520. #ifndef uint32_t
  16521. typedef u_int32_t uint32_t;
  16522. #endif
  16523. #endif
  16524. #endif
  16525. EOF
  16526. else
  16527. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16528. /* Some systems have guard macros to prevent redefinitions, define them. */
  16529. #ifndef _INT8_T
  16530. #define _INT8_T
  16531. #endif
  16532. #ifndef _INT16_T
  16533. #define _INT16_T
  16534. #endif
  16535. #ifndef _INT32_T
  16536. #define _INT32_T
  16537. #endif
  16538. #ifndef _UINT8_T
  16539. #define _UINT8_T
  16540. #endif
  16541. #ifndef _UINT16_T
  16542. #define _UINT16_T
  16543. #endif
  16544. #ifndef _UINT32_T
  16545. #define _UINT32_T
  16546. #endif
  16547. EOF
  16548. fi
  16549. # ------------- done basic int types, emit int64_t types ------------
  16550. if test "$ac_cv_type_uint64_t" = yes; then
  16551. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16552. /* system headers have good uint64_t and int64_t */
  16553. #ifndef _INT64_T
  16554. #define _INT64_T
  16555. #endif
  16556. #ifndef _UINT64_T
  16557. #define _UINT64_T
  16558. #endif
  16559. EOF
  16560. elif test "$ac_cv_type_u_int64_t" = yes; then
  16561. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16562. /* system headers have an u_int64_t (and int64_t) */
  16563. #ifndef _INT64_T
  16564. #define _INT64_T
  16565. #endif
  16566. #ifndef _UINT64_T
  16567. #define _UINT64_T
  16568. #ifndef __uint64_t_defined
  16569. #define __uint64_t_defined
  16570. #ifndef uint64_t
  16571. typedef u_int64_t uint64_t;
  16572. #endif
  16573. #endif
  16574. #endif
  16575. EOF
  16576. elif test -n "$acx_cv_type_int64_t"; then
  16577. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16578. /* architecture has a 64-bit type, $acx_cv_type_int64_t */
  16579. #ifndef _INT64_T
  16580. #define _INT64_T
  16581. #ifndef int64_t
  16582. typedef $acx_cv_type_int64_t int64_t;
  16583. #endif
  16584. #endif
  16585. #ifndef _UINT64_T
  16586. #define _UINT64_T
  16587. #ifndef __uint64_t_defined
  16588. #define __uint64_t_defined
  16589. #ifndef uint64_t
  16590. typedef unsigned $acx_cv_type_int64_t uint64_t;
  16591. #endif
  16592. #endif
  16593. #endif
  16594. EOF
  16595. else
  16596. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16597. /* some common heuristics for int64_t, using compiler-specific tests */
  16598. #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
  16599. #ifndef _INT64_T
  16600. #define _INT64_T
  16601. #ifndef __int64_t_defined
  16602. #ifndef int64_t
  16603. typedef long long int64_t;
  16604. #endif
  16605. #endif
  16606. #endif
  16607. #ifndef _UINT64_T
  16608. #define _UINT64_T
  16609. #ifndef uint64_t
  16610. typedef unsigned long long uint64_t;
  16611. #endif
  16612. #endif
  16613. #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
  16614. /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
  16615. does not implement __extension__. But that compiler doesn't define
  16616. __GNUC_MINOR__. */
  16617. # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
  16618. # define __extension__
  16619. # endif
  16620. # ifndef _INT64_T
  16621. # define _INT64_T
  16622. # ifndef int64_t
  16623. __extension__ typedef long long int64_t;
  16624. # endif
  16625. # endif
  16626. # ifndef _UINT64_T
  16627. # define _UINT64_T
  16628. # ifndef uint64_t
  16629. __extension__ typedef unsigned long long uint64_t;
  16630. # endif
  16631. # endif
  16632. #elif !defined __STRICT_ANSI__
  16633. # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
  16634. # ifndef _INT64_T
  16635. # define _INT64_T
  16636. # ifndef int64_t
  16637. typedef __int64 int64_t;
  16638. # endif
  16639. # endif
  16640. # ifndef _UINT64_T
  16641. # define _UINT64_T
  16642. # ifndef uint64_t
  16643. typedef unsigned __int64 uint64_t;
  16644. # endif
  16645. # endif
  16646. # endif /* compiler */
  16647. #endif /* ANSI version */
  16648. EOF
  16649. fi
  16650. # ------------- done int64_t types, emit intptr types ------------
  16651. if test "$ac_cv_type_uintptr_t" != yes; then
  16652. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16653. /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
  16654. #ifndef __uintptr_t_defined
  16655. #ifndef uintptr_t
  16656. typedef u$acx_cv_type_intptr_t uintptr_t;
  16657. #endif
  16658. #endif
  16659. #ifndef __intptr_t_defined
  16660. #ifndef intptr_t
  16661. typedef $acx_cv_type_intptr_t intptr_t;
  16662. #endif
  16663. #endif
  16664. EOF
  16665. fi
  16666. # ------------- done intptr types, emit int_least types ------------
  16667. if test "$ac_cv_type_int_least32_t" != yes; then
  16668. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16669. /* Define int_least types */
  16670. typedef int8_t int_least8_t;
  16671. typedef int16_t int_least16_t;
  16672. typedef int32_t int_least32_t;
  16673. #ifdef _INT64_T
  16674. typedef int64_t int_least64_t;
  16675. #endif
  16676. typedef uint8_t uint_least8_t;
  16677. typedef uint16_t uint_least16_t;
  16678. typedef uint32_t uint_least32_t;
  16679. #ifdef _UINT64_T
  16680. typedef uint64_t uint_least64_t;
  16681. #endif
  16682. EOF
  16683. fi
  16684. # ------------- done intptr types, emit int_fast types ------------
  16685. if test "$ac_cv_type_int_fast32_t" != yes; then
  16686. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16687. /* Define int_fast types. short is often slow */
  16688. typedef int8_t int_fast8_t;
  16689. typedef int int_fast16_t;
  16690. typedef int32_t int_fast32_t;
  16691. #ifdef _INT64_T
  16692. typedef int64_t int_fast64_t;
  16693. #endif
  16694. typedef uint8_t uint_fast8_t;
  16695. typedef unsigned int uint_fast16_t;
  16696. typedef uint32_t uint_fast32_t;
  16697. #ifdef _UINT64_T
  16698. typedef uint64_t uint_fast64_t;
  16699. #endif
  16700. EOF
  16701. fi
  16702. if test "$ac_cv_type_uintmax_t" != yes; then
  16703. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16704. /* Define intmax based on what we found */
  16705. #ifndef intmax_t
  16706. #ifdef _INT64_T
  16707. typedef int64_t intmax_t;
  16708. #else
  16709. typedef long intmax_t;
  16710. #endif
  16711. #endif
  16712. #ifndef uintmax_t
  16713. #ifdef _UINT64_T
  16714. typedef uint64_t uintmax_t;
  16715. #else
  16716. typedef unsigned long uintmax_t;
  16717. #endif
  16718. #endif
  16719. EOF
  16720. fi
  16721. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16722. #endif /* GCC_GENERATED_STDINT_H */
  16723. EOF
  16724. if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
  16725. rm -f tmp-stdint.h
  16726. else
  16727. mv -f tmp-stdint.h gstdint.h
  16728. fi
  16729. ;;
  16730. "interception/Makefile":F) cat > vpsed$$ << \_EOF
  16731. s!`test -f '$<' || echo '$(srcdir)/'`!!
  16732. _EOF
  16733. sed -f vpsed$$ $ac_file > tmp$$
  16734. mv tmp$$ $ac_file
  16735. rm vpsed$$
  16736. echo 'MULTISUBDIR =' >> $ac_file
  16737. ml_norecursion=yes
  16738. . ${multi_basedir}/config-ml.in
  16739. { ml_norecursion=; unset ml_norecursion;}
  16740. ;;
  16741. "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
  16742. s!`test -f '$<' || echo '$(srcdir)/'`!!
  16743. _EOF
  16744. sed -f vpsed$$ $ac_file > tmp$$
  16745. mv tmp$$ $ac_file
  16746. rm vpsed$$
  16747. echo 'MULTISUBDIR =' >> $ac_file
  16748. ml_norecursion=yes
  16749. . ${multi_basedir}/config-ml.in
  16750. { ml_norecursion=; unset ml_norecursion;}
  16751. ;;
  16752. "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
  16753. s!`test -f '$<' || echo '$(srcdir)/'`!!
  16754. _EOF
  16755. sed -f vpsed$$ $ac_file > tmp$$
  16756. mv tmp$$ $ac_file
  16757. rm vpsed$$
  16758. echo 'MULTISUBDIR =' >> $ac_file
  16759. ml_norecursion=yes
  16760. . ${multi_basedir}/config-ml.in
  16761. { ml_norecursion=; unset ml_norecursion;}
  16762. ;;
  16763. "lsan/Makefile":F) cat > vpsed$$ << \_EOF
  16764. s!`test -f '$<' || echo '$(srcdir)/'`!!
  16765. _EOF
  16766. sed -f vpsed$$ $ac_file > tmp$$
  16767. mv tmp$$ $ac_file
  16768. rm vpsed$$
  16769. echo 'MULTISUBDIR =' >> $ac_file
  16770. ml_norecursion=yes
  16771. . ${multi_basedir}/config-ml.in
  16772. { ml_norecursion=; unset ml_norecursion;}
  16773. ;;
  16774. "asan/Makefile":F) cat > vpsed$$ << \_EOF
  16775. s!`test -f '$<' || echo '$(srcdir)/'`!!
  16776. _EOF
  16777. sed -f vpsed$$ $ac_file > tmp$$
  16778. mv tmp$$ $ac_file
  16779. rm vpsed$$
  16780. echo 'MULTISUBDIR =' >> $ac_file
  16781. ml_norecursion=yes
  16782. . ${multi_basedir}/config-ml.in
  16783. { ml_norecursion=; unset ml_norecursion;}
  16784. ;;
  16785. "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
  16786. s!`test -f '$<' || echo '$(srcdir)/'`!!
  16787. _EOF
  16788. sed -f vpsed$$ $ac_file > tmp$$
  16789. mv tmp$$ $ac_file
  16790. rm vpsed$$
  16791. echo 'MULTISUBDIR =' >> $ac_file
  16792. ml_norecursion=yes
  16793. . ${multi_basedir}/config-ml.in
  16794. { ml_norecursion=; unset ml_norecursion;}
  16795. ;;
  16796. "tsan/Makefile":F) cat > vpsed$$ << \_EOF
  16797. s!`test -f '$<' || echo '$(srcdir)/'`!!
  16798. _EOF
  16799. sed -f vpsed$$ $ac_file > tmp$$
  16800. mv tmp$$ $ac_file
  16801. rm vpsed$$
  16802. echo 'MULTISUBDIR =' >> $ac_file
  16803. ml_norecursion=yes
  16804. . ${multi_basedir}/config-ml.in
  16805. { ml_norecursion=; unset ml_norecursion;}
  16806. ;;
  16807. esac
  16808. done # for ac_tag
  16809. as_fn_exit 0
  16810. _ACEOF
  16811. ac_clean_files=$ac_clean_files_save
  16812. test $ac_write_fail = 0 ||
  16813. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16814. # configure is writing to config.log, and then calls config.status.
  16815. # config.status does its own redirection, appending to config.log.
  16816. # Unfortunately, on DOS this fails, as config.log is still kept open
  16817. # by configure, so config.status won't be able to write to it; its
  16818. # output is simply discarded. So we exec the FD to /dev/null,
  16819. # effectively closing config.log, so it can be properly (re)opened and
  16820. # appended to by config.status. When coming back to configure, we
  16821. # need to make the FD available again.
  16822. if test "$no_create" != yes; then
  16823. ac_cs_success=:
  16824. ac_config_status_args=
  16825. test "$silent" = yes &&
  16826. ac_config_status_args="$ac_config_status_args --quiet"
  16827. exec 5>/dev/null
  16828. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16829. exec 5>>config.log
  16830. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16831. # would make configure fail if this is the last instruction.
  16832. $ac_cs_success || as_fn_exit $?
  16833. fi
  16834. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16836. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16837. fi