configure 612 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for GNU TM Runtime Library 1.0.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  159. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  160. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. PATH=/empty FPATH=/empty; export PATH FPATH
  163. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  164. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  165. test \$(( 1 + 1 )) = 2 || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME='GNU TM Runtime Library'
  509. PACKAGE_TARNAME='libitm'
  510. PACKAGE_VERSION='1.0'
  511. PACKAGE_STRING='GNU TM Runtime Library 1.0'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL='http://www.gnu.org/software/libitm/'
  514. # Factoring default headers for most tests.
  515. ac_includes_default="\
  516. #include <stdio.h>
  517. #ifdef HAVE_SYS_TYPES_H
  518. # include <sys/types.h>
  519. #endif
  520. #ifdef HAVE_SYS_STAT_H
  521. # include <sys/stat.h>
  522. #endif
  523. #ifdef STDC_HEADERS
  524. # include <stdlib.h>
  525. # include <stddef.h>
  526. #else
  527. # ifdef HAVE_STDLIB_H
  528. # include <stdlib.h>
  529. # endif
  530. #endif
  531. #ifdef HAVE_STRING_H
  532. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  533. # include <memory.h>
  534. # endif
  535. # include <string.h>
  536. #endif
  537. #ifdef HAVE_STRINGS_H
  538. # include <strings.h>
  539. #endif
  540. #ifdef HAVE_INTTYPES_H
  541. # include <inttypes.h>
  542. #endif
  543. #ifdef HAVE_STDINT_H
  544. # include <stdint.h>
  545. #endif
  546. #ifdef HAVE_UNISTD_H
  547. # include <unistd.h>
  548. #endif"
  549. ac_subst_vars='am__EXEEXT_FALSE
  550. am__EXEEXT_TRUE
  551. LTLIBOBJS
  552. LIBOBJS
  553. ARCH_FUTEX_FALSE
  554. ARCH_FUTEX_TRUE
  555. ARCH_X86_AVX_FALSE
  556. ARCH_X86_AVX_TRUE
  557. ARCH_X86_FALSE
  558. ARCH_X86_TRUE
  559. ARCH_ARM_FALSE
  560. ARCH_ARM_TRUE
  561. link_itm
  562. XLDFLAGS
  563. XCFLAGS
  564. config_path
  565. LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
  566. LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
  567. LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
  568. LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
  569. LIBITM_BUILD_VERSIONED_SHLIB_FALSE
  570. LIBITM_BUILD_VERSIONED_SHLIB_TRUE
  571. OPT_LDFLAGS
  572. SECTION_LDFLAGS
  573. HAVE_HWCAP_FALSE
  574. HAVE_HWCAP_TRUE
  575. HWCAP_LDFLAGS
  576. libtool_VERSION
  577. MAINT
  578. MAINTAINER_MODE_FALSE
  579. MAINTAINER_MODE_TRUE
  580. enable_static
  581. enable_shared
  582. CXXCPP
  583. CPP
  584. OTOOL64
  585. OTOOL
  586. LIPO
  587. NMEDIT
  588. DSYMUTIL
  589. OBJDUMP
  590. LN_S
  591. ac_ct_DUMPBIN
  592. DUMPBIN
  593. LD
  594. FGREP
  595. EGREP
  596. GREP
  597. SED
  598. LIBTOOL
  599. BUILD_INFO_FALSE
  600. BUILD_INFO_TRUE
  601. PERL
  602. RANLIB
  603. NM
  604. AR
  605. am__fastdepCCAS_FALSE
  606. am__fastdepCCAS_TRUE
  607. CCASDEPMODE
  608. CCASFLAGS
  609. CCAS
  610. am__fastdepCXX_FALSE
  611. am__fastdepCXX_TRUE
  612. CXXDEPMODE
  613. ac_ct_CXX
  614. CXXFLAGS
  615. CXX
  616. am__fastdepCC_FALSE
  617. am__fastdepCC_TRUE
  618. CCDEPMODE
  619. AMDEPBACKSLASH
  620. AMDEP_FALSE
  621. AMDEP_TRUE
  622. am__quote
  623. am__include
  624. DEPDIR
  625. OBJEXT
  626. EXEEXT
  627. ac_ct_CC
  628. CPPFLAGS
  629. LDFLAGS
  630. CFLAGS
  631. CC
  632. toolexeclibdir
  633. toolexecdir
  634. multi_basedir
  635. am__untar
  636. am__tar
  637. AMTAR
  638. am__leading_dot
  639. SET_MAKE
  640. AWK
  641. mkdir_p
  642. MKDIR_P
  643. INSTALL_STRIP_PROGRAM
  644. STRIP
  645. install_sh
  646. MAKEINFO
  647. AUTOHEADER
  648. AUTOMAKE
  649. AUTOCONF
  650. ACLOCAL
  651. VERSION
  652. PACKAGE
  653. CYGPATH_W
  654. am__isrc
  655. INSTALL_DATA
  656. INSTALL_SCRIPT
  657. INSTALL_PROGRAM
  658. target_os
  659. target_vendor
  660. target_cpu
  661. target
  662. host_os
  663. host_vendor
  664. host_cpu
  665. host
  666. build_os
  667. build_vendor
  668. build_cpu
  669. build
  670. GENINSRC_FALSE
  671. GENINSRC_TRUE
  672. target_alias
  673. host_alias
  674. build_alias
  675. LIBS
  676. ECHO_T
  677. ECHO_N
  678. ECHO_C
  679. DEFS
  680. mandir
  681. localedir
  682. libdir
  683. psdir
  684. pdfdir
  685. dvidir
  686. htmldir
  687. infodir
  688. docdir
  689. oldincludedir
  690. includedir
  691. localstatedir
  692. sharedstatedir
  693. sysconfdir
  694. datadir
  695. datarootdir
  696. libexecdir
  697. sbindir
  698. bindir
  699. program_transform_name
  700. prefix
  701. exec_prefix
  702. PACKAGE_URL
  703. PACKAGE_BUGREPORT
  704. PACKAGE_STRING
  705. PACKAGE_VERSION
  706. PACKAGE_TARNAME
  707. PACKAGE_NAME
  708. PATH_SEPARATOR
  709. SHELL'
  710. ac_subst_files=''
  711. ac_user_opts='
  712. enable_option_checking
  713. enable_version_specific_runtime_libs
  714. enable_generated_files_in_srcdir
  715. enable_multilib
  716. enable_dependency_tracking
  717. enable_shared
  718. enable_static
  719. with_pic
  720. enable_fast_install
  721. with_gnu_ld
  722. enable_libtool_lock
  723. enable_maintainer_mode
  724. enable_linux_futex
  725. enable_tls
  726. enable_symvers
  727. '
  728. ac_precious_vars='build_alias
  729. host_alias
  730. target_alias
  731. CPP
  732. CPPFLAGS
  733. CXXCPP'
  734. # Initialize some variables set by options.
  735. ac_init_help=
  736. ac_init_version=false
  737. ac_unrecognized_opts=
  738. ac_unrecognized_sep=
  739. # The variables have the same names as the options, with
  740. # dashes changed to underlines.
  741. cache_file=/dev/null
  742. exec_prefix=NONE
  743. no_create=
  744. no_recursion=
  745. prefix=NONE
  746. program_prefix=NONE
  747. program_suffix=NONE
  748. program_transform_name=s,x,x,
  749. silent=
  750. site=
  751. srcdir=
  752. verbose=
  753. x_includes=NONE
  754. x_libraries=NONE
  755. # Installation directory options.
  756. # These are left unexpanded so users can "make install exec_prefix=/foo"
  757. # and all the variables that are supposed to be based on exec_prefix
  758. # by default will actually change.
  759. # Use braces instead of parens because sh, perl, etc. also accept them.
  760. # (The list follows the same order as the GNU Coding Standards.)
  761. bindir='${exec_prefix}/bin'
  762. sbindir='${exec_prefix}/sbin'
  763. libexecdir='${exec_prefix}/libexec'
  764. datarootdir='${prefix}/share'
  765. datadir='${datarootdir}'
  766. sysconfdir='${prefix}/etc'
  767. sharedstatedir='${prefix}/com'
  768. localstatedir='${prefix}/var'
  769. includedir='${prefix}/include'
  770. oldincludedir='/usr/include'
  771. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  772. infodir='${datarootdir}/info'
  773. htmldir='${docdir}'
  774. dvidir='${docdir}'
  775. pdfdir='${docdir}'
  776. psdir='${docdir}'
  777. libdir='${exec_prefix}/lib'
  778. localedir='${datarootdir}/locale'
  779. mandir='${datarootdir}/man'
  780. ac_prev=
  781. ac_dashdash=
  782. for ac_option
  783. do
  784. # If the previous option needs an argument, assign it.
  785. if test -n "$ac_prev"; then
  786. eval $ac_prev=\$ac_option
  787. ac_prev=
  788. continue
  789. fi
  790. case $ac_option in
  791. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  792. *) ac_optarg=yes ;;
  793. esac
  794. # Accept the important Cygnus configure options, so we can diagnose typos.
  795. case $ac_dashdash$ac_option in
  796. --)
  797. ac_dashdash=yes ;;
  798. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  799. ac_prev=bindir ;;
  800. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  801. bindir=$ac_optarg ;;
  802. -build | --build | --buil | --bui | --bu)
  803. ac_prev=build_alias ;;
  804. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  805. build_alias=$ac_optarg ;;
  806. -cache-file | --cache-file | --cache-fil | --cache-fi \
  807. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  808. ac_prev=cache_file ;;
  809. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  810. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  811. cache_file=$ac_optarg ;;
  812. --config-cache | -C)
  813. cache_file=config.cache ;;
  814. -datadir | --datadir | --datadi | --datad)
  815. ac_prev=datadir ;;
  816. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  817. datadir=$ac_optarg ;;
  818. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  819. | --dataroo | --dataro | --datar)
  820. ac_prev=datarootdir ;;
  821. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  822. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  823. datarootdir=$ac_optarg ;;
  824. -disable-* | --disable-*)
  825. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  826. # Reject names that are not valid shell variable names.
  827. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  828. as_fn_error "invalid feature name: $ac_useropt"
  829. ac_useropt_orig=$ac_useropt
  830. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  831. case $ac_user_opts in
  832. *"
  833. "enable_$ac_useropt"
  834. "*) ;;
  835. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  836. ac_unrecognized_sep=', ';;
  837. esac
  838. eval enable_$ac_useropt=no ;;
  839. -docdir | --docdir | --docdi | --doc | --do)
  840. ac_prev=docdir ;;
  841. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  842. docdir=$ac_optarg ;;
  843. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  844. ac_prev=dvidir ;;
  845. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  846. dvidir=$ac_optarg ;;
  847. -enable-* | --enable-*)
  848. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  849. # Reject names that are not valid shell variable names.
  850. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  851. as_fn_error "invalid feature name: $ac_useropt"
  852. ac_useropt_orig=$ac_useropt
  853. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  854. case $ac_user_opts in
  855. *"
  856. "enable_$ac_useropt"
  857. "*) ;;
  858. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  859. ac_unrecognized_sep=', ';;
  860. esac
  861. eval enable_$ac_useropt=\$ac_optarg ;;
  862. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  863. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  864. | --exec | --exe | --ex)
  865. ac_prev=exec_prefix ;;
  866. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  867. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  868. | --exec=* | --exe=* | --ex=*)
  869. exec_prefix=$ac_optarg ;;
  870. -gas | --gas | --ga | --g)
  871. # Obsolete; use --with-gas.
  872. with_gas=yes ;;
  873. -help | --help | --hel | --he | -h)
  874. ac_init_help=long ;;
  875. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  876. ac_init_help=recursive ;;
  877. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  878. ac_init_help=short ;;
  879. -host | --host | --hos | --ho)
  880. ac_prev=host_alias ;;
  881. -host=* | --host=* | --hos=* | --ho=*)
  882. host_alias=$ac_optarg ;;
  883. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  884. ac_prev=htmldir ;;
  885. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  886. | --ht=*)
  887. htmldir=$ac_optarg ;;
  888. -includedir | --includedir | --includedi | --included | --include \
  889. | --includ | --inclu | --incl | --inc)
  890. ac_prev=includedir ;;
  891. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  892. | --includ=* | --inclu=* | --incl=* | --inc=*)
  893. includedir=$ac_optarg ;;
  894. -infodir | --infodir | --infodi | --infod | --info | --inf)
  895. ac_prev=infodir ;;
  896. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  897. infodir=$ac_optarg ;;
  898. -libdir | --libdir | --libdi | --libd)
  899. ac_prev=libdir ;;
  900. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  901. libdir=$ac_optarg ;;
  902. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  903. | --libexe | --libex | --libe)
  904. ac_prev=libexecdir ;;
  905. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  906. | --libexe=* | --libex=* | --libe=*)
  907. libexecdir=$ac_optarg ;;
  908. -localedir | --localedir | --localedi | --localed | --locale)
  909. ac_prev=localedir ;;
  910. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  911. localedir=$ac_optarg ;;
  912. -localstatedir | --localstatedir | --localstatedi | --localstated \
  913. | --localstate | --localstat | --localsta | --localst | --locals)
  914. ac_prev=localstatedir ;;
  915. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  916. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  917. localstatedir=$ac_optarg ;;
  918. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  919. ac_prev=mandir ;;
  920. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  921. mandir=$ac_optarg ;;
  922. -nfp | --nfp | --nf)
  923. # Obsolete; use --without-fp.
  924. with_fp=no ;;
  925. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  926. | --no-cr | --no-c | -n)
  927. no_create=yes ;;
  928. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  929. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  930. no_recursion=yes ;;
  931. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  932. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  933. | --oldin | --oldi | --old | --ol | --o)
  934. ac_prev=oldincludedir ;;
  935. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  936. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  937. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  938. oldincludedir=$ac_optarg ;;
  939. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  940. ac_prev=prefix ;;
  941. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  942. prefix=$ac_optarg ;;
  943. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  944. | --program-pre | --program-pr | --program-p)
  945. ac_prev=program_prefix ;;
  946. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  947. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  948. program_prefix=$ac_optarg ;;
  949. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  950. | --program-suf | --program-su | --program-s)
  951. ac_prev=program_suffix ;;
  952. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  953. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  954. program_suffix=$ac_optarg ;;
  955. -program-transform-name | --program-transform-name \
  956. | --program-transform-nam | --program-transform-na \
  957. | --program-transform-n | --program-transform- \
  958. | --program-transform | --program-transfor \
  959. | --program-transfo | --program-transf \
  960. | --program-trans | --program-tran \
  961. | --progr-tra | --program-tr | --program-t)
  962. ac_prev=program_transform_name ;;
  963. -program-transform-name=* | --program-transform-name=* \
  964. | --program-transform-nam=* | --program-transform-na=* \
  965. | --program-transform-n=* | --program-transform-=* \
  966. | --program-transform=* | --program-transfor=* \
  967. | --program-transfo=* | --program-transf=* \
  968. | --program-trans=* | --program-tran=* \
  969. | --progr-tra=* | --program-tr=* | --program-t=*)
  970. program_transform_name=$ac_optarg ;;
  971. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  972. ac_prev=pdfdir ;;
  973. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  974. pdfdir=$ac_optarg ;;
  975. -psdir | --psdir | --psdi | --psd | --ps)
  976. ac_prev=psdir ;;
  977. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  978. psdir=$ac_optarg ;;
  979. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  980. | -silent | --silent | --silen | --sile | --sil)
  981. silent=yes ;;
  982. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  983. ac_prev=sbindir ;;
  984. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  985. | --sbi=* | --sb=*)
  986. sbindir=$ac_optarg ;;
  987. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  988. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  989. | --sharedst | --shareds | --shared | --share | --shar \
  990. | --sha | --sh)
  991. ac_prev=sharedstatedir ;;
  992. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  993. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  994. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  995. | --sha=* | --sh=*)
  996. sharedstatedir=$ac_optarg ;;
  997. -site | --site | --sit)
  998. ac_prev=site ;;
  999. -site=* | --site=* | --sit=*)
  1000. site=$ac_optarg ;;
  1001. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1002. ac_prev=srcdir ;;
  1003. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1004. srcdir=$ac_optarg ;;
  1005. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1006. | --syscon | --sysco | --sysc | --sys | --sy)
  1007. ac_prev=sysconfdir ;;
  1008. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1009. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1010. sysconfdir=$ac_optarg ;;
  1011. -target | --target | --targe | --targ | --tar | --ta | --t)
  1012. ac_prev=target_alias ;;
  1013. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1014. target_alias=$ac_optarg ;;
  1015. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1016. verbose=yes ;;
  1017. -version | --version | --versio | --versi | --vers | -V)
  1018. ac_init_version=: ;;
  1019. -with-* | --with-*)
  1020. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1021. # Reject names that are not valid shell variable names.
  1022. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1023. as_fn_error "invalid package name: $ac_useropt"
  1024. ac_useropt_orig=$ac_useropt
  1025. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1026. case $ac_user_opts in
  1027. *"
  1028. "with_$ac_useropt"
  1029. "*) ;;
  1030. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1031. ac_unrecognized_sep=', ';;
  1032. esac
  1033. eval with_$ac_useropt=\$ac_optarg ;;
  1034. -without-* | --without-*)
  1035. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1036. # Reject names that are not valid shell variable names.
  1037. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1038. as_fn_error "invalid package name: $ac_useropt"
  1039. ac_useropt_orig=$ac_useropt
  1040. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1041. case $ac_user_opts in
  1042. *"
  1043. "with_$ac_useropt"
  1044. "*) ;;
  1045. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1046. ac_unrecognized_sep=', ';;
  1047. esac
  1048. eval with_$ac_useropt=no ;;
  1049. --x)
  1050. # Obsolete; use --with-x.
  1051. with_x=yes ;;
  1052. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1053. | --x-incl | --x-inc | --x-in | --x-i)
  1054. ac_prev=x_includes ;;
  1055. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1056. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1057. x_includes=$ac_optarg ;;
  1058. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1059. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1060. ac_prev=x_libraries ;;
  1061. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1062. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1063. x_libraries=$ac_optarg ;;
  1064. -*) as_fn_error "unrecognized option: \`$ac_option'
  1065. Try \`$0 --help' for more information."
  1066. ;;
  1067. *=*)
  1068. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1069. # Reject names that are not valid shell variable names.
  1070. case $ac_envvar in #(
  1071. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1072. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1073. esac
  1074. eval $ac_envvar=\$ac_optarg
  1075. export $ac_envvar ;;
  1076. *)
  1077. # FIXME: should be removed in autoconf 3.0.
  1078. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1079. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1080. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1081. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1082. ;;
  1083. esac
  1084. done
  1085. if test -n "$ac_prev"; then
  1086. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1087. as_fn_error "missing argument to $ac_option"
  1088. fi
  1089. if test -n "$ac_unrecognized_opts"; then
  1090. case $enable_option_checking in
  1091. no) ;;
  1092. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1093. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1094. esac
  1095. fi
  1096. # Check all directory arguments for consistency.
  1097. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1098. datadir sysconfdir sharedstatedir localstatedir includedir \
  1099. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1100. libdir localedir mandir
  1101. do
  1102. eval ac_val=\$$ac_var
  1103. # Remove trailing slashes.
  1104. case $ac_val in
  1105. */ )
  1106. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1107. eval $ac_var=\$ac_val;;
  1108. esac
  1109. # Be sure to have absolute directory names.
  1110. case $ac_val in
  1111. [\\/$]* | ?:[\\/]* ) continue;;
  1112. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1113. esac
  1114. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1115. done
  1116. # There might be people who depend on the old broken behavior: `$host'
  1117. # used to hold the argument of --host etc.
  1118. # FIXME: To remove some day.
  1119. build=$build_alias
  1120. host=$host_alias
  1121. target=$target_alias
  1122. # FIXME: To remove some day.
  1123. if test "x$host_alias" != x; then
  1124. if test "x$build_alias" = x; then
  1125. cross_compiling=maybe
  1126. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1127. If a cross compiler is detected then cross compile mode will be used." >&2
  1128. elif test "x$build_alias" != "x$host_alias"; then
  1129. cross_compiling=yes
  1130. fi
  1131. fi
  1132. ac_tool_prefix=
  1133. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1134. test "$silent" = yes && exec 6>/dev/null
  1135. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1136. ac_ls_di=`ls -di .` &&
  1137. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1138. as_fn_error "working directory cannot be determined"
  1139. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1140. as_fn_error "pwd does not report name of working directory"
  1141. # Find the source files, if location was not specified.
  1142. if test -z "$srcdir"; then
  1143. ac_srcdir_defaulted=yes
  1144. # Try the directory containing this script, then the parent directory.
  1145. ac_confdir=`$as_dirname -- "$as_myself" ||
  1146. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1147. X"$as_myself" : 'X\(//\)[^/]' \| \
  1148. X"$as_myself" : 'X\(//\)$' \| \
  1149. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1150. $as_echo X"$as_myself" |
  1151. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1152. s//\1/
  1153. q
  1154. }
  1155. /^X\(\/\/\)[^/].*/{
  1156. s//\1/
  1157. q
  1158. }
  1159. /^X\(\/\/\)$/{
  1160. s//\1/
  1161. q
  1162. }
  1163. /^X\(\/\).*/{
  1164. s//\1/
  1165. q
  1166. }
  1167. s/.*/./; q'`
  1168. srcdir=$ac_confdir
  1169. if test ! -r "$srcdir/$ac_unique_file"; then
  1170. srcdir=..
  1171. fi
  1172. else
  1173. ac_srcdir_defaulted=no
  1174. fi
  1175. if test ! -r "$srcdir/$ac_unique_file"; then
  1176. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1177. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1178. fi
  1179. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1180. ac_abs_confdir=`(
  1181. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1182. pwd)`
  1183. # When building in place, set srcdir=.
  1184. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1185. srcdir=.
  1186. fi
  1187. # Remove unnecessary trailing slashes from srcdir.
  1188. # Double slashes in file names in object file debugging info
  1189. # mess up M-x gdb in Emacs.
  1190. case $srcdir in
  1191. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1192. esac
  1193. for ac_var in $ac_precious_vars; do
  1194. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1195. eval ac_env_${ac_var}_value=\$${ac_var}
  1196. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1197. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1198. done
  1199. #
  1200. # Report the --help message.
  1201. #
  1202. if test "$ac_init_help" = "long"; then
  1203. # Omit some internal or obsolete options to make the list less imposing.
  1204. # This message is too long to be a string in the A/UX 3.1 sh.
  1205. cat <<_ACEOF
  1206. \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
  1207. Usage: $0 [OPTION]... [VAR=VALUE]...
  1208. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1209. VAR=VALUE. See below for descriptions of some of the useful variables.
  1210. Defaults for the options are specified in brackets.
  1211. Configuration:
  1212. -h, --help display this help and exit
  1213. --help=short display options specific to this package
  1214. --help=recursive display the short help of all the included packages
  1215. -V, --version display version information and exit
  1216. -q, --quiet, --silent do not print \`checking...' messages
  1217. --cache-file=FILE cache test results in FILE [disabled]
  1218. -C, --config-cache alias for \`--cache-file=config.cache'
  1219. -n, --no-create do not create output files
  1220. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1221. Installation directories:
  1222. --prefix=PREFIX install architecture-independent files in PREFIX
  1223. [$ac_default_prefix]
  1224. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1225. [PREFIX]
  1226. By default, \`make install' will install all the files in
  1227. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1228. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1229. for instance \`--prefix=\$HOME'.
  1230. For better control, use the options below.
  1231. Fine tuning of the installation directories:
  1232. --bindir=DIR user executables [EPREFIX/bin]
  1233. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1234. --libexecdir=DIR program executables [EPREFIX/libexec]
  1235. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1236. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1237. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1238. --libdir=DIR object code libraries [EPREFIX/lib]
  1239. --includedir=DIR C header files [PREFIX/include]
  1240. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1241. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1242. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1243. --infodir=DIR info documentation [DATAROOTDIR/info]
  1244. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1245. --mandir=DIR man documentation [DATAROOTDIR/man]
  1246. --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
  1247. --htmldir=DIR html documentation [DOCDIR]
  1248. --dvidir=DIR dvi documentation [DOCDIR]
  1249. --pdfdir=DIR pdf documentation [DOCDIR]
  1250. --psdir=DIR ps documentation [DOCDIR]
  1251. _ACEOF
  1252. cat <<\_ACEOF
  1253. Program names:
  1254. --program-prefix=PREFIX prepend PREFIX to installed program names
  1255. --program-suffix=SUFFIX append SUFFIX to installed program names
  1256. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1257. System types:
  1258. --build=BUILD configure for building on BUILD [guessed]
  1259. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1260. --target=TARGET configure for building compilers for TARGET [HOST]
  1261. _ACEOF
  1262. fi
  1263. if test -n "$ac_init_help"; then
  1264. case $ac_init_help in
  1265. short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
  1266. esac
  1267. cat <<\_ACEOF
  1268. Optional Features:
  1269. --disable-option-checking ignore unrecognized --enable/--with options
  1270. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1271. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1272. --enable-version-specific-runtime-libs
  1273. Specify that runtime libraries should be installed
  1274. in a compiler-specific directory [default=no]
  1275. --enable-generated-files-in-srcdir
  1276. put copies of generated files in source dir intended
  1277. for creating source tarballs for users without
  1278. texinfo bison or flex. [default=no]
  1279. --enable-multilib build many library versions (default)
  1280. --disable-dependency-tracking speeds up one-time build
  1281. --enable-dependency-tracking do not reject slow dependency extractors
  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. --enable-maintainer-mode enable make rules and dependencies not useful
  1288. (and sometimes confusing) to the casual installer
  1289. --enable-linux-futex use the Linux futex system call [default=default]
  1290. --enable-tls Use thread-local storage [default=yes]
  1291. --enable-symvers=STYLE enables symbol versioning of the shared library
  1292. [default=yes]
  1293. Optional Packages:
  1294. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1295. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1296. --with-pic try to use only PIC/non-PIC objects [default=use
  1297. both]
  1298. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1299. Some influential environment variables:
  1300. CC C compiler command
  1301. CFLAGS C compiler flags
  1302. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1303. nonstandard directory <lib dir>
  1304. LIBS libraries to pass to the linker, e.g. -l<library>
  1305. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1306. you have headers in a nonstandard directory <include dir>
  1307. CXX C++ compiler command
  1308. CXXFLAGS C++ compiler flags
  1309. CCAS assembler compiler command (defaults to CC)
  1310. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1311. CPP C preprocessor
  1312. CXXCPP C++ preprocessor
  1313. Use these variables to override the choices made by `configure' or to help
  1314. it to find libraries and programs with nonstandard names/locations.
  1315. Report bugs to the package provider.
  1316. GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
  1317. General help using GNU software: <http://www.gnu.org/gethelp/>.
  1318. _ACEOF
  1319. ac_status=$?
  1320. fi
  1321. if test "$ac_init_help" = "recursive"; then
  1322. # If there are subdirs, report their specific --help.
  1323. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1324. test -d "$ac_dir" ||
  1325. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1326. continue
  1327. ac_builddir=.
  1328. case "$ac_dir" in
  1329. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1330. *)
  1331. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1332. # A ".." for each directory in $ac_dir_suffix.
  1333. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1334. case $ac_top_builddir_sub in
  1335. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1336. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1337. esac ;;
  1338. esac
  1339. ac_abs_top_builddir=$ac_pwd
  1340. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1341. # for backward compatibility:
  1342. ac_top_builddir=$ac_top_build_prefix
  1343. case $srcdir in
  1344. .) # We are building in place.
  1345. ac_srcdir=.
  1346. ac_top_srcdir=$ac_top_builddir_sub
  1347. ac_abs_top_srcdir=$ac_pwd ;;
  1348. [\\/]* | ?:[\\/]* ) # Absolute name.
  1349. ac_srcdir=$srcdir$ac_dir_suffix;
  1350. ac_top_srcdir=$srcdir
  1351. ac_abs_top_srcdir=$srcdir ;;
  1352. *) # Relative name.
  1353. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1354. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1355. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1356. esac
  1357. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1358. cd "$ac_dir" || { ac_status=$?; continue; }
  1359. # Check for guested configure.
  1360. if test -f "$ac_srcdir/configure.gnu"; then
  1361. echo &&
  1362. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1363. elif test -f "$ac_srcdir/configure"; then
  1364. echo &&
  1365. $SHELL "$ac_srcdir/configure" --help=recursive
  1366. else
  1367. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1368. fi || ac_status=$?
  1369. cd "$ac_pwd" || { ac_status=$?; break; }
  1370. done
  1371. fi
  1372. test -n "$ac_init_help" && exit $ac_status
  1373. if $ac_init_version; then
  1374. cat <<\_ACEOF
  1375. GNU TM Runtime Library configure 1.0
  1376. generated by GNU Autoconf 2.64
  1377. Copyright (C) 2009 Free Software Foundation, Inc.
  1378. This configure script is free software; the Free Software Foundation
  1379. gives unlimited permission to copy, distribute and modify it.
  1380. _ACEOF
  1381. exit
  1382. fi
  1383. ## ------------------------ ##
  1384. ## Autoconf initialization. ##
  1385. ## ------------------------ ##
  1386. # ac_fn_c_try_compile LINENO
  1387. # --------------------------
  1388. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1389. ac_fn_c_try_compile ()
  1390. {
  1391. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1392. rm -f conftest.$ac_objext
  1393. if { { ac_try="$ac_compile"
  1394. case "(($ac_try" in
  1395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1396. *) ac_try_echo=$ac_try;;
  1397. esac
  1398. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1399. $as_echo "$ac_try_echo"; } >&5
  1400. (eval "$ac_compile") 2>conftest.err
  1401. ac_status=$?
  1402. if test -s conftest.err; then
  1403. grep -v '^ *+' conftest.err >conftest.er1
  1404. cat conftest.er1 >&5
  1405. mv -f conftest.er1 conftest.err
  1406. fi
  1407. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1408. test $ac_status = 0; } && {
  1409. test -z "$ac_c_werror_flag" ||
  1410. test ! -s conftest.err
  1411. } && test -s conftest.$ac_objext; then :
  1412. ac_retval=0
  1413. else
  1414. $as_echo "$as_me: failed program was:" >&5
  1415. sed 's/^/| /' conftest.$ac_ext >&5
  1416. ac_retval=1
  1417. fi
  1418. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1419. return $ac_retval
  1420. } # ac_fn_c_try_compile
  1421. # ac_fn_cxx_try_compile LINENO
  1422. # ----------------------------
  1423. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1424. ac_fn_cxx_try_compile ()
  1425. {
  1426. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1427. rm -f conftest.$ac_objext
  1428. if { { ac_try="$ac_compile"
  1429. case "(($ac_try" in
  1430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1431. *) ac_try_echo=$ac_try;;
  1432. esac
  1433. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1434. $as_echo "$ac_try_echo"; } >&5
  1435. (eval "$ac_compile") 2>conftest.err
  1436. ac_status=$?
  1437. if test -s conftest.err; then
  1438. grep -v '^ *+' conftest.err >conftest.er1
  1439. cat conftest.er1 >&5
  1440. mv -f conftest.er1 conftest.err
  1441. fi
  1442. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1443. test $ac_status = 0; } && {
  1444. test -z "$ac_cxx_werror_flag" ||
  1445. test ! -s conftest.err
  1446. } && test -s conftest.$ac_objext; then :
  1447. ac_retval=0
  1448. else
  1449. $as_echo "$as_me: failed program was:" >&5
  1450. sed 's/^/| /' conftest.$ac_ext >&5
  1451. ac_retval=1
  1452. fi
  1453. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1454. return $ac_retval
  1455. } # ac_fn_cxx_try_compile
  1456. # ac_fn_c_try_link LINENO
  1457. # -----------------------
  1458. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1459. ac_fn_c_try_link ()
  1460. {
  1461. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1462. rm -f conftest.$ac_objext conftest$ac_exeext
  1463. if { { ac_try="$ac_link"
  1464. case "(($ac_try" in
  1465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1466. *) ac_try_echo=$ac_try;;
  1467. esac
  1468. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1469. $as_echo "$ac_try_echo"; } >&5
  1470. (eval "$ac_link") 2>conftest.err
  1471. ac_status=$?
  1472. if test -s conftest.err; then
  1473. grep -v '^ *+' conftest.err >conftest.er1
  1474. cat conftest.er1 >&5
  1475. mv -f conftest.er1 conftest.err
  1476. fi
  1477. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1478. test $ac_status = 0; } && {
  1479. test -z "$ac_c_werror_flag" ||
  1480. test ! -s conftest.err
  1481. } && test -s conftest$ac_exeext && {
  1482. test "$cross_compiling" = yes ||
  1483. $as_test_x conftest$ac_exeext
  1484. }; then :
  1485. ac_retval=0
  1486. else
  1487. $as_echo "$as_me: failed program was:" >&5
  1488. sed 's/^/| /' conftest.$ac_ext >&5
  1489. ac_retval=1
  1490. fi
  1491. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1492. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1493. # interfere with the next link command; also delete a directory that is
  1494. # left behind by Apple's compiler. We do this before executing the actions.
  1495. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1496. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1497. return $ac_retval
  1498. } # ac_fn_c_try_link
  1499. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1500. # -------------------------------------------------------
  1501. # Tests whether HEADER exists and can be compiled using the include files in
  1502. # INCLUDES, setting the cache variable VAR accordingly.
  1503. ac_fn_c_check_header_compile ()
  1504. {
  1505. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1507. $as_echo_n "checking for $2... " >&6; }
  1508. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1509. $as_echo_n "(cached) " >&6
  1510. else
  1511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1512. /* end confdefs.h. */
  1513. $4
  1514. #include <$2>
  1515. _ACEOF
  1516. if ac_fn_c_try_compile "$LINENO"; then :
  1517. eval "$3=yes"
  1518. else
  1519. eval "$3=no"
  1520. fi
  1521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1522. fi
  1523. eval ac_res=\$$3
  1524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1525. $as_echo "$ac_res" >&6; }
  1526. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1527. } # ac_fn_c_check_header_compile
  1528. # ac_fn_c_try_cpp LINENO
  1529. # ----------------------
  1530. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1531. ac_fn_c_try_cpp ()
  1532. {
  1533. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1534. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1535. case "(($ac_try" in
  1536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1537. *) ac_try_echo=$ac_try;;
  1538. esac
  1539. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1540. $as_echo "$ac_try_echo"; } >&5
  1541. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1542. ac_status=$?
  1543. if test -s conftest.err; then
  1544. grep -v '^ *+' conftest.err >conftest.er1
  1545. cat conftest.er1 >&5
  1546. mv -f conftest.er1 conftest.err
  1547. fi
  1548. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1549. test $ac_status = 0; } >/dev/null && {
  1550. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1551. test ! -s conftest.err
  1552. }; then :
  1553. ac_retval=0
  1554. else
  1555. $as_echo "$as_me: failed program was:" >&5
  1556. sed 's/^/| /' conftest.$ac_ext >&5
  1557. ac_retval=1
  1558. fi
  1559. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1560. return $ac_retval
  1561. } # ac_fn_c_try_cpp
  1562. # ac_fn_c_try_run LINENO
  1563. # ----------------------
  1564. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1565. # that executables *can* be run.
  1566. ac_fn_c_try_run ()
  1567. {
  1568. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1569. if { { ac_try="$ac_link"
  1570. case "(($ac_try" in
  1571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1572. *) ac_try_echo=$ac_try;;
  1573. esac
  1574. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1575. $as_echo "$ac_try_echo"; } >&5
  1576. (eval "$ac_link") 2>&5
  1577. ac_status=$?
  1578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1579. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1580. { { case "(($ac_try" in
  1581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1582. *) ac_try_echo=$ac_try;;
  1583. esac
  1584. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1585. $as_echo "$ac_try_echo"; } >&5
  1586. (eval "$ac_try") 2>&5
  1587. ac_status=$?
  1588. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1589. test $ac_status = 0; }; }; then :
  1590. ac_retval=0
  1591. else
  1592. $as_echo "$as_me: program exited with status $ac_status" >&5
  1593. $as_echo "$as_me: failed program was:" >&5
  1594. sed 's/^/| /' conftest.$ac_ext >&5
  1595. ac_retval=$ac_status
  1596. fi
  1597. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1598. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1599. return $ac_retval
  1600. } # ac_fn_c_try_run
  1601. # ac_fn_c_check_func LINENO FUNC VAR
  1602. # ----------------------------------
  1603. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1604. ac_fn_c_check_func ()
  1605. {
  1606. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1608. $as_echo_n "checking for $2... " >&6; }
  1609. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1610. $as_echo_n "(cached) " >&6
  1611. else
  1612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1613. /* end confdefs.h. */
  1614. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1615. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1616. #define $2 innocuous_$2
  1617. /* System header to define __stub macros and hopefully few prototypes,
  1618. which can conflict with char $2 (); below.
  1619. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1620. <limits.h> exists even on freestanding compilers. */
  1621. #ifdef __STDC__
  1622. # include <limits.h>
  1623. #else
  1624. # include <assert.h>
  1625. #endif
  1626. #undef $2
  1627. /* Override any GCC internal prototype to avoid an error.
  1628. Use char because int might match the return type of a GCC
  1629. builtin and then its argument prototype would still apply. */
  1630. #ifdef __cplusplus
  1631. extern "C"
  1632. #endif
  1633. char $2 ();
  1634. /* The GNU C library defines this for functions which it implements
  1635. to always fail with ENOSYS. Some functions are actually named
  1636. something starting with __ and the normal name is an alias. */
  1637. #if defined __stub_$2 || defined __stub___$2
  1638. choke me
  1639. #endif
  1640. int
  1641. main ()
  1642. {
  1643. return $2 ();
  1644. ;
  1645. return 0;
  1646. }
  1647. _ACEOF
  1648. if ac_fn_c_try_link "$LINENO"; then :
  1649. eval "$3=yes"
  1650. else
  1651. eval "$3=no"
  1652. fi
  1653. rm -f core conftest.err conftest.$ac_objext \
  1654. conftest$ac_exeext conftest.$ac_ext
  1655. fi
  1656. eval ac_res=\$$3
  1657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1658. $as_echo "$ac_res" >&6; }
  1659. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1660. } # ac_fn_c_check_func
  1661. # ac_fn_cxx_try_cpp LINENO
  1662. # ------------------------
  1663. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1664. ac_fn_cxx_try_cpp ()
  1665. {
  1666. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1667. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1668. case "(($ac_try" in
  1669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1670. *) ac_try_echo=$ac_try;;
  1671. esac
  1672. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1673. $as_echo "$ac_try_echo"; } >&5
  1674. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1675. ac_status=$?
  1676. if test -s conftest.err; then
  1677. grep -v '^ *+' conftest.err >conftest.er1
  1678. cat conftest.er1 >&5
  1679. mv -f conftest.er1 conftest.err
  1680. fi
  1681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1682. test $ac_status = 0; } >/dev/null && {
  1683. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1684. test ! -s conftest.err
  1685. }; then :
  1686. ac_retval=0
  1687. else
  1688. $as_echo "$as_me: failed program was:" >&5
  1689. sed 's/^/| /' conftest.$ac_ext >&5
  1690. ac_retval=1
  1691. fi
  1692. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1693. return $ac_retval
  1694. } # ac_fn_cxx_try_cpp
  1695. # ac_fn_cxx_try_link LINENO
  1696. # -------------------------
  1697. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1698. ac_fn_cxx_try_link ()
  1699. {
  1700. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1701. rm -f conftest.$ac_objext conftest$ac_exeext
  1702. if { { ac_try="$ac_link"
  1703. case "(($ac_try" in
  1704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1705. *) ac_try_echo=$ac_try;;
  1706. esac
  1707. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1708. $as_echo "$ac_try_echo"; } >&5
  1709. (eval "$ac_link") 2>conftest.err
  1710. ac_status=$?
  1711. if test -s conftest.err; then
  1712. grep -v '^ *+' conftest.err >conftest.er1
  1713. cat conftest.er1 >&5
  1714. mv -f conftest.er1 conftest.err
  1715. fi
  1716. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1717. test $ac_status = 0; } && {
  1718. test -z "$ac_cxx_werror_flag" ||
  1719. test ! -s conftest.err
  1720. } && test -s conftest$ac_exeext && {
  1721. test "$cross_compiling" = yes ||
  1722. $as_test_x conftest$ac_exeext
  1723. }; then :
  1724. ac_retval=0
  1725. else
  1726. $as_echo "$as_me: failed program was:" >&5
  1727. sed 's/^/| /' conftest.$ac_ext >&5
  1728. ac_retval=1
  1729. fi
  1730. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1731. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1732. # interfere with the next link command; also delete a directory that is
  1733. # left behind by Apple's compiler. We do this before executing the actions.
  1734. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1735. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1736. return $ac_retval
  1737. } # ac_fn_cxx_try_link
  1738. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1739. # -------------------------------------------------------
  1740. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1741. # the include files in INCLUDES and setting the cache variable VAR
  1742. # accordingly.
  1743. ac_fn_c_check_header_mongrel ()
  1744. {
  1745. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1746. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1748. $as_echo_n "checking for $2... " >&6; }
  1749. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1750. $as_echo_n "(cached) " >&6
  1751. fi
  1752. eval ac_res=\$$3
  1753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1754. $as_echo "$ac_res" >&6; }
  1755. else
  1756. # Is the header compilable?
  1757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1758. $as_echo_n "checking $2 usability... " >&6; }
  1759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1760. /* end confdefs.h. */
  1761. $4
  1762. #include <$2>
  1763. _ACEOF
  1764. if ac_fn_c_try_compile "$LINENO"; then :
  1765. ac_header_compiler=yes
  1766. else
  1767. ac_header_compiler=no
  1768. fi
  1769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1771. $as_echo "$ac_header_compiler" >&6; }
  1772. # Is the header present?
  1773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1774. $as_echo_n "checking $2 presence... " >&6; }
  1775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1776. /* end confdefs.h. */
  1777. #include <$2>
  1778. _ACEOF
  1779. if ac_fn_c_try_cpp "$LINENO"; then :
  1780. ac_header_preproc=yes
  1781. else
  1782. ac_header_preproc=no
  1783. fi
  1784. rm -f conftest.err conftest.$ac_ext
  1785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1786. $as_echo "$ac_header_preproc" >&6; }
  1787. # So? What about this header?
  1788. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1789. yes:no: )
  1790. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1791. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1793. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1794. ;;
  1795. no:yes:* )
  1796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1797. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1799. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1800. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1801. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1803. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1805. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1806. ;;
  1807. esac
  1808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1809. $as_echo_n "checking for $2... " >&6; }
  1810. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1811. $as_echo_n "(cached) " >&6
  1812. else
  1813. eval "$3=\$ac_header_compiler"
  1814. fi
  1815. eval ac_res=\$$3
  1816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1817. $as_echo "$ac_res" >&6; }
  1818. fi
  1819. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1820. } # ac_fn_c_check_header_mongrel
  1821. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1822. # -------------------------------------------
  1823. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1824. # variable VAR accordingly.
  1825. ac_fn_c_check_type ()
  1826. {
  1827. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1829. $as_echo_n "checking for $2... " >&6; }
  1830. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1831. $as_echo_n "(cached) " >&6
  1832. else
  1833. eval "$3=no"
  1834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1835. /* end confdefs.h. */
  1836. $4
  1837. int
  1838. main ()
  1839. {
  1840. if (sizeof ($2))
  1841. return 0;
  1842. ;
  1843. return 0;
  1844. }
  1845. _ACEOF
  1846. if ac_fn_c_try_compile "$LINENO"; then :
  1847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1848. /* end confdefs.h. */
  1849. $4
  1850. int
  1851. main ()
  1852. {
  1853. if (sizeof (($2)))
  1854. return 0;
  1855. ;
  1856. return 0;
  1857. }
  1858. _ACEOF
  1859. if ac_fn_c_try_compile "$LINENO"; then :
  1860. else
  1861. eval "$3=yes"
  1862. fi
  1863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1864. fi
  1865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1866. fi
  1867. eval ac_res=\$$3
  1868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1869. $as_echo "$ac_res" >&6; }
  1870. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1871. } # ac_fn_c_check_type
  1872. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1873. # --------------------------------------------
  1874. # Tries to find the compile-time value of EXPR in a program that includes
  1875. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1876. # computed
  1877. ac_fn_c_compute_int ()
  1878. {
  1879. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1880. if test "$cross_compiling" = yes; then
  1881. # Depending upon the size, compute the lo and hi bounds.
  1882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1883. /* end confdefs.h. */
  1884. $4
  1885. int
  1886. main ()
  1887. {
  1888. static int test_array [1 - 2 * !(($2) >= 0)];
  1889. test_array [0] = 0
  1890. ;
  1891. return 0;
  1892. }
  1893. _ACEOF
  1894. if ac_fn_c_try_compile "$LINENO"; then :
  1895. ac_lo=0 ac_mid=0
  1896. while :; do
  1897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1898. /* end confdefs.h. */
  1899. $4
  1900. int
  1901. main ()
  1902. {
  1903. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1904. test_array [0] = 0
  1905. ;
  1906. return 0;
  1907. }
  1908. _ACEOF
  1909. if ac_fn_c_try_compile "$LINENO"; then :
  1910. ac_hi=$ac_mid; break
  1911. else
  1912. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1913. if test $ac_lo -le $ac_mid; then
  1914. ac_lo= ac_hi=
  1915. break
  1916. fi
  1917. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1918. fi
  1919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1920. done
  1921. else
  1922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1923. /* end confdefs.h. */
  1924. $4
  1925. int
  1926. main ()
  1927. {
  1928. static int test_array [1 - 2 * !(($2) < 0)];
  1929. test_array [0] = 0
  1930. ;
  1931. return 0;
  1932. }
  1933. _ACEOF
  1934. if ac_fn_c_try_compile "$LINENO"; then :
  1935. ac_hi=-1 ac_mid=-1
  1936. while :; do
  1937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1938. /* end confdefs.h. */
  1939. $4
  1940. int
  1941. main ()
  1942. {
  1943. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1944. test_array [0] = 0
  1945. ;
  1946. return 0;
  1947. }
  1948. _ACEOF
  1949. if ac_fn_c_try_compile "$LINENO"; then :
  1950. ac_lo=$ac_mid; break
  1951. else
  1952. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1953. if test $ac_mid -le $ac_hi; then
  1954. ac_lo= ac_hi=
  1955. break
  1956. fi
  1957. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1958. fi
  1959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1960. done
  1961. else
  1962. ac_lo= ac_hi=
  1963. fi
  1964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1965. fi
  1966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1967. # Binary search between lo and hi bounds.
  1968. while test "x$ac_lo" != "x$ac_hi"; do
  1969. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1971. /* end confdefs.h. */
  1972. $4
  1973. int
  1974. main ()
  1975. {
  1976. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1977. test_array [0] = 0
  1978. ;
  1979. return 0;
  1980. }
  1981. _ACEOF
  1982. if ac_fn_c_try_compile "$LINENO"; then :
  1983. ac_hi=$ac_mid
  1984. else
  1985. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1986. fi
  1987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1988. done
  1989. case $ac_lo in #((
  1990. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1991. '') ac_retval=1 ;;
  1992. esac
  1993. else
  1994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1995. /* end confdefs.h. */
  1996. $4
  1997. static long int longval () { return $2; }
  1998. static unsigned long int ulongval () { return $2; }
  1999. #include <stdio.h>
  2000. #include <stdlib.h>
  2001. int
  2002. main ()
  2003. {
  2004. FILE *f = fopen ("conftest.val", "w");
  2005. if (! f)
  2006. return 1;
  2007. if (($2) < 0)
  2008. {
  2009. long int i = longval ();
  2010. if (i != ($2))
  2011. return 1;
  2012. fprintf (f, "%ld", i);
  2013. }
  2014. else
  2015. {
  2016. unsigned long int i = ulongval ();
  2017. if (i != ($2))
  2018. return 1;
  2019. fprintf (f, "%lu", i);
  2020. }
  2021. /* Do not output a trailing newline, as this causes \r\n confusion
  2022. on some platforms. */
  2023. return ferror (f) || fclose (f) != 0;
  2024. ;
  2025. return 0;
  2026. }
  2027. _ACEOF
  2028. if ac_fn_c_try_run "$LINENO"; then :
  2029. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2030. else
  2031. ac_retval=1
  2032. fi
  2033. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2034. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2035. rm -f conftest.val
  2036. fi
  2037. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2038. return $ac_retval
  2039. } # ac_fn_c_compute_int
  2040. # ac_fn_c_check_decl LINENO SYMBOL VAR
  2041. # ------------------------------------
  2042. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  2043. ac_fn_c_check_decl ()
  2044. {
  2045. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2046. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2047. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2049. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2050. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2051. $as_echo_n "(cached) " >&6
  2052. else
  2053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2054. /* end confdefs.h. */
  2055. $4
  2056. int
  2057. main ()
  2058. {
  2059. #ifndef $as_decl_name
  2060. #ifdef __cplusplus
  2061. (void) $as_decl_use;
  2062. #else
  2063. (void) $as_decl_name;
  2064. #endif
  2065. #endif
  2066. ;
  2067. return 0;
  2068. }
  2069. _ACEOF
  2070. if ac_fn_c_try_compile "$LINENO"; then :
  2071. eval "$3=yes"
  2072. else
  2073. eval "$3=no"
  2074. fi
  2075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2076. fi
  2077. eval ac_res=\$$3
  2078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2079. $as_echo "$ac_res" >&6; }
  2080. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2081. } # ac_fn_c_check_decl
  2082. cat >config.log <<_ACEOF
  2083. This file contains any messages produced by compilers while
  2084. running configure, to aid debugging if configure makes a mistake.
  2085. It was created by GNU TM Runtime Library $as_me 1.0, which was
  2086. generated by GNU Autoconf 2.64. Invocation command line was
  2087. $ $0 $@
  2088. _ACEOF
  2089. exec 5>>config.log
  2090. {
  2091. cat <<_ASUNAME
  2092. ## --------- ##
  2093. ## Platform. ##
  2094. ## --------- ##
  2095. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2096. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2097. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2098. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2099. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2100. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2101. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2102. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2103. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2104. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2105. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2106. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2107. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2108. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2109. _ASUNAME
  2110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2111. for as_dir in $PATH
  2112. do
  2113. IFS=$as_save_IFS
  2114. test -z "$as_dir" && as_dir=.
  2115. $as_echo "PATH: $as_dir"
  2116. done
  2117. IFS=$as_save_IFS
  2118. } >&5
  2119. cat >&5 <<_ACEOF
  2120. ## ----------- ##
  2121. ## Core tests. ##
  2122. ## ----------- ##
  2123. _ACEOF
  2124. # Keep a trace of the command line.
  2125. # Strip out --no-create and --no-recursion so they do not pile up.
  2126. # Strip out --silent because we don't want to record it for future runs.
  2127. # Also quote any args containing shell meta-characters.
  2128. # Make two passes to allow for proper duplicate-argument suppression.
  2129. ac_configure_args=
  2130. ac_configure_args0=
  2131. ac_configure_args1=
  2132. ac_must_keep_next=false
  2133. for ac_pass in 1 2
  2134. do
  2135. for ac_arg
  2136. do
  2137. case $ac_arg in
  2138. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2139. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2140. | -silent | --silent | --silen | --sile | --sil)
  2141. continue ;;
  2142. *\'*)
  2143. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2144. esac
  2145. case $ac_pass in
  2146. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2147. 2)
  2148. as_fn_append ac_configure_args1 " '$ac_arg'"
  2149. if test $ac_must_keep_next = true; then
  2150. ac_must_keep_next=false # Got value, back to normal.
  2151. else
  2152. case $ac_arg in
  2153. *=* | --config-cache | -C | -disable-* | --disable-* \
  2154. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2155. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2156. | -with-* | --with-* | -without-* | --without-* | --x)
  2157. case "$ac_configure_args0 " in
  2158. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2159. esac
  2160. ;;
  2161. -* ) ac_must_keep_next=true ;;
  2162. esac
  2163. fi
  2164. as_fn_append ac_configure_args " '$ac_arg'"
  2165. ;;
  2166. esac
  2167. done
  2168. done
  2169. { ac_configure_args0=; unset ac_configure_args0;}
  2170. { ac_configure_args1=; unset ac_configure_args1;}
  2171. # When interrupted or exit'd, cleanup temporary files, and complete
  2172. # config.log. We remove comments because anyway the quotes in there
  2173. # would cause problems or look ugly.
  2174. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2175. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2176. trap 'exit_status=$?
  2177. # Save into config.log some information that might help in debugging.
  2178. {
  2179. echo
  2180. cat <<\_ASBOX
  2181. ## ---------------- ##
  2182. ## Cache variables. ##
  2183. ## ---------------- ##
  2184. _ASBOX
  2185. echo
  2186. # The following way of writing the cache mishandles newlines in values,
  2187. (
  2188. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2189. eval ac_val=\$$ac_var
  2190. case $ac_val in #(
  2191. *${as_nl}*)
  2192. case $ac_var in #(
  2193. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2194. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2195. esac
  2196. case $ac_var in #(
  2197. _ | IFS | as_nl) ;; #(
  2198. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2199. *) { eval $ac_var=; unset $ac_var;} ;;
  2200. esac ;;
  2201. esac
  2202. done
  2203. (set) 2>&1 |
  2204. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2205. *${as_nl}ac_space=\ *)
  2206. sed -n \
  2207. "s/'\''/'\''\\\\'\'''\''/g;
  2208. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2209. ;; #(
  2210. *)
  2211. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2212. ;;
  2213. esac |
  2214. sort
  2215. )
  2216. echo
  2217. cat <<\_ASBOX
  2218. ## ----------------- ##
  2219. ## Output variables. ##
  2220. ## ----------------- ##
  2221. _ASBOX
  2222. echo
  2223. for ac_var in $ac_subst_vars
  2224. do
  2225. eval ac_val=\$$ac_var
  2226. case $ac_val in
  2227. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2228. esac
  2229. $as_echo "$ac_var='\''$ac_val'\''"
  2230. done | sort
  2231. echo
  2232. if test -n "$ac_subst_files"; then
  2233. cat <<\_ASBOX
  2234. ## ------------------- ##
  2235. ## File substitutions. ##
  2236. ## ------------------- ##
  2237. _ASBOX
  2238. echo
  2239. for ac_var in $ac_subst_files
  2240. do
  2241. eval ac_val=\$$ac_var
  2242. case $ac_val in
  2243. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2244. esac
  2245. $as_echo "$ac_var='\''$ac_val'\''"
  2246. done | sort
  2247. echo
  2248. fi
  2249. if test -s confdefs.h; then
  2250. cat <<\_ASBOX
  2251. ## ----------- ##
  2252. ## confdefs.h. ##
  2253. ## ----------- ##
  2254. _ASBOX
  2255. echo
  2256. cat confdefs.h
  2257. echo
  2258. fi
  2259. test "$ac_signal" != 0 &&
  2260. $as_echo "$as_me: caught signal $ac_signal"
  2261. $as_echo "$as_me: exit $exit_status"
  2262. } >&5
  2263. rm -f core *.core core.conftest.* &&
  2264. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2265. exit $exit_status
  2266. ' 0
  2267. for ac_signal in 1 2 13 15; do
  2268. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2269. done
  2270. ac_signal=0
  2271. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2272. rm -f -r conftest* confdefs.h
  2273. $as_echo "/* confdefs.h */" > confdefs.h
  2274. # Predefined preprocessor variables.
  2275. cat >>confdefs.h <<_ACEOF
  2276. #define PACKAGE_NAME "$PACKAGE_NAME"
  2277. _ACEOF
  2278. cat >>confdefs.h <<_ACEOF
  2279. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2280. _ACEOF
  2281. cat >>confdefs.h <<_ACEOF
  2282. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2283. _ACEOF
  2284. cat >>confdefs.h <<_ACEOF
  2285. #define PACKAGE_STRING "$PACKAGE_STRING"
  2286. _ACEOF
  2287. cat >>confdefs.h <<_ACEOF
  2288. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2289. _ACEOF
  2290. cat >>confdefs.h <<_ACEOF
  2291. #define PACKAGE_URL "$PACKAGE_URL"
  2292. _ACEOF
  2293. # Let the site file select an alternate cache file if it wants to.
  2294. # Prefer an explicitly selected file to automatically selected ones.
  2295. ac_site_file1=NONE
  2296. ac_site_file2=NONE
  2297. if test -n "$CONFIG_SITE"; then
  2298. ac_site_file1=$CONFIG_SITE
  2299. elif test "x$prefix" != xNONE; then
  2300. ac_site_file1=$prefix/share/config.site
  2301. ac_site_file2=$prefix/etc/config.site
  2302. else
  2303. ac_site_file1=$ac_default_prefix/share/config.site
  2304. ac_site_file2=$ac_default_prefix/etc/config.site
  2305. fi
  2306. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2307. do
  2308. test "x$ac_site_file" = xNONE && continue
  2309. if test -r "$ac_site_file"; then
  2310. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2311. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2312. sed 's/^/| /' "$ac_site_file" >&5
  2313. . "$ac_site_file"
  2314. fi
  2315. done
  2316. if test -r "$cache_file"; then
  2317. # Some versions of bash will fail to source /dev/null (special
  2318. # files actually), so we avoid doing that.
  2319. if test -f "$cache_file"; then
  2320. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2321. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2322. case $cache_file in
  2323. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2324. *) . "./$cache_file";;
  2325. esac
  2326. fi
  2327. else
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2329. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2330. >$cache_file
  2331. fi
  2332. # Check that the precious variables saved in the cache have kept the same
  2333. # value.
  2334. ac_cache_corrupted=false
  2335. for ac_var in $ac_precious_vars; do
  2336. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2337. eval ac_new_set=\$ac_env_${ac_var}_set
  2338. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2339. eval ac_new_val=\$ac_env_${ac_var}_value
  2340. case $ac_old_set,$ac_new_set in
  2341. set,)
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2343. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2344. ac_cache_corrupted=: ;;
  2345. ,set)
  2346. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2347. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2348. ac_cache_corrupted=: ;;
  2349. ,);;
  2350. *)
  2351. if test "x$ac_old_val" != "x$ac_new_val"; then
  2352. # differences in whitespace do not lead to failure.
  2353. ac_old_val_w=`echo x $ac_old_val`
  2354. ac_new_val_w=`echo x $ac_new_val`
  2355. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2357. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2358. ac_cache_corrupted=:
  2359. else
  2360. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2361. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2362. eval $ac_var=\$ac_old_val
  2363. fi
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2365. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2366. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2367. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2368. fi;;
  2369. esac
  2370. # Pass precious variables to config.status.
  2371. if test "$ac_new_set" = set; then
  2372. case $ac_new_val in
  2373. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2374. *) ac_arg=$ac_var=$ac_new_val ;;
  2375. esac
  2376. case " $ac_configure_args " in
  2377. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2378. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2379. esac
  2380. fi
  2381. done
  2382. if $ac_cache_corrupted; then
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2384. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2386. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2387. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2388. fi
  2389. ## -------------------- ##
  2390. ## Main body of script. ##
  2391. ## -------------------- ##
  2392. ac_ext=c
  2393. ac_cpp='$CPP $CPPFLAGS'
  2394. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2395. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2396. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2397. ac_config_headers="$ac_config_headers config.h"
  2398. # -------
  2399. # Options
  2400. # -------
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  2402. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  2403. # Check whether --enable-version-specific-runtime-libs was given.
  2404. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  2405. enableval=$enable_version_specific_runtime_libs;
  2406. case "$enableval" in
  2407. yes|no) ;;
  2408. *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
  2409. esac
  2410. else
  2411. enable_version_specific_runtime_libs=no
  2412. fi
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
  2414. $as_echo "$enable_version_specific_runtime_libs" >&6; }
  2415. # We would like our source tree to be readonly. However when releases or
  2416. # pre-releases are generated, the flex/bison generated files as well as the
  2417. # various formats of manuals need to be included along with the rest of the
  2418. # sources. Therefore we have --enable-generated-files-in-srcdir to do
  2419. # just that.
  2420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
  2421. $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
  2422. # Check whether --enable-generated-files-in-srcdir was given.
  2423. if test "${enable_generated_files_in_srcdir+set}" = set; then :
  2424. enableval=$enable_generated_files_in_srcdir;
  2425. case "$enableval" in
  2426. yes|no) ;;
  2427. *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
  2428. esac
  2429. else
  2430. enable_generated_files_in_srcdir=no
  2431. fi
  2432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
  2433. $as_echo "$enable_generated_files_in_srcdir" >&6; }
  2434. if test "$enable_generated_files_in_srcdir" = yes; then
  2435. GENINSRC_TRUE=
  2436. GENINSRC_FALSE='#'
  2437. else
  2438. GENINSRC_TRUE='#'
  2439. GENINSRC_FALSE=
  2440. fi
  2441. # -------
  2442. # -------
  2443. # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
  2444. #
  2445. # You will slowly go insane if you do not grok the following fact: when
  2446. # building this library, the top-level /target/ becomes the library's /host/.
  2447. #
  2448. # configure then causes --target to default to --host, exactly like any
  2449. # other package using autoconf. Therefore, 'target' and 'host' will
  2450. # always be the same. This makes sense both for native and cross compilers
  2451. # just think about it for a little while. :-)
  2452. #
  2453. # Also, if this library is being configured as part of a cross compiler, the
  2454. # top-level configure script will pass the "real" host as $with_cross_host.
  2455. #
  2456. # Do not delete or change the following two lines. For why, see
  2457. # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
  2458. ac_aux_dir=
  2459. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2460. for ac_t in install-sh install.sh shtool; do
  2461. if test -f "$ac_dir/$ac_t"; then
  2462. ac_aux_dir=$ac_dir
  2463. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2464. break 2
  2465. fi
  2466. done
  2467. done
  2468. if test -z "$ac_aux_dir"; then
  2469. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2470. fi
  2471. # These three variables are undocumented and unsupported,
  2472. # and are intended to be withdrawn in a future Autoconf release.
  2473. # They can cause serious problems if a builder's source tree is in a directory
  2474. # whose full name contains unusual characters.
  2475. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2476. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2477. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2478. # Make sure we can run config.sub.
  2479. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2480. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2482. $as_echo_n "checking build system type... " >&6; }
  2483. if test "${ac_cv_build+set}" = set; then :
  2484. $as_echo_n "(cached) " >&6
  2485. else
  2486. ac_build_alias=$build_alias
  2487. test "x$ac_build_alias" = x &&
  2488. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2489. test "x$ac_build_alias" = x &&
  2490. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2491. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2492. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2493. fi
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2495. $as_echo "$ac_cv_build" >&6; }
  2496. case $ac_cv_build in
  2497. *-*-*) ;;
  2498. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2499. esac
  2500. build=$ac_cv_build
  2501. ac_save_IFS=$IFS; IFS='-'
  2502. set x $ac_cv_build
  2503. shift
  2504. build_cpu=$1
  2505. build_vendor=$2
  2506. shift; shift
  2507. # Remember, the first character of IFS is used to create $*,
  2508. # except with old shells:
  2509. build_os=$*
  2510. IFS=$ac_save_IFS
  2511. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2513. $as_echo_n "checking host system type... " >&6; }
  2514. if test "${ac_cv_host+set}" = set; then :
  2515. $as_echo_n "(cached) " >&6
  2516. else
  2517. if test "x$host_alias" = x; then
  2518. ac_cv_host=$ac_cv_build
  2519. else
  2520. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2521. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2522. fi
  2523. fi
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2525. $as_echo "$ac_cv_host" >&6; }
  2526. case $ac_cv_host in
  2527. *-*-*) ;;
  2528. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2529. esac
  2530. host=$ac_cv_host
  2531. ac_save_IFS=$IFS; IFS='-'
  2532. set x $ac_cv_host
  2533. shift
  2534. host_cpu=$1
  2535. host_vendor=$2
  2536. shift; shift
  2537. # Remember, the first character of IFS is used to create $*,
  2538. # except with old shells:
  2539. host_os=$*
  2540. IFS=$ac_save_IFS
  2541. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2543. $as_echo_n "checking target system type... " >&6; }
  2544. if test "${ac_cv_target+set}" = set; then :
  2545. $as_echo_n "(cached) " >&6
  2546. else
  2547. if test "x$target_alias" = x; then
  2548. ac_cv_target=$ac_cv_host
  2549. else
  2550. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2551. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2552. fi
  2553. fi
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2555. $as_echo "$ac_cv_target" >&6; }
  2556. case $ac_cv_target in
  2557. *-*-*) ;;
  2558. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2559. esac
  2560. target=$ac_cv_target
  2561. ac_save_IFS=$IFS; IFS='-'
  2562. set x $ac_cv_target
  2563. shift
  2564. target_cpu=$1
  2565. target_vendor=$2
  2566. shift; shift
  2567. # Remember, the first character of IFS is used to create $*,
  2568. # except with old shells:
  2569. target_os=$*
  2570. IFS=$ac_save_IFS
  2571. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2572. # The aliases save the names the user supplied, while $host etc.
  2573. # will get canonicalized.
  2574. test -n "$target_alias" &&
  2575. test "$program_prefix$program_suffix$program_transform_name" = \
  2576. NONENONEs,x,x, &&
  2577. program_prefix=${target_alias}-
  2578. target_alias=${target_alias-$host_alias}
  2579. # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
  2580. # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
  2581. # 1.9.0: minimum required version
  2582. # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
  2583. # of other PACKAGE_* variables will, however, and there's nothing
  2584. # we can do about that; they come from AC_INIT).
  2585. # no-dist: we don't want 'dist' and related rules.
  2586. # foreign: we don't follow the normal rules for GNU packages (no COPYING
  2587. # file in the top srcdir, etc, etc), so stop complaining.
  2588. # -Wall: turns on all automake warnings...
  2589. # -Wno-portability: ...except this one, since GNU make is required.
  2590. # -Wno-override: ... and this one, since we do want this in testsuite.
  2591. am__api_version='1.11'
  2592. # Find a good install program. We prefer a C program (faster),
  2593. # so one script is as good as another. But avoid the broken or
  2594. # incompatible versions:
  2595. # SysV /etc/install, /usr/sbin/install
  2596. # SunOS /usr/etc/install
  2597. # IRIX /sbin/install
  2598. # AIX /bin/install
  2599. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2600. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2601. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2602. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2603. # OS/2's system install, which has a completely different semantic
  2604. # ./install, which can be erroneously created by make from ./install.sh.
  2605. # Reject install programs that cannot install multiple files.
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2607. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2608. if test -z "$INSTALL"; then
  2609. if test "${ac_cv_path_install+set}" = set; then :
  2610. $as_echo_n "(cached) " >&6
  2611. else
  2612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2613. for as_dir in $PATH
  2614. do
  2615. IFS=$as_save_IFS
  2616. test -z "$as_dir" && as_dir=.
  2617. # Account for people who put trailing slashes in PATH elements.
  2618. case $as_dir/ in #((
  2619. ./ | .// | /[cC]/* | \
  2620. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2621. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2622. /usr/ucb/* ) ;;
  2623. *)
  2624. # OSF1 and SCO ODT 3.0 have their own names for install.
  2625. # Don't use installbsd from OSF since it installs stuff as root
  2626. # by default.
  2627. for ac_prog in ginstall scoinst install; do
  2628. for ac_exec_ext in '' $ac_executable_extensions; do
  2629. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2630. if test $ac_prog = install &&
  2631. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2632. # AIX install. It has an incompatible calling convention.
  2633. :
  2634. elif test $ac_prog = install &&
  2635. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2636. # program-specific install script used by HP pwplus--don't use.
  2637. :
  2638. else
  2639. rm -rf conftest.one conftest.two conftest.dir
  2640. echo one > conftest.one
  2641. echo two > conftest.two
  2642. mkdir conftest.dir
  2643. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2644. test -s conftest.one && test -s conftest.two &&
  2645. test -s conftest.dir/conftest.one &&
  2646. test -s conftest.dir/conftest.two
  2647. then
  2648. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2649. break 3
  2650. fi
  2651. fi
  2652. fi
  2653. done
  2654. done
  2655. ;;
  2656. esac
  2657. done
  2658. IFS=$as_save_IFS
  2659. rm -rf conftest.one conftest.two conftest.dir
  2660. fi
  2661. if test "${ac_cv_path_install+set}" = set; then
  2662. INSTALL=$ac_cv_path_install
  2663. else
  2664. # As a last resort, use the slow shell script. Don't cache a
  2665. # value for INSTALL within a source directory, because that will
  2666. # break other packages using the cache if that directory is
  2667. # removed, or if the value is a relative name.
  2668. INSTALL=$ac_install_sh
  2669. fi
  2670. fi
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2672. $as_echo "$INSTALL" >&6; }
  2673. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2674. # It thinks the first close brace ends the variable substitution.
  2675. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2676. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2677. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2679. $as_echo_n "checking whether build environment is sane... " >&6; }
  2680. # Just in case
  2681. sleep 1
  2682. echo timestamp > conftest.file
  2683. # Reject unsafe characters in $srcdir or the absolute working directory
  2684. # name. Accept space and tab only in the latter.
  2685. am_lf='
  2686. '
  2687. case `pwd` in
  2688. *[\\\"\#\$\&\'\`$am_lf]*)
  2689. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2690. esac
  2691. case $srcdir in
  2692. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2693. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2694. esac
  2695. # Do `set' in a subshell so we don't clobber the current shell's
  2696. # arguments. Must try -L first in case configure is actually a
  2697. # symlink; some systems play weird games with the mod time of symlinks
  2698. # (eg FreeBSD returns the mod time of the symlink's containing
  2699. # directory).
  2700. if (
  2701. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2702. if test "$*" = "X"; then
  2703. # -L didn't work.
  2704. set X `ls -t "$srcdir/configure" conftest.file`
  2705. fi
  2706. rm -f conftest.file
  2707. if test "$*" != "X $srcdir/configure conftest.file" \
  2708. && test "$*" != "X conftest.file $srcdir/configure"; then
  2709. # If neither matched, then we have a broken ls. This can happen
  2710. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2711. # broken ls alias from the environment. This has actually
  2712. # happened. Such a system could not be considered "sane".
  2713. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2714. alias in your environment" "$LINENO" 5
  2715. fi
  2716. test "$2" = conftest.file
  2717. )
  2718. then
  2719. # Ok.
  2720. :
  2721. else
  2722. as_fn_error "newly created file is older than distributed files!
  2723. Check your system clock" "$LINENO" 5
  2724. fi
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2726. $as_echo "yes" >&6; }
  2727. test "$program_prefix" != NONE &&
  2728. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2729. # Use a double $ so make ignores it.
  2730. test "$program_suffix" != NONE &&
  2731. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2732. # Double any \ or $.
  2733. # By default was `s,x,x', remove it if useless.
  2734. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2735. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2736. # expand $ac_aux_dir to an absolute path
  2737. am_aux_dir=`cd $ac_aux_dir && pwd`
  2738. if test x"${MISSING+set}" != xset; then
  2739. case $am_aux_dir in
  2740. *\ * | *\ *)
  2741. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2742. *)
  2743. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2744. esac
  2745. fi
  2746. # Use eval to expand $SHELL
  2747. if eval "$MISSING --run true"; then
  2748. am_missing_run="$MISSING --run "
  2749. else
  2750. am_missing_run=
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2752. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2753. fi
  2754. if test x"${install_sh}" != xset; then
  2755. case $am_aux_dir in
  2756. *\ * | *\ *)
  2757. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2758. *)
  2759. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2760. esac
  2761. fi
  2762. # Installed binaries are usually stripped using `strip' when the user
  2763. # run `make install-strip'. However `strip' might not be the right
  2764. # tool to use in cross-compilation environments, therefore Automake
  2765. # will honor the `STRIP' environment variable to overrule this program.
  2766. if test "$cross_compiling" != no; then
  2767. if test -n "$ac_tool_prefix"; then
  2768. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2769. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2771. $as_echo_n "checking for $ac_word... " >&6; }
  2772. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2773. $as_echo_n "(cached) " >&6
  2774. else
  2775. if test -n "$STRIP"; then
  2776. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2777. else
  2778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2779. for as_dir in $PATH
  2780. do
  2781. IFS=$as_save_IFS
  2782. test -z "$as_dir" && as_dir=.
  2783. for ac_exec_ext in '' $ac_executable_extensions; do
  2784. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2785. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2786. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2787. break 2
  2788. fi
  2789. done
  2790. done
  2791. IFS=$as_save_IFS
  2792. fi
  2793. fi
  2794. STRIP=$ac_cv_prog_STRIP
  2795. if test -n "$STRIP"; then
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2797. $as_echo "$STRIP" >&6; }
  2798. else
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2800. $as_echo "no" >&6; }
  2801. fi
  2802. fi
  2803. if test -z "$ac_cv_prog_STRIP"; then
  2804. ac_ct_STRIP=$STRIP
  2805. # Extract the first word of "strip", so it can be a program name with args.
  2806. set dummy strip; ac_word=$2
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2808. $as_echo_n "checking for $ac_word... " >&6; }
  2809. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2810. $as_echo_n "(cached) " >&6
  2811. else
  2812. if test -n "$ac_ct_STRIP"; then
  2813. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2814. else
  2815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2816. for as_dir in $PATH
  2817. do
  2818. IFS=$as_save_IFS
  2819. test -z "$as_dir" && as_dir=.
  2820. for ac_exec_ext in '' $ac_executable_extensions; do
  2821. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2822. ac_cv_prog_ac_ct_STRIP="strip"
  2823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2824. break 2
  2825. fi
  2826. done
  2827. done
  2828. IFS=$as_save_IFS
  2829. fi
  2830. fi
  2831. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2832. if test -n "$ac_ct_STRIP"; then
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2834. $as_echo "$ac_ct_STRIP" >&6; }
  2835. else
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2837. $as_echo "no" >&6; }
  2838. fi
  2839. if test "x$ac_ct_STRIP" = x; then
  2840. STRIP=":"
  2841. else
  2842. case $cross_compiling:$ac_tool_warned in
  2843. yes:)
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2845. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2846. ac_tool_warned=yes ;;
  2847. esac
  2848. STRIP=$ac_ct_STRIP
  2849. fi
  2850. else
  2851. STRIP="$ac_cv_prog_STRIP"
  2852. fi
  2853. fi
  2854. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2856. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2857. if test -z "$MKDIR_P"; then
  2858. if test "${ac_cv_path_mkdir+set}" = set; then :
  2859. $as_echo_n "(cached) " >&6
  2860. else
  2861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2862. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2863. do
  2864. IFS=$as_save_IFS
  2865. test -z "$as_dir" && as_dir=.
  2866. for ac_prog in mkdir gmkdir; do
  2867. for ac_exec_ext in '' $ac_executable_extensions; do
  2868. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2869. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2870. 'mkdir (GNU coreutils) '* | \
  2871. 'mkdir (coreutils) '* | \
  2872. 'mkdir (fileutils) '4.1*)
  2873. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2874. break 3;;
  2875. esac
  2876. done
  2877. done
  2878. done
  2879. IFS=$as_save_IFS
  2880. fi
  2881. if test "${ac_cv_path_mkdir+set}" = set; then
  2882. MKDIR_P="$ac_cv_path_mkdir -p"
  2883. else
  2884. # As a last resort, use the slow shell script. Don't cache a
  2885. # value for MKDIR_P within a source directory, because that will
  2886. # break other packages using the cache if that directory is
  2887. # removed, or if the value is a relative name.
  2888. test -d ./--version && rmdir ./--version
  2889. MKDIR_P="$ac_install_sh -d"
  2890. fi
  2891. fi
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2893. $as_echo "$MKDIR_P" >&6; }
  2894. mkdir_p="$MKDIR_P"
  2895. case $mkdir_p in
  2896. [\\/$]* | ?:[\\/]*) ;;
  2897. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2898. esac
  2899. for ac_prog in gawk mawk nawk awk
  2900. do
  2901. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2902. set dummy $ac_prog; ac_word=$2
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2904. $as_echo_n "checking for $ac_word... " >&6; }
  2905. if test "${ac_cv_prog_AWK+set}" = set; then :
  2906. $as_echo_n "(cached) " >&6
  2907. else
  2908. if test -n "$AWK"; then
  2909. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2910. else
  2911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2912. for as_dir in $PATH
  2913. do
  2914. IFS=$as_save_IFS
  2915. test -z "$as_dir" && as_dir=.
  2916. for ac_exec_ext in '' $ac_executable_extensions; do
  2917. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2918. ac_cv_prog_AWK="$ac_prog"
  2919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2920. break 2
  2921. fi
  2922. done
  2923. done
  2924. IFS=$as_save_IFS
  2925. fi
  2926. fi
  2927. AWK=$ac_cv_prog_AWK
  2928. if test -n "$AWK"; then
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2930. $as_echo "$AWK" >&6; }
  2931. else
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2933. $as_echo "no" >&6; }
  2934. fi
  2935. test -n "$AWK" && break
  2936. done
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2938. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2939. set x ${MAKE-make}
  2940. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2941. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2942. $as_echo_n "(cached) " >&6
  2943. else
  2944. cat >conftest.make <<\_ACEOF
  2945. SHELL = /bin/sh
  2946. all:
  2947. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2948. _ACEOF
  2949. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2950. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2951. *@@@%%%=?*=@@@%%%*)
  2952. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2953. *)
  2954. eval ac_cv_prog_make_${ac_make}_set=no;;
  2955. esac
  2956. rm -f conftest.make
  2957. fi
  2958. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2960. $as_echo "yes" >&6; }
  2961. SET_MAKE=
  2962. else
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2964. $as_echo "no" >&6; }
  2965. SET_MAKE="MAKE=${MAKE-make}"
  2966. fi
  2967. rm -rf .tst 2>/dev/null
  2968. mkdir .tst 2>/dev/null
  2969. if test -d .tst; then
  2970. am__leading_dot=.
  2971. else
  2972. am__leading_dot=_
  2973. fi
  2974. rmdir .tst 2>/dev/null
  2975. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2976. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2977. # is not polluted with repeated "-I."
  2978. am__isrc=' -I$(srcdir)'
  2979. # test to see if srcdir already configured
  2980. if test -f $srcdir/config.status; then
  2981. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2982. fi
  2983. fi
  2984. # test whether we have cygpath
  2985. if test -z "$CYGPATH_W"; then
  2986. if (cygpath --version) >/dev/null 2>/dev/null; then
  2987. CYGPATH_W='cygpath -w'
  2988. else
  2989. CYGPATH_W=echo
  2990. fi
  2991. fi
  2992. # Define the identity of the package.
  2993. PACKAGE='libitm'
  2994. VERSION='1.0'
  2995. cat >>confdefs.h <<_ACEOF
  2996. #define PACKAGE "$PACKAGE"
  2997. _ACEOF
  2998. cat >>confdefs.h <<_ACEOF
  2999. #define VERSION "$VERSION"
  3000. _ACEOF
  3001. # Some tools Automake needs.
  3002. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3003. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3004. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3005. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3006. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3007. # We need awk for the "check" target. The system "awk" is bad on
  3008. # some platforms.
  3009. # Always define AMTAR for backward compatibility.
  3010. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3011. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3012. # Default to --enable-multilib
  3013. # Check whether --enable-multilib was given.
  3014. if test "${enable_multilib+set}" = set; then :
  3015. enableval=$enable_multilib; case "$enableval" in
  3016. yes) multilib=yes ;;
  3017. no) multilib=no ;;
  3018. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  3019. esac
  3020. else
  3021. multilib=yes
  3022. fi
  3023. # We may get other options which we leave undocumented:
  3024. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  3025. # See config-ml.in if you want the gory details.
  3026. if test "$srcdir" = "."; then
  3027. if test "$with_target_subdir" != "."; then
  3028. multi_basedir="$srcdir/$with_multisrctop../.."
  3029. else
  3030. multi_basedir="$srcdir/$with_multisrctop.."
  3031. fi
  3032. else
  3033. multi_basedir="$srcdir/.."
  3034. fi
  3035. # Even if the default multilib is not a cross compilation,
  3036. # it may be that some of the other multilibs are.
  3037. if test $cross_compiling = no && test $multilib = yes \
  3038. && test "x${with_multisubdir}" != x ; then
  3039. cross_compiling=maybe
  3040. fi
  3041. ac_config_commands="$ac_config_commands default-1"
  3042. # Calculate toolexeclibdir
  3043. # Also toolexecdir, though it's only used in toolexeclibdir
  3044. case ${enable_version_specific_runtime_libs} in
  3045. yes)
  3046. # Need the gcc compiler version to know where to install libraries
  3047. # and header files if --enable-version-specific-runtime-libs option
  3048. # is selected.
  3049. toolexecdir='$(libdir)/gcc/$(target_alias)'
  3050. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  3051. ;;
  3052. no)
  3053. if test -n "$with_cross_host" &&
  3054. test x"$with_cross_host" != x"no"; then
  3055. # Install a library built with a cross compiler in tooldir, not libdir.
  3056. toolexecdir='$(exec_prefix)/$(target_alias)'
  3057. toolexeclibdir='$(toolexecdir)/lib'
  3058. else
  3059. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  3060. toolexeclibdir='$(libdir)'
  3061. fi
  3062. multi_os_directory=`$CC -print-multi-os-directory`
  3063. case $multi_os_directory in
  3064. .) ;; # Avoid trailing /.
  3065. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  3066. esac
  3067. ;;
  3068. esac
  3069. # Check the compiler.
  3070. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  3071. # We must force CC to /not/ be precious variables; otherwise
  3072. # the wrong, non-multilib-adjusted value will be used in multilibs.
  3073. # As a side effect, we have to subst CFLAGS ourselves.
  3074. ac_ext=c
  3075. ac_cpp='$CPP $CPPFLAGS'
  3076. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3077. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3078. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3079. if test -n "$ac_tool_prefix"; then
  3080. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3081. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3083. $as_echo_n "checking for $ac_word... " >&6; }
  3084. if test "${ac_cv_prog_CC+set}" = set; then :
  3085. $as_echo_n "(cached) " >&6
  3086. else
  3087. if test -n "$CC"; then
  3088. ac_cv_prog_CC="$CC" # Let the user override the test.
  3089. else
  3090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3091. for as_dir in $PATH
  3092. do
  3093. IFS=$as_save_IFS
  3094. test -z "$as_dir" && as_dir=.
  3095. for ac_exec_ext in '' $ac_executable_extensions; do
  3096. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3097. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3098. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3099. break 2
  3100. fi
  3101. done
  3102. done
  3103. IFS=$as_save_IFS
  3104. fi
  3105. fi
  3106. CC=$ac_cv_prog_CC
  3107. if test -n "$CC"; then
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3109. $as_echo "$CC" >&6; }
  3110. else
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3112. $as_echo "no" >&6; }
  3113. fi
  3114. fi
  3115. if test -z "$ac_cv_prog_CC"; then
  3116. ac_ct_CC=$CC
  3117. # Extract the first word of "gcc", so it can be a program name with args.
  3118. set dummy gcc; ac_word=$2
  3119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3120. $as_echo_n "checking for $ac_word... " >&6; }
  3121. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3122. $as_echo_n "(cached) " >&6
  3123. else
  3124. if test -n "$ac_ct_CC"; then
  3125. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3126. else
  3127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3128. for as_dir in $PATH
  3129. do
  3130. IFS=$as_save_IFS
  3131. test -z "$as_dir" && as_dir=.
  3132. for ac_exec_ext in '' $ac_executable_extensions; do
  3133. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3134. ac_cv_prog_ac_ct_CC="gcc"
  3135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3136. break 2
  3137. fi
  3138. done
  3139. done
  3140. IFS=$as_save_IFS
  3141. fi
  3142. fi
  3143. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3144. if test -n "$ac_ct_CC"; then
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3146. $as_echo "$ac_ct_CC" >&6; }
  3147. else
  3148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3149. $as_echo "no" >&6; }
  3150. fi
  3151. if test "x$ac_ct_CC" = x; then
  3152. CC=""
  3153. else
  3154. case $cross_compiling:$ac_tool_warned in
  3155. yes:)
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3157. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3158. ac_tool_warned=yes ;;
  3159. esac
  3160. CC=$ac_ct_CC
  3161. fi
  3162. else
  3163. CC="$ac_cv_prog_CC"
  3164. fi
  3165. if test -z "$CC"; then
  3166. if test -n "$ac_tool_prefix"; then
  3167. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3168. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3170. $as_echo_n "checking for $ac_word... " >&6; }
  3171. if test "${ac_cv_prog_CC+set}" = set; then :
  3172. $as_echo_n "(cached) " >&6
  3173. else
  3174. if test -n "$CC"; then
  3175. ac_cv_prog_CC="$CC" # Let the user override the test.
  3176. else
  3177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3178. for as_dir in $PATH
  3179. do
  3180. IFS=$as_save_IFS
  3181. test -z "$as_dir" && as_dir=.
  3182. for ac_exec_ext in '' $ac_executable_extensions; do
  3183. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3184. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3185. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3186. break 2
  3187. fi
  3188. done
  3189. done
  3190. IFS=$as_save_IFS
  3191. fi
  3192. fi
  3193. CC=$ac_cv_prog_CC
  3194. if test -n "$CC"; then
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3196. $as_echo "$CC" >&6; }
  3197. else
  3198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3199. $as_echo "no" >&6; }
  3200. fi
  3201. fi
  3202. fi
  3203. if test -z "$CC"; then
  3204. # Extract the first word of "cc", so it can be a program name with args.
  3205. set dummy cc; ac_word=$2
  3206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3207. $as_echo_n "checking for $ac_word... " >&6; }
  3208. if test "${ac_cv_prog_CC+set}" = set; then :
  3209. $as_echo_n "(cached) " >&6
  3210. else
  3211. if test -n "$CC"; then
  3212. ac_cv_prog_CC="$CC" # Let the user override the test.
  3213. else
  3214. ac_prog_rejected=no
  3215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3216. for as_dir in $PATH
  3217. do
  3218. IFS=$as_save_IFS
  3219. test -z "$as_dir" && as_dir=.
  3220. for ac_exec_ext in '' $ac_executable_extensions; do
  3221. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3222. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3223. ac_prog_rejected=yes
  3224. continue
  3225. fi
  3226. ac_cv_prog_CC="cc"
  3227. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3228. break 2
  3229. fi
  3230. done
  3231. done
  3232. IFS=$as_save_IFS
  3233. if test $ac_prog_rejected = yes; then
  3234. # We found a bogon in the path, so make sure we never use it.
  3235. set dummy $ac_cv_prog_CC
  3236. shift
  3237. if test $# != 0; then
  3238. # We chose a different compiler from the bogus one.
  3239. # However, it has the same basename, so the bogon will be chosen
  3240. # first if we set CC to just the basename; use the full file name.
  3241. shift
  3242. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3243. fi
  3244. fi
  3245. fi
  3246. fi
  3247. CC=$ac_cv_prog_CC
  3248. if test -n "$CC"; then
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3250. $as_echo "$CC" >&6; }
  3251. else
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3253. $as_echo "no" >&6; }
  3254. fi
  3255. fi
  3256. if test -z "$CC"; then
  3257. if test -n "$ac_tool_prefix"; then
  3258. for ac_prog in cl.exe
  3259. do
  3260. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3261. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3263. $as_echo_n "checking for $ac_word... " >&6; }
  3264. if test "${ac_cv_prog_CC+set}" = set; then :
  3265. $as_echo_n "(cached) " >&6
  3266. else
  3267. if test -n "$CC"; then
  3268. ac_cv_prog_CC="$CC" # Let the user override the test.
  3269. else
  3270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3271. for as_dir in $PATH
  3272. do
  3273. IFS=$as_save_IFS
  3274. test -z "$as_dir" && as_dir=.
  3275. for ac_exec_ext in '' $ac_executable_extensions; do
  3276. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3277. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3278. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3279. break 2
  3280. fi
  3281. done
  3282. done
  3283. IFS=$as_save_IFS
  3284. fi
  3285. fi
  3286. CC=$ac_cv_prog_CC
  3287. if test -n "$CC"; then
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3289. $as_echo "$CC" >&6; }
  3290. else
  3291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3292. $as_echo "no" >&6; }
  3293. fi
  3294. test -n "$CC" && break
  3295. done
  3296. fi
  3297. if test -z "$CC"; then
  3298. ac_ct_CC=$CC
  3299. for ac_prog in cl.exe
  3300. do
  3301. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3302. set dummy $ac_prog; ac_word=$2
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3304. $as_echo_n "checking for $ac_word... " >&6; }
  3305. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3306. $as_echo_n "(cached) " >&6
  3307. else
  3308. if test -n "$ac_ct_CC"; then
  3309. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3310. else
  3311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3312. for as_dir in $PATH
  3313. do
  3314. IFS=$as_save_IFS
  3315. test -z "$as_dir" && as_dir=.
  3316. for ac_exec_ext in '' $ac_executable_extensions; do
  3317. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3318. ac_cv_prog_ac_ct_CC="$ac_prog"
  3319. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3320. break 2
  3321. fi
  3322. done
  3323. done
  3324. IFS=$as_save_IFS
  3325. fi
  3326. fi
  3327. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3328. if test -n "$ac_ct_CC"; then
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3330. $as_echo "$ac_ct_CC" >&6; }
  3331. else
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3333. $as_echo "no" >&6; }
  3334. fi
  3335. test -n "$ac_ct_CC" && break
  3336. done
  3337. if test "x$ac_ct_CC" = x; then
  3338. CC=""
  3339. else
  3340. case $cross_compiling:$ac_tool_warned in
  3341. yes:)
  3342. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3343. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3344. ac_tool_warned=yes ;;
  3345. esac
  3346. CC=$ac_ct_CC
  3347. fi
  3348. fi
  3349. fi
  3350. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3351. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3352. as_fn_error "no acceptable C compiler found in \$PATH
  3353. See \`config.log' for more details." "$LINENO" 5; }
  3354. # Provide some information about the compiler.
  3355. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3356. set X $ac_compile
  3357. ac_compiler=$2
  3358. for ac_option in --version -v -V -qversion; do
  3359. { { ac_try="$ac_compiler $ac_option >&5"
  3360. case "(($ac_try" in
  3361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3362. *) ac_try_echo=$ac_try;;
  3363. esac
  3364. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3365. $as_echo "$ac_try_echo"; } >&5
  3366. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3367. ac_status=$?
  3368. if test -s conftest.err; then
  3369. sed '10a\
  3370. ... rest of stderr output deleted ...
  3371. 10q' conftest.err >conftest.er1
  3372. cat conftest.er1 >&5
  3373. rm -f conftest.er1 conftest.err
  3374. fi
  3375. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3376. test $ac_status = 0; }
  3377. done
  3378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3379. /* end confdefs.h. */
  3380. int
  3381. main ()
  3382. {
  3383. ;
  3384. return 0;
  3385. }
  3386. _ACEOF
  3387. ac_clean_files_save=$ac_clean_files
  3388. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3389. # Try to create an executable without -o first, disregard a.out.
  3390. # It will help us diagnose broken compilers, and finding out an intuition
  3391. # of exeext.
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3393. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3394. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3395. # The possible output files:
  3396. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3397. ac_rmfiles=
  3398. for ac_file in $ac_files
  3399. do
  3400. case $ac_file in
  3401. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3402. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3403. esac
  3404. done
  3405. rm -f $ac_rmfiles
  3406. if { { ac_try="$ac_link_default"
  3407. case "(($ac_try" in
  3408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3409. *) ac_try_echo=$ac_try;;
  3410. esac
  3411. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3412. $as_echo "$ac_try_echo"; } >&5
  3413. (eval "$ac_link_default") 2>&5
  3414. ac_status=$?
  3415. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3416. test $ac_status = 0; }; then :
  3417. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3418. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3419. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3420. # so that the user can short-circuit this test for compilers unknown to
  3421. # Autoconf.
  3422. for ac_file in $ac_files ''
  3423. do
  3424. test -f "$ac_file" || continue
  3425. case $ac_file in
  3426. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3427. ;;
  3428. [ab].out )
  3429. # We found the default executable, but exeext='' is most
  3430. # certainly right.
  3431. break;;
  3432. *.* )
  3433. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3434. then :; else
  3435. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3436. fi
  3437. # We set ac_cv_exeext here because the later test for it is not
  3438. # safe: cross compilers may not add the suffix if given an `-o'
  3439. # argument, so we may need to know it at that point already.
  3440. # Even if this section looks crufty: it has the advantage of
  3441. # actually working.
  3442. break;;
  3443. * )
  3444. break;;
  3445. esac
  3446. done
  3447. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3448. else
  3449. ac_file=''
  3450. fi
  3451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3452. $as_echo "$ac_file" >&6; }
  3453. if test -z "$ac_file"; then :
  3454. $as_echo "$as_me: failed program was:" >&5
  3455. sed 's/^/| /' conftest.$ac_ext >&5
  3456. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3457. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3458. { as_fn_set_status 77
  3459. as_fn_error "C compiler cannot create executables
  3460. See \`config.log' for more details." "$LINENO" 5; }; }
  3461. fi
  3462. ac_exeext=$ac_cv_exeext
  3463. # Check that the compiler produces executables we can run. If not, either
  3464. # the compiler is broken, or we cross compile.
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3466. $as_echo_n "checking whether the C compiler works... " >&6; }
  3467. # If not cross compiling, check that we can run a simple program.
  3468. if test "$cross_compiling" != yes; then
  3469. if { ac_try='./$ac_file'
  3470. { { case "(($ac_try" in
  3471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3472. *) ac_try_echo=$ac_try;;
  3473. esac
  3474. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3475. $as_echo "$ac_try_echo"; } >&5
  3476. (eval "$ac_try") 2>&5
  3477. ac_status=$?
  3478. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3479. test $ac_status = 0; }; }; then
  3480. cross_compiling=no
  3481. else
  3482. if test "$cross_compiling" = maybe; then
  3483. cross_compiling=yes
  3484. else
  3485. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3486. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3487. as_fn_error "cannot run C compiled programs.
  3488. If you meant to cross compile, use \`--host'.
  3489. See \`config.log' for more details." "$LINENO" 5; }
  3490. fi
  3491. fi
  3492. fi
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3494. $as_echo "yes" >&6; }
  3495. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3496. ac_clean_files=$ac_clean_files_save
  3497. # Check that the compiler produces executables we can run. If not, either
  3498. # the compiler is broken, or we cross compile.
  3499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3500. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3502. $as_echo "$cross_compiling" >&6; }
  3503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3504. $as_echo_n "checking for suffix of executables... " >&6; }
  3505. if { { ac_try="$ac_link"
  3506. case "(($ac_try" in
  3507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3508. *) ac_try_echo=$ac_try;;
  3509. esac
  3510. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3511. $as_echo "$ac_try_echo"; } >&5
  3512. (eval "$ac_link") 2>&5
  3513. ac_status=$?
  3514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3515. test $ac_status = 0; }; then :
  3516. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3517. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3518. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3519. # `rm'.
  3520. for ac_file in conftest.exe conftest conftest.*; do
  3521. test -f "$ac_file" || continue
  3522. case $ac_file in
  3523. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3524. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3525. break;;
  3526. * ) break;;
  3527. esac
  3528. done
  3529. else
  3530. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3531. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3532. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3533. See \`config.log' for more details." "$LINENO" 5; }
  3534. fi
  3535. rm -f conftest$ac_cv_exeext
  3536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3537. $as_echo "$ac_cv_exeext" >&6; }
  3538. rm -f conftest.$ac_ext
  3539. EXEEXT=$ac_cv_exeext
  3540. ac_exeext=$EXEEXT
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3542. $as_echo_n "checking for suffix of object files... " >&6; }
  3543. if test "${ac_cv_objext+set}" = set; then :
  3544. $as_echo_n "(cached) " >&6
  3545. else
  3546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3547. /* end confdefs.h. */
  3548. int
  3549. main ()
  3550. {
  3551. ;
  3552. return 0;
  3553. }
  3554. _ACEOF
  3555. rm -f conftest.o conftest.obj
  3556. if { { ac_try="$ac_compile"
  3557. case "(($ac_try" in
  3558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3559. *) ac_try_echo=$ac_try;;
  3560. esac
  3561. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3562. $as_echo "$ac_try_echo"; } >&5
  3563. (eval "$ac_compile") 2>&5
  3564. ac_status=$?
  3565. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3566. test $ac_status = 0; }; then :
  3567. for ac_file in conftest.o conftest.obj conftest.*; do
  3568. test -f "$ac_file" || continue;
  3569. case $ac_file in
  3570. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3571. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3572. break;;
  3573. esac
  3574. done
  3575. else
  3576. $as_echo "$as_me: failed program was:" >&5
  3577. sed 's/^/| /' conftest.$ac_ext >&5
  3578. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3579. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3580. as_fn_error "cannot compute suffix of object files: cannot compile
  3581. See \`config.log' for more details." "$LINENO" 5; }
  3582. fi
  3583. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3584. fi
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3586. $as_echo "$ac_cv_objext" >&6; }
  3587. OBJEXT=$ac_cv_objext
  3588. ac_objext=$OBJEXT
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3590. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3591. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3592. $as_echo_n "(cached) " >&6
  3593. else
  3594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3595. /* end confdefs.h. */
  3596. int
  3597. main ()
  3598. {
  3599. #ifndef __GNUC__
  3600. choke me
  3601. #endif
  3602. ;
  3603. return 0;
  3604. }
  3605. _ACEOF
  3606. if ac_fn_c_try_compile "$LINENO"; then :
  3607. ac_compiler_gnu=yes
  3608. else
  3609. ac_compiler_gnu=no
  3610. fi
  3611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3612. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3613. fi
  3614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3615. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3616. if test $ac_compiler_gnu = yes; then
  3617. GCC=yes
  3618. else
  3619. GCC=
  3620. fi
  3621. ac_test_CFLAGS=${CFLAGS+set}
  3622. ac_save_CFLAGS=$CFLAGS
  3623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3624. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3625. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3626. $as_echo_n "(cached) " >&6
  3627. else
  3628. ac_save_c_werror_flag=$ac_c_werror_flag
  3629. ac_c_werror_flag=yes
  3630. ac_cv_prog_cc_g=no
  3631. CFLAGS="-g"
  3632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3633. /* end confdefs.h. */
  3634. int
  3635. main ()
  3636. {
  3637. ;
  3638. return 0;
  3639. }
  3640. _ACEOF
  3641. if ac_fn_c_try_compile "$LINENO"; then :
  3642. ac_cv_prog_cc_g=yes
  3643. else
  3644. CFLAGS=""
  3645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3646. /* end confdefs.h. */
  3647. int
  3648. main ()
  3649. {
  3650. ;
  3651. return 0;
  3652. }
  3653. _ACEOF
  3654. if ac_fn_c_try_compile "$LINENO"; then :
  3655. else
  3656. ac_c_werror_flag=$ac_save_c_werror_flag
  3657. CFLAGS="-g"
  3658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3659. /* end confdefs.h. */
  3660. int
  3661. main ()
  3662. {
  3663. ;
  3664. return 0;
  3665. }
  3666. _ACEOF
  3667. if ac_fn_c_try_compile "$LINENO"; then :
  3668. ac_cv_prog_cc_g=yes
  3669. fi
  3670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3671. fi
  3672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3673. fi
  3674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3675. ac_c_werror_flag=$ac_save_c_werror_flag
  3676. fi
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3678. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3679. if test "$ac_test_CFLAGS" = set; then
  3680. CFLAGS=$ac_save_CFLAGS
  3681. elif test $ac_cv_prog_cc_g = yes; then
  3682. if test "$GCC" = yes; then
  3683. CFLAGS="-g -O2"
  3684. else
  3685. CFLAGS="-g"
  3686. fi
  3687. else
  3688. if test "$GCC" = yes; then
  3689. CFLAGS="-O2"
  3690. else
  3691. CFLAGS=
  3692. fi
  3693. fi
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3695. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3696. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3697. $as_echo_n "(cached) " >&6
  3698. else
  3699. ac_cv_prog_cc_c89=no
  3700. ac_save_CC=$CC
  3701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3702. /* end confdefs.h. */
  3703. #include <stdarg.h>
  3704. #include <stdio.h>
  3705. #include <sys/types.h>
  3706. #include <sys/stat.h>
  3707. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3708. struct buf { int x; };
  3709. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3710. static char *e (p, i)
  3711. char **p;
  3712. int i;
  3713. {
  3714. return p[i];
  3715. }
  3716. static char *f (char * (*g) (char **, int), char **p, ...)
  3717. {
  3718. char *s;
  3719. va_list v;
  3720. va_start (v,p);
  3721. s = g (p, va_arg (v,int));
  3722. va_end (v);
  3723. return s;
  3724. }
  3725. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3726. function prototypes and stuff, but not '\xHH' hex character constants.
  3727. These don't provoke an error unfortunately, instead are silently treated
  3728. as 'x'. The following induces an error, until -std is added to get
  3729. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3730. array size at least. It's necessary to write '\x00'==0 to get something
  3731. that's true only with -std. */
  3732. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3733. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3734. inside strings and character constants. */
  3735. #define FOO(x) 'x'
  3736. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3737. int test (int i, double x);
  3738. struct s1 {int (*f) (int a);};
  3739. struct s2 {int (*f) (double a);};
  3740. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3741. int argc;
  3742. char **argv;
  3743. int
  3744. main ()
  3745. {
  3746. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3747. ;
  3748. return 0;
  3749. }
  3750. _ACEOF
  3751. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3752. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3753. do
  3754. CC="$ac_save_CC $ac_arg"
  3755. if ac_fn_c_try_compile "$LINENO"; then :
  3756. ac_cv_prog_cc_c89=$ac_arg
  3757. fi
  3758. rm -f core conftest.err conftest.$ac_objext
  3759. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3760. done
  3761. rm -f conftest.$ac_ext
  3762. CC=$ac_save_CC
  3763. fi
  3764. # AC_CACHE_VAL
  3765. case "x$ac_cv_prog_cc_c89" in
  3766. x)
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3768. $as_echo "none needed" >&6; } ;;
  3769. xno)
  3770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3771. $as_echo "unsupported" >&6; } ;;
  3772. *)
  3773. CC="$CC $ac_cv_prog_cc_c89"
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3775. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3776. esac
  3777. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3778. fi
  3779. ac_ext=c
  3780. ac_cpp='$CPP $CPPFLAGS'
  3781. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3782. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3783. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3784. DEPDIR="${am__leading_dot}deps"
  3785. ac_config_commands="$ac_config_commands depfiles"
  3786. am_make=${MAKE-make}
  3787. cat > confinc << 'END'
  3788. am__doit:
  3789. @echo this is the am__doit target
  3790. .PHONY: am__doit
  3791. END
  3792. # If we don't find an include directive, just comment out the code.
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3794. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3795. am__include="#"
  3796. am__quote=
  3797. _am_result=none
  3798. # First try GNU make style include.
  3799. echo "include confinc" > confmf
  3800. # Ignore all kinds of additional output from `make'.
  3801. case `$am_make -s -f confmf 2> /dev/null` in #(
  3802. *the\ am__doit\ target*)
  3803. am__include=include
  3804. am__quote=
  3805. _am_result=GNU
  3806. ;;
  3807. esac
  3808. # Now try BSD make style include.
  3809. if test "$am__include" = "#"; then
  3810. echo '.include "confinc"' > confmf
  3811. case `$am_make -s -f confmf 2> /dev/null` in #(
  3812. *the\ am__doit\ target*)
  3813. am__include=.include
  3814. am__quote="\""
  3815. _am_result=BSD
  3816. ;;
  3817. esac
  3818. fi
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3820. $as_echo "$_am_result" >&6; }
  3821. rm -f confinc confmf
  3822. # Check whether --enable-dependency-tracking was given.
  3823. if test "${enable_dependency_tracking+set}" = set; then :
  3824. enableval=$enable_dependency_tracking;
  3825. fi
  3826. if test "x$enable_dependency_tracking" != xno; then
  3827. am_depcomp="$ac_aux_dir/depcomp"
  3828. AMDEPBACKSLASH='\'
  3829. fi
  3830. if test "x$enable_dependency_tracking" != xno; then
  3831. AMDEP_TRUE=
  3832. AMDEP_FALSE='#'
  3833. else
  3834. AMDEP_TRUE='#'
  3835. AMDEP_FALSE=
  3836. fi
  3837. depcc="$CC" am_compiler_list=
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3839. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3840. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3841. $as_echo_n "(cached) " >&6
  3842. else
  3843. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3844. # We make a subdir and do the tests there. Otherwise we can end up
  3845. # making bogus files that we don't know about and never remove. For
  3846. # instance it was reported that on HP-UX the gcc test will end up
  3847. # making a dummy file named `D' -- because `-MD' means `put the output
  3848. # in D'.
  3849. mkdir conftest.dir
  3850. # Copy depcomp to subdir because otherwise we won't find it if we're
  3851. # using a relative directory.
  3852. cp "$am_depcomp" conftest.dir
  3853. cd conftest.dir
  3854. # We will build objects and dependencies in a subdirectory because
  3855. # it helps to detect inapplicable dependency modes. For instance
  3856. # both Tru64's cc and ICC support -MD to output dependencies as a
  3857. # side effect of compilation, but ICC will put the dependencies in
  3858. # the current directory while Tru64 will put them in the object
  3859. # directory.
  3860. mkdir sub
  3861. am_cv_CC_dependencies_compiler_type=none
  3862. if test "$am_compiler_list" = ""; then
  3863. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3864. fi
  3865. am__universal=false
  3866. case " $depcc " in #(
  3867. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3868. esac
  3869. for depmode in $am_compiler_list; do
  3870. # Setup a source with many dependencies, because some compilers
  3871. # like to wrap large dependency lists on column 80 (with \), and
  3872. # we should not choose a depcomp mode which is confused by this.
  3873. #
  3874. # We need to recreate these files for each test, as the compiler may
  3875. # overwrite some of them when testing with obscure command lines.
  3876. # This happens at least with the AIX C compiler.
  3877. : > sub/conftest.c
  3878. for i in 1 2 3 4 5 6; do
  3879. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3880. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3881. # Solaris 8's {/usr,}/bin/sh.
  3882. touch sub/conftst$i.h
  3883. done
  3884. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3885. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3886. # mode. It turns out that the SunPro C++ compiler does not properly
  3887. # handle `-M -o', and we need to detect this. Also, some Intel
  3888. # versions had trouble with output in subdirs
  3889. am__obj=sub/conftest.${OBJEXT-o}
  3890. am__minus_obj="-o $am__obj"
  3891. case $depmode in
  3892. gcc)
  3893. # This depmode causes a compiler race in universal mode.
  3894. test "$am__universal" = false || continue
  3895. ;;
  3896. nosideeffect)
  3897. # after this tag, mechanisms are not by side-effect, so they'll
  3898. # only be used when explicitly requested
  3899. if test "x$enable_dependency_tracking" = xyes; then
  3900. continue
  3901. else
  3902. break
  3903. fi
  3904. ;;
  3905. msvisualcpp | msvcmsys)
  3906. # This compiler won't grok `-c -o', but also, the minuso test has
  3907. # not run yet. These depmodes are late enough in the game, and
  3908. # so weak that their functioning should not be impacted.
  3909. am__obj=conftest.${OBJEXT-o}
  3910. am__minus_obj=
  3911. ;;
  3912. none) break ;;
  3913. esac
  3914. if depmode=$depmode \
  3915. source=sub/conftest.c object=$am__obj \
  3916. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3917. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3918. >/dev/null 2>conftest.err &&
  3919. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3920. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3921. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3922. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3923. # icc doesn't choke on unknown options, it will just issue warnings
  3924. # or remarks (even with -Werror). So we grep stderr for any message
  3925. # that says an option was ignored or not supported.
  3926. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3927. # icc: Command line warning: ignoring option '-M'; no argument required
  3928. # The diagnosis changed in icc 8.0:
  3929. # icc: Command line remark: option '-MP' not supported
  3930. if (grep 'ignoring option' conftest.err ||
  3931. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3932. am_cv_CC_dependencies_compiler_type=$depmode
  3933. break
  3934. fi
  3935. fi
  3936. done
  3937. cd ..
  3938. rm -rf conftest.dir
  3939. else
  3940. am_cv_CC_dependencies_compiler_type=none
  3941. fi
  3942. fi
  3943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3944. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3945. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3946. if
  3947. test "x$enable_dependency_tracking" != xno \
  3948. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3949. am__fastdepCC_TRUE=
  3950. am__fastdepCC_FALSE='#'
  3951. else
  3952. am__fastdepCC_TRUE='#'
  3953. am__fastdepCC_FALSE=
  3954. fi
  3955. ac_ext=cpp
  3956. ac_cpp='$CXXCPP $CPPFLAGS'
  3957. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3958. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3959. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3960. if test -z "$CXX"; then
  3961. if test -n "$CCC"; then
  3962. CXX=$CCC
  3963. else
  3964. if test -n "$ac_tool_prefix"; then
  3965. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3966. do
  3967. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3968. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3970. $as_echo_n "checking for $ac_word... " >&6; }
  3971. if test "${ac_cv_prog_CXX+set}" = set; then :
  3972. $as_echo_n "(cached) " >&6
  3973. else
  3974. if test -n "$CXX"; then
  3975. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3976. else
  3977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3978. for as_dir in $PATH
  3979. do
  3980. IFS=$as_save_IFS
  3981. test -z "$as_dir" && as_dir=.
  3982. for ac_exec_ext in '' $ac_executable_extensions; do
  3983. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3984. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3985. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3986. break 2
  3987. fi
  3988. done
  3989. done
  3990. IFS=$as_save_IFS
  3991. fi
  3992. fi
  3993. CXX=$ac_cv_prog_CXX
  3994. if test -n "$CXX"; then
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3996. $as_echo "$CXX" >&6; }
  3997. else
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3999. $as_echo "no" >&6; }
  4000. fi
  4001. test -n "$CXX" && break
  4002. done
  4003. fi
  4004. if test -z "$CXX"; then
  4005. ac_ct_CXX=$CXX
  4006. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4007. do
  4008. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4009. set dummy $ac_prog; ac_word=$2
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4011. $as_echo_n "checking for $ac_word... " >&6; }
  4012. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  4013. $as_echo_n "(cached) " >&6
  4014. else
  4015. if test -n "$ac_ct_CXX"; then
  4016. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4017. else
  4018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4019. for as_dir in $PATH
  4020. do
  4021. IFS=$as_save_IFS
  4022. test -z "$as_dir" && as_dir=.
  4023. for ac_exec_ext in '' $ac_executable_extensions; do
  4024. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4025. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4026. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4027. break 2
  4028. fi
  4029. done
  4030. done
  4031. IFS=$as_save_IFS
  4032. fi
  4033. fi
  4034. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4035. if test -n "$ac_ct_CXX"; then
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4037. $as_echo "$ac_ct_CXX" >&6; }
  4038. else
  4039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4040. $as_echo "no" >&6; }
  4041. fi
  4042. test -n "$ac_ct_CXX" && break
  4043. done
  4044. if test "x$ac_ct_CXX" = x; then
  4045. CXX="g++"
  4046. else
  4047. case $cross_compiling:$ac_tool_warned in
  4048. yes:)
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4050. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4051. ac_tool_warned=yes ;;
  4052. esac
  4053. CXX=$ac_ct_CXX
  4054. fi
  4055. fi
  4056. fi
  4057. fi
  4058. # Provide some information about the compiler.
  4059. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4060. set X $ac_compile
  4061. ac_compiler=$2
  4062. for ac_option in --version -v -V -qversion; do
  4063. { { ac_try="$ac_compiler $ac_option >&5"
  4064. case "(($ac_try" in
  4065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4066. *) ac_try_echo=$ac_try;;
  4067. esac
  4068. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4069. $as_echo "$ac_try_echo"; } >&5
  4070. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4071. ac_status=$?
  4072. if test -s conftest.err; then
  4073. sed '10a\
  4074. ... rest of stderr output deleted ...
  4075. 10q' conftest.err >conftest.er1
  4076. cat conftest.er1 >&5
  4077. rm -f conftest.er1 conftest.err
  4078. fi
  4079. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4080. test $ac_status = 0; }
  4081. done
  4082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4083. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4084. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  4085. $as_echo_n "(cached) " >&6
  4086. else
  4087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4088. /* end confdefs.h. */
  4089. int
  4090. main ()
  4091. {
  4092. #ifndef __GNUC__
  4093. choke me
  4094. #endif
  4095. ;
  4096. return 0;
  4097. }
  4098. _ACEOF
  4099. if ac_fn_cxx_try_compile "$LINENO"; then :
  4100. ac_compiler_gnu=yes
  4101. else
  4102. ac_compiler_gnu=no
  4103. fi
  4104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4105. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4106. fi
  4107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4108. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4109. if test $ac_compiler_gnu = yes; then
  4110. GXX=yes
  4111. else
  4112. GXX=
  4113. fi
  4114. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4115. ac_save_CXXFLAGS=$CXXFLAGS
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4117. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4118. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  4119. $as_echo_n "(cached) " >&6
  4120. else
  4121. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4122. ac_cxx_werror_flag=yes
  4123. ac_cv_prog_cxx_g=no
  4124. CXXFLAGS="-g"
  4125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4126. /* end confdefs.h. */
  4127. int
  4128. main ()
  4129. {
  4130. ;
  4131. return 0;
  4132. }
  4133. _ACEOF
  4134. if ac_fn_cxx_try_compile "$LINENO"; then :
  4135. ac_cv_prog_cxx_g=yes
  4136. else
  4137. CXXFLAGS=""
  4138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4139. /* end confdefs.h. */
  4140. int
  4141. main ()
  4142. {
  4143. ;
  4144. return 0;
  4145. }
  4146. _ACEOF
  4147. if ac_fn_cxx_try_compile "$LINENO"; then :
  4148. else
  4149. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4150. CXXFLAGS="-g"
  4151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4152. /* end confdefs.h. */
  4153. int
  4154. main ()
  4155. {
  4156. ;
  4157. return 0;
  4158. }
  4159. _ACEOF
  4160. if ac_fn_cxx_try_compile "$LINENO"; then :
  4161. ac_cv_prog_cxx_g=yes
  4162. fi
  4163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4164. fi
  4165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4166. fi
  4167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4168. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4169. fi
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4171. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4172. if test "$ac_test_CXXFLAGS" = set; then
  4173. CXXFLAGS=$ac_save_CXXFLAGS
  4174. elif test $ac_cv_prog_cxx_g = yes; then
  4175. if test "$GXX" = yes; then
  4176. CXXFLAGS="-g -O2"
  4177. else
  4178. CXXFLAGS="-g"
  4179. fi
  4180. else
  4181. if test "$GXX" = yes; then
  4182. CXXFLAGS="-O2"
  4183. else
  4184. CXXFLAGS=
  4185. fi
  4186. fi
  4187. ac_ext=c
  4188. ac_cpp='$CPP $CPPFLAGS'
  4189. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4190. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4191. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4192. depcc="$CXX" am_compiler_list=
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4194. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4195. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  4196. $as_echo_n "(cached) " >&6
  4197. else
  4198. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4199. # We make a subdir and do the tests there. Otherwise we can end up
  4200. # making bogus files that we don't know about and never remove. For
  4201. # instance it was reported that on HP-UX the gcc test will end up
  4202. # making a dummy file named `D' -- because `-MD' means `put the output
  4203. # in D'.
  4204. mkdir conftest.dir
  4205. # Copy depcomp to subdir because otherwise we won't find it if we're
  4206. # using a relative directory.
  4207. cp "$am_depcomp" conftest.dir
  4208. cd conftest.dir
  4209. # We will build objects and dependencies in a subdirectory because
  4210. # it helps to detect inapplicable dependency modes. For instance
  4211. # both Tru64's cc and ICC support -MD to output dependencies as a
  4212. # side effect of compilation, but ICC will put the dependencies in
  4213. # the current directory while Tru64 will put them in the object
  4214. # directory.
  4215. mkdir sub
  4216. am_cv_CXX_dependencies_compiler_type=none
  4217. if test "$am_compiler_list" = ""; then
  4218. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4219. fi
  4220. am__universal=false
  4221. case " $depcc " in #(
  4222. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4223. esac
  4224. for depmode in $am_compiler_list; do
  4225. # Setup a source with many dependencies, because some compilers
  4226. # like to wrap large dependency lists on column 80 (with \), and
  4227. # we should not choose a depcomp mode which is confused by this.
  4228. #
  4229. # We need to recreate these files for each test, as the compiler may
  4230. # overwrite some of them when testing with obscure command lines.
  4231. # This happens at least with the AIX C compiler.
  4232. : > sub/conftest.c
  4233. for i in 1 2 3 4 5 6; do
  4234. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4235. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4236. # Solaris 8's {/usr,}/bin/sh.
  4237. touch sub/conftst$i.h
  4238. done
  4239. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4240. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4241. # mode. It turns out that the SunPro C++ compiler does not properly
  4242. # handle `-M -o', and we need to detect this. Also, some Intel
  4243. # versions had trouble with output in subdirs
  4244. am__obj=sub/conftest.${OBJEXT-o}
  4245. am__minus_obj="-o $am__obj"
  4246. case $depmode in
  4247. gcc)
  4248. # This depmode causes a compiler race in universal mode.
  4249. test "$am__universal" = false || continue
  4250. ;;
  4251. nosideeffect)
  4252. # after this tag, mechanisms are not by side-effect, so they'll
  4253. # only be used when explicitly requested
  4254. if test "x$enable_dependency_tracking" = xyes; then
  4255. continue
  4256. else
  4257. break
  4258. fi
  4259. ;;
  4260. msvisualcpp | msvcmsys)
  4261. # This compiler won't grok `-c -o', but also, the minuso test has
  4262. # not run yet. These depmodes are late enough in the game, and
  4263. # so weak that their functioning should not be impacted.
  4264. am__obj=conftest.${OBJEXT-o}
  4265. am__minus_obj=
  4266. ;;
  4267. none) break ;;
  4268. esac
  4269. if depmode=$depmode \
  4270. source=sub/conftest.c object=$am__obj \
  4271. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4272. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4273. >/dev/null 2>conftest.err &&
  4274. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4275. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4276. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4277. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4278. # icc doesn't choke on unknown options, it will just issue warnings
  4279. # or remarks (even with -Werror). So we grep stderr for any message
  4280. # that says an option was ignored or not supported.
  4281. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4282. # icc: Command line warning: ignoring option '-M'; no argument required
  4283. # The diagnosis changed in icc 8.0:
  4284. # icc: Command line remark: option '-MP' not supported
  4285. if (grep 'ignoring option' conftest.err ||
  4286. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4287. am_cv_CXX_dependencies_compiler_type=$depmode
  4288. break
  4289. fi
  4290. fi
  4291. done
  4292. cd ..
  4293. rm -rf conftest.dir
  4294. else
  4295. am_cv_CXX_dependencies_compiler_type=none
  4296. fi
  4297. fi
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4299. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4300. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4301. if
  4302. test "x$enable_dependency_tracking" != xno \
  4303. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4304. am__fastdepCXX_TRUE=
  4305. am__fastdepCXX_FALSE='#'
  4306. else
  4307. am__fastdepCXX_TRUE='#'
  4308. am__fastdepCXX_FALSE=
  4309. fi
  4310. # By default we simply use the C compiler to build assembly code.
  4311. test "${CCAS+set}" = set || CCAS=$CC
  4312. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4313. depcc="$CCAS" am_compiler_list=
  4314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4315. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4316. if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
  4317. $as_echo_n "(cached) " >&6
  4318. else
  4319. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4320. # We make a subdir and do the tests there. Otherwise we can end up
  4321. # making bogus files that we don't know about and never remove. For
  4322. # instance it was reported that on HP-UX the gcc test will end up
  4323. # making a dummy file named `D' -- because `-MD' means `put the output
  4324. # in D'.
  4325. mkdir conftest.dir
  4326. # Copy depcomp to subdir because otherwise we won't find it if we're
  4327. # using a relative directory.
  4328. cp "$am_depcomp" conftest.dir
  4329. cd conftest.dir
  4330. # We will build objects and dependencies in a subdirectory because
  4331. # it helps to detect inapplicable dependency modes. For instance
  4332. # both Tru64's cc and ICC support -MD to output dependencies as a
  4333. # side effect of compilation, but ICC will put the dependencies in
  4334. # the current directory while Tru64 will put them in the object
  4335. # directory.
  4336. mkdir sub
  4337. am_cv_CCAS_dependencies_compiler_type=none
  4338. if test "$am_compiler_list" = ""; then
  4339. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4340. fi
  4341. am__universal=false
  4342. for depmode in $am_compiler_list; do
  4343. # Setup a source with many dependencies, because some compilers
  4344. # like to wrap large dependency lists on column 80 (with \), and
  4345. # we should not choose a depcomp mode which is confused by this.
  4346. #
  4347. # We need to recreate these files for each test, as the compiler may
  4348. # overwrite some of them when testing with obscure command lines.
  4349. # This happens at least with the AIX C compiler.
  4350. : > sub/conftest.c
  4351. for i in 1 2 3 4 5 6; do
  4352. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4353. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4354. # Solaris 8's {/usr,}/bin/sh.
  4355. touch sub/conftst$i.h
  4356. done
  4357. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4358. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4359. # mode. It turns out that the SunPro C++ compiler does not properly
  4360. # handle `-M -o', and we need to detect this. Also, some Intel
  4361. # versions had trouble with output in subdirs
  4362. am__obj=sub/conftest.${OBJEXT-o}
  4363. am__minus_obj="-o $am__obj"
  4364. case $depmode in
  4365. gcc)
  4366. # This depmode causes a compiler race in universal mode.
  4367. test "$am__universal" = false || continue
  4368. ;;
  4369. nosideeffect)
  4370. # after this tag, mechanisms are not by side-effect, so they'll
  4371. # only be used when explicitly requested
  4372. if test "x$enable_dependency_tracking" = xyes; then
  4373. continue
  4374. else
  4375. break
  4376. fi
  4377. ;;
  4378. msvisualcpp | msvcmsys)
  4379. # This compiler won't grok `-c -o', but also, the minuso test has
  4380. # not run yet. These depmodes are late enough in the game, and
  4381. # so weak that their functioning should not be impacted.
  4382. am__obj=conftest.${OBJEXT-o}
  4383. am__minus_obj=
  4384. ;;
  4385. none) break ;;
  4386. esac
  4387. if depmode=$depmode \
  4388. source=sub/conftest.c object=$am__obj \
  4389. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4390. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4391. >/dev/null 2>conftest.err &&
  4392. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4393. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4394. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4395. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4396. # icc doesn't choke on unknown options, it will just issue warnings
  4397. # or remarks (even with -Werror). So we grep stderr for any message
  4398. # that says an option was ignored or not supported.
  4399. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4400. # icc: Command line warning: ignoring option '-M'; no argument required
  4401. # The diagnosis changed in icc 8.0:
  4402. # icc: Command line remark: option '-MP' not supported
  4403. if (grep 'ignoring option' conftest.err ||
  4404. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4405. am_cv_CCAS_dependencies_compiler_type=$depmode
  4406. break
  4407. fi
  4408. fi
  4409. done
  4410. cd ..
  4411. rm -rf conftest.dir
  4412. else
  4413. am_cv_CCAS_dependencies_compiler_type=none
  4414. fi
  4415. fi
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4417. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4418. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4419. if
  4420. test "x$enable_dependency_tracking" != xno \
  4421. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4422. am__fastdepCCAS_TRUE=
  4423. am__fastdepCCAS_FALSE='#'
  4424. else
  4425. am__fastdepCCAS_TRUE='#'
  4426. am__fastdepCCAS_FALSE=
  4427. fi
  4428. # In order to override CFLAGS_FOR_TARGET, all of our special flags go
  4429. # in XCFLAGS. But we need them in CFLAGS during configury. So put them
  4430. # in both places for now and restore CFLAGS at the end of config.
  4431. save_CFLAGS="$CFLAGS"
  4432. # Find other programs we need.
  4433. if test -n "$ac_tool_prefix"; then
  4434. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4435. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4437. $as_echo_n "checking for $ac_word... " >&6; }
  4438. if test "${ac_cv_prog_AR+set}" = set; then :
  4439. $as_echo_n "(cached) " >&6
  4440. else
  4441. if test -n "$AR"; then
  4442. ac_cv_prog_AR="$AR" # Let the user override the test.
  4443. else
  4444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4445. for as_dir in $PATH
  4446. do
  4447. IFS=$as_save_IFS
  4448. test -z "$as_dir" && as_dir=.
  4449. for ac_exec_ext in '' $ac_executable_extensions; do
  4450. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4451. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4452. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4453. break 2
  4454. fi
  4455. done
  4456. done
  4457. IFS=$as_save_IFS
  4458. fi
  4459. fi
  4460. AR=$ac_cv_prog_AR
  4461. if test -n "$AR"; then
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4463. $as_echo "$AR" >&6; }
  4464. else
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4466. $as_echo "no" >&6; }
  4467. fi
  4468. fi
  4469. if test -z "$ac_cv_prog_AR"; then
  4470. ac_ct_AR=$AR
  4471. # Extract the first word of "ar", so it can be a program name with args.
  4472. set dummy ar; ac_word=$2
  4473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4474. $as_echo_n "checking for $ac_word... " >&6; }
  4475. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4476. $as_echo_n "(cached) " >&6
  4477. else
  4478. if test -n "$ac_ct_AR"; then
  4479. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4480. else
  4481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4482. for as_dir in $PATH
  4483. do
  4484. IFS=$as_save_IFS
  4485. test -z "$as_dir" && as_dir=.
  4486. for ac_exec_ext in '' $ac_executable_extensions; do
  4487. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4488. ac_cv_prog_ac_ct_AR="ar"
  4489. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4490. break 2
  4491. fi
  4492. done
  4493. done
  4494. IFS=$as_save_IFS
  4495. fi
  4496. fi
  4497. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4498. if test -n "$ac_ct_AR"; then
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4500. $as_echo "$ac_ct_AR" >&6; }
  4501. else
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4503. $as_echo "no" >&6; }
  4504. fi
  4505. if test "x$ac_ct_AR" = x; then
  4506. AR=""
  4507. else
  4508. case $cross_compiling:$ac_tool_warned in
  4509. yes:)
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4511. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4512. ac_tool_warned=yes ;;
  4513. esac
  4514. AR=$ac_ct_AR
  4515. fi
  4516. else
  4517. AR="$ac_cv_prog_AR"
  4518. fi
  4519. if test -n "$ac_tool_prefix"; then
  4520. # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
  4521. set dummy ${ac_tool_prefix}nm; ac_word=$2
  4522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4523. $as_echo_n "checking for $ac_word... " >&6; }
  4524. if test "${ac_cv_prog_NM+set}" = set; then :
  4525. $as_echo_n "(cached) " >&6
  4526. else
  4527. if test -n "$NM"; then
  4528. ac_cv_prog_NM="$NM" # Let the user override the test.
  4529. else
  4530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4531. for as_dir in $PATH
  4532. do
  4533. IFS=$as_save_IFS
  4534. test -z "$as_dir" && as_dir=.
  4535. for ac_exec_ext in '' $ac_executable_extensions; do
  4536. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4537. ac_cv_prog_NM="${ac_tool_prefix}nm"
  4538. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4539. break 2
  4540. fi
  4541. done
  4542. done
  4543. IFS=$as_save_IFS
  4544. fi
  4545. fi
  4546. NM=$ac_cv_prog_NM
  4547. if test -n "$NM"; then
  4548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  4549. $as_echo "$NM" >&6; }
  4550. else
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4552. $as_echo "no" >&6; }
  4553. fi
  4554. fi
  4555. if test -z "$ac_cv_prog_NM"; then
  4556. ac_ct_NM=$NM
  4557. # Extract the first word of "nm", so it can be a program name with args.
  4558. set dummy nm; ac_word=$2
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4560. $as_echo_n "checking for $ac_word... " >&6; }
  4561. if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
  4562. $as_echo_n "(cached) " >&6
  4563. else
  4564. if test -n "$ac_ct_NM"; then
  4565. ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
  4566. else
  4567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4568. for as_dir in $PATH
  4569. do
  4570. IFS=$as_save_IFS
  4571. test -z "$as_dir" && as_dir=.
  4572. for ac_exec_ext in '' $ac_executable_extensions; do
  4573. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4574. ac_cv_prog_ac_ct_NM="nm"
  4575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4576. break 2
  4577. fi
  4578. done
  4579. done
  4580. IFS=$as_save_IFS
  4581. fi
  4582. fi
  4583. ac_ct_NM=$ac_cv_prog_ac_ct_NM
  4584. if test -n "$ac_ct_NM"; then
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
  4586. $as_echo "$ac_ct_NM" >&6; }
  4587. else
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4589. $as_echo "no" >&6; }
  4590. fi
  4591. if test "x$ac_ct_NM" = x; then
  4592. NM=""
  4593. else
  4594. case $cross_compiling:$ac_tool_warned in
  4595. yes:)
  4596. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4597. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4598. ac_tool_warned=yes ;;
  4599. esac
  4600. NM=$ac_ct_NM
  4601. fi
  4602. else
  4603. NM="$ac_cv_prog_NM"
  4604. fi
  4605. if test -n "$ac_tool_prefix"; then
  4606. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4607. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4609. $as_echo_n "checking for $ac_word... " >&6; }
  4610. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4611. $as_echo_n "(cached) " >&6
  4612. else
  4613. if test -n "$RANLIB"; then
  4614. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4615. else
  4616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4617. for as_dir in $PATH
  4618. do
  4619. IFS=$as_save_IFS
  4620. test -z "$as_dir" && as_dir=.
  4621. for ac_exec_ext in '' $ac_executable_extensions; do
  4622. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4623. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4624. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4625. break 2
  4626. fi
  4627. done
  4628. done
  4629. IFS=$as_save_IFS
  4630. fi
  4631. fi
  4632. RANLIB=$ac_cv_prog_RANLIB
  4633. if test -n "$RANLIB"; then
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4635. $as_echo "$RANLIB" >&6; }
  4636. else
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4638. $as_echo "no" >&6; }
  4639. fi
  4640. fi
  4641. if test -z "$ac_cv_prog_RANLIB"; then
  4642. ac_ct_RANLIB=$RANLIB
  4643. # Extract the first word of "ranlib", so it can be a program name with args.
  4644. set dummy ranlib; ac_word=$2
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4646. $as_echo_n "checking for $ac_word... " >&6; }
  4647. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4648. $as_echo_n "(cached) " >&6
  4649. else
  4650. if test -n "$ac_ct_RANLIB"; then
  4651. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4652. else
  4653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4654. for as_dir in $PATH
  4655. do
  4656. IFS=$as_save_IFS
  4657. test -z "$as_dir" && as_dir=.
  4658. for ac_exec_ext in '' $ac_executable_extensions; do
  4659. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4660. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4661. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4662. break 2
  4663. fi
  4664. done
  4665. done
  4666. IFS=$as_save_IFS
  4667. fi
  4668. fi
  4669. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4670. if test -n "$ac_ct_RANLIB"; then
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4672. $as_echo "$ac_ct_RANLIB" >&6; }
  4673. else
  4674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4675. $as_echo "no" >&6; }
  4676. fi
  4677. if test "x$ac_ct_RANLIB" = x; then
  4678. RANLIB="ranlib-not-found-in-path-error"
  4679. else
  4680. case $cross_compiling:$ac_tool_warned in
  4681. yes:)
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4683. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4684. ac_tool_warned=yes ;;
  4685. esac
  4686. RANLIB=$ac_ct_RANLIB
  4687. fi
  4688. else
  4689. RANLIB="$ac_cv_prog_RANLIB"
  4690. fi
  4691. # Extract the first word of "perl", so it can be a program name with args.
  4692. set dummy perl; ac_word=$2
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4694. $as_echo_n "checking for $ac_word... " >&6; }
  4695. if test "${ac_cv_path_PERL+set}" = set; then :
  4696. $as_echo_n "(cached) " >&6
  4697. else
  4698. case $PERL in
  4699. [\\/]* | ?:[\\/]*)
  4700. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  4701. ;;
  4702. *)
  4703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4704. for as_dir in $PATH
  4705. do
  4706. IFS=$as_save_IFS
  4707. test -z "$as_dir" && as_dir=.
  4708. for ac_exec_ext in '' $ac_executable_extensions; do
  4709. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4710. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  4711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4712. break 2
  4713. fi
  4714. done
  4715. done
  4716. IFS=$as_save_IFS
  4717. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
  4718. ;;
  4719. esac
  4720. fi
  4721. PERL=$ac_cv_path_PERL
  4722. if test -n "$PERL"; then
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  4724. $as_echo "$PERL" >&6; }
  4725. else
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4727. $as_echo "no" >&6; }
  4728. fi
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4730. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4731. set x ${MAKE-make}
  4732. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4733. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  4734. $as_echo_n "(cached) " >&6
  4735. else
  4736. cat >conftest.make <<\_ACEOF
  4737. SHELL = /bin/sh
  4738. all:
  4739. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4740. _ACEOF
  4741. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  4742. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4743. *@@@%%%=?*=@@@%%%*)
  4744. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4745. *)
  4746. eval ac_cv_prog_make_${ac_make}_set=no;;
  4747. esac
  4748. rm -f conftest.make
  4749. fi
  4750. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4752. $as_echo "yes" >&6; }
  4753. SET_MAKE=
  4754. else
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4756. $as_echo "no" >&6; }
  4757. SET_MAKE="MAKE=${MAKE-make}"
  4758. fi
  4759. # See if makeinfo has been installed and is modern enough
  4760. # that we can use it.
  4761. # Extract the first word of "makeinfo", so it can be a program name with args.
  4762. set dummy makeinfo; ac_word=$2
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4764. $as_echo_n "checking for $ac_word... " >&6; }
  4765. if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
  4766. $as_echo_n "(cached) " >&6
  4767. else
  4768. if test -n "$MAKEINFO"; then
  4769. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  4770. else
  4771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4772. for as_dir in $PATH
  4773. do
  4774. IFS=$as_save_IFS
  4775. test -z "$as_dir" && as_dir=.
  4776. for ac_exec_ext in '' $ac_executable_extensions; do
  4777. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4778. ac_cv_prog_MAKEINFO="makeinfo"
  4779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4780. break 2
  4781. fi
  4782. done
  4783. done
  4784. IFS=$as_save_IFS
  4785. fi
  4786. fi
  4787. MAKEINFO=$ac_cv_prog_MAKEINFO
  4788. if test -n "$MAKEINFO"; then
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  4790. $as_echo "$MAKEINFO" >&6; }
  4791. else
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4793. $as_echo "no" >&6; }
  4794. fi
  4795. if test -n "$MAKEINFO"; then
  4796. # Found it, now check the version.
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
  4798. $as_echo_n "checking for modern makeinfo... " >&6; }
  4799. if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
  4800. $as_echo_n "(cached) " >&6
  4801. else
  4802. ac_prog_version=`eval $MAKEINFO --version 2>&1 |
  4803. sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
  4804. case $ac_prog_version in
  4805. '') gcc_cv_prog_makeinfo_modern=no;;
  4806. 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
  4807. *) gcc_cv_prog_makeinfo_modern=no;;
  4808. esac
  4809. fi
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
  4811. $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
  4812. else
  4813. gcc_cv_prog_makeinfo_modern=no
  4814. fi
  4815. if test $gcc_cv_prog_makeinfo_modern = no; then
  4816. MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
  4817. fi
  4818. if test $gcc_cv_prog_makeinfo_modern = "yes"; then
  4819. BUILD_INFO_TRUE=
  4820. BUILD_INFO_FALSE='#'
  4821. else
  4822. BUILD_INFO_TRUE='#'
  4823. BUILD_INFO_FALSE=
  4824. fi
  4825. # Configure libtool
  4826. case `pwd` in
  4827. *\ * | *\ *)
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4829. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4830. esac
  4831. macro_version='2.2.7a'
  4832. macro_revision='1.3134'
  4833. ltmain="$ac_aux_dir/ltmain.sh"
  4834. # Backslashify metacharacters that are still active within
  4835. # double-quoted strings.
  4836. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4837. # Same as above, but do not quote variable references.
  4838. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4839. # Sed substitution to delay expansion of an escaped shell variable in a
  4840. # double_quote_subst'ed string.
  4841. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4842. # Sed substitution to delay expansion of an escaped single quote.
  4843. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4844. # Sed substitution to avoid accidental globbing in evaled expressions
  4845. no_glob_subst='s/\*/\\\*/g'
  4846. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4847. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4848. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4850. $as_echo_n "checking how to print strings... " >&6; }
  4851. # Test print first, because it will be a builtin if present.
  4852. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4853. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4854. ECHO='print -r --'
  4855. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4856. ECHO='printf %s\n'
  4857. else
  4858. # Use this function as a fallback that always works.
  4859. func_fallback_echo ()
  4860. {
  4861. eval 'cat <<_LTECHO_EOF
  4862. $1
  4863. _LTECHO_EOF'
  4864. }
  4865. ECHO='func_fallback_echo'
  4866. fi
  4867. # func_echo_all arg...
  4868. # Invoke $ECHO with all args, space-separated.
  4869. func_echo_all ()
  4870. {
  4871. $ECHO ""
  4872. }
  4873. case "$ECHO" in
  4874. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4875. $as_echo "printf" >&6; } ;;
  4876. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4877. $as_echo "print -r" >&6; } ;;
  4878. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4879. $as_echo "cat" >&6; } ;;
  4880. esac
  4881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4882. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4883. if test "${ac_cv_path_SED+set}" = set; then :
  4884. $as_echo_n "(cached) " >&6
  4885. else
  4886. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4887. for ac_i in 1 2 3 4 5 6 7; do
  4888. ac_script="$ac_script$as_nl$ac_script"
  4889. done
  4890. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4891. { ac_script=; unset ac_script;}
  4892. if test -z "$SED"; then
  4893. ac_path_SED_found=false
  4894. # Loop through the user's path and test for each of PROGNAME-LIST
  4895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4896. for as_dir in $PATH
  4897. do
  4898. IFS=$as_save_IFS
  4899. test -z "$as_dir" && as_dir=.
  4900. for ac_prog in sed gsed; do
  4901. for ac_exec_ext in '' $ac_executable_extensions; do
  4902. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4903. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4904. # Check for GNU ac_path_SED and select it if it is found.
  4905. # Check for GNU $ac_path_SED
  4906. case `"$ac_path_SED" --version 2>&1` in
  4907. *GNU*)
  4908. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4909. *)
  4910. ac_count=0
  4911. $as_echo_n 0123456789 >"conftest.in"
  4912. while :
  4913. do
  4914. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4915. mv "conftest.tmp" "conftest.in"
  4916. cp "conftest.in" "conftest.nl"
  4917. $as_echo '' >> "conftest.nl"
  4918. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4919. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4920. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4921. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4922. # Best one so far, save it but keep looking for a better one
  4923. ac_cv_path_SED="$ac_path_SED"
  4924. ac_path_SED_max=$ac_count
  4925. fi
  4926. # 10*(2^10) chars as input seems more than enough
  4927. test $ac_count -gt 10 && break
  4928. done
  4929. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4930. esac
  4931. $ac_path_SED_found && break 3
  4932. done
  4933. done
  4934. done
  4935. IFS=$as_save_IFS
  4936. if test -z "$ac_cv_path_SED"; then
  4937. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4938. fi
  4939. else
  4940. ac_cv_path_SED=$SED
  4941. fi
  4942. fi
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4944. $as_echo "$ac_cv_path_SED" >&6; }
  4945. SED="$ac_cv_path_SED"
  4946. rm -f conftest.sed
  4947. test -z "$SED" && SED=sed
  4948. Xsed="$SED -e 1s/^X//"
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4950. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4951. if test "${ac_cv_path_GREP+set}" = set; then :
  4952. $as_echo_n "(cached) " >&6
  4953. else
  4954. if test -z "$GREP"; then
  4955. ac_path_GREP_found=false
  4956. # Loop through the user's path and test for each of PROGNAME-LIST
  4957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4958. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4959. do
  4960. IFS=$as_save_IFS
  4961. test -z "$as_dir" && as_dir=.
  4962. for ac_prog in grep ggrep; do
  4963. for ac_exec_ext in '' $ac_executable_extensions; do
  4964. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4965. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4966. # Check for GNU ac_path_GREP and select it if it is found.
  4967. # Check for GNU $ac_path_GREP
  4968. case `"$ac_path_GREP" --version 2>&1` in
  4969. *GNU*)
  4970. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4971. *)
  4972. ac_count=0
  4973. $as_echo_n 0123456789 >"conftest.in"
  4974. while :
  4975. do
  4976. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4977. mv "conftest.tmp" "conftest.in"
  4978. cp "conftest.in" "conftest.nl"
  4979. $as_echo 'GREP' >> "conftest.nl"
  4980. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4981. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4982. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4983. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4984. # Best one so far, save it but keep looking for a better one
  4985. ac_cv_path_GREP="$ac_path_GREP"
  4986. ac_path_GREP_max=$ac_count
  4987. fi
  4988. # 10*(2^10) chars as input seems more than enough
  4989. test $ac_count -gt 10 && break
  4990. done
  4991. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4992. esac
  4993. $ac_path_GREP_found && break 3
  4994. done
  4995. done
  4996. done
  4997. IFS=$as_save_IFS
  4998. if test -z "$ac_cv_path_GREP"; then
  4999. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5000. fi
  5001. else
  5002. ac_cv_path_GREP=$GREP
  5003. fi
  5004. fi
  5005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5006. $as_echo "$ac_cv_path_GREP" >&6; }
  5007. GREP="$ac_cv_path_GREP"
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5009. $as_echo_n "checking for egrep... " >&6; }
  5010. if test "${ac_cv_path_EGREP+set}" = set; then :
  5011. $as_echo_n "(cached) " >&6
  5012. else
  5013. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5014. then ac_cv_path_EGREP="$GREP -E"
  5015. else
  5016. if test -z "$EGREP"; then
  5017. ac_path_EGREP_found=false
  5018. # Loop through the user's path and test for each of PROGNAME-LIST
  5019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5020. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5021. do
  5022. IFS=$as_save_IFS
  5023. test -z "$as_dir" && as_dir=.
  5024. for ac_prog in egrep; do
  5025. for ac_exec_ext in '' $ac_executable_extensions; do
  5026. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5027. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5028. # Check for GNU ac_path_EGREP and select it if it is found.
  5029. # Check for GNU $ac_path_EGREP
  5030. case `"$ac_path_EGREP" --version 2>&1` in
  5031. *GNU*)
  5032. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5033. *)
  5034. ac_count=0
  5035. $as_echo_n 0123456789 >"conftest.in"
  5036. while :
  5037. do
  5038. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5039. mv "conftest.tmp" "conftest.in"
  5040. cp "conftest.in" "conftest.nl"
  5041. $as_echo 'EGREP' >> "conftest.nl"
  5042. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5043. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5044. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5045. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5046. # Best one so far, save it but keep looking for a better one
  5047. ac_cv_path_EGREP="$ac_path_EGREP"
  5048. ac_path_EGREP_max=$ac_count
  5049. fi
  5050. # 10*(2^10) chars as input seems more than enough
  5051. test $ac_count -gt 10 && break
  5052. done
  5053. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5054. esac
  5055. $ac_path_EGREP_found && break 3
  5056. done
  5057. done
  5058. done
  5059. IFS=$as_save_IFS
  5060. if test -z "$ac_cv_path_EGREP"; then
  5061. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5062. fi
  5063. else
  5064. ac_cv_path_EGREP=$EGREP
  5065. fi
  5066. fi
  5067. fi
  5068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5069. $as_echo "$ac_cv_path_EGREP" >&6; }
  5070. EGREP="$ac_cv_path_EGREP"
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5072. $as_echo_n "checking for fgrep... " >&6; }
  5073. if test "${ac_cv_path_FGREP+set}" = set; then :
  5074. $as_echo_n "(cached) " >&6
  5075. else
  5076. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5077. then ac_cv_path_FGREP="$GREP -F"
  5078. else
  5079. if test -z "$FGREP"; then
  5080. ac_path_FGREP_found=false
  5081. # Loop through the user's path and test for each of PROGNAME-LIST
  5082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5083. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5084. do
  5085. IFS=$as_save_IFS
  5086. test -z "$as_dir" && as_dir=.
  5087. for ac_prog in fgrep; do
  5088. for ac_exec_ext in '' $ac_executable_extensions; do
  5089. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5090. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  5091. # Check for GNU ac_path_FGREP and select it if it is found.
  5092. # Check for GNU $ac_path_FGREP
  5093. case `"$ac_path_FGREP" --version 2>&1` in
  5094. *GNU*)
  5095. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5096. *)
  5097. ac_count=0
  5098. $as_echo_n 0123456789 >"conftest.in"
  5099. while :
  5100. do
  5101. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5102. mv "conftest.tmp" "conftest.in"
  5103. cp "conftest.in" "conftest.nl"
  5104. $as_echo 'FGREP' >> "conftest.nl"
  5105. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5106. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5107. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5108. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5109. # Best one so far, save it but keep looking for a better one
  5110. ac_cv_path_FGREP="$ac_path_FGREP"
  5111. ac_path_FGREP_max=$ac_count
  5112. fi
  5113. # 10*(2^10) chars as input seems more than enough
  5114. test $ac_count -gt 10 && break
  5115. done
  5116. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5117. esac
  5118. $ac_path_FGREP_found && break 3
  5119. done
  5120. done
  5121. done
  5122. IFS=$as_save_IFS
  5123. if test -z "$ac_cv_path_FGREP"; then
  5124. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5125. fi
  5126. else
  5127. ac_cv_path_FGREP=$FGREP
  5128. fi
  5129. fi
  5130. fi
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5132. $as_echo "$ac_cv_path_FGREP" >&6; }
  5133. FGREP="$ac_cv_path_FGREP"
  5134. test -z "$GREP" && GREP=grep
  5135. # Check whether --with-gnu-ld was given.
  5136. if test "${with_gnu_ld+set}" = set; then :
  5137. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5138. else
  5139. with_gnu_ld=no
  5140. fi
  5141. ac_prog=ld
  5142. if test "$GCC" = yes; then
  5143. # Check if gcc -print-prog-name=ld gives a path.
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5145. $as_echo_n "checking for ld used by $CC... " >&6; }
  5146. case $host in
  5147. *-*-mingw*)
  5148. # gcc leaves a trailing carriage return which upsets mingw
  5149. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5150. *)
  5151. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5152. esac
  5153. case $ac_prog in
  5154. # Accept absolute paths.
  5155. [\\/]* | ?:[\\/]*)
  5156. re_direlt='/[^/][^/]*/\.\./'
  5157. # Canonicalize the pathname of ld
  5158. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5159. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5160. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5161. done
  5162. test -z "$LD" && LD="$ac_prog"
  5163. ;;
  5164. "")
  5165. # If it fails, then pretend we aren't using GCC.
  5166. ac_prog=ld
  5167. ;;
  5168. *)
  5169. # If it is relative, then search for the first ld in PATH.
  5170. with_gnu_ld=unknown
  5171. ;;
  5172. esac
  5173. elif test "$with_gnu_ld" = yes; then
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5175. $as_echo_n "checking for GNU ld... " >&6; }
  5176. else
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5178. $as_echo_n "checking for non-GNU ld... " >&6; }
  5179. fi
  5180. if test "${lt_cv_path_LD+set}" = set; then :
  5181. $as_echo_n "(cached) " >&6
  5182. else
  5183. if test -z "$LD"; then
  5184. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5185. for ac_dir in $PATH; do
  5186. IFS="$lt_save_ifs"
  5187. test -z "$ac_dir" && ac_dir=.
  5188. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5189. lt_cv_path_LD="$ac_dir/$ac_prog"
  5190. # Check to see if the program is GNU ld. I'd rather use --version,
  5191. # but apparently some variants of GNU ld only accept -v.
  5192. # Break only if it was the GNU/non-GNU ld that we prefer.
  5193. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5194. *GNU* | *'with BFD'*)
  5195. test "$with_gnu_ld" != no && break
  5196. ;;
  5197. *)
  5198. test "$with_gnu_ld" != yes && break
  5199. ;;
  5200. esac
  5201. fi
  5202. done
  5203. IFS="$lt_save_ifs"
  5204. else
  5205. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5206. fi
  5207. fi
  5208. LD="$lt_cv_path_LD"
  5209. if test -n "$LD"; then
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5211. $as_echo "$LD" >&6; }
  5212. else
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5214. $as_echo "no" >&6; }
  5215. fi
  5216. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5218. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5219. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  5220. $as_echo_n "(cached) " >&6
  5221. else
  5222. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5223. case `$LD -v 2>&1 </dev/null` in
  5224. *GNU* | *'with BFD'*)
  5225. lt_cv_prog_gnu_ld=yes
  5226. ;;
  5227. *)
  5228. lt_cv_prog_gnu_ld=no
  5229. ;;
  5230. esac
  5231. fi
  5232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5233. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5234. with_gnu_ld=$lt_cv_prog_gnu_ld
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5236. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5237. if test "${lt_cv_path_NM+set}" = set; then :
  5238. $as_echo_n "(cached) " >&6
  5239. else
  5240. if test -n "$NM"; then
  5241. # Let the user override the test.
  5242. lt_cv_path_NM="$NM"
  5243. else
  5244. lt_nm_to_check="${ac_tool_prefix}nm"
  5245. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5246. lt_nm_to_check="$lt_nm_to_check nm"
  5247. fi
  5248. for lt_tmp_nm in $lt_nm_to_check; do
  5249. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5250. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5251. IFS="$lt_save_ifs"
  5252. test -z "$ac_dir" && ac_dir=.
  5253. tmp_nm="$ac_dir/$lt_tmp_nm"
  5254. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5255. # Check to see if the nm accepts a BSD-compat flag.
  5256. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5257. # nm: unknown option "B" ignored
  5258. # Tru64's nm complains that /dev/null is an invalid object file
  5259. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5260. */dev/null* | *'Invalid file or object type'*)
  5261. lt_cv_path_NM="$tmp_nm -B"
  5262. break
  5263. ;;
  5264. *)
  5265. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5266. */dev/null*)
  5267. lt_cv_path_NM="$tmp_nm -p"
  5268. break
  5269. ;;
  5270. *)
  5271. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5272. continue # so that we can try to find one that supports BSD flags
  5273. ;;
  5274. esac
  5275. ;;
  5276. esac
  5277. fi
  5278. done
  5279. IFS="$lt_save_ifs"
  5280. done
  5281. : ${lt_cv_path_NM=no}
  5282. fi
  5283. fi
  5284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5285. $as_echo "$lt_cv_path_NM" >&6; }
  5286. if test "$lt_cv_path_NM" != "no"; then
  5287. NM="$lt_cv_path_NM"
  5288. else
  5289. # Didn't find any BSD compatible name lister, look for dumpbin.
  5290. if test -n "$DUMPBIN"; then :
  5291. # Let the user override the test.
  5292. else
  5293. if test -n "$ac_tool_prefix"; then
  5294. for ac_prog in dumpbin "link -dump"
  5295. do
  5296. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5297. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5299. $as_echo_n "checking for $ac_word... " >&6; }
  5300. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  5301. $as_echo_n "(cached) " >&6
  5302. else
  5303. if test -n "$DUMPBIN"; then
  5304. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5305. else
  5306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5307. for as_dir in $PATH
  5308. do
  5309. IFS=$as_save_IFS
  5310. test -z "$as_dir" && as_dir=.
  5311. for ac_exec_ext in '' $ac_executable_extensions; do
  5312. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5313. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5314. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5315. break 2
  5316. fi
  5317. done
  5318. done
  5319. IFS=$as_save_IFS
  5320. fi
  5321. fi
  5322. DUMPBIN=$ac_cv_prog_DUMPBIN
  5323. if test -n "$DUMPBIN"; then
  5324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5325. $as_echo "$DUMPBIN" >&6; }
  5326. else
  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5328. $as_echo "no" >&6; }
  5329. fi
  5330. test -n "$DUMPBIN" && break
  5331. done
  5332. fi
  5333. if test -z "$DUMPBIN"; then
  5334. ac_ct_DUMPBIN=$DUMPBIN
  5335. for ac_prog in dumpbin "link -dump"
  5336. do
  5337. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5338. set dummy $ac_prog; 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_DUMPBIN+set}" = set; then :
  5342. $as_echo_n "(cached) " >&6
  5343. else
  5344. if test -n "$ac_ct_DUMPBIN"; then
  5345. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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_DUMPBIN="$ac_prog"
  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_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5364. if test -n "$ac_ct_DUMPBIN"; then
  5365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5366. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5367. else
  5368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5369. $as_echo "no" >&6; }
  5370. fi
  5371. test -n "$ac_ct_DUMPBIN" && break
  5372. done
  5373. if test "x$ac_ct_DUMPBIN" = x; then
  5374. DUMPBIN=":"
  5375. else
  5376. case $cross_compiling:$ac_tool_warned in
  5377. yes:)
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5379. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5380. ac_tool_warned=yes ;;
  5381. esac
  5382. DUMPBIN=$ac_ct_DUMPBIN
  5383. fi
  5384. fi
  5385. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5386. *COFF*)
  5387. DUMPBIN="$DUMPBIN -symbols"
  5388. ;;
  5389. *)
  5390. DUMPBIN=:
  5391. ;;
  5392. esac
  5393. fi
  5394. if test "$DUMPBIN" != ":"; then
  5395. NM="$DUMPBIN"
  5396. fi
  5397. fi
  5398. test -z "$NM" && NM=nm
  5399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5400. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5401. if test "${lt_cv_nm_interface+set}" = set; then :
  5402. $as_echo_n "(cached) " >&6
  5403. else
  5404. lt_cv_nm_interface="BSD nm"
  5405. echo "int some_variable = 0;" > conftest.$ac_ext
  5406. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5407. (eval "$ac_compile" 2>conftest.err)
  5408. cat conftest.err >&5
  5409. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5410. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5411. cat conftest.err >&5
  5412. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5413. cat conftest.out >&5
  5414. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5415. lt_cv_nm_interface="MS dumpbin"
  5416. fi
  5417. rm -f conftest*
  5418. fi
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5420. $as_echo "$lt_cv_nm_interface" >&6; }
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5422. $as_echo_n "checking whether ln -s works... " >&6; }
  5423. LN_S=$as_ln_s
  5424. if test "$LN_S" = "ln -s"; then
  5425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5426. $as_echo "yes" >&6; }
  5427. else
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5429. $as_echo "no, using $LN_S" >&6; }
  5430. fi
  5431. # find the maximum length of command line arguments
  5432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5433. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5434. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  5435. $as_echo_n "(cached) " >&6
  5436. else
  5437. i=0
  5438. teststring="ABCD"
  5439. case $build_os in
  5440. msdosdjgpp*)
  5441. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5442. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5443. # during glob expansion). Even if it were fixed, the result of this
  5444. # check would be larger than it should be.
  5445. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5446. ;;
  5447. gnu*)
  5448. # Under GNU Hurd, this test is not required because there is
  5449. # no limit to the length of command line arguments.
  5450. # Libtool will interpret -1 as no limit whatsoever
  5451. lt_cv_sys_max_cmd_len=-1;
  5452. ;;
  5453. cygwin* | mingw* | cegcc*)
  5454. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5455. # about 5 minutes as the teststring grows exponentially.
  5456. # Worse, since 9x/ME are not pre-emptively multitasking,
  5457. # you end up with a "frozen" computer, even though with patience
  5458. # the test eventually succeeds (with a max line length of 256k).
  5459. # Instead, let's just punt: use the minimum linelength reported by
  5460. # all of the supported platforms: 8192 (on NT/2K/XP).
  5461. lt_cv_sys_max_cmd_len=8192;
  5462. ;;
  5463. mint*)
  5464. # On MiNT this can take a long time and run out of memory.
  5465. lt_cv_sys_max_cmd_len=8192;
  5466. ;;
  5467. amigaos*)
  5468. # On AmigaOS with pdksh, this test takes hours, literally.
  5469. # So we just punt and use a minimum line length of 8192.
  5470. lt_cv_sys_max_cmd_len=8192;
  5471. ;;
  5472. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5473. # This has been around since 386BSD, at least. Likely further.
  5474. if test -x /sbin/sysctl; then
  5475. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5476. elif test -x /usr/sbin/sysctl; then
  5477. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5478. else
  5479. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5480. fi
  5481. # And add a safety zone
  5482. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5483. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5484. ;;
  5485. interix*)
  5486. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5487. lt_cv_sys_max_cmd_len=196608
  5488. ;;
  5489. osf*)
  5490. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5491. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5492. # nice to cause kernel panics so lets avoid the loop below.
  5493. # First set a reasonable default.
  5494. lt_cv_sys_max_cmd_len=16384
  5495. #
  5496. if test -x /sbin/sysconfig; then
  5497. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5498. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5499. esac
  5500. fi
  5501. ;;
  5502. sco3.2v5*)
  5503. lt_cv_sys_max_cmd_len=102400
  5504. ;;
  5505. sysv5* | sco5v6* | sysv4.2uw2*)
  5506. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5507. if test -n "$kargmax"; then
  5508. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5509. else
  5510. lt_cv_sys_max_cmd_len=32768
  5511. fi
  5512. ;;
  5513. *)
  5514. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5515. if test -n "$lt_cv_sys_max_cmd_len"; then
  5516. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5517. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5518. else
  5519. # Make teststring a little bigger before we do anything with it.
  5520. # a 1K string should be a reasonable start.
  5521. for i in 1 2 3 4 5 6 7 8 ; do
  5522. teststring=$teststring$teststring
  5523. done
  5524. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5525. # If test is not a shell built-in, we'll probably end up computing a
  5526. # maximum length that is only half of the actual maximum length, but
  5527. # we can't tell.
  5528. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5529. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5530. test $i != 17 # 1/2 MB should be enough
  5531. do
  5532. i=`expr $i + 1`
  5533. teststring=$teststring$teststring
  5534. done
  5535. # Only check the string length outside the loop.
  5536. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5537. teststring=
  5538. # Add a significant safety factor because C++ compilers can tack on
  5539. # massive amounts of additional arguments before passing them to the
  5540. # linker. It appears as though 1/2 is a usable value.
  5541. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5542. fi
  5543. ;;
  5544. esac
  5545. fi
  5546. if test -n $lt_cv_sys_max_cmd_len ; then
  5547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5548. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5549. else
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5551. $as_echo "none" >&6; }
  5552. fi
  5553. max_cmd_len=$lt_cv_sys_max_cmd_len
  5554. : ${CP="cp -f"}
  5555. : ${MV="mv -f"}
  5556. : ${RM="rm -f"}
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5558. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5559. # Try some XSI features
  5560. xsi_shell=no
  5561. ( _lt_dummy="a/b/c"
  5562. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5563. = c,a/b,, \
  5564. && eval 'test $(( 1 + 1 )) -eq 2 \
  5565. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5566. && xsi_shell=yes
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5568. $as_echo "$xsi_shell" >&6; }
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5570. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5571. lt_shell_append=no
  5572. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5573. >/dev/null 2>&1 \
  5574. && lt_shell_append=yes
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5576. $as_echo "$lt_shell_append" >&6; }
  5577. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5578. lt_unset=unset
  5579. else
  5580. lt_unset=false
  5581. fi
  5582. # test EBCDIC or ASCII
  5583. case `echo X|tr X '\101'` in
  5584. A) # ASCII based system
  5585. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5586. lt_SP2NL='tr \040 \012'
  5587. lt_NL2SP='tr \015\012 \040\040'
  5588. ;;
  5589. *) # EBCDIC based system
  5590. lt_SP2NL='tr \100 \n'
  5591. lt_NL2SP='tr \r\n \100\100'
  5592. ;;
  5593. esac
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5595. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5596. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5597. $as_echo_n "(cached) " >&6
  5598. else
  5599. lt_cv_ld_reload_flag='-r'
  5600. fi
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5602. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5603. reload_flag=$lt_cv_ld_reload_flag
  5604. case $reload_flag in
  5605. "" | " "*) ;;
  5606. *) reload_flag=" $reload_flag" ;;
  5607. esac
  5608. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5609. case $host_os in
  5610. darwin*)
  5611. if test "$GCC" = yes; then
  5612. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5613. else
  5614. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5615. fi
  5616. ;;
  5617. esac
  5618. if test -n "$ac_tool_prefix"; then
  5619. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5620. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5622. $as_echo_n "checking for $ac_word... " >&6; }
  5623. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. if test -n "$OBJDUMP"; then
  5627. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5628. else
  5629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5630. for as_dir in $PATH
  5631. do
  5632. IFS=$as_save_IFS
  5633. test -z "$as_dir" && as_dir=.
  5634. for ac_exec_ext in '' $ac_executable_extensions; do
  5635. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5636. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5638. break 2
  5639. fi
  5640. done
  5641. done
  5642. IFS=$as_save_IFS
  5643. fi
  5644. fi
  5645. OBJDUMP=$ac_cv_prog_OBJDUMP
  5646. if test -n "$OBJDUMP"; then
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5648. $as_echo "$OBJDUMP" >&6; }
  5649. else
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5651. $as_echo "no" >&6; }
  5652. fi
  5653. fi
  5654. if test -z "$ac_cv_prog_OBJDUMP"; then
  5655. ac_ct_OBJDUMP=$OBJDUMP
  5656. # Extract the first word of "objdump", so it can be a program name with args.
  5657. set dummy objdump; ac_word=$2
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5659. $as_echo_n "checking for $ac_word... " >&6; }
  5660. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5661. $as_echo_n "(cached) " >&6
  5662. else
  5663. if test -n "$ac_ct_OBJDUMP"; then
  5664. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5665. else
  5666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5667. for as_dir in $PATH
  5668. do
  5669. IFS=$as_save_IFS
  5670. test -z "$as_dir" && as_dir=.
  5671. for ac_exec_ext in '' $ac_executable_extensions; do
  5672. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5673. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5675. break 2
  5676. fi
  5677. done
  5678. done
  5679. IFS=$as_save_IFS
  5680. fi
  5681. fi
  5682. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5683. if test -n "$ac_ct_OBJDUMP"; then
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5685. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5686. else
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5688. $as_echo "no" >&6; }
  5689. fi
  5690. if test "x$ac_ct_OBJDUMP" = x; then
  5691. OBJDUMP="false"
  5692. else
  5693. case $cross_compiling:$ac_tool_warned in
  5694. yes:)
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5696. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5697. ac_tool_warned=yes ;;
  5698. esac
  5699. OBJDUMP=$ac_ct_OBJDUMP
  5700. fi
  5701. else
  5702. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5703. fi
  5704. test -z "$OBJDUMP" && OBJDUMP=objdump
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5706. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5707. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5708. $as_echo_n "(cached) " >&6
  5709. else
  5710. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5711. lt_cv_file_magic_test_file=
  5712. lt_cv_deplibs_check_method='unknown'
  5713. # Need to set the preceding variable on all platforms that support
  5714. # interlibrary dependencies.
  5715. # 'none' -- dependencies not supported.
  5716. # `unknown' -- same as none, but documents that we really don't know.
  5717. # 'pass_all' -- all dependencies passed with no checks.
  5718. # 'test_compile' -- check by making test program.
  5719. # 'file_magic [[regex]]' -- check by looking for files in library path
  5720. # which responds to the $file_magic_cmd with a given extended regex.
  5721. # If you have `file' or equivalent on your system and you're not sure
  5722. # whether `pass_all' will *always* work, you probably want this one.
  5723. case $host_os in
  5724. aix[4-9]*)
  5725. lt_cv_deplibs_check_method=pass_all
  5726. ;;
  5727. beos*)
  5728. lt_cv_deplibs_check_method=pass_all
  5729. ;;
  5730. bsdi[45]*)
  5731. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5732. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5733. lt_cv_file_magic_test_file=/shlib/libc.so
  5734. ;;
  5735. cygwin*)
  5736. # func_win32_libid is a shell function defined in ltmain.sh
  5737. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5738. lt_cv_file_magic_cmd='func_win32_libid'
  5739. ;;
  5740. mingw* | pw32*)
  5741. # Base MSYS/MinGW do not provide the 'file' command needed by
  5742. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5743. # unless we find 'file', for example because we are cross-compiling.
  5744. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5745. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5746. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5747. lt_cv_file_magic_cmd='func_win32_libid'
  5748. else
  5749. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5750. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5751. fi
  5752. ;;
  5753. cegcc*)
  5754. # use the weaker test based on 'objdump'. See mingw*.
  5755. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5756. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5757. ;;
  5758. darwin* | rhapsody*)
  5759. lt_cv_deplibs_check_method=pass_all
  5760. ;;
  5761. freebsd* | dragonfly*)
  5762. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5763. case $host_cpu in
  5764. i*86 )
  5765. # Not sure whether the presence of OpenBSD here was a mistake.
  5766. # Let's accept both of them until this is cleared up.
  5767. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5768. lt_cv_file_magic_cmd=/usr/bin/file
  5769. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5770. ;;
  5771. esac
  5772. else
  5773. lt_cv_deplibs_check_method=pass_all
  5774. fi
  5775. ;;
  5776. gnu*)
  5777. lt_cv_deplibs_check_method=pass_all
  5778. ;;
  5779. haiku*)
  5780. lt_cv_deplibs_check_method=pass_all
  5781. ;;
  5782. hpux10.20* | hpux11*)
  5783. lt_cv_file_magic_cmd=/usr/bin/file
  5784. case $host_cpu in
  5785. ia64*)
  5786. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5787. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5788. ;;
  5789. hppa*64*)
  5790. 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]'
  5791. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5792. ;;
  5793. *)
  5794. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5795. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5796. ;;
  5797. esac
  5798. ;;
  5799. interix[3-9]*)
  5800. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5801. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5802. ;;
  5803. irix5* | irix6* | nonstopux*)
  5804. case $LD in
  5805. *-32|*"-32 ") libmagic=32-bit;;
  5806. *-n32|*"-n32 ") libmagic=N32;;
  5807. *-64|*"-64 ") libmagic=64-bit;;
  5808. *) libmagic=never-match;;
  5809. esac
  5810. lt_cv_deplibs_check_method=pass_all
  5811. ;;
  5812. # This must be Linux ELF.
  5813. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5814. lt_cv_deplibs_check_method=pass_all
  5815. ;;
  5816. netbsd*)
  5817. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5818. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5819. else
  5820. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5821. fi
  5822. ;;
  5823. newos6*)
  5824. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5825. lt_cv_file_magic_cmd=/usr/bin/file
  5826. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5827. ;;
  5828. *nto* | *qnx*)
  5829. lt_cv_deplibs_check_method=pass_all
  5830. ;;
  5831. openbsd*)
  5832. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5833. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5834. else
  5835. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5836. fi
  5837. ;;
  5838. osf3* | osf4* | osf5*)
  5839. lt_cv_deplibs_check_method=pass_all
  5840. ;;
  5841. rdos*)
  5842. lt_cv_deplibs_check_method=pass_all
  5843. ;;
  5844. solaris*)
  5845. lt_cv_deplibs_check_method=pass_all
  5846. ;;
  5847. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5848. lt_cv_deplibs_check_method=pass_all
  5849. ;;
  5850. sysv4 | sysv4.3*)
  5851. case $host_vendor in
  5852. motorola)
  5853. 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]'
  5854. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5855. ;;
  5856. ncr)
  5857. lt_cv_deplibs_check_method=pass_all
  5858. ;;
  5859. sequent)
  5860. lt_cv_file_magic_cmd='/bin/file'
  5861. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5862. ;;
  5863. sni)
  5864. lt_cv_file_magic_cmd='/bin/file'
  5865. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5866. lt_cv_file_magic_test_file=/lib/libc.so
  5867. ;;
  5868. siemens)
  5869. lt_cv_deplibs_check_method=pass_all
  5870. ;;
  5871. pc)
  5872. lt_cv_deplibs_check_method=pass_all
  5873. ;;
  5874. esac
  5875. ;;
  5876. tpf*)
  5877. lt_cv_deplibs_check_method=pass_all
  5878. ;;
  5879. esac
  5880. fi
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5882. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5883. file_magic_cmd=$lt_cv_file_magic_cmd
  5884. deplibs_check_method=$lt_cv_deplibs_check_method
  5885. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5886. if test -n "$ac_tool_prefix"; then
  5887. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5888. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5890. $as_echo_n "checking for $ac_word... " >&6; }
  5891. if test "${ac_cv_prog_AR+set}" = set; then :
  5892. $as_echo_n "(cached) " >&6
  5893. else
  5894. if test -n "$AR"; then
  5895. ac_cv_prog_AR="$AR" # Let the user override the test.
  5896. else
  5897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5898. for as_dir in $PATH
  5899. do
  5900. IFS=$as_save_IFS
  5901. test -z "$as_dir" && as_dir=.
  5902. for ac_exec_ext in '' $ac_executable_extensions; do
  5903. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5904. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5905. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5906. break 2
  5907. fi
  5908. done
  5909. done
  5910. IFS=$as_save_IFS
  5911. fi
  5912. fi
  5913. AR=$ac_cv_prog_AR
  5914. if test -n "$AR"; then
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5916. $as_echo "$AR" >&6; }
  5917. else
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5919. $as_echo "no" >&6; }
  5920. fi
  5921. fi
  5922. if test -z "$ac_cv_prog_AR"; then
  5923. ac_ct_AR=$AR
  5924. # Extract the first word of "ar", so it can be a program name with args.
  5925. set dummy ar; ac_word=$2
  5926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5927. $as_echo_n "checking for $ac_word... " >&6; }
  5928. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5929. $as_echo_n "(cached) " >&6
  5930. else
  5931. if test -n "$ac_ct_AR"; then
  5932. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5933. else
  5934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5935. for as_dir in $PATH
  5936. do
  5937. IFS=$as_save_IFS
  5938. test -z "$as_dir" && as_dir=.
  5939. for ac_exec_ext in '' $ac_executable_extensions; do
  5940. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5941. ac_cv_prog_ac_ct_AR="ar"
  5942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5943. break 2
  5944. fi
  5945. done
  5946. done
  5947. IFS=$as_save_IFS
  5948. fi
  5949. fi
  5950. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5951. if test -n "$ac_ct_AR"; then
  5952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5953. $as_echo "$ac_ct_AR" >&6; }
  5954. else
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5956. $as_echo "no" >&6; }
  5957. fi
  5958. if test "x$ac_ct_AR" = x; then
  5959. AR="false"
  5960. else
  5961. case $cross_compiling:$ac_tool_warned in
  5962. yes:)
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5964. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5965. ac_tool_warned=yes ;;
  5966. esac
  5967. AR=$ac_ct_AR
  5968. fi
  5969. else
  5970. AR="$ac_cv_prog_AR"
  5971. fi
  5972. test -z "$AR" && AR=ar
  5973. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5974. if test -n "$ac_tool_prefix"; then
  5975. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5976. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5978. $as_echo_n "checking for $ac_word... " >&6; }
  5979. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5980. $as_echo_n "(cached) " >&6
  5981. else
  5982. if test -n "$STRIP"; then
  5983. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5984. else
  5985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5986. for as_dir in $PATH
  5987. do
  5988. IFS=$as_save_IFS
  5989. test -z "$as_dir" && as_dir=.
  5990. for ac_exec_ext in '' $ac_executable_extensions; do
  5991. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5992. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5993. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5994. break 2
  5995. fi
  5996. done
  5997. done
  5998. IFS=$as_save_IFS
  5999. fi
  6000. fi
  6001. STRIP=$ac_cv_prog_STRIP
  6002. if test -n "$STRIP"; then
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6004. $as_echo "$STRIP" >&6; }
  6005. else
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6007. $as_echo "no" >&6; }
  6008. fi
  6009. fi
  6010. if test -z "$ac_cv_prog_STRIP"; then
  6011. ac_ct_STRIP=$STRIP
  6012. # Extract the first word of "strip", so it can be a program name with args.
  6013. set dummy strip; ac_word=$2
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6015. $as_echo_n "checking for $ac_word... " >&6; }
  6016. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  6017. $as_echo_n "(cached) " >&6
  6018. else
  6019. if test -n "$ac_ct_STRIP"; then
  6020. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6021. else
  6022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6023. for as_dir in $PATH
  6024. do
  6025. IFS=$as_save_IFS
  6026. test -z "$as_dir" && as_dir=.
  6027. for ac_exec_ext in '' $ac_executable_extensions; do
  6028. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6029. ac_cv_prog_ac_ct_STRIP="strip"
  6030. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6031. break 2
  6032. fi
  6033. done
  6034. done
  6035. IFS=$as_save_IFS
  6036. fi
  6037. fi
  6038. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6039. if test -n "$ac_ct_STRIP"; then
  6040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6041. $as_echo "$ac_ct_STRIP" >&6; }
  6042. else
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6044. $as_echo "no" >&6; }
  6045. fi
  6046. if test "x$ac_ct_STRIP" = x; then
  6047. STRIP=":"
  6048. else
  6049. case $cross_compiling:$ac_tool_warned in
  6050. yes:)
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6052. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6053. ac_tool_warned=yes ;;
  6054. esac
  6055. STRIP=$ac_ct_STRIP
  6056. fi
  6057. else
  6058. STRIP="$ac_cv_prog_STRIP"
  6059. fi
  6060. test -z "$STRIP" && STRIP=:
  6061. if test -n "$ac_tool_prefix"; then
  6062. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6063. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6065. $as_echo_n "checking for $ac_word... " >&6; }
  6066. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  6067. $as_echo_n "(cached) " >&6
  6068. else
  6069. if test -n "$RANLIB"; then
  6070. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6071. else
  6072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6073. for as_dir in $PATH
  6074. do
  6075. IFS=$as_save_IFS
  6076. test -z "$as_dir" && as_dir=.
  6077. for ac_exec_ext in '' $ac_executable_extensions; do
  6078. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6079. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6080. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6081. break 2
  6082. fi
  6083. done
  6084. done
  6085. IFS=$as_save_IFS
  6086. fi
  6087. fi
  6088. RANLIB=$ac_cv_prog_RANLIB
  6089. if test -n "$RANLIB"; then
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6091. $as_echo "$RANLIB" >&6; }
  6092. else
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6094. $as_echo "no" >&6; }
  6095. fi
  6096. fi
  6097. if test -z "$ac_cv_prog_RANLIB"; then
  6098. ac_ct_RANLIB=$RANLIB
  6099. # Extract the first word of "ranlib", so it can be a program name with args.
  6100. set dummy ranlib; ac_word=$2
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6102. $as_echo_n "checking for $ac_word... " >&6; }
  6103. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  6104. $as_echo_n "(cached) " >&6
  6105. else
  6106. if test -n "$ac_ct_RANLIB"; then
  6107. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6108. else
  6109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6110. for as_dir in $PATH
  6111. do
  6112. IFS=$as_save_IFS
  6113. test -z "$as_dir" && as_dir=.
  6114. for ac_exec_ext in '' $ac_executable_extensions; do
  6115. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6116. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6117. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6118. break 2
  6119. fi
  6120. done
  6121. done
  6122. IFS=$as_save_IFS
  6123. fi
  6124. fi
  6125. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6126. if test -n "$ac_ct_RANLIB"; then
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6128. $as_echo "$ac_ct_RANLIB" >&6; }
  6129. else
  6130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6131. $as_echo "no" >&6; }
  6132. fi
  6133. if test "x$ac_ct_RANLIB" = x; then
  6134. RANLIB=":"
  6135. else
  6136. case $cross_compiling:$ac_tool_warned in
  6137. yes:)
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6139. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6140. ac_tool_warned=yes ;;
  6141. esac
  6142. RANLIB=$ac_ct_RANLIB
  6143. fi
  6144. else
  6145. RANLIB="$ac_cv_prog_RANLIB"
  6146. fi
  6147. test -z "$RANLIB" && RANLIB=:
  6148. # Determine commands to create old-style static archives.
  6149. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6150. old_postinstall_cmds='chmod 644 $oldlib'
  6151. old_postuninstall_cmds=
  6152. if test -n "$RANLIB"; then
  6153. case $host_os in
  6154. openbsd*)
  6155. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6156. ;;
  6157. *)
  6158. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6159. ;;
  6160. esac
  6161. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6162. fi
  6163. case $host_os in
  6164. darwin*)
  6165. lock_old_archive_extraction=yes ;;
  6166. *)
  6167. lock_old_archive_extraction=no ;;
  6168. esac
  6169. # If no C compiler was specified, use CC.
  6170. LTCC=${LTCC-"$CC"}
  6171. # If no C compiler flags were specified, use CFLAGS.
  6172. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6173. # Allow CC to be a program name with arguments.
  6174. compiler=$CC
  6175. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6177. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6178. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  6179. $as_echo_n "(cached) " >&6
  6180. else
  6181. # These are sane defaults that work on at least a few old systems.
  6182. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6183. # Character class describing NM global symbol codes.
  6184. symcode='[BCDEGRST]'
  6185. # Regexp to match symbols that can be accessed directly from C.
  6186. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6187. # Define system-specific variables.
  6188. case $host_os in
  6189. aix*)
  6190. symcode='[BCDT]'
  6191. ;;
  6192. cygwin* | mingw* | pw32* | cegcc*)
  6193. symcode='[ABCDGISTW]'
  6194. ;;
  6195. hpux*)
  6196. if test "$host_cpu" = ia64; then
  6197. symcode='[ABCDEGRST]'
  6198. fi
  6199. ;;
  6200. irix* | nonstopux*)
  6201. symcode='[BCDEGRST]'
  6202. ;;
  6203. osf*)
  6204. symcode='[BCDEGQRST]'
  6205. ;;
  6206. solaris*)
  6207. symcode='[BDRT]'
  6208. ;;
  6209. sco3.2v5*)
  6210. symcode='[DT]'
  6211. ;;
  6212. sysv4.2uw2*)
  6213. symcode='[DT]'
  6214. ;;
  6215. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6216. symcode='[ABDT]'
  6217. ;;
  6218. sysv4)
  6219. symcode='[DFNSTU]'
  6220. ;;
  6221. esac
  6222. # If we're using GNU nm, then use its standard symbol codes.
  6223. case `$NM -V 2>&1` in
  6224. *GNU* | *'with BFD'*)
  6225. symcode='[ABCDGIRSTW]' ;;
  6226. esac
  6227. # Transform an extracted symbol line into a proper C declaration.
  6228. # Some systems (esp. on ia64) link data and code symbols differently,
  6229. # so use this general approach.
  6230. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6231. # Transform an extracted symbol line into symbol name and symbol address
  6232. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6233. 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'"
  6234. # Handle CRLF in mingw tool chain
  6235. opt_cr=
  6236. case $build_os in
  6237. mingw*)
  6238. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6239. ;;
  6240. esac
  6241. # Try without a prefix underscore, then with it.
  6242. for ac_symprfx in "" "_"; do
  6243. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6244. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6245. # Write the raw and C identifiers.
  6246. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6247. # Fake it for dumpbin and say T for any non-static function
  6248. # and D for any global variable.
  6249. # Also find C++ and __fastcall symbols from MSVC++,
  6250. # which start with @ or ?.
  6251. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6252. " {last_section=section; section=\$ 3};"\
  6253. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6254. " \$ 0!~/External *\|/{next};"\
  6255. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6256. " {if(hide[section]) next};"\
  6257. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6258. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6259. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6260. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6261. " ' prfx=^$ac_symprfx"
  6262. else
  6263. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6264. fi
  6265. # Check to see that the pipe works correctly.
  6266. pipe_works=no
  6267. rm -f conftest*
  6268. cat > conftest.$ac_ext <<_LT_EOF
  6269. #ifdef __cplusplus
  6270. extern "C" {
  6271. #endif
  6272. char nm_test_var;
  6273. void nm_test_func(void);
  6274. void nm_test_func(void){}
  6275. #ifdef __cplusplus
  6276. }
  6277. #endif
  6278. int main(){nm_test_var='a';nm_test_func();return(0);}
  6279. _LT_EOF
  6280. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6281. (eval $ac_compile) 2>&5
  6282. ac_status=$?
  6283. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6284. test $ac_status = 0; }; then
  6285. # Now try to grab the symbols.
  6286. nlist=conftest.nm
  6287. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6288. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6289. ac_status=$?
  6290. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6291. test $ac_status = 0; } && test -s "$nlist"; then
  6292. # Try sorting and uniquifying the output.
  6293. if sort "$nlist" | uniq > "$nlist"T; then
  6294. mv -f "$nlist"T "$nlist"
  6295. else
  6296. rm -f "$nlist"T
  6297. fi
  6298. # Make sure that we snagged all the symbols we need.
  6299. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6300. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6301. cat <<_LT_EOF > conftest.$ac_ext
  6302. #ifdef __cplusplus
  6303. extern "C" {
  6304. #endif
  6305. _LT_EOF
  6306. # Now generate the symbol file.
  6307. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6308. cat <<_LT_EOF >> conftest.$ac_ext
  6309. /* The mapping between symbol names and symbols. */
  6310. const struct {
  6311. const char *name;
  6312. void *address;
  6313. }
  6314. lt__PROGRAM__LTX_preloaded_symbols[] =
  6315. {
  6316. { "@PROGRAM@", (void *) 0 },
  6317. _LT_EOF
  6318. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6319. cat <<\_LT_EOF >> conftest.$ac_ext
  6320. {0, (void *) 0}
  6321. };
  6322. /* This works around a problem in FreeBSD linker */
  6323. #ifdef FREEBSD_WORKAROUND
  6324. static const void *lt_preloaded_setup() {
  6325. return lt__PROGRAM__LTX_preloaded_symbols;
  6326. }
  6327. #endif
  6328. #ifdef __cplusplus
  6329. }
  6330. #endif
  6331. _LT_EOF
  6332. # Now try linking the two files.
  6333. mv conftest.$ac_objext conftstm.$ac_objext
  6334. lt_save_LIBS="$LIBS"
  6335. lt_save_CFLAGS="$CFLAGS"
  6336. LIBS="conftstm.$ac_objext"
  6337. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6338. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6339. (eval $ac_link) 2>&5
  6340. ac_status=$?
  6341. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6342. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6343. pipe_works=yes
  6344. fi
  6345. LIBS="$lt_save_LIBS"
  6346. CFLAGS="$lt_save_CFLAGS"
  6347. else
  6348. echo "cannot find nm_test_func in $nlist" >&5
  6349. fi
  6350. else
  6351. echo "cannot find nm_test_var in $nlist" >&5
  6352. fi
  6353. else
  6354. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6355. fi
  6356. else
  6357. echo "$progname: failed program was:" >&5
  6358. cat conftest.$ac_ext >&5
  6359. fi
  6360. rm -rf conftest* conftst*
  6361. # Do not use the global_symbol_pipe unless it works.
  6362. if test "$pipe_works" = yes; then
  6363. break
  6364. else
  6365. lt_cv_sys_global_symbol_pipe=
  6366. fi
  6367. done
  6368. fi
  6369. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6370. lt_cv_sys_global_symbol_to_cdecl=
  6371. fi
  6372. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6374. $as_echo "failed" >&6; }
  6375. else
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6377. $as_echo "ok" >&6; }
  6378. fi
  6379. # Check whether --enable-libtool-lock was given.
  6380. if test "${enable_libtool_lock+set}" = set; then :
  6381. enableval=$enable_libtool_lock;
  6382. fi
  6383. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6384. # Some flags need to be propagated to the compiler or linker for good
  6385. # libtool support.
  6386. case $host in
  6387. ia64-*-hpux*)
  6388. # Find out which ABI we are using.
  6389. echo 'int i;' > conftest.$ac_ext
  6390. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6391. (eval $ac_compile) 2>&5
  6392. ac_status=$?
  6393. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6394. test $ac_status = 0; }; then
  6395. case `/usr/bin/file conftest.$ac_objext` in
  6396. *ELF-32*)
  6397. HPUX_IA64_MODE="32"
  6398. ;;
  6399. *ELF-64*)
  6400. HPUX_IA64_MODE="64"
  6401. ;;
  6402. esac
  6403. fi
  6404. rm -rf conftest*
  6405. ;;
  6406. *-*-irix6*)
  6407. # Find out which ABI we are using.
  6408. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6409. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6410. (eval $ac_compile) 2>&5
  6411. ac_status=$?
  6412. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6413. test $ac_status = 0; }; then
  6414. if test "$lt_cv_prog_gnu_ld" = yes; then
  6415. case `/usr/bin/file conftest.$ac_objext` in
  6416. *32-bit*)
  6417. LD="${LD-ld} -melf32bsmip"
  6418. ;;
  6419. *N32*)
  6420. LD="${LD-ld} -melf32bmipn32"
  6421. ;;
  6422. *64-bit*)
  6423. LD="${LD-ld} -melf64bmip"
  6424. ;;
  6425. esac
  6426. else
  6427. case `/usr/bin/file conftest.$ac_objext` in
  6428. *32-bit*)
  6429. LD="${LD-ld} -32"
  6430. ;;
  6431. *N32*)
  6432. LD="${LD-ld} -n32"
  6433. ;;
  6434. *64-bit*)
  6435. LD="${LD-ld} -64"
  6436. ;;
  6437. esac
  6438. fi
  6439. fi
  6440. rm -rf conftest*
  6441. ;;
  6442. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6443. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6444. # Find out which ABI we are using.
  6445. echo 'int i;' > conftest.$ac_ext
  6446. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6447. (eval $ac_compile) 2>&5
  6448. ac_status=$?
  6449. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6450. test $ac_status = 0; }; then
  6451. case `/usr/bin/file conftest.o` in
  6452. *32-bit*)
  6453. case $host in
  6454. x86_64-*kfreebsd*-gnu)
  6455. LD="${LD-ld} -m elf_i386_fbsd"
  6456. ;;
  6457. x86_64-*linux*)
  6458. case `/usr/bin/file conftest.o` in
  6459. *x86-64*)
  6460. LD="${LD-ld} -m elf32_x86_64"
  6461. ;;
  6462. *)
  6463. LD="${LD-ld} -m elf_i386"
  6464. ;;
  6465. esac
  6466. ;;
  6467. powerpc64le-*linux*)
  6468. LD="${LD-ld} -m elf32lppclinux"
  6469. ;;
  6470. powerpc64-*linux*)
  6471. LD="${LD-ld} -m elf32ppclinux"
  6472. ;;
  6473. s390x-*linux*)
  6474. LD="${LD-ld} -m elf_s390"
  6475. ;;
  6476. sparc64-*linux*)
  6477. LD="${LD-ld} -m elf32_sparc"
  6478. ;;
  6479. esac
  6480. ;;
  6481. *64-bit*)
  6482. case $host in
  6483. x86_64-*kfreebsd*-gnu)
  6484. LD="${LD-ld} -m elf_x86_64_fbsd"
  6485. ;;
  6486. x86_64-*linux*)
  6487. LD="${LD-ld} -m elf_x86_64"
  6488. ;;
  6489. powerpcle-*linux*)
  6490. LD="${LD-ld} -m elf64lppc"
  6491. ;;
  6492. powerpc-*linux*)
  6493. LD="${LD-ld} -m elf64ppc"
  6494. ;;
  6495. s390*-*linux*|s390*-*tpf*)
  6496. LD="${LD-ld} -m elf64_s390"
  6497. ;;
  6498. sparc*-*linux*)
  6499. LD="${LD-ld} -m elf64_sparc"
  6500. ;;
  6501. esac
  6502. ;;
  6503. esac
  6504. fi
  6505. rm -rf conftest*
  6506. ;;
  6507. *-*-sco3.2v5*)
  6508. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6509. SAVE_CFLAGS="$CFLAGS"
  6510. CFLAGS="$CFLAGS -belf"
  6511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6512. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6513. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6514. $as_echo_n "(cached) " >&6
  6515. else
  6516. ac_ext=c
  6517. ac_cpp='$CPP $CPPFLAGS'
  6518. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6519. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6520. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6522. /* end confdefs.h. */
  6523. int
  6524. main ()
  6525. {
  6526. ;
  6527. return 0;
  6528. }
  6529. _ACEOF
  6530. if ac_fn_c_try_link "$LINENO"; then :
  6531. lt_cv_cc_needs_belf=yes
  6532. else
  6533. lt_cv_cc_needs_belf=no
  6534. fi
  6535. rm -f core conftest.err conftest.$ac_objext \
  6536. conftest$ac_exeext conftest.$ac_ext
  6537. ac_ext=c
  6538. ac_cpp='$CPP $CPPFLAGS'
  6539. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6540. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6541. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6542. fi
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6544. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6545. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6546. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6547. CFLAGS="$SAVE_CFLAGS"
  6548. fi
  6549. ;;
  6550. sparc*-*solaris*)
  6551. # Find out which ABI we are using.
  6552. echo 'int i;' > conftest.$ac_ext
  6553. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6554. (eval $ac_compile) 2>&5
  6555. ac_status=$?
  6556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6557. test $ac_status = 0; }; then
  6558. case `/usr/bin/file conftest.o` in
  6559. *64-bit*)
  6560. case $lt_cv_prog_gnu_ld in
  6561. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6562. *)
  6563. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6564. LD="${LD-ld} -64"
  6565. fi
  6566. ;;
  6567. esac
  6568. ;;
  6569. esac
  6570. fi
  6571. rm -rf conftest*
  6572. ;;
  6573. esac
  6574. need_locks="$enable_libtool_lock"
  6575. case $host_os in
  6576. rhapsody* | darwin*)
  6577. if test -n "$ac_tool_prefix"; then
  6578. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6579. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6581. $as_echo_n "checking for $ac_word... " >&6; }
  6582. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6583. $as_echo_n "(cached) " >&6
  6584. else
  6585. if test -n "$DSYMUTIL"; then
  6586. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6587. else
  6588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6589. for as_dir in $PATH
  6590. do
  6591. IFS=$as_save_IFS
  6592. test -z "$as_dir" && as_dir=.
  6593. for ac_exec_ext in '' $ac_executable_extensions; do
  6594. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6595. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6597. break 2
  6598. fi
  6599. done
  6600. done
  6601. IFS=$as_save_IFS
  6602. fi
  6603. fi
  6604. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6605. if test -n "$DSYMUTIL"; then
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6607. $as_echo "$DSYMUTIL" >&6; }
  6608. else
  6609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6610. $as_echo "no" >&6; }
  6611. fi
  6612. fi
  6613. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6614. ac_ct_DSYMUTIL=$DSYMUTIL
  6615. # Extract the first word of "dsymutil", so it can be a program name with args.
  6616. set dummy dsymutil; ac_word=$2
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6618. $as_echo_n "checking for $ac_word... " >&6; }
  6619. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6620. $as_echo_n "(cached) " >&6
  6621. else
  6622. if test -n "$ac_ct_DSYMUTIL"; then
  6623. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6624. else
  6625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6626. for as_dir in $PATH
  6627. do
  6628. IFS=$as_save_IFS
  6629. test -z "$as_dir" && as_dir=.
  6630. for ac_exec_ext in '' $ac_executable_extensions; do
  6631. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6632. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6634. break 2
  6635. fi
  6636. done
  6637. done
  6638. IFS=$as_save_IFS
  6639. fi
  6640. fi
  6641. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6642. if test -n "$ac_ct_DSYMUTIL"; then
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6644. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6645. else
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6647. $as_echo "no" >&6; }
  6648. fi
  6649. if test "x$ac_ct_DSYMUTIL" = x; then
  6650. DSYMUTIL=":"
  6651. else
  6652. case $cross_compiling:$ac_tool_warned in
  6653. yes:)
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6655. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6656. ac_tool_warned=yes ;;
  6657. esac
  6658. DSYMUTIL=$ac_ct_DSYMUTIL
  6659. fi
  6660. else
  6661. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6662. fi
  6663. if test -n "$ac_tool_prefix"; then
  6664. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6665. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6667. $as_echo_n "checking for $ac_word... " >&6; }
  6668. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6669. $as_echo_n "(cached) " >&6
  6670. else
  6671. if test -n "$NMEDIT"; then
  6672. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6673. else
  6674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6675. for as_dir in $PATH
  6676. do
  6677. IFS=$as_save_IFS
  6678. test -z "$as_dir" && as_dir=.
  6679. for ac_exec_ext in '' $ac_executable_extensions; do
  6680. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6681. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6682. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6683. break 2
  6684. fi
  6685. done
  6686. done
  6687. IFS=$as_save_IFS
  6688. fi
  6689. fi
  6690. NMEDIT=$ac_cv_prog_NMEDIT
  6691. if test -n "$NMEDIT"; then
  6692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6693. $as_echo "$NMEDIT" >&6; }
  6694. else
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6696. $as_echo "no" >&6; }
  6697. fi
  6698. fi
  6699. if test -z "$ac_cv_prog_NMEDIT"; then
  6700. ac_ct_NMEDIT=$NMEDIT
  6701. # Extract the first word of "nmedit", so it can be a program name with args.
  6702. set dummy nmedit; ac_word=$2
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6704. $as_echo_n "checking for $ac_word... " >&6; }
  6705. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6706. $as_echo_n "(cached) " >&6
  6707. else
  6708. if test -n "$ac_ct_NMEDIT"; then
  6709. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6710. else
  6711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6712. for as_dir in $PATH
  6713. do
  6714. IFS=$as_save_IFS
  6715. test -z "$as_dir" && as_dir=.
  6716. for ac_exec_ext in '' $ac_executable_extensions; do
  6717. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6718. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6720. break 2
  6721. fi
  6722. done
  6723. done
  6724. IFS=$as_save_IFS
  6725. fi
  6726. fi
  6727. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6728. if test -n "$ac_ct_NMEDIT"; then
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6730. $as_echo "$ac_ct_NMEDIT" >&6; }
  6731. else
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6733. $as_echo "no" >&6; }
  6734. fi
  6735. if test "x$ac_ct_NMEDIT" = x; then
  6736. NMEDIT=":"
  6737. else
  6738. case $cross_compiling:$ac_tool_warned in
  6739. yes:)
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6741. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6742. ac_tool_warned=yes ;;
  6743. esac
  6744. NMEDIT=$ac_ct_NMEDIT
  6745. fi
  6746. else
  6747. NMEDIT="$ac_cv_prog_NMEDIT"
  6748. fi
  6749. if test -n "$ac_tool_prefix"; then
  6750. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6751. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6753. $as_echo_n "checking for $ac_word... " >&6; }
  6754. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6755. $as_echo_n "(cached) " >&6
  6756. else
  6757. if test -n "$LIPO"; then
  6758. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6759. else
  6760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6761. for as_dir in $PATH
  6762. do
  6763. IFS=$as_save_IFS
  6764. test -z "$as_dir" && as_dir=.
  6765. for ac_exec_ext in '' $ac_executable_extensions; do
  6766. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6767. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6769. break 2
  6770. fi
  6771. done
  6772. done
  6773. IFS=$as_save_IFS
  6774. fi
  6775. fi
  6776. LIPO=$ac_cv_prog_LIPO
  6777. if test -n "$LIPO"; then
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6779. $as_echo "$LIPO" >&6; }
  6780. else
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6782. $as_echo "no" >&6; }
  6783. fi
  6784. fi
  6785. if test -z "$ac_cv_prog_LIPO"; then
  6786. ac_ct_LIPO=$LIPO
  6787. # Extract the first word of "lipo", so it can be a program name with args.
  6788. set dummy lipo; ac_word=$2
  6789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6790. $as_echo_n "checking for $ac_word... " >&6; }
  6791. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6792. $as_echo_n "(cached) " >&6
  6793. else
  6794. if test -n "$ac_ct_LIPO"; then
  6795. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6796. else
  6797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6798. for as_dir in $PATH
  6799. do
  6800. IFS=$as_save_IFS
  6801. test -z "$as_dir" && as_dir=.
  6802. for ac_exec_ext in '' $ac_executable_extensions; do
  6803. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6804. ac_cv_prog_ac_ct_LIPO="lipo"
  6805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6806. break 2
  6807. fi
  6808. done
  6809. done
  6810. IFS=$as_save_IFS
  6811. fi
  6812. fi
  6813. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6814. if test -n "$ac_ct_LIPO"; then
  6815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6816. $as_echo "$ac_ct_LIPO" >&6; }
  6817. else
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6819. $as_echo "no" >&6; }
  6820. fi
  6821. if test "x$ac_ct_LIPO" = x; then
  6822. LIPO=":"
  6823. else
  6824. case $cross_compiling:$ac_tool_warned in
  6825. yes:)
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6827. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6828. ac_tool_warned=yes ;;
  6829. esac
  6830. LIPO=$ac_ct_LIPO
  6831. fi
  6832. else
  6833. LIPO="$ac_cv_prog_LIPO"
  6834. fi
  6835. if test -n "$ac_tool_prefix"; then
  6836. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6837. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6839. $as_echo_n "checking for $ac_word... " >&6; }
  6840. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6841. $as_echo_n "(cached) " >&6
  6842. else
  6843. if test -n "$OTOOL"; then
  6844. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6845. else
  6846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6847. for as_dir in $PATH
  6848. do
  6849. IFS=$as_save_IFS
  6850. test -z "$as_dir" && as_dir=.
  6851. for ac_exec_ext in '' $ac_executable_extensions; do
  6852. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6853. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6855. break 2
  6856. fi
  6857. done
  6858. done
  6859. IFS=$as_save_IFS
  6860. fi
  6861. fi
  6862. OTOOL=$ac_cv_prog_OTOOL
  6863. if test -n "$OTOOL"; then
  6864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6865. $as_echo "$OTOOL" >&6; }
  6866. else
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6868. $as_echo "no" >&6; }
  6869. fi
  6870. fi
  6871. if test -z "$ac_cv_prog_OTOOL"; then
  6872. ac_ct_OTOOL=$OTOOL
  6873. # Extract the first word of "otool", so it can be a program name with args.
  6874. set dummy otool; ac_word=$2
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6876. $as_echo_n "checking for $ac_word... " >&6; }
  6877. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6878. $as_echo_n "(cached) " >&6
  6879. else
  6880. if test -n "$ac_ct_OTOOL"; then
  6881. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6882. else
  6883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6884. for as_dir in $PATH
  6885. do
  6886. IFS=$as_save_IFS
  6887. test -z "$as_dir" && as_dir=.
  6888. for ac_exec_ext in '' $ac_executable_extensions; do
  6889. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6890. ac_cv_prog_ac_ct_OTOOL="otool"
  6891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6892. break 2
  6893. fi
  6894. done
  6895. done
  6896. IFS=$as_save_IFS
  6897. fi
  6898. fi
  6899. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6900. if test -n "$ac_ct_OTOOL"; then
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6902. $as_echo "$ac_ct_OTOOL" >&6; }
  6903. else
  6904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6905. $as_echo "no" >&6; }
  6906. fi
  6907. if test "x$ac_ct_OTOOL" = x; then
  6908. OTOOL=":"
  6909. else
  6910. case $cross_compiling:$ac_tool_warned in
  6911. yes:)
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6913. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6914. ac_tool_warned=yes ;;
  6915. esac
  6916. OTOOL=$ac_ct_OTOOL
  6917. fi
  6918. else
  6919. OTOOL="$ac_cv_prog_OTOOL"
  6920. fi
  6921. if test -n "$ac_tool_prefix"; then
  6922. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6923. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6925. $as_echo_n "checking for $ac_word... " >&6; }
  6926. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6927. $as_echo_n "(cached) " >&6
  6928. else
  6929. if test -n "$OTOOL64"; then
  6930. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6931. else
  6932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6933. for as_dir in $PATH
  6934. do
  6935. IFS=$as_save_IFS
  6936. test -z "$as_dir" && as_dir=.
  6937. for ac_exec_ext in '' $ac_executable_extensions; do
  6938. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6939. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6940. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6941. break 2
  6942. fi
  6943. done
  6944. done
  6945. IFS=$as_save_IFS
  6946. fi
  6947. fi
  6948. OTOOL64=$ac_cv_prog_OTOOL64
  6949. if test -n "$OTOOL64"; then
  6950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6951. $as_echo "$OTOOL64" >&6; }
  6952. else
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6954. $as_echo "no" >&6; }
  6955. fi
  6956. fi
  6957. if test -z "$ac_cv_prog_OTOOL64"; then
  6958. ac_ct_OTOOL64=$OTOOL64
  6959. # Extract the first word of "otool64", so it can be a program name with args.
  6960. set dummy otool64; ac_word=$2
  6961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6962. $as_echo_n "checking for $ac_word... " >&6; }
  6963. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6964. $as_echo_n "(cached) " >&6
  6965. else
  6966. if test -n "$ac_ct_OTOOL64"; then
  6967. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6968. else
  6969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6970. for as_dir in $PATH
  6971. do
  6972. IFS=$as_save_IFS
  6973. test -z "$as_dir" && as_dir=.
  6974. for ac_exec_ext in '' $ac_executable_extensions; do
  6975. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6976. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6977. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6978. break 2
  6979. fi
  6980. done
  6981. done
  6982. IFS=$as_save_IFS
  6983. fi
  6984. fi
  6985. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6986. if test -n "$ac_ct_OTOOL64"; then
  6987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6988. $as_echo "$ac_ct_OTOOL64" >&6; }
  6989. else
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6991. $as_echo "no" >&6; }
  6992. fi
  6993. if test "x$ac_ct_OTOOL64" = x; then
  6994. OTOOL64=":"
  6995. else
  6996. case $cross_compiling:$ac_tool_warned in
  6997. yes:)
  6998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6999. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7000. ac_tool_warned=yes ;;
  7001. esac
  7002. OTOOL64=$ac_ct_OTOOL64
  7003. fi
  7004. else
  7005. OTOOL64="$ac_cv_prog_OTOOL64"
  7006. fi
  7007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7008. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7009. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  7010. $as_echo_n "(cached) " >&6
  7011. else
  7012. lt_cv_apple_cc_single_mod=no
  7013. if test -z "${LT_MULTI_MODULE}"; then
  7014. # By default we will add the -single_module flag. You can override
  7015. # by either setting the environment variable LT_MULTI_MODULE
  7016. # non-empty at configure time, or by adding -multi_module to the
  7017. # link flags.
  7018. rm -rf libconftest.dylib*
  7019. echo "int foo(void){return 1;}" > conftest.c
  7020. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7021. -dynamiclib -Wl,-single_module conftest.c" >&5
  7022. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7023. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7024. _lt_result=$?
  7025. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7026. lt_cv_apple_cc_single_mod=yes
  7027. else
  7028. cat conftest.err >&5
  7029. fi
  7030. rm -rf libconftest.dylib*
  7031. rm -f conftest.*
  7032. fi
  7033. fi
  7034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7035. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7037. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7038. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  7039. $as_echo_n "(cached) " >&6
  7040. else
  7041. lt_cv_ld_exported_symbols_list=no
  7042. save_LDFLAGS=$LDFLAGS
  7043. echo "_main" > conftest.sym
  7044. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7046. /* end confdefs.h. */
  7047. int
  7048. main ()
  7049. {
  7050. ;
  7051. return 0;
  7052. }
  7053. _ACEOF
  7054. if ac_fn_c_try_link "$LINENO"; then :
  7055. lt_cv_ld_exported_symbols_list=yes
  7056. else
  7057. lt_cv_ld_exported_symbols_list=no
  7058. fi
  7059. rm -f core conftest.err conftest.$ac_objext \
  7060. conftest$ac_exeext conftest.$ac_ext
  7061. LDFLAGS="$save_LDFLAGS"
  7062. fi
  7063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7064. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7066. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7067. if test "${lt_cv_ld_force_load+set}" = set; then :
  7068. $as_echo_n "(cached) " >&6
  7069. else
  7070. lt_cv_ld_force_load=no
  7071. cat > conftest.c << _LT_EOF
  7072. int forced_loaded() { return 2;}
  7073. _LT_EOF
  7074. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7075. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7076. echo "$AR cru libconftest.a conftest.o" >&5
  7077. $AR cru libconftest.a conftest.o 2>&5
  7078. cat > conftest.c << _LT_EOF
  7079. int main() { return 0;}
  7080. _LT_EOF
  7081. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7082. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7083. _lt_result=$?
  7084. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7085. lt_cv_ld_force_load=yes
  7086. else
  7087. cat conftest.err >&5
  7088. fi
  7089. rm -f conftest.err libconftest.a conftest conftest.c
  7090. rm -rf conftest.dSYM
  7091. fi
  7092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7093. $as_echo "$lt_cv_ld_force_load" >&6; }
  7094. case $host_os in
  7095. rhapsody* | darwin1.[012])
  7096. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7097. darwin1.*)
  7098. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7099. darwin*) # darwin 5.x on
  7100. # if running on 10.5 or later, the deployment target defaults
  7101. # to the OS version, if on x86, and 10.4, the deployment
  7102. # target defaults to 10.4. Don't you love it?
  7103. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7104. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7105. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7106. 10.[012][,.]*)
  7107. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7108. 10.*)
  7109. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7110. esac
  7111. ;;
  7112. esac
  7113. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7114. _lt_dar_single_mod='$single_module'
  7115. fi
  7116. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7117. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7118. else
  7119. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7120. fi
  7121. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7122. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7123. else
  7124. _lt_dsymutil=
  7125. fi
  7126. ;;
  7127. esac
  7128. ac_ext=c
  7129. ac_cpp='$CPP $CPPFLAGS'
  7130. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7131. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7132. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7134. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7135. # On Suns, sometimes $CPP names a directory.
  7136. if test -n "$CPP" && test -d "$CPP"; then
  7137. CPP=
  7138. fi
  7139. if test -z "$CPP"; then
  7140. if test "${ac_cv_prog_CPP+set}" = set; then :
  7141. $as_echo_n "(cached) " >&6
  7142. else
  7143. # Double quotes because CPP needs to be expanded
  7144. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7145. do
  7146. ac_preproc_ok=false
  7147. for ac_c_preproc_warn_flag in '' yes
  7148. do
  7149. # Use a header file that comes with gcc, so configuring glibc
  7150. # with a fresh cross-compiler works.
  7151. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7152. # <limits.h> exists even on freestanding compilers.
  7153. # On the NeXT, cc -E runs the code through the compiler's parser,
  7154. # not just through cpp. "Syntax error" is here to catch this case.
  7155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7156. /* end confdefs.h. */
  7157. #ifdef __STDC__
  7158. # include <limits.h>
  7159. #else
  7160. # include <assert.h>
  7161. #endif
  7162. Syntax error
  7163. _ACEOF
  7164. if ac_fn_c_try_cpp "$LINENO"; then :
  7165. else
  7166. # Broken: fails on valid input.
  7167. continue
  7168. fi
  7169. rm -f conftest.err conftest.$ac_ext
  7170. # OK, works on sane cases. Now check whether nonexistent headers
  7171. # can be detected and how.
  7172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7173. /* end confdefs.h. */
  7174. #include <ac_nonexistent.h>
  7175. _ACEOF
  7176. if ac_fn_c_try_cpp "$LINENO"; then :
  7177. # Broken: success on invalid input.
  7178. continue
  7179. else
  7180. # Passes both tests.
  7181. ac_preproc_ok=:
  7182. break
  7183. fi
  7184. rm -f conftest.err conftest.$ac_ext
  7185. done
  7186. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7187. rm -f conftest.err conftest.$ac_ext
  7188. if $ac_preproc_ok; then :
  7189. break
  7190. fi
  7191. done
  7192. ac_cv_prog_CPP=$CPP
  7193. fi
  7194. CPP=$ac_cv_prog_CPP
  7195. else
  7196. ac_cv_prog_CPP=$CPP
  7197. fi
  7198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7199. $as_echo "$CPP" >&6; }
  7200. ac_preproc_ok=false
  7201. for ac_c_preproc_warn_flag in '' yes
  7202. do
  7203. # Use a header file that comes with gcc, so configuring glibc
  7204. # with a fresh cross-compiler works.
  7205. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7206. # <limits.h> exists even on freestanding compilers.
  7207. # On the NeXT, cc -E runs the code through the compiler's parser,
  7208. # not just through cpp. "Syntax error" is here to catch this case.
  7209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7210. /* end confdefs.h. */
  7211. #ifdef __STDC__
  7212. # include <limits.h>
  7213. #else
  7214. # include <assert.h>
  7215. #endif
  7216. Syntax error
  7217. _ACEOF
  7218. if ac_fn_c_try_cpp "$LINENO"; then :
  7219. else
  7220. # Broken: fails on valid input.
  7221. continue
  7222. fi
  7223. rm -f conftest.err conftest.$ac_ext
  7224. # OK, works on sane cases. Now check whether nonexistent headers
  7225. # can be detected and how.
  7226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7227. /* end confdefs.h. */
  7228. #include <ac_nonexistent.h>
  7229. _ACEOF
  7230. if ac_fn_c_try_cpp "$LINENO"; then :
  7231. # Broken: success on invalid input.
  7232. continue
  7233. else
  7234. # Passes both tests.
  7235. ac_preproc_ok=:
  7236. break
  7237. fi
  7238. rm -f conftest.err conftest.$ac_ext
  7239. done
  7240. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7241. rm -f conftest.err conftest.$ac_ext
  7242. if $ac_preproc_ok; then :
  7243. else
  7244. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7245. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7246. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  7247. See \`config.log' for more details." "$LINENO" 5; }
  7248. fi
  7249. ac_ext=c
  7250. ac_cpp='$CPP $CPPFLAGS'
  7251. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7252. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7253. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7255. $as_echo_n "checking for ANSI C header files... " >&6; }
  7256. if test "${ac_cv_header_stdc+set}" = set; then :
  7257. $as_echo_n "(cached) " >&6
  7258. else
  7259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7260. /* end confdefs.h. */
  7261. #include <stdlib.h>
  7262. #include <stdarg.h>
  7263. #include <string.h>
  7264. #include <float.h>
  7265. int
  7266. main ()
  7267. {
  7268. ;
  7269. return 0;
  7270. }
  7271. _ACEOF
  7272. if ac_fn_c_try_compile "$LINENO"; then :
  7273. ac_cv_header_stdc=yes
  7274. else
  7275. ac_cv_header_stdc=no
  7276. fi
  7277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7278. if test $ac_cv_header_stdc = yes; then
  7279. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7281. /* end confdefs.h. */
  7282. #include <string.h>
  7283. _ACEOF
  7284. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7285. $EGREP "memchr" >/dev/null 2>&1; then :
  7286. else
  7287. ac_cv_header_stdc=no
  7288. fi
  7289. rm -f conftest*
  7290. fi
  7291. if test $ac_cv_header_stdc = yes; then
  7292. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7294. /* end confdefs.h. */
  7295. #include <stdlib.h>
  7296. _ACEOF
  7297. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7298. $EGREP "free" >/dev/null 2>&1; then :
  7299. else
  7300. ac_cv_header_stdc=no
  7301. fi
  7302. rm -f conftest*
  7303. fi
  7304. if test $ac_cv_header_stdc = yes; then
  7305. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7306. if test "$cross_compiling" = yes; then :
  7307. :
  7308. else
  7309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7310. /* end confdefs.h. */
  7311. #include <ctype.h>
  7312. #include <stdlib.h>
  7313. #if ((' ' & 0x0FF) == 0x020)
  7314. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7315. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7316. #else
  7317. # define ISLOWER(c) \
  7318. (('a' <= (c) && (c) <= 'i') \
  7319. || ('j' <= (c) && (c) <= 'r') \
  7320. || ('s' <= (c) && (c) <= 'z'))
  7321. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7322. #endif
  7323. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7324. int
  7325. main ()
  7326. {
  7327. int i;
  7328. for (i = 0; i < 256; i++)
  7329. if (XOR (islower (i), ISLOWER (i))
  7330. || toupper (i) != TOUPPER (i))
  7331. return 2;
  7332. return 0;
  7333. }
  7334. _ACEOF
  7335. if ac_fn_c_try_run "$LINENO"; then :
  7336. else
  7337. ac_cv_header_stdc=no
  7338. fi
  7339. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7340. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7341. fi
  7342. fi
  7343. fi
  7344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7345. $as_echo "$ac_cv_header_stdc" >&6; }
  7346. if test $ac_cv_header_stdc = yes; then
  7347. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7348. fi
  7349. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7350. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7351. inttypes.h stdint.h unistd.h
  7352. do :
  7353. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7354. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7355. "
  7356. eval as_val=\$$as_ac_Header
  7357. if test "x$as_val" = x""yes; then :
  7358. cat >>confdefs.h <<_ACEOF
  7359. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7360. _ACEOF
  7361. fi
  7362. done
  7363. for ac_header in dlfcn.h
  7364. do :
  7365. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7366. "
  7367. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  7368. cat >>confdefs.h <<_ACEOF
  7369. #define HAVE_DLFCN_H 1
  7370. _ACEOF
  7371. fi
  7372. done
  7373. # Set options
  7374. enable_dlopen=no
  7375. enable_win32_dll=no
  7376. # Check whether --enable-shared was given.
  7377. if test "${enable_shared+set}" = set; then :
  7378. enableval=$enable_shared; p=${PACKAGE-default}
  7379. case $enableval in
  7380. yes) enable_shared=yes ;;
  7381. no) enable_shared=no ;;
  7382. *)
  7383. enable_shared=no
  7384. # Look at the argument we got. We use all the common list separators.
  7385. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7386. for pkg in $enableval; do
  7387. IFS="$lt_save_ifs"
  7388. if test "X$pkg" = "X$p"; then
  7389. enable_shared=yes
  7390. fi
  7391. done
  7392. IFS="$lt_save_ifs"
  7393. ;;
  7394. esac
  7395. else
  7396. enable_shared=yes
  7397. fi
  7398. # Check whether --enable-static was given.
  7399. if test "${enable_static+set}" = set; then :
  7400. enableval=$enable_static; p=${PACKAGE-default}
  7401. case $enableval in
  7402. yes) enable_static=yes ;;
  7403. no) enable_static=no ;;
  7404. *)
  7405. enable_static=no
  7406. # Look at the argument we got. We use all the common list separators.
  7407. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7408. for pkg in $enableval; do
  7409. IFS="$lt_save_ifs"
  7410. if test "X$pkg" = "X$p"; then
  7411. enable_static=yes
  7412. fi
  7413. done
  7414. IFS="$lt_save_ifs"
  7415. ;;
  7416. esac
  7417. else
  7418. enable_static=yes
  7419. fi
  7420. # Check whether --with-pic was given.
  7421. if test "${with_pic+set}" = set; then :
  7422. withval=$with_pic; pic_mode="$withval"
  7423. else
  7424. pic_mode=default
  7425. fi
  7426. test -z "$pic_mode" && pic_mode=default
  7427. # Check whether --enable-fast-install was given.
  7428. if test "${enable_fast_install+set}" = set; then :
  7429. enableval=$enable_fast_install; p=${PACKAGE-default}
  7430. case $enableval in
  7431. yes) enable_fast_install=yes ;;
  7432. no) enable_fast_install=no ;;
  7433. *)
  7434. enable_fast_install=no
  7435. # Look at the argument we got. We use all the common list separators.
  7436. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7437. for pkg in $enableval; do
  7438. IFS="$lt_save_ifs"
  7439. if test "X$pkg" = "X$p"; then
  7440. enable_fast_install=yes
  7441. fi
  7442. done
  7443. IFS="$lt_save_ifs"
  7444. ;;
  7445. esac
  7446. else
  7447. enable_fast_install=yes
  7448. fi
  7449. # This can be used to rebuild libtool when needed
  7450. LIBTOOL_DEPS="$ltmain"
  7451. # Always use our own libtool.
  7452. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7453. test -z "$LN_S" && LN_S="ln -s"
  7454. if test -n "${ZSH_VERSION+set}" ; then
  7455. setopt NO_GLOB_SUBST
  7456. fi
  7457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7458. $as_echo_n "checking for objdir... " >&6; }
  7459. if test "${lt_cv_objdir+set}" = set; then :
  7460. $as_echo_n "(cached) " >&6
  7461. else
  7462. rm -f .libs 2>/dev/null
  7463. mkdir .libs 2>/dev/null
  7464. if test -d .libs; then
  7465. lt_cv_objdir=.libs
  7466. else
  7467. # MS-DOS does not allow filenames that begin with a dot.
  7468. lt_cv_objdir=_libs
  7469. fi
  7470. rmdir .libs 2>/dev/null
  7471. fi
  7472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7473. $as_echo "$lt_cv_objdir" >&6; }
  7474. objdir=$lt_cv_objdir
  7475. cat >>confdefs.h <<_ACEOF
  7476. #define LT_OBJDIR "$lt_cv_objdir/"
  7477. _ACEOF
  7478. case $host_os in
  7479. aix3*)
  7480. # AIX sometimes has problems with the GCC collect2 program. For some
  7481. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7482. # vanish in a puff of smoke.
  7483. if test "X${COLLECT_NAMES+set}" != Xset; then
  7484. COLLECT_NAMES=
  7485. export COLLECT_NAMES
  7486. fi
  7487. ;;
  7488. esac
  7489. # Global variables:
  7490. ofile=libtool
  7491. can_build_shared=yes
  7492. # All known linkers require a `.a' archive for static linking (except MSVC,
  7493. # which needs '.lib').
  7494. libext=a
  7495. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7496. old_CC="$CC"
  7497. old_CFLAGS="$CFLAGS"
  7498. # Set sane defaults for various variables
  7499. test -z "$CC" && CC=cc
  7500. test -z "$LTCC" && LTCC=$CC
  7501. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7502. test -z "$LD" && LD=ld
  7503. test -z "$ac_objext" && ac_objext=o
  7504. for cc_temp in $compiler""; do
  7505. case $cc_temp in
  7506. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7507. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7508. \-*) ;;
  7509. *) break;;
  7510. esac
  7511. done
  7512. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7513. # Only perform the check for file, if the check method requires it
  7514. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7515. case $deplibs_check_method in
  7516. file_magic*)
  7517. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7519. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7520. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7521. $as_echo_n "(cached) " >&6
  7522. else
  7523. case $MAGIC_CMD in
  7524. [\\/*] | ?:[\\/]*)
  7525. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7526. ;;
  7527. *)
  7528. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7529. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7530. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7531. for ac_dir in $ac_dummy; do
  7532. IFS="$lt_save_ifs"
  7533. test -z "$ac_dir" && ac_dir=.
  7534. if test -f $ac_dir/${ac_tool_prefix}file; then
  7535. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7536. if test -n "$file_magic_test_file"; then
  7537. case $deplibs_check_method in
  7538. "file_magic "*)
  7539. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7540. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7541. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7542. $EGREP "$file_magic_regex" > /dev/null; then
  7543. :
  7544. else
  7545. cat <<_LT_EOF 1>&2
  7546. *** Warning: the command libtool uses to detect shared libraries,
  7547. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7548. *** The result is that libtool may fail to recognize shared libraries
  7549. *** as such. This will affect the creation of libtool libraries that
  7550. *** depend on shared libraries, but programs linked with such libtool
  7551. *** libraries will work regardless of this problem. Nevertheless, you
  7552. *** may want to report the problem to your system manager and/or to
  7553. *** bug-libtool@gnu.org
  7554. _LT_EOF
  7555. fi ;;
  7556. esac
  7557. fi
  7558. break
  7559. fi
  7560. done
  7561. IFS="$lt_save_ifs"
  7562. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7563. ;;
  7564. esac
  7565. fi
  7566. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7567. if test -n "$MAGIC_CMD"; then
  7568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7569. $as_echo "$MAGIC_CMD" >&6; }
  7570. else
  7571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7572. $as_echo "no" >&6; }
  7573. fi
  7574. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7575. if test -n "$ac_tool_prefix"; then
  7576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7577. $as_echo_n "checking for file... " >&6; }
  7578. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7579. $as_echo_n "(cached) " >&6
  7580. else
  7581. case $MAGIC_CMD in
  7582. [\\/*] | ?:[\\/]*)
  7583. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7584. ;;
  7585. *)
  7586. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7587. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7588. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7589. for ac_dir in $ac_dummy; do
  7590. IFS="$lt_save_ifs"
  7591. test -z "$ac_dir" && ac_dir=.
  7592. if test -f $ac_dir/file; then
  7593. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7594. if test -n "$file_magic_test_file"; then
  7595. case $deplibs_check_method in
  7596. "file_magic "*)
  7597. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7598. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7599. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7600. $EGREP "$file_magic_regex" > /dev/null; then
  7601. :
  7602. else
  7603. cat <<_LT_EOF 1>&2
  7604. *** Warning: the command libtool uses to detect shared libraries,
  7605. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7606. *** The result is that libtool may fail to recognize shared libraries
  7607. *** as such. This will affect the creation of libtool libraries that
  7608. *** depend on shared libraries, but programs linked with such libtool
  7609. *** libraries will work regardless of this problem. Nevertheless, you
  7610. *** may want to report the problem to your system manager and/or to
  7611. *** bug-libtool@gnu.org
  7612. _LT_EOF
  7613. fi ;;
  7614. esac
  7615. fi
  7616. break
  7617. fi
  7618. done
  7619. IFS="$lt_save_ifs"
  7620. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7621. ;;
  7622. esac
  7623. fi
  7624. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7625. if test -n "$MAGIC_CMD"; then
  7626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7627. $as_echo "$MAGIC_CMD" >&6; }
  7628. else
  7629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7630. $as_echo "no" >&6; }
  7631. fi
  7632. else
  7633. MAGIC_CMD=:
  7634. fi
  7635. fi
  7636. fi
  7637. ;;
  7638. esac
  7639. # Use C for the default configuration in the libtool script
  7640. lt_save_CC="$CC"
  7641. ac_ext=c
  7642. ac_cpp='$CPP $CPPFLAGS'
  7643. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7644. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7645. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7646. # Source file extension for C test sources.
  7647. ac_ext=c
  7648. # Object file extension for compiled C test sources.
  7649. objext=o
  7650. objext=$objext
  7651. # Code to be used in simple compile tests
  7652. lt_simple_compile_test_code="int some_variable = 0;"
  7653. # Code to be used in simple link tests
  7654. lt_simple_link_test_code='int main(){return(0);}'
  7655. # If no C compiler was specified, use CC.
  7656. LTCC=${LTCC-"$CC"}
  7657. # If no C compiler flags were specified, use CFLAGS.
  7658. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7659. # Allow CC to be a program name with arguments.
  7660. compiler=$CC
  7661. # Save the default compiler, since it gets overwritten when the other
  7662. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7663. compiler_DEFAULT=$CC
  7664. # save warnings/boilerplate of simple test code
  7665. ac_outfile=conftest.$ac_objext
  7666. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7667. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7668. _lt_compiler_boilerplate=`cat conftest.err`
  7669. $RM conftest*
  7670. ac_outfile=conftest.$ac_objext
  7671. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7672. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7673. _lt_linker_boilerplate=`cat conftest.err`
  7674. $RM -r conftest*
  7675. ## CAVEAT EMPTOR:
  7676. ## There is no encapsulation within the following macros, do not change
  7677. ## the running order or otherwise move them around unless you know exactly
  7678. ## what you are doing...
  7679. if test -n "$compiler"; then
  7680. lt_prog_compiler_no_builtin_flag=
  7681. if test "$GCC" = yes; then
  7682. case $cc_basename in
  7683. nvcc*)
  7684. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7685. *)
  7686. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7687. esac
  7688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7689. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7690. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7691. $as_echo_n "(cached) " >&6
  7692. else
  7693. lt_cv_prog_compiler_rtti_exceptions=no
  7694. ac_outfile=conftest.$ac_objext
  7695. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7696. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7697. # Insert the option either (1) after the last *FLAGS variable, or
  7698. # (2) before a word containing "conftest.", or (3) at the end.
  7699. # Note that $ac_compile itself does not contain backslashes and begins
  7700. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7701. # The option is referenced via a variable to avoid confusing sed.
  7702. lt_compile=`echo "$ac_compile" | $SED \
  7703. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7704. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7705. -e 's:$: $lt_compiler_flag:'`
  7706. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7707. (eval "$lt_compile" 2>conftest.err)
  7708. ac_status=$?
  7709. cat conftest.err >&5
  7710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7711. if (exit $ac_status) && test -s "$ac_outfile"; then
  7712. # The compiler can only warn and ignore the option if not recognized
  7713. # So say no if there are warnings other than the usual output.
  7714. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7715. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7716. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7717. lt_cv_prog_compiler_rtti_exceptions=yes
  7718. fi
  7719. fi
  7720. $RM conftest*
  7721. fi
  7722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7723. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7724. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7725. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7726. else
  7727. :
  7728. fi
  7729. fi
  7730. lt_prog_compiler_wl=
  7731. lt_prog_compiler_pic=
  7732. lt_prog_compiler_static=
  7733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7734. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7735. if test "$GCC" = yes; then
  7736. lt_prog_compiler_wl='-Wl,'
  7737. lt_prog_compiler_static='-static'
  7738. case $host_os in
  7739. aix*)
  7740. # All AIX code is PIC.
  7741. if test "$host_cpu" = ia64; then
  7742. # AIX 5 now supports IA64 processor
  7743. lt_prog_compiler_static='-Bstatic'
  7744. fi
  7745. lt_prog_compiler_pic='-fPIC'
  7746. ;;
  7747. amigaos*)
  7748. case $host_cpu in
  7749. powerpc)
  7750. # see comment about AmigaOS4 .so support
  7751. lt_prog_compiler_pic='-fPIC'
  7752. ;;
  7753. m68k)
  7754. # FIXME: we need at least 68020 code to build shared libraries, but
  7755. # adding the `-m68020' flag to GCC prevents building anything better,
  7756. # like `-m68040'.
  7757. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7758. ;;
  7759. esac
  7760. ;;
  7761. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7762. # PIC is the default for these OSes.
  7763. ;;
  7764. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7765. # This hack is so that the source file can tell whether it is being
  7766. # built for inclusion in a dll (and should export symbols for example).
  7767. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7768. # (--disable-auto-import) libraries
  7769. lt_prog_compiler_pic='-DDLL_EXPORT'
  7770. ;;
  7771. darwin* | rhapsody*)
  7772. # PIC is the default on this platform
  7773. # Common symbols not allowed in MH_DYLIB files
  7774. lt_prog_compiler_pic='-fno-common'
  7775. ;;
  7776. haiku*)
  7777. # PIC is the default for Haiku.
  7778. # The "-static" flag exists, but is broken.
  7779. lt_prog_compiler_static=
  7780. ;;
  7781. hpux*)
  7782. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7783. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7784. # sets the default TLS model and affects inlining.
  7785. case $host_cpu in
  7786. hppa*64*)
  7787. # +Z the default
  7788. ;;
  7789. *)
  7790. lt_prog_compiler_pic='-fPIC'
  7791. ;;
  7792. esac
  7793. ;;
  7794. interix[3-9]*)
  7795. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7796. # Instead, we relocate shared libraries at runtime.
  7797. ;;
  7798. msdosdjgpp*)
  7799. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7800. # on systems that don't support them.
  7801. lt_prog_compiler_can_build_shared=no
  7802. enable_shared=no
  7803. ;;
  7804. *nto* | *qnx*)
  7805. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7806. # it will coredump.
  7807. lt_prog_compiler_pic='-fPIC -shared'
  7808. ;;
  7809. sysv4*MP*)
  7810. if test -d /usr/nec; then
  7811. lt_prog_compiler_pic=-Kconform_pic
  7812. fi
  7813. ;;
  7814. *)
  7815. lt_prog_compiler_pic='-fPIC'
  7816. ;;
  7817. esac
  7818. case $cc_basename in
  7819. nvcc*) # Cuda Compiler Driver 2.2
  7820. lt_prog_compiler_wl='-Xlinker '
  7821. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7822. ;;
  7823. esac
  7824. else
  7825. # PORTME Check for flag to pass linker flags through the system compiler.
  7826. case $host_os in
  7827. aix*)
  7828. lt_prog_compiler_wl='-Wl,'
  7829. if test "$host_cpu" = ia64; then
  7830. # AIX 5 now supports IA64 processor
  7831. lt_prog_compiler_static='-Bstatic'
  7832. else
  7833. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7834. fi
  7835. ;;
  7836. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7837. # This hack is so that the source file can tell whether it is being
  7838. # built for inclusion in a dll (and should export symbols for example).
  7839. lt_prog_compiler_pic='-DDLL_EXPORT'
  7840. ;;
  7841. hpux9* | hpux10* | hpux11*)
  7842. lt_prog_compiler_wl='-Wl,'
  7843. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7844. # not for PA HP-UX.
  7845. case $host_cpu in
  7846. hppa*64*|ia64*)
  7847. # +Z the default
  7848. ;;
  7849. *)
  7850. lt_prog_compiler_pic='+Z'
  7851. ;;
  7852. esac
  7853. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7854. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7855. ;;
  7856. irix5* | irix6* | nonstopux*)
  7857. lt_prog_compiler_wl='-Wl,'
  7858. # PIC (with -KPIC) is the default.
  7859. lt_prog_compiler_static='-non_shared'
  7860. ;;
  7861. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7862. case $cc_basename in
  7863. # old Intel for x86_64 which still supported -KPIC.
  7864. ecc*)
  7865. lt_prog_compiler_wl='-Wl,'
  7866. lt_prog_compiler_pic='-KPIC'
  7867. lt_prog_compiler_static='-static'
  7868. ;;
  7869. # icc used to be incompatible with GCC.
  7870. # ICC 10 doesn't accept -KPIC any more.
  7871. icc* | ifort*)
  7872. lt_prog_compiler_wl='-Wl,'
  7873. lt_prog_compiler_pic='-fPIC'
  7874. lt_prog_compiler_static='-static'
  7875. ;;
  7876. # Lahey Fortran 8.1.
  7877. lf95*)
  7878. lt_prog_compiler_wl='-Wl,'
  7879. lt_prog_compiler_pic='--shared'
  7880. lt_prog_compiler_static='--static'
  7881. ;;
  7882. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7883. # Portland Group compilers (*not* the Pentium gcc compiler,
  7884. # which looks to be a dead project)
  7885. lt_prog_compiler_wl='-Wl,'
  7886. lt_prog_compiler_pic='-fpic'
  7887. lt_prog_compiler_static='-Bstatic'
  7888. ;;
  7889. ccc*)
  7890. lt_prog_compiler_wl='-Wl,'
  7891. # All Alpha code is PIC.
  7892. lt_prog_compiler_static='-non_shared'
  7893. ;;
  7894. xl* | bgxl* | bgf* | mpixl*)
  7895. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7896. lt_prog_compiler_wl='-Wl,'
  7897. lt_prog_compiler_pic='-qpic'
  7898. lt_prog_compiler_static='-qstaticlink'
  7899. ;;
  7900. *)
  7901. case `$CC -V 2>&1 | sed 5q` in
  7902. *Sun\ F* | *Sun*Fortran*)
  7903. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7904. lt_prog_compiler_pic='-KPIC'
  7905. lt_prog_compiler_static='-Bstatic'
  7906. lt_prog_compiler_wl=''
  7907. ;;
  7908. *Sun\ C*)
  7909. # Sun C 5.9
  7910. lt_prog_compiler_pic='-KPIC'
  7911. lt_prog_compiler_static='-Bstatic'
  7912. lt_prog_compiler_wl='-Wl,'
  7913. ;;
  7914. esac
  7915. ;;
  7916. esac
  7917. ;;
  7918. newsos6)
  7919. lt_prog_compiler_pic='-KPIC'
  7920. lt_prog_compiler_static='-Bstatic'
  7921. ;;
  7922. *nto* | *qnx*)
  7923. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7924. # it will coredump.
  7925. lt_prog_compiler_pic='-fPIC -shared'
  7926. ;;
  7927. osf3* | osf4* | osf5*)
  7928. lt_prog_compiler_wl='-Wl,'
  7929. # All OSF/1 code is PIC.
  7930. lt_prog_compiler_static='-non_shared'
  7931. ;;
  7932. rdos*)
  7933. lt_prog_compiler_static='-non_shared'
  7934. ;;
  7935. solaris*)
  7936. lt_prog_compiler_pic='-KPIC'
  7937. lt_prog_compiler_static='-Bstatic'
  7938. case $cc_basename in
  7939. f77* | f90* | f95*)
  7940. lt_prog_compiler_wl='-Qoption ld ';;
  7941. *)
  7942. lt_prog_compiler_wl='-Wl,';;
  7943. esac
  7944. ;;
  7945. sunos4*)
  7946. lt_prog_compiler_wl='-Qoption ld '
  7947. lt_prog_compiler_pic='-PIC'
  7948. lt_prog_compiler_static='-Bstatic'
  7949. ;;
  7950. sysv4 | sysv4.2uw2* | sysv4.3*)
  7951. lt_prog_compiler_wl='-Wl,'
  7952. lt_prog_compiler_pic='-KPIC'
  7953. lt_prog_compiler_static='-Bstatic'
  7954. ;;
  7955. sysv4*MP*)
  7956. if test -d /usr/nec ;then
  7957. lt_prog_compiler_pic='-Kconform_pic'
  7958. lt_prog_compiler_static='-Bstatic'
  7959. fi
  7960. ;;
  7961. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7962. lt_prog_compiler_wl='-Wl,'
  7963. lt_prog_compiler_pic='-KPIC'
  7964. lt_prog_compiler_static='-Bstatic'
  7965. ;;
  7966. unicos*)
  7967. lt_prog_compiler_wl='-Wl,'
  7968. lt_prog_compiler_can_build_shared=no
  7969. ;;
  7970. uts4*)
  7971. lt_prog_compiler_pic='-pic'
  7972. lt_prog_compiler_static='-Bstatic'
  7973. ;;
  7974. *)
  7975. lt_prog_compiler_can_build_shared=no
  7976. ;;
  7977. esac
  7978. fi
  7979. case $host_os in
  7980. # For platforms which do not support PIC, -DPIC is meaningless:
  7981. *djgpp*)
  7982. lt_prog_compiler_pic=
  7983. ;;
  7984. *)
  7985. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7986. ;;
  7987. esac
  7988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7989. $as_echo "$lt_prog_compiler_pic" >&6; }
  7990. #
  7991. # Check to make sure the PIC flag actually works.
  7992. #
  7993. if test -n "$lt_prog_compiler_pic"; then
  7994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7995. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7996. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7997. $as_echo_n "(cached) " >&6
  7998. else
  7999. lt_cv_prog_compiler_pic_works=no
  8000. ac_outfile=conftest.$ac_objext
  8001. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8002. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8003. # Insert the option either (1) after the last *FLAGS variable, or
  8004. # (2) before a word containing "conftest.", or (3) at the end.
  8005. # Note that $ac_compile itself does not contain backslashes and begins
  8006. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8007. # The option is referenced via a variable to avoid confusing sed.
  8008. lt_compile=`echo "$ac_compile" | $SED \
  8009. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8010. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8011. -e 's:$: $lt_compiler_flag:'`
  8012. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8013. (eval "$lt_compile" 2>conftest.err)
  8014. ac_status=$?
  8015. cat conftest.err >&5
  8016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8017. if (exit $ac_status) && test -s "$ac_outfile"; then
  8018. # The compiler can only warn and ignore the option if not recognized
  8019. # So say no if there are warnings other than the usual output.
  8020. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8021. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8022. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8023. lt_cv_prog_compiler_pic_works=yes
  8024. fi
  8025. fi
  8026. $RM conftest*
  8027. fi
  8028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8029. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8030. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8031. case $lt_prog_compiler_pic in
  8032. "" | " "*) ;;
  8033. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8034. esac
  8035. else
  8036. lt_prog_compiler_pic=
  8037. lt_prog_compiler_can_build_shared=no
  8038. fi
  8039. fi
  8040. #
  8041. # Check to make sure the static flag actually works.
  8042. #
  8043. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8045. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8046. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  8047. $as_echo_n "(cached) " >&6
  8048. else
  8049. lt_cv_prog_compiler_static_works=no
  8050. save_LDFLAGS="$LDFLAGS"
  8051. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8052. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8053. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8054. # The linker can only warn and ignore the option if not recognized
  8055. # So say no if there are warnings
  8056. if test -s conftest.err; then
  8057. # Append any errors to the config.log.
  8058. cat conftest.err 1>&5
  8059. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8060. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8061. if diff conftest.exp conftest.er2 >/dev/null; then
  8062. lt_cv_prog_compiler_static_works=yes
  8063. fi
  8064. else
  8065. lt_cv_prog_compiler_static_works=yes
  8066. fi
  8067. fi
  8068. $RM -r conftest*
  8069. LDFLAGS="$save_LDFLAGS"
  8070. fi
  8071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8072. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8073. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8074. :
  8075. else
  8076. lt_prog_compiler_static=
  8077. fi
  8078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8079. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8080. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  8081. $as_echo_n "(cached) " >&6
  8082. else
  8083. lt_cv_prog_compiler_c_o=no
  8084. $RM -r conftest 2>/dev/null
  8085. mkdir conftest
  8086. cd conftest
  8087. mkdir out
  8088. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8089. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8090. # Insert the option either (1) after the last *FLAGS variable, or
  8091. # (2) before a word containing "conftest.", or (3) at the end.
  8092. # Note that $ac_compile itself does not contain backslashes and begins
  8093. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8094. lt_compile=`echo "$ac_compile" | $SED \
  8095. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8096. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8097. -e 's:$: $lt_compiler_flag:'`
  8098. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8099. (eval "$lt_compile" 2>out/conftest.err)
  8100. ac_status=$?
  8101. cat out/conftest.err >&5
  8102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8103. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8104. then
  8105. # The compiler can only warn and ignore the option if not recognized
  8106. # So say no if there are warnings
  8107. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8108. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8109. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8110. lt_cv_prog_compiler_c_o=yes
  8111. fi
  8112. fi
  8113. chmod u+w . 2>&5
  8114. $RM conftest*
  8115. # SGI C++ compiler will create directory out/ii_files/ for
  8116. # template instantiation
  8117. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8118. $RM out/* && rmdir out
  8119. cd ..
  8120. $RM -r conftest
  8121. $RM conftest*
  8122. fi
  8123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8124. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8126. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8127. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  8128. $as_echo_n "(cached) " >&6
  8129. else
  8130. lt_cv_prog_compiler_c_o=no
  8131. $RM -r conftest 2>/dev/null
  8132. mkdir conftest
  8133. cd conftest
  8134. mkdir out
  8135. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8136. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8137. # Insert the option either (1) after the last *FLAGS variable, or
  8138. # (2) before a word containing "conftest.", or (3) at the end.
  8139. # Note that $ac_compile itself does not contain backslashes and begins
  8140. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8141. lt_compile=`echo "$ac_compile" | $SED \
  8142. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8143. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8144. -e 's:$: $lt_compiler_flag:'`
  8145. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8146. (eval "$lt_compile" 2>out/conftest.err)
  8147. ac_status=$?
  8148. cat out/conftest.err >&5
  8149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8150. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8151. then
  8152. # The compiler can only warn and ignore the option if not recognized
  8153. # So say no if there are warnings
  8154. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8155. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8156. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8157. lt_cv_prog_compiler_c_o=yes
  8158. fi
  8159. fi
  8160. chmod u+w . 2>&5
  8161. $RM conftest*
  8162. # SGI C++ compiler will create directory out/ii_files/ for
  8163. # template instantiation
  8164. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8165. $RM out/* && rmdir out
  8166. cd ..
  8167. $RM -r conftest
  8168. $RM conftest*
  8169. fi
  8170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8171. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8172. hard_links="nottested"
  8173. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8174. # do not overwrite the value of need_locks provided by the user
  8175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8176. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8177. hard_links=yes
  8178. $RM conftest*
  8179. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8180. touch conftest.a
  8181. ln conftest.a conftest.b 2>&5 || hard_links=no
  8182. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8184. $as_echo "$hard_links" >&6; }
  8185. if test "$hard_links" = no; then
  8186. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8187. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8188. need_locks=warn
  8189. fi
  8190. else
  8191. need_locks=no
  8192. fi
  8193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8194. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8195. runpath_var=
  8196. allow_undefined_flag=
  8197. always_export_symbols=no
  8198. archive_cmds=
  8199. archive_expsym_cmds=
  8200. compiler_needs_object=no
  8201. enable_shared_with_static_runtimes=no
  8202. export_dynamic_flag_spec=
  8203. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8204. hardcode_automatic=no
  8205. hardcode_direct=no
  8206. hardcode_direct_absolute=no
  8207. hardcode_libdir_flag_spec=
  8208. hardcode_libdir_flag_spec_ld=
  8209. hardcode_libdir_separator=
  8210. hardcode_minus_L=no
  8211. hardcode_shlibpath_var=unsupported
  8212. inherit_rpath=no
  8213. link_all_deplibs=unknown
  8214. module_cmds=
  8215. module_expsym_cmds=
  8216. old_archive_from_new_cmds=
  8217. old_archive_from_expsyms_cmds=
  8218. thread_safe_flag_spec=
  8219. whole_archive_flag_spec=
  8220. # include_expsyms should be a list of space-separated symbols to be *always*
  8221. # included in the symbol list
  8222. include_expsyms=
  8223. # exclude_expsyms can be an extended regexp of symbols to exclude
  8224. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8225. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8226. # as well as any symbol that contains `d'.
  8227. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8228. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8229. # platforms (ab)use it in PIC code, but their linkers get confused if
  8230. # the symbol is explicitly referenced. Since portable code cannot
  8231. # rely on this symbol name, it's probably fine to never include it in
  8232. # preloaded symbol tables.
  8233. # Exclude shared library initialization/finalization symbols.
  8234. extract_expsyms_cmds=
  8235. case $host_os in
  8236. cygwin* | mingw* | pw32* | cegcc*)
  8237. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8238. # When not using gcc, we currently assume that we are using
  8239. # Microsoft Visual C++.
  8240. if test "$GCC" != yes; then
  8241. with_gnu_ld=no
  8242. fi
  8243. ;;
  8244. interix*)
  8245. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8246. with_gnu_ld=yes
  8247. ;;
  8248. openbsd*)
  8249. with_gnu_ld=no
  8250. ;;
  8251. esac
  8252. ld_shlibs=yes
  8253. # On some targets, GNU ld is compatible enough with the native linker
  8254. # that we're better off using the native interface for both.
  8255. lt_use_gnu_ld_interface=no
  8256. if test "$with_gnu_ld" = yes; then
  8257. case $host_os in
  8258. aix*)
  8259. # The AIX port of GNU ld has always aspired to compatibility
  8260. # with the native linker. However, as the warning in the GNU ld
  8261. # block says, versions before 2.19.5* couldn't really create working
  8262. # shared libraries, regardless of the interface used.
  8263. case `$LD -v 2>&1` in
  8264. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8265. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8266. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8267. *)
  8268. lt_use_gnu_ld_interface=yes
  8269. ;;
  8270. esac
  8271. ;;
  8272. *)
  8273. lt_use_gnu_ld_interface=yes
  8274. ;;
  8275. esac
  8276. fi
  8277. if test "$lt_use_gnu_ld_interface" = yes; then
  8278. # If archive_cmds runs LD, not CC, wlarc should be empty
  8279. wlarc='${wl}'
  8280. # Set some defaults for GNU ld with shared library support. These
  8281. # are reset later if shared libraries are not supported. Putting them
  8282. # here allows them to be overridden if necessary.
  8283. runpath_var=LD_RUN_PATH
  8284. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8285. export_dynamic_flag_spec='${wl}--export-dynamic'
  8286. # ancient GNU ld didn't support --whole-archive et. al.
  8287. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8288. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8289. else
  8290. whole_archive_flag_spec=
  8291. fi
  8292. supports_anon_versioning=no
  8293. case `$LD -v 2>&1` in
  8294. *GNU\ gold*) supports_anon_versioning=yes ;;
  8295. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8296. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8297. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8298. *\ 2.11.*) ;; # other 2.11 versions
  8299. *) supports_anon_versioning=yes ;;
  8300. esac
  8301. # See if GNU ld supports shared libraries.
  8302. case $host_os in
  8303. aix[3-9]*)
  8304. # On AIX/PPC, the GNU linker is very broken
  8305. if test "$host_cpu" != ia64; then
  8306. ld_shlibs=no
  8307. cat <<_LT_EOF 1>&2
  8308. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8309. *** to be unable to reliably create shared libraries on AIX.
  8310. *** Therefore, libtool is disabling shared libraries support. If you
  8311. *** really care for shared libraries, you may want to install binutils
  8312. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8313. *** You will then need to restart the configuration process.
  8314. _LT_EOF
  8315. fi
  8316. ;;
  8317. amigaos*)
  8318. case $host_cpu in
  8319. powerpc)
  8320. # see comment about AmigaOS4 .so support
  8321. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8322. archive_expsym_cmds=''
  8323. ;;
  8324. m68k)
  8325. 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)'
  8326. hardcode_libdir_flag_spec='-L$libdir'
  8327. hardcode_minus_L=yes
  8328. ;;
  8329. esac
  8330. ;;
  8331. beos*)
  8332. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8333. allow_undefined_flag=unsupported
  8334. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8335. # support --undefined. This deserves some investigation. FIXME
  8336. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8337. else
  8338. ld_shlibs=no
  8339. fi
  8340. ;;
  8341. cygwin* | mingw* | pw32* | cegcc*)
  8342. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8343. # as there is no search path for DLLs.
  8344. hardcode_libdir_flag_spec='-L$libdir'
  8345. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8346. allow_undefined_flag=unsupported
  8347. always_export_symbols=no
  8348. enable_shared_with_static_runtimes=yes
  8349. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8350. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8351. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8352. # If the export-symbols file already is a .def file (1st line
  8353. # is EXPORTS), use it as is; otherwise, prepend...
  8354. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8355. cp $export_symbols $output_objdir/$soname.def;
  8356. else
  8357. echo EXPORTS > $output_objdir/$soname.def;
  8358. cat $export_symbols >> $output_objdir/$soname.def;
  8359. fi~
  8360. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8361. else
  8362. ld_shlibs=no
  8363. fi
  8364. ;;
  8365. haiku*)
  8366. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8367. link_all_deplibs=yes
  8368. ;;
  8369. interix[3-9]*)
  8370. hardcode_direct=no
  8371. hardcode_shlibpath_var=no
  8372. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8373. export_dynamic_flag_spec='${wl}-E'
  8374. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8375. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8376. # default) and relocated if they conflict, which is a slow very memory
  8377. # consuming and fragmenting process. To avoid this, we pick a random,
  8378. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8379. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8380. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8381. 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'
  8382. ;;
  8383. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8384. tmp_diet=no
  8385. if test "$host_os" = linux-dietlibc; then
  8386. case $cc_basename in
  8387. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8388. esac
  8389. fi
  8390. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8391. && test "$tmp_diet" = no
  8392. then
  8393. tmp_addflag=' $pic_flag'
  8394. tmp_sharedflag='-shared'
  8395. case $cc_basename,$host_cpu in
  8396. pgcc*) # Portland Group C compiler
  8397. 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'
  8398. tmp_addflag=' $pic_flag'
  8399. ;;
  8400. pgf77* | pgf90* | pgf95* | pgfortran*)
  8401. # Portland Group f77 and f90 compilers
  8402. 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'
  8403. tmp_addflag=' $pic_flag -Mnomain' ;;
  8404. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8405. tmp_addflag=' -i_dynamic' ;;
  8406. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8407. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8408. ifc* | ifort*) # Intel Fortran compiler
  8409. tmp_addflag=' -nofor_main' ;;
  8410. lf95*) # Lahey Fortran 8.1
  8411. whole_archive_flag_spec=
  8412. tmp_sharedflag='--shared' ;;
  8413. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8414. tmp_sharedflag='-qmkshrobj'
  8415. tmp_addflag= ;;
  8416. nvcc*) # Cuda Compiler Driver 2.2
  8417. 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'
  8418. compiler_needs_object=yes
  8419. ;;
  8420. esac
  8421. case `$CC -V 2>&1 | sed 5q` in
  8422. *Sun\ C*) # Sun C 5.9
  8423. 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'
  8424. compiler_needs_object=yes
  8425. tmp_sharedflag='-G' ;;
  8426. *Sun\ F*) # Sun Fortran 8.3
  8427. tmp_sharedflag='-G' ;;
  8428. esac
  8429. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8430. if test "x$supports_anon_versioning" = xyes; then
  8431. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8432. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8433. echo "local: *; };" >> $output_objdir/$libname.ver~
  8434. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8435. fi
  8436. case $cc_basename in
  8437. xlf* | bgf* | bgxlf* | mpixlf*)
  8438. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8439. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8440. hardcode_libdir_flag_spec=
  8441. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8442. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8443. if test "x$supports_anon_versioning" = xyes; then
  8444. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8445. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8446. echo "local: *; };" >> $output_objdir/$libname.ver~
  8447. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8448. fi
  8449. ;;
  8450. esac
  8451. else
  8452. ld_shlibs=no
  8453. fi
  8454. ;;
  8455. netbsd*)
  8456. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8457. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8458. wlarc=
  8459. else
  8460. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8461. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8462. fi
  8463. ;;
  8464. solaris*)
  8465. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8466. ld_shlibs=no
  8467. cat <<_LT_EOF 1>&2
  8468. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8469. *** create shared libraries on Solaris systems. Therefore, libtool
  8470. *** is disabling shared libraries support. We urge you to upgrade GNU
  8471. *** binutils to release 2.9.1 or newer. Another option is to modify
  8472. *** your PATH or compiler configuration so that the native linker is
  8473. *** used, and then restart.
  8474. _LT_EOF
  8475. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8476. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8477. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8478. else
  8479. ld_shlibs=no
  8480. fi
  8481. ;;
  8482. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8483. case `$LD -v 2>&1` in
  8484. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8485. ld_shlibs=no
  8486. cat <<_LT_EOF 1>&2
  8487. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8488. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8489. *** is disabling shared libraries support. We urge you to upgrade GNU
  8490. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8491. *** your PATH or compiler configuration so that the native linker is
  8492. *** used, and then restart.
  8493. _LT_EOF
  8494. ;;
  8495. *)
  8496. # For security reasons, it is highly recommended that you always
  8497. # use absolute paths for naming shared libraries, and exclude the
  8498. # DT_RUNPATH tag from executables and libraries. But doing so
  8499. # requires that you compile everything twice, which is a pain.
  8500. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8501. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8502. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8503. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8504. else
  8505. ld_shlibs=no
  8506. fi
  8507. ;;
  8508. esac
  8509. ;;
  8510. sunos4*)
  8511. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8512. wlarc=
  8513. hardcode_direct=yes
  8514. hardcode_shlibpath_var=no
  8515. ;;
  8516. *)
  8517. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8518. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8519. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8520. else
  8521. ld_shlibs=no
  8522. fi
  8523. ;;
  8524. esac
  8525. if test "$ld_shlibs" = no; then
  8526. runpath_var=
  8527. hardcode_libdir_flag_spec=
  8528. export_dynamic_flag_spec=
  8529. whole_archive_flag_spec=
  8530. fi
  8531. else
  8532. # PORTME fill in a description of your system's linker (not GNU ld)
  8533. case $host_os in
  8534. aix3*)
  8535. allow_undefined_flag=unsupported
  8536. always_export_symbols=yes
  8537. 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'
  8538. # Note: this linker hardcodes the directories in LIBPATH if there
  8539. # are no directories specified by -L.
  8540. hardcode_minus_L=yes
  8541. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8542. # Neither direct hardcoding nor static linking is supported with a
  8543. # broken collect2.
  8544. hardcode_direct=unsupported
  8545. fi
  8546. ;;
  8547. aix[4-9]*)
  8548. if test "$host_cpu" = ia64; then
  8549. # On IA64, the linker does run time linking by default, so we don't
  8550. # have to do anything special.
  8551. aix_use_runtimelinking=no
  8552. exp_sym_flag='-Bexport'
  8553. no_entry_flag=""
  8554. else
  8555. # If we're using GNU nm, then we don't want the "-C" option.
  8556. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8557. # Also, AIX nm treats weak defined symbols like other global
  8558. # defined symbols, whereas GNU nm marks them as "W".
  8559. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8560. 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'
  8561. else
  8562. 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'
  8563. fi
  8564. aix_use_runtimelinking=no
  8565. # Test if we are trying to use run time linking or normal
  8566. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8567. # need to do runtime linking.
  8568. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8569. for ld_flag in $LDFLAGS; do
  8570. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8571. aix_use_runtimelinking=yes
  8572. break
  8573. fi
  8574. done
  8575. ;;
  8576. esac
  8577. exp_sym_flag='-bexport'
  8578. no_entry_flag='-bnoentry'
  8579. fi
  8580. # When large executables or shared objects are built, AIX ld can
  8581. # have problems creating the table of contents. If linking a library
  8582. # or program results in "error TOC overflow" add -mminimal-toc to
  8583. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8584. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8585. archive_cmds=''
  8586. hardcode_direct=yes
  8587. hardcode_direct_absolute=yes
  8588. hardcode_libdir_separator=':'
  8589. link_all_deplibs=yes
  8590. file_list_spec='${wl}-f,'
  8591. if test "$GCC" = yes; then
  8592. case $host_os in aix4.[012]|aix4.[012].*)
  8593. # We only want to do this on AIX 4.2 and lower, the check
  8594. # below for broken collect2 doesn't work under 4.3+
  8595. collect2name=`${CC} -print-prog-name=collect2`
  8596. if test -f "$collect2name" &&
  8597. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8598. then
  8599. # We have reworked collect2
  8600. :
  8601. else
  8602. # We have old collect2
  8603. hardcode_direct=unsupported
  8604. # It fails to find uninstalled libraries when the uninstalled
  8605. # path is not listed in the libpath. Setting hardcode_minus_L
  8606. # to unsupported forces relinking
  8607. hardcode_minus_L=yes
  8608. hardcode_libdir_flag_spec='-L$libdir'
  8609. hardcode_libdir_separator=
  8610. fi
  8611. ;;
  8612. esac
  8613. shared_flag='-shared'
  8614. if test "$aix_use_runtimelinking" = yes; then
  8615. shared_flag="$shared_flag "'${wl}-G'
  8616. fi
  8617. else
  8618. # not using gcc
  8619. if test "$host_cpu" = ia64; then
  8620. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8621. # chokes on -Wl,-G. The following line is correct:
  8622. shared_flag='-G'
  8623. else
  8624. if test "$aix_use_runtimelinking" = yes; then
  8625. shared_flag='${wl}-G'
  8626. else
  8627. shared_flag='${wl}-bM:SRE'
  8628. fi
  8629. fi
  8630. fi
  8631. export_dynamic_flag_spec='${wl}-bexpall'
  8632. # It seems that -bexpall does not export symbols beginning with
  8633. # underscore (_), so it is better to generate a list of symbols to export.
  8634. always_export_symbols=yes
  8635. if test "$aix_use_runtimelinking" = yes; then
  8636. # Warning - without using the other runtime loading flags (-brtl),
  8637. # -berok will link without error, but may produce a broken library.
  8638. allow_undefined_flag='-berok'
  8639. # Determine the default libpath from the value encoded in an
  8640. # empty executable.
  8641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8642. /* end confdefs.h. */
  8643. int
  8644. main ()
  8645. {
  8646. ;
  8647. return 0;
  8648. }
  8649. _ACEOF
  8650. if ac_fn_c_try_link "$LINENO"; then :
  8651. lt_aix_libpath_sed='
  8652. /Import File Strings/,/^$/ {
  8653. /^0/ {
  8654. s/^0 *\(.*\)$/\1/
  8655. p
  8656. }
  8657. }'
  8658. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8659. # Check for a 64-bit object if we didn't find anything.
  8660. if test -z "$aix_libpath"; then
  8661. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8662. fi
  8663. fi
  8664. rm -f core conftest.err conftest.$ac_objext \
  8665. conftest$ac_exeext conftest.$ac_ext
  8666. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8667. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8668. 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"
  8669. else
  8670. if test "$host_cpu" = ia64; then
  8671. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8672. allow_undefined_flag="-z nodefs"
  8673. 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"
  8674. else
  8675. # Determine the default libpath from the value encoded in an
  8676. # empty executable.
  8677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8678. /* end confdefs.h. */
  8679. int
  8680. main ()
  8681. {
  8682. ;
  8683. return 0;
  8684. }
  8685. _ACEOF
  8686. if ac_fn_c_try_link "$LINENO"; then :
  8687. lt_aix_libpath_sed='
  8688. /Import File Strings/,/^$/ {
  8689. /^0/ {
  8690. s/^0 *\(.*\)$/\1/
  8691. p
  8692. }
  8693. }'
  8694. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8695. # Check for a 64-bit object if we didn't find anything.
  8696. if test -z "$aix_libpath"; then
  8697. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8698. fi
  8699. fi
  8700. rm -f core conftest.err conftest.$ac_objext \
  8701. conftest$ac_exeext conftest.$ac_ext
  8702. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8703. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8704. # Warning - without using the other run time loading flags,
  8705. # -berok will link without error, but may produce a broken library.
  8706. no_undefined_flag=' ${wl}-bernotok'
  8707. allow_undefined_flag=' ${wl}-berok'
  8708. if test "$with_gnu_ld" = yes; then
  8709. # We only use this code for GNU lds that support --whole-archive.
  8710. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8711. else
  8712. # Exported symbols can be pulled into shared objects from archives
  8713. whole_archive_flag_spec='$convenience'
  8714. fi
  8715. archive_cmds_need_lc=yes
  8716. # This is similar to how AIX traditionally builds its shared libraries.
  8717. 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'
  8718. fi
  8719. fi
  8720. ;;
  8721. amigaos*)
  8722. case $host_cpu in
  8723. powerpc)
  8724. # see comment about AmigaOS4 .so support
  8725. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8726. archive_expsym_cmds=''
  8727. ;;
  8728. m68k)
  8729. 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)'
  8730. hardcode_libdir_flag_spec='-L$libdir'
  8731. hardcode_minus_L=yes
  8732. ;;
  8733. esac
  8734. ;;
  8735. bsdi[45]*)
  8736. export_dynamic_flag_spec=-rdynamic
  8737. ;;
  8738. cygwin* | mingw* | pw32* | cegcc*)
  8739. # When not using gcc, we currently assume that we are using
  8740. # Microsoft Visual C++.
  8741. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8742. # no search path for DLLs.
  8743. hardcode_libdir_flag_spec=' '
  8744. allow_undefined_flag=unsupported
  8745. # Tell ltmain to make .lib files, not .a files.
  8746. libext=lib
  8747. # Tell ltmain to make .dll files, not .so files.
  8748. shrext_cmds=".dll"
  8749. # FIXME: Setting linknames here is a bad hack.
  8750. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8751. # The linker will automatically build a .lib file if we build a DLL.
  8752. old_archive_from_new_cmds='true'
  8753. # FIXME: Should let the user specify the lib program.
  8754. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8755. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8756. enable_shared_with_static_runtimes=yes
  8757. ;;
  8758. darwin* | rhapsody*)
  8759. archive_cmds_need_lc=no
  8760. hardcode_direct=no
  8761. hardcode_automatic=yes
  8762. hardcode_shlibpath_var=unsupported
  8763. if test "$lt_cv_ld_force_load" = "yes"; then
  8764. 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\"`'
  8765. else
  8766. whole_archive_flag_spec=''
  8767. fi
  8768. link_all_deplibs=yes
  8769. allow_undefined_flag="$_lt_dar_allow_undefined"
  8770. case $cc_basename in
  8771. ifort*) _lt_dar_can_shared=yes ;;
  8772. *) _lt_dar_can_shared=$GCC ;;
  8773. esac
  8774. if test "$_lt_dar_can_shared" = "yes"; then
  8775. output_verbose_link_cmd=func_echo_all
  8776. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8777. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8778. 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}"
  8779. 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}"
  8780. else
  8781. ld_shlibs=no
  8782. fi
  8783. ;;
  8784. dgux*)
  8785. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8786. hardcode_libdir_flag_spec='-L$libdir'
  8787. hardcode_shlibpath_var=no
  8788. ;;
  8789. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8790. # support. Future versions do this automatically, but an explicit c++rt0.o
  8791. # does not break anything, and helps significantly (at the cost of a little
  8792. # extra space).
  8793. freebsd2.2*)
  8794. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8795. hardcode_libdir_flag_spec='-R$libdir'
  8796. hardcode_direct=yes
  8797. hardcode_shlibpath_var=no
  8798. ;;
  8799. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8800. freebsd2.*)
  8801. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8802. hardcode_direct=yes
  8803. hardcode_minus_L=yes
  8804. hardcode_shlibpath_var=no
  8805. ;;
  8806. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8807. freebsd* | dragonfly*)
  8808. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8809. hardcode_libdir_flag_spec='-R$libdir'
  8810. hardcode_direct=yes
  8811. hardcode_shlibpath_var=no
  8812. ;;
  8813. hpux9*)
  8814. if test "$GCC" = yes; then
  8815. 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'
  8816. else
  8817. 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'
  8818. fi
  8819. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8820. hardcode_libdir_separator=:
  8821. hardcode_direct=yes
  8822. # hardcode_minus_L: Not really in the search PATH,
  8823. # but as the default location of the library.
  8824. hardcode_minus_L=yes
  8825. export_dynamic_flag_spec='${wl}-E'
  8826. ;;
  8827. hpux10*)
  8828. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8829. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8830. else
  8831. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8832. fi
  8833. if test "$with_gnu_ld" = no; then
  8834. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8835. hardcode_libdir_flag_spec_ld='+b $libdir'
  8836. hardcode_libdir_separator=:
  8837. hardcode_direct=yes
  8838. hardcode_direct_absolute=yes
  8839. export_dynamic_flag_spec='${wl}-E'
  8840. # hardcode_minus_L: Not really in the search PATH,
  8841. # but as the default location of the library.
  8842. hardcode_minus_L=yes
  8843. fi
  8844. ;;
  8845. hpux11*)
  8846. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8847. case $host_cpu in
  8848. hppa*64*)
  8849. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8850. ;;
  8851. ia64*)
  8852. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8853. ;;
  8854. *)
  8855. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8856. ;;
  8857. esac
  8858. else
  8859. case $host_cpu in
  8860. hppa*64*)
  8861. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8862. ;;
  8863. ia64*)
  8864. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8865. ;;
  8866. *)
  8867. # Older versions of the 11.00 compiler do not understand -b yet
  8868. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8870. $as_echo_n "checking if $CC understands -b... " >&6; }
  8871. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8872. $as_echo_n "(cached) " >&6
  8873. else
  8874. lt_cv_prog_compiler__b=no
  8875. save_LDFLAGS="$LDFLAGS"
  8876. LDFLAGS="$LDFLAGS -b"
  8877. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8878. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8879. # The linker can only warn and ignore the option if not recognized
  8880. # So say no if there are warnings
  8881. if test -s conftest.err; then
  8882. # Append any errors to the config.log.
  8883. cat conftest.err 1>&5
  8884. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8885. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8886. if diff conftest.exp conftest.er2 >/dev/null; then
  8887. lt_cv_prog_compiler__b=yes
  8888. fi
  8889. else
  8890. lt_cv_prog_compiler__b=yes
  8891. fi
  8892. fi
  8893. $RM -r conftest*
  8894. LDFLAGS="$save_LDFLAGS"
  8895. fi
  8896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8897. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8898. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8899. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8900. else
  8901. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8902. fi
  8903. ;;
  8904. esac
  8905. fi
  8906. if test "$with_gnu_ld" = no; then
  8907. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8908. hardcode_libdir_separator=:
  8909. case $host_cpu in
  8910. hppa*64*|ia64*)
  8911. hardcode_direct=no
  8912. hardcode_shlibpath_var=no
  8913. ;;
  8914. *)
  8915. hardcode_direct=yes
  8916. hardcode_direct_absolute=yes
  8917. export_dynamic_flag_spec='${wl}-E'
  8918. # hardcode_minus_L: Not really in the search PATH,
  8919. # but as the default location of the library.
  8920. hardcode_minus_L=yes
  8921. ;;
  8922. esac
  8923. fi
  8924. ;;
  8925. irix5* | irix6* | nonstopux*)
  8926. if test "$GCC" = yes; then
  8927. 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'
  8928. # Try to use the -exported_symbol ld option, if it does not
  8929. # work, assume that -exports_file does not work either and
  8930. # implicitly export all symbols.
  8931. save_LDFLAGS="$LDFLAGS"
  8932. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8934. /* end confdefs.h. */
  8935. int foo(void) {}
  8936. _ACEOF
  8937. if ac_fn_c_try_link "$LINENO"; then :
  8938. 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'
  8939. fi
  8940. rm -f core conftest.err conftest.$ac_objext \
  8941. conftest$ac_exeext conftest.$ac_ext
  8942. LDFLAGS="$save_LDFLAGS"
  8943. else
  8944. 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'
  8945. 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'
  8946. fi
  8947. archive_cmds_need_lc='no'
  8948. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8949. hardcode_libdir_separator=:
  8950. inherit_rpath=yes
  8951. link_all_deplibs=yes
  8952. ;;
  8953. netbsd*)
  8954. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8955. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8956. else
  8957. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8958. fi
  8959. hardcode_libdir_flag_spec='-R$libdir'
  8960. hardcode_direct=yes
  8961. hardcode_shlibpath_var=no
  8962. ;;
  8963. newsos6)
  8964. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8965. hardcode_direct=yes
  8966. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8967. hardcode_libdir_separator=:
  8968. hardcode_shlibpath_var=no
  8969. ;;
  8970. *nto* | *qnx*)
  8971. ;;
  8972. openbsd*)
  8973. if test -f /usr/libexec/ld.so; then
  8974. hardcode_direct=yes
  8975. hardcode_shlibpath_var=no
  8976. hardcode_direct_absolute=yes
  8977. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8978. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8979. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8980. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8981. export_dynamic_flag_spec='${wl}-E'
  8982. else
  8983. case $host_os in
  8984. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8985. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8986. hardcode_libdir_flag_spec='-R$libdir'
  8987. ;;
  8988. *)
  8989. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8990. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8991. ;;
  8992. esac
  8993. fi
  8994. else
  8995. ld_shlibs=no
  8996. fi
  8997. ;;
  8998. os2*)
  8999. hardcode_libdir_flag_spec='-L$libdir'
  9000. hardcode_minus_L=yes
  9001. allow_undefined_flag=unsupported
  9002. 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'
  9003. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9004. ;;
  9005. osf3*)
  9006. if test "$GCC" = yes; then
  9007. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9008. 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'
  9009. else
  9010. allow_undefined_flag=' -expect_unresolved \*'
  9011. 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'
  9012. fi
  9013. archive_cmds_need_lc='no'
  9014. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9015. hardcode_libdir_separator=:
  9016. ;;
  9017. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9018. if test "$GCC" = yes; then
  9019. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9020. 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'
  9021. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9022. else
  9023. allow_undefined_flag=' -expect_unresolved \*'
  9024. 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'
  9025. 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~
  9026. $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'
  9027. # Both c and cxx compiler support -rpath directly
  9028. hardcode_libdir_flag_spec='-rpath $libdir'
  9029. fi
  9030. archive_cmds_need_lc='no'
  9031. hardcode_libdir_separator=:
  9032. ;;
  9033. solaris*)
  9034. no_undefined_flag=' -z defs'
  9035. if test "$GCC" = yes; then
  9036. wlarc='${wl}'
  9037. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9038. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9039. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9040. else
  9041. case `$CC -V 2>&1` in
  9042. *"Compilers 5.0"*)
  9043. wlarc=''
  9044. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9045. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9046. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9047. ;;
  9048. *)
  9049. wlarc='${wl}'
  9050. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9051. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9052. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9053. ;;
  9054. esac
  9055. fi
  9056. hardcode_libdir_flag_spec='-R$libdir'
  9057. hardcode_shlibpath_var=no
  9058. case $host_os in
  9059. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9060. *)
  9061. # The compiler driver will combine and reorder linker options,
  9062. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9063. # but is careful enough not to reorder.
  9064. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9065. if test "$GCC" = yes; then
  9066. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9067. else
  9068. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9069. fi
  9070. ;;
  9071. esac
  9072. link_all_deplibs=yes
  9073. ;;
  9074. sunos4*)
  9075. if test "x$host_vendor" = xsequent; then
  9076. # Use $CC to link under sequent, because it throws in some extra .o
  9077. # files that make .init and .fini sections work.
  9078. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9079. else
  9080. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9081. fi
  9082. hardcode_libdir_flag_spec='-L$libdir'
  9083. hardcode_direct=yes
  9084. hardcode_minus_L=yes
  9085. hardcode_shlibpath_var=no
  9086. ;;
  9087. sysv4)
  9088. case $host_vendor in
  9089. sni)
  9090. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9091. hardcode_direct=yes # is this really true???
  9092. ;;
  9093. siemens)
  9094. ## LD is ld it makes a PLAMLIB
  9095. ## CC just makes a GrossModule.
  9096. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9097. reload_cmds='$CC -r -o $output$reload_objs'
  9098. hardcode_direct=no
  9099. ;;
  9100. motorola)
  9101. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9102. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9103. ;;
  9104. esac
  9105. runpath_var='LD_RUN_PATH'
  9106. hardcode_shlibpath_var=no
  9107. ;;
  9108. sysv4.3*)
  9109. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9110. hardcode_shlibpath_var=no
  9111. export_dynamic_flag_spec='-Bexport'
  9112. ;;
  9113. sysv4*MP*)
  9114. if test -d /usr/nec; then
  9115. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9116. hardcode_shlibpath_var=no
  9117. runpath_var=LD_RUN_PATH
  9118. hardcode_runpath_var=yes
  9119. ld_shlibs=yes
  9120. fi
  9121. ;;
  9122. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9123. no_undefined_flag='${wl}-z,text'
  9124. archive_cmds_need_lc=no
  9125. hardcode_shlibpath_var=no
  9126. runpath_var='LD_RUN_PATH'
  9127. if test "$GCC" = yes; then
  9128. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9129. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9130. else
  9131. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9132. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9133. fi
  9134. ;;
  9135. sysv5* | sco3.2v5* | sco5v6*)
  9136. # Note: We can NOT use -z defs as we might desire, because we do not
  9137. # link with -lc, and that would cause any symbols used from libc to
  9138. # always be unresolved, which means just about no library would
  9139. # ever link correctly. If we're not using GNU ld we use -z text
  9140. # though, which does catch some bad symbols but isn't as heavy-handed
  9141. # as -z defs.
  9142. no_undefined_flag='${wl}-z,text'
  9143. allow_undefined_flag='${wl}-z,nodefs'
  9144. archive_cmds_need_lc=no
  9145. hardcode_shlibpath_var=no
  9146. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9147. hardcode_libdir_separator=':'
  9148. link_all_deplibs=yes
  9149. export_dynamic_flag_spec='${wl}-Bexport'
  9150. runpath_var='LD_RUN_PATH'
  9151. if test "$GCC" = yes; then
  9152. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9153. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9154. else
  9155. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9156. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9157. fi
  9158. ;;
  9159. uts4*)
  9160. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9161. hardcode_libdir_flag_spec='-L$libdir'
  9162. hardcode_shlibpath_var=no
  9163. ;;
  9164. *)
  9165. ld_shlibs=no
  9166. ;;
  9167. esac
  9168. if test x$host_vendor = xsni; then
  9169. case $host in
  9170. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9171. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9172. ;;
  9173. esac
  9174. fi
  9175. fi
  9176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9177. $as_echo "$ld_shlibs" >&6; }
  9178. test "$ld_shlibs" = no && can_build_shared=no
  9179. with_gnu_ld=$with_gnu_ld
  9180. #
  9181. # Do we need to explicitly link libc?
  9182. #
  9183. case "x$archive_cmds_need_lc" in
  9184. x|xyes)
  9185. # Assume -lc should be added
  9186. archive_cmds_need_lc=yes
  9187. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9188. case $archive_cmds in
  9189. *'~'*)
  9190. # FIXME: we may have to deal with multi-command sequences.
  9191. ;;
  9192. '$CC '*)
  9193. # Test whether the compiler implicitly links with -lc since on some
  9194. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9195. # to ld, don't add -lc before -lgcc.
  9196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9197. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9198. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  9199. $as_echo_n "(cached) " >&6
  9200. else
  9201. $RM conftest*
  9202. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9203. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9204. (eval $ac_compile) 2>&5
  9205. ac_status=$?
  9206. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9207. test $ac_status = 0; } 2>conftest.err; then
  9208. soname=conftest
  9209. lib=conftest
  9210. libobjs=conftest.$ac_objext
  9211. deplibs=
  9212. wl=$lt_prog_compiler_wl
  9213. pic_flag=$lt_prog_compiler_pic
  9214. compiler_flags=-v
  9215. linker_flags=-v
  9216. verstring=
  9217. output_objdir=.
  9218. libname=conftest
  9219. lt_save_allow_undefined_flag=$allow_undefined_flag
  9220. allow_undefined_flag=
  9221. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9222. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9223. ac_status=$?
  9224. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9225. test $ac_status = 0; }
  9226. then
  9227. lt_cv_archive_cmds_need_lc=no
  9228. else
  9229. lt_cv_archive_cmds_need_lc=yes
  9230. fi
  9231. allow_undefined_flag=$lt_save_allow_undefined_flag
  9232. else
  9233. cat conftest.err 1>&5
  9234. fi
  9235. $RM conftest*
  9236. fi
  9237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9238. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9239. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9240. ;;
  9241. esac
  9242. fi
  9243. ;;
  9244. esac
  9245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9246. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9247. if test "$GCC" = yes; then
  9248. case $host_os in
  9249. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9250. *) lt_awk_arg="/^libraries:/" ;;
  9251. esac
  9252. case $host_os in
  9253. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9254. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9255. esac
  9256. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9257. case $lt_search_path_spec in
  9258. *\;*)
  9259. # if the path contains ";" then we assume it to be the separator
  9260. # otherwise default to the standard path separator (i.e. ":") - it is
  9261. # assumed that no part of a normal pathname contains ";" but that should
  9262. # okay in the real world where ";" in dirpaths is itself problematic.
  9263. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9264. ;;
  9265. *)
  9266. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9267. ;;
  9268. esac
  9269. # Ok, now we have the path, separated by spaces, we can step through it
  9270. # and add multilib dir if necessary.
  9271. lt_tmp_lt_search_path_spec=
  9272. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9273. for lt_sys_path in $lt_search_path_spec; do
  9274. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9275. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9276. else
  9277. test -d "$lt_sys_path" && \
  9278. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9279. fi
  9280. done
  9281. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9282. BEGIN {RS=" "; FS="/|\n";} {
  9283. lt_foo="";
  9284. lt_count=0;
  9285. for (lt_i = NF; lt_i > 0; lt_i--) {
  9286. if ($lt_i != "" && $lt_i != ".") {
  9287. if ($lt_i == "..") {
  9288. lt_count++;
  9289. } else {
  9290. if (lt_count == 0) {
  9291. lt_foo="/" $lt_i lt_foo;
  9292. } else {
  9293. lt_count--;
  9294. }
  9295. }
  9296. }
  9297. }
  9298. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9299. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9300. }'`
  9301. # AWK program above erroneously prepends '/' to C:/dos/paths
  9302. # for these hosts.
  9303. case $host_os in
  9304. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9305. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9306. esac
  9307. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9308. else
  9309. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9310. fi
  9311. library_names_spec=
  9312. libname_spec='lib$name'
  9313. soname_spec=
  9314. shrext_cmds=".so"
  9315. postinstall_cmds=
  9316. postuninstall_cmds=
  9317. finish_cmds=
  9318. finish_eval=
  9319. shlibpath_var=
  9320. shlibpath_overrides_runpath=unknown
  9321. version_type=none
  9322. dynamic_linker="$host_os ld.so"
  9323. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9324. need_lib_prefix=unknown
  9325. hardcode_into_libs=no
  9326. # when you set need_version to no, make sure it does not cause -set_version
  9327. # flags to be left without arguments
  9328. need_version=unknown
  9329. case $host_os in
  9330. aix3*)
  9331. version_type=linux
  9332. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9333. shlibpath_var=LIBPATH
  9334. # AIX 3 has no versioning support, so we append a major version to the name.
  9335. soname_spec='${libname}${release}${shared_ext}$major'
  9336. ;;
  9337. aix[4-9]*)
  9338. version_type=linux
  9339. need_lib_prefix=no
  9340. need_version=no
  9341. hardcode_into_libs=yes
  9342. if test "$host_cpu" = ia64; then
  9343. # AIX 5 supports IA64
  9344. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9345. shlibpath_var=LD_LIBRARY_PATH
  9346. else
  9347. # With GCC up to 2.95.x, collect2 would create an import file
  9348. # for dependence libraries. The import file would start with
  9349. # the line `#! .'. This would cause the generated library to
  9350. # depend on `.', always an invalid library. This was fixed in
  9351. # development snapshots of GCC prior to 3.0.
  9352. case $host_os in
  9353. aix4 | aix4.[01] | aix4.[01].*)
  9354. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9355. echo ' yes '
  9356. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9357. :
  9358. else
  9359. can_build_shared=no
  9360. fi
  9361. ;;
  9362. esac
  9363. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9364. # soname into executable. Probably we can add versioning support to
  9365. # collect2, so additional links can be useful in future.
  9366. if test "$aix_use_runtimelinking" = yes; then
  9367. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9368. # instead of lib<name>.a to let people know that these are not
  9369. # typical AIX shared libraries.
  9370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9371. else
  9372. # We preserve .a as extension for shared libraries through AIX4.2
  9373. # and later when we are not doing run time linking.
  9374. library_names_spec='${libname}${release}.a $libname.a'
  9375. soname_spec='${libname}${release}${shared_ext}$major'
  9376. fi
  9377. shlibpath_var=LIBPATH
  9378. fi
  9379. ;;
  9380. amigaos*)
  9381. case $host_cpu in
  9382. powerpc)
  9383. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9384. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9385. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9386. ;;
  9387. m68k)
  9388. library_names_spec='$libname.ixlibrary $libname.a'
  9389. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9390. 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'
  9391. ;;
  9392. esac
  9393. ;;
  9394. beos*)
  9395. library_names_spec='${libname}${shared_ext}'
  9396. dynamic_linker="$host_os ld.so"
  9397. shlibpath_var=LIBRARY_PATH
  9398. ;;
  9399. bsdi[45]*)
  9400. version_type=linux
  9401. need_version=no
  9402. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9403. soname_spec='${libname}${release}${shared_ext}$major'
  9404. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9405. shlibpath_var=LD_LIBRARY_PATH
  9406. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9407. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9408. # the default ld.so.conf also contains /usr/contrib/lib and
  9409. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9410. # libtool to hard-code these into programs
  9411. ;;
  9412. cygwin* | mingw* | pw32* | cegcc*)
  9413. version_type=windows
  9414. shrext_cmds=".dll"
  9415. need_version=no
  9416. need_lib_prefix=no
  9417. case $GCC,$host_os in
  9418. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9419. library_names_spec='$libname.dll.a'
  9420. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9421. postinstall_cmds='base_file=`basename \${file}`~
  9422. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9423. dldir=$destdir/`dirname \$dlpath`~
  9424. test -d \$dldir || mkdir -p \$dldir~
  9425. $install_prog $dir/$dlname \$dldir/$dlname~
  9426. chmod a+x \$dldir/$dlname~
  9427. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9428. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9429. fi'
  9430. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9431. dlpath=$dir/\$dldll~
  9432. $RM \$dlpath'
  9433. shlibpath_overrides_runpath=yes
  9434. case $host_os in
  9435. cygwin*)
  9436. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9437. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9438. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9439. ;;
  9440. mingw* | cegcc*)
  9441. # MinGW DLLs use traditional 'lib' prefix
  9442. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9443. ;;
  9444. pw32*)
  9445. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9446. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9447. ;;
  9448. esac
  9449. ;;
  9450. *)
  9451. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9452. ;;
  9453. esac
  9454. dynamic_linker='Win32 ld.exe'
  9455. # FIXME: first we should search . and the directory the executable is in
  9456. shlibpath_var=PATH
  9457. ;;
  9458. darwin* | rhapsody*)
  9459. dynamic_linker="$host_os dyld"
  9460. version_type=darwin
  9461. need_lib_prefix=no
  9462. need_version=no
  9463. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9464. soname_spec='${libname}${release}${major}$shared_ext'
  9465. shlibpath_overrides_runpath=yes
  9466. shlibpath_var=DYLD_LIBRARY_PATH
  9467. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9468. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9469. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9470. ;;
  9471. dgux*)
  9472. version_type=linux
  9473. need_lib_prefix=no
  9474. need_version=no
  9475. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9476. soname_spec='${libname}${release}${shared_ext}$major'
  9477. shlibpath_var=LD_LIBRARY_PATH
  9478. ;;
  9479. freebsd* | dragonfly*)
  9480. # DragonFly does not have aout. When/if they implement a new
  9481. # versioning mechanism, adjust this.
  9482. if test -x /usr/bin/objformat; then
  9483. objformat=`/usr/bin/objformat`
  9484. else
  9485. case $host_os in
  9486. freebsd[23].*) objformat=aout ;;
  9487. *) objformat=elf ;;
  9488. esac
  9489. fi
  9490. version_type=freebsd-$objformat
  9491. case $version_type in
  9492. freebsd-elf*)
  9493. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9494. need_version=no
  9495. need_lib_prefix=no
  9496. ;;
  9497. freebsd-*)
  9498. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9499. need_version=yes
  9500. ;;
  9501. esac
  9502. shlibpath_var=LD_LIBRARY_PATH
  9503. case $host_os in
  9504. freebsd2.*)
  9505. shlibpath_overrides_runpath=yes
  9506. ;;
  9507. freebsd3.[01]* | freebsdelf3.[01]*)
  9508. shlibpath_overrides_runpath=yes
  9509. hardcode_into_libs=yes
  9510. ;;
  9511. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9512. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9513. shlibpath_overrides_runpath=no
  9514. hardcode_into_libs=yes
  9515. ;;
  9516. *) # from 4.6 on, and DragonFly
  9517. shlibpath_overrides_runpath=yes
  9518. hardcode_into_libs=yes
  9519. ;;
  9520. esac
  9521. ;;
  9522. gnu*)
  9523. version_type=linux
  9524. need_lib_prefix=no
  9525. need_version=no
  9526. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9527. soname_spec='${libname}${release}${shared_ext}$major'
  9528. shlibpath_var=LD_LIBRARY_PATH
  9529. hardcode_into_libs=yes
  9530. ;;
  9531. haiku*)
  9532. version_type=linux
  9533. need_lib_prefix=no
  9534. need_version=no
  9535. dynamic_linker="$host_os runtime_loader"
  9536. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9537. soname_spec='${libname}${release}${shared_ext}$major'
  9538. shlibpath_var=LIBRARY_PATH
  9539. shlibpath_overrides_runpath=yes
  9540. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9541. hardcode_into_libs=yes
  9542. ;;
  9543. hpux9* | hpux10* | hpux11*)
  9544. # Give a soname corresponding to the major version so that dld.sl refuses to
  9545. # link against other versions.
  9546. version_type=sunos
  9547. need_lib_prefix=no
  9548. need_version=no
  9549. case $host_cpu in
  9550. ia64*)
  9551. shrext_cmds='.so'
  9552. hardcode_into_libs=yes
  9553. dynamic_linker="$host_os dld.so"
  9554. shlibpath_var=LD_LIBRARY_PATH
  9555. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9557. soname_spec='${libname}${release}${shared_ext}$major'
  9558. if test "X$HPUX_IA64_MODE" = X32; then
  9559. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9560. else
  9561. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9562. fi
  9563. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9564. ;;
  9565. hppa*64*)
  9566. shrext_cmds='.sl'
  9567. hardcode_into_libs=yes
  9568. dynamic_linker="$host_os dld.sl"
  9569. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9570. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9571. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9572. soname_spec='${libname}${release}${shared_ext}$major'
  9573. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9574. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9575. ;;
  9576. *)
  9577. shrext_cmds='.sl'
  9578. dynamic_linker="$host_os dld.sl"
  9579. shlibpath_var=SHLIB_PATH
  9580. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9581. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9582. soname_spec='${libname}${release}${shared_ext}$major'
  9583. ;;
  9584. esac
  9585. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9586. postinstall_cmds='chmod 555 $lib'
  9587. # or fails outright, so override atomically:
  9588. install_override_mode=555
  9589. ;;
  9590. interix[3-9]*)
  9591. version_type=linux
  9592. need_lib_prefix=no
  9593. need_version=no
  9594. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9595. soname_spec='${libname}${release}${shared_ext}$major'
  9596. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9597. shlibpath_var=LD_LIBRARY_PATH
  9598. shlibpath_overrides_runpath=no
  9599. hardcode_into_libs=yes
  9600. ;;
  9601. irix5* | irix6* | nonstopux*)
  9602. case $host_os in
  9603. nonstopux*) version_type=nonstopux ;;
  9604. *)
  9605. if test "$lt_cv_prog_gnu_ld" = yes; then
  9606. version_type=linux
  9607. else
  9608. version_type=irix
  9609. fi ;;
  9610. esac
  9611. need_lib_prefix=no
  9612. need_version=no
  9613. soname_spec='${libname}${release}${shared_ext}$major'
  9614. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9615. case $host_os in
  9616. irix5* | nonstopux*)
  9617. libsuff= shlibsuff=
  9618. ;;
  9619. *)
  9620. case $LD in # libtool.m4 will add one of these switches to LD
  9621. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9622. libsuff= shlibsuff= libmagic=32-bit;;
  9623. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9624. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9625. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9626. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9627. *) libsuff= shlibsuff= libmagic=never-match;;
  9628. esac
  9629. ;;
  9630. esac
  9631. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9632. shlibpath_overrides_runpath=no
  9633. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9634. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9635. hardcode_into_libs=yes
  9636. ;;
  9637. # No shared lib support for Linux oldld, aout, or coff.
  9638. linux*oldld* | linux*aout* | linux*coff*)
  9639. dynamic_linker=no
  9640. ;;
  9641. # This must be Linux ELF.
  9642. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9643. version_type=linux
  9644. need_lib_prefix=no
  9645. need_version=no
  9646. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9647. soname_spec='${libname}${release}${shared_ext}$major'
  9648. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9649. shlibpath_var=LD_LIBRARY_PATH
  9650. shlibpath_overrides_runpath=no
  9651. # Some binutils ld are patched to set DT_RUNPATH
  9652. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9653. $as_echo_n "(cached) " >&6
  9654. else
  9655. lt_cv_shlibpath_overrides_runpath=no
  9656. save_LDFLAGS=$LDFLAGS
  9657. save_libdir=$libdir
  9658. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9659. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9661. /* end confdefs.h. */
  9662. int
  9663. main ()
  9664. {
  9665. ;
  9666. return 0;
  9667. }
  9668. _ACEOF
  9669. if ac_fn_c_try_link "$LINENO"; then :
  9670. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9671. lt_cv_shlibpath_overrides_runpath=yes
  9672. fi
  9673. fi
  9674. rm -f core conftest.err conftest.$ac_objext \
  9675. conftest$ac_exeext conftest.$ac_ext
  9676. LDFLAGS=$save_LDFLAGS
  9677. libdir=$save_libdir
  9678. fi
  9679. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9680. # This implies no fast_install, which is unacceptable.
  9681. # Some rework will be needed to allow for fast_install
  9682. # before this can be enabled.
  9683. hardcode_into_libs=yes
  9684. # Append ld.so.conf contents to the search path
  9685. if test -f /etc/ld.so.conf; then
  9686. 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' ' '`
  9687. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9688. fi
  9689. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9690. # powerpc, because MkLinux only supported shared libraries with the
  9691. # GNU dynamic linker. Since this was broken with cross compilers,
  9692. # most powerpc-linux boxes support dynamic linking these days and
  9693. # people can always --disable-shared, the test was removed, and we
  9694. # assume the GNU/Linux dynamic linker is in use.
  9695. dynamic_linker='GNU/Linux ld.so'
  9696. ;;
  9697. netbsd*)
  9698. version_type=sunos
  9699. need_lib_prefix=no
  9700. need_version=no
  9701. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9702. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9703. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9704. dynamic_linker='NetBSD (a.out) ld.so'
  9705. else
  9706. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9707. soname_spec='${libname}${release}${shared_ext}$major'
  9708. dynamic_linker='NetBSD ld.elf_so'
  9709. fi
  9710. shlibpath_var=LD_LIBRARY_PATH
  9711. shlibpath_overrides_runpath=yes
  9712. hardcode_into_libs=yes
  9713. ;;
  9714. newsos6)
  9715. version_type=linux
  9716. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9717. shlibpath_var=LD_LIBRARY_PATH
  9718. shlibpath_overrides_runpath=yes
  9719. ;;
  9720. *nto* | *qnx*)
  9721. version_type=qnx
  9722. need_lib_prefix=no
  9723. need_version=no
  9724. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9725. soname_spec='${libname}${release}${shared_ext}$major'
  9726. shlibpath_var=LD_LIBRARY_PATH
  9727. shlibpath_overrides_runpath=no
  9728. hardcode_into_libs=yes
  9729. dynamic_linker='ldqnx.so'
  9730. ;;
  9731. openbsd*)
  9732. version_type=sunos
  9733. sys_lib_dlsearch_path_spec="/usr/lib"
  9734. need_lib_prefix=no
  9735. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9736. case $host_os in
  9737. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9738. *) need_version=no ;;
  9739. esac
  9740. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9741. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9742. shlibpath_var=LD_LIBRARY_PATH
  9743. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9744. case $host_os in
  9745. openbsd2.[89] | openbsd2.[89].*)
  9746. shlibpath_overrides_runpath=no
  9747. ;;
  9748. *)
  9749. shlibpath_overrides_runpath=yes
  9750. ;;
  9751. esac
  9752. else
  9753. shlibpath_overrides_runpath=yes
  9754. fi
  9755. ;;
  9756. os2*)
  9757. libname_spec='$name'
  9758. shrext_cmds=".dll"
  9759. need_lib_prefix=no
  9760. library_names_spec='$libname${shared_ext} $libname.a'
  9761. dynamic_linker='OS/2 ld.exe'
  9762. shlibpath_var=LIBPATH
  9763. ;;
  9764. osf3* | osf4* | osf5*)
  9765. version_type=osf
  9766. need_lib_prefix=no
  9767. need_version=no
  9768. soname_spec='${libname}${release}${shared_ext}$major'
  9769. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9770. shlibpath_var=LD_LIBRARY_PATH
  9771. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9772. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9773. ;;
  9774. rdos*)
  9775. dynamic_linker=no
  9776. ;;
  9777. solaris*)
  9778. version_type=linux
  9779. need_lib_prefix=no
  9780. need_version=no
  9781. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9782. soname_spec='${libname}${release}${shared_ext}$major'
  9783. shlibpath_var=LD_LIBRARY_PATH
  9784. shlibpath_overrides_runpath=yes
  9785. hardcode_into_libs=yes
  9786. # ldd complains unless libraries are executable
  9787. postinstall_cmds='chmod +x $lib'
  9788. ;;
  9789. sunos4*)
  9790. version_type=sunos
  9791. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9792. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9793. shlibpath_var=LD_LIBRARY_PATH
  9794. shlibpath_overrides_runpath=yes
  9795. if test "$with_gnu_ld" = yes; then
  9796. need_lib_prefix=no
  9797. fi
  9798. need_version=yes
  9799. ;;
  9800. sysv4 | sysv4.3*)
  9801. version_type=linux
  9802. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9803. soname_spec='${libname}${release}${shared_ext}$major'
  9804. shlibpath_var=LD_LIBRARY_PATH
  9805. case $host_vendor in
  9806. sni)
  9807. shlibpath_overrides_runpath=no
  9808. need_lib_prefix=no
  9809. runpath_var=LD_RUN_PATH
  9810. ;;
  9811. siemens)
  9812. need_lib_prefix=no
  9813. ;;
  9814. motorola)
  9815. need_lib_prefix=no
  9816. need_version=no
  9817. shlibpath_overrides_runpath=no
  9818. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9819. ;;
  9820. esac
  9821. ;;
  9822. sysv4*MP*)
  9823. if test -d /usr/nec ;then
  9824. version_type=linux
  9825. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9826. soname_spec='$libname${shared_ext}.$major'
  9827. shlibpath_var=LD_LIBRARY_PATH
  9828. fi
  9829. ;;
  9830. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9831. version_type=freebsd-elf
  9832. need_lib_prefix=no
  9833. need_version=no
  9834. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9835. soname_spec='${libname}${release}${shared_ext}$major'
  9836. shlibpath_var=LD_LIBRARY_PATH
  9837. shlibpath_overrides_runpath=yes
  9838. hardcode_into_libs=yes
  9839. if test "$with_gnu_ld" = yes; then
  9840. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9841. else
  9842. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9843. case $host_os in
  9844. sco3.2v5*)
  9845. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9846. ;;
  9847. esac
  9848. fi
  9849. sys_lib_dlsearch_path_spec='/usr/lib'
  9850. ;;
  9851. tpf*)
  9852. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9853. version_type=linux
  9854. need_lib_prefix=no
  9855. need_version=no
  9856. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9857. shlibpath_var=LD_LIBRARY_PATH
  9858. shlibpath_overrides_runpath=no
  9859. hardcode_into_libs=yes
  9860. ;;
  9861. uts4*)
  9862. version_type=linux
  9863. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9864. soname_spec='${libname}${release}${shared_ext}$major'
  9865. shlibpath_var=LD_LIBRARY_PATH
  9866. ;;
  9867. *)
  9868. dynamic_linker=no
  9869. ;;
  9870. esac
  9871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9872. $as_echo "$dynamic_linker" >&6; }
  9873. test "$dynamic_linker" = no && can_build_shared=no
  9874. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9875. if test "$GCC" = yes; then
  9876. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9877. fi
  9878. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9879. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9880. fi
  9881. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9882. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9883. fi
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9885. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9886. hardcode_action=
  9887. if test -n "$hardcode_libdir_flag_spec" ||
  9888. test -n "$runpath_var" ||
  9889. test "X$hardcode_automatic" = "Xyes" ; then
  9890. # We can hardcode non-existent directories.
  9891. if test "$hardcode_direct" != no &&
  9892. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9893. # have to relink, otherwise we might link with an installed library
  9894. # when we should be linking with a yet-to-be-installed one
  9895. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9896. test "$hardcode_minus_L" != no; then
  9897. # Linking always hardcodes the temporary library directory.
  9898. hardcode_action=relink
  9899. else
  9900. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9901. hardcode_action=immediate
  9902. fi
  9903. else
  9904. # We cannot hardcode anything, or else we can only hardcode existing
  9905. # directories.
  9906. hardcode_action=unsupported
  9907. fi
  9908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9909. $as_echo "$hardcode_action" >&6; }
  9910. if test "$hardcode_action" = relink ||
  9911. test "$inherit_rpath" = yes; then
  9912. # Fast installation is not supported
  9913. enable_fast_install=no
  9914. elif test "$shlibpath_overrides_runpath" = yes ||
  9915. test "$enable_shared" = no; then
  9916. # Fast installation is not necessary
  9917. enable_fast_install=needless
  9918. fi
  9919. if test "x$enable_dlopen" != xyes; then
  9920. enable_dlopen=unknown
  9921. enable_dlopen_self=unknown
  9922. enable_dlopen_self_static=unknown
  9923. else
  9924. lt_cv_dlopen=no
  9925. lt_cv_dlopen_libs=
  9926. case $host_os in
  9927. beos*)
  9928. lt_cv_dlopen="load_add_on"
  9929. lt_cv_dlopen_libs=
  9930. lt_cv_dlopen_self=yes
  9931. ;;
  9932. mingw* | pw32* | cegcc*)
  9933. lt_cv_dlopen="LoadLibrary"
  9934. lt_cv_dlopen_libs=
  9935. ;;
  9936. cygwin*)
  9937. lt_cv_dlopen="dlopen"
  9938. lt_cv_dlopen_libs=
  9939. ;;
  9940. darwin*)
  9941. # if libdl is installed we need to link against it
  9942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9943. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9944. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9945. $as_echo_n "(cached) " >&6
  9946. else
  9947. ac_check_lib_save_LIBS=$LIBS
  9948. LIBS="-ldl $LIBS"
  9949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9950. /* end confdefs.h. */
  9951. /* Override any GCC internal prototype to avoid an error.
  9952. Use char because int might match the return type of a GCC
  9953. builtin and then its argument prototype would still apply. */
  9954. #ifdef __cplusplus
  9955. extern "C"
  9956. #endif
  9957. char dlopen ();
  9958. int
  9959. main ()
  9960. {
  9961. return dlopen ();
  9962. ;
  9963. return 0;
  9964. }
  9965. _ACEOF
  9966. if ac_fn_c_try_link "$LINENO"; then :
  9967. ac_cv_lib_dl_dlopen=yes
  9968. else
  9969. ac_cv_lib_dl_dlopen=no
  9970. fi
  9971. rm -f core conftest.err conftest.$ac_objext \
  9972. conftest$ac_exeext conftest.$ac_ext
  9973. LIBS=$ac_check_lib_save_LIBS
  9974. fi
  9975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9976. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9977. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9978. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9979. else
  9980. lt_cv_dlopen="dyld"
  9981. lt_cv_dlopen_libs=
  9982. lt_cv_dlopen_self=yes
  9983. fi
  9984. ;;
  9985. *)
  9986. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9987. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9988. lt_cv_dlopen="shl_load"
  9989. else
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9991. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9992. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9993. $as_echo_n "(cached) " >&6
  9994. else
  9995. ac_check_lib_save_LIBS=$LIBS
  9996. LIBS="-ldld $LIBS"
  9997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9998. /* end confdefs.h. */
  9999. /* Override any GCC internal prototype to avoid an error.
  10000. Use char because int might match the return type of a GCC
  10001. builtin and then its argument prototype would still apply. */
  10002. #ifdef __cplusplus
  10003. extern "C"
  10004. #endif
  10005. char shl_load ();
  10006. int
  10007. main ()
  10008. {
  10009. return shl_load ();
  10010. ;
  10011. return 0;
  10012. }
  10013. _ACEOF
  10014. if ac_fn_c_try_link "$LINENO"; then :
  10015. ac_cv_lib_dld_shl_load=yes
  10016. else
  10017. ac_cv_lib_dld_shl_load=no
  10018. fi
  10019. rm -f core conftest.err conftest.$ac_objext \
  10020. conftest$ac_exeext conftest.$ac_ext
  10021. LIBS=$ac_check_lib_save_LIBS
  10022. fi
  10023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10024. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10025. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  10026. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10027. else
  10028. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10029. if test "x$ac_cv_func_dlopen" = x""yes; then :
  10030. lt_cv_dlopen="dlopen"
  10031. else
  10032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10033. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10034. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  10035. $as_echo_n "(cached) " >&6
  10036. else
  10037. ac_check_lib_save_LIBS=$LIBS
  10038. LIBS="-ldl $LIBS"
  10039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10040. /* end confdefs.h. */
  10041. /* Override any GCC internal prototype to avoid an error.
  10042. Use char because int might match the return type of a GCC
  10043. builtin and then its argument prototype would still apply. */
  10044. #ifdef __cplusplus
  10045. extern "C"
  10046. #endif
  10047. char dlopen ();
  10048. int
  10049. main ()
  10050. {
  10051. return dlopen ();
  10052. ;
  10053. return 0;
  10054. }
  10055. _ACEOF
  10056. if ac_fn_c_try_link "$LINENO"; then :
  10057. ac_cv_lib_dl_dlopen=yes
  10058. else
  10059. ac_cv_lib_dl_dlopen=no
  10060. fi
  10061. rm -f core conftest.err conftest.$ac_objext \
  10062. conftest$ac_exeext conftest.$ac_ext
  10063. LIBS=$ac_check_lib_save_LIBS
  10064. fi
  10065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10066. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10067. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  10068. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10069. else
  10070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10071. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10072. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  10073. $as_echo_n "(cached) " >&6
  10074. else
  10075. ac_check_lib_save_LIBS=$LIBS
  10076. LIBS="-lsvld $LIBS"
  10077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10078. /* end confdefs.h. */
  10079. /* Override any GCC internal prototype to avoid an error.
  10080. Use char because int might match the return type of a GCC
  10081. builtin and then its argument prototype would still apply. */
  10082. #ifdef __cplusplus
  10083. extern "C"
  10084. #endif
  10085. char dlopen ();
  10086. int
  10087. main ()
  10088. {
  10089. return dlopen ();
  10090. ;
  10091. return 0;
  10092. }
  10093. _ACEOF
  10094. if ac_fn_c_try_link "$LINENO"; then :
  10095. ac_cv_lib_svld_dlopen=yes
  10096. else
  10097. ac_cv_lib_svld_dlopen=no
  10098. fi
  10099. rm -f core conftest.err conftest.$ac_objext \
  10100. conftest$ac_exeext conftest.$ac_ext
  10101. LIBS=$ac_check_lib_save_LIBS
  10102. fi
  10103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10104. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10105. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  10106. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10107. else
  10108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10109. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10110. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  10111. $as_echo_n "(cached) " >&6
  10112. else
  10113. ac_check_lib_save_LIBS=$LIBS
  10114. LIBS="-ldld $LIBS"
  10115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10116. /* end confdefs.h. */
  10117. /* Override any GCC internal prototype to avoid an error.
  10118. Use char because int might match the return type of a GCC
  10119. builtin and then its argument prototype would still apply. */
  10120. #ifdef __cplusplus
  10121. extern "C"
  10122. #endif
  10123. char dld_link ();
  10124. int
  10125. main ()
  10126. {
  10127. return dld_link ();
  10128. ;
  10129. return 0;
  10130. }
  10131. _ACEOF
  10132. if ac_fn_c_try_link "$LINENO"; then :
  10133. ac_cv_lib_dld_dld_link=yes
  10134. else
  10135. ac_cv_lib_dld_dld_link=no
  10136. fi
  10137. rm -f core conftest.err conftest.$ac_objext \
  10138. conftest$ac_exeext conftest.$ac_ext
  10139. LIBS=$ac_check_lib_save_LIBS
  10140. fi
  10141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10142. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10143. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  10144. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10145. fi
  10146. fi
  10147. fi
  10148. fi
  10149. fi
  10150. fi
  10151. ;;
  10152. esac
  10153. if test "x$lt_cv_dlopen" != xno; then
  10154. enable_dlopen=yes
  10155. else
  10156. enable_dlopen=no
  10157. fi
  10158. case $lt_cv_dlopen in
  10159. dlopen)
  10160. save_CPPFLAGS="$CPPFLAGS"
  10161. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10162. save_LDFLAGS="$LDFLAGS"
  10163. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10164. save_LIBS="$LIBS"
  10165. LIBS="$lt_cv_dlopen_libs $LIBS"
  10166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10167. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10168. if test "${lt_cv_dlopen_self+set}" = set; then :
  10169. $as_echo_n "(cached) " >&6
  10170. else
  10171. if test "$cross_compiling" = yes; then :
  10172. lt_cv_dlopen_self=cross
  10173. else
  10174. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10175. lt_status=$lt_dlunknown
  10176. cat > conftest.$ac_ext <<_LT_EOF
  10177. #line 11788 "configure"
  10178. #include "confdefs.h"
  10179. #if HAVE_DLFCN_H
  10180. #include <dlfcn.h>
  10181. #endif
  10182. #include <stdio.h>
  10183. #ifdef RTLD_GLOBAL
  10184. # define LT_DLGLOBAL RTLD_GLOBAL
  10185. #else
  10186. # ifdef DL_GLOBAL
  10187. # define LT_DLGLOBAL DL_GLOBAL
  10188. # else
  10189. # define LT_DLGLOBAL 0
  10190. # endif
  10191. #endif
  10192. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10193. find out it does not work in some platform. */
  10194. #ifndef LT_DLLAZY_OR_NOW
  10195. # ifdef RTLD_LAZY
  10196. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10197. # else
  10198. # ifdef DL_LAZY
  10199. # define LT_DLLAZY_OR_NOW DL_LAZY
  10200. # else
  10201. # ifdef RTLD_NOW
  10202. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10203. # else
  10204. # ifdef DL_NOW
  10205. # define LT_DLLAZY_OR_NOW DL_NOW
  10206. # else
  10207. # define LT_DLLAZY_OR_NOW 0
  10208. # endif
  10209. # endif
  10210. # endif
  10211. # endif
  10212. #endif
  10213. /* When -fvisbility=hidden is used, assume the code has been annotated
  10214. correspondingly for the symbols needed. */
  10215. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10216. void fnord () __attribute__((visibility("default")));
  10217. #endif
  10218. void fnord () { int i=42; }
  10219. int main ()
  10220. {
  10221. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10222. int status = $lt_dlunknown;
  10223. if (self)
  10224. {
  10225. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10226. else
  10227. {
  10228. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10229. else puts (dlerror ());
  10230. }
  10231. /* dlclose (self); */
  10232. }
  10233. else
  10234. puts (dlerror ());
  10235. return status;
  10236. }
  10237. _LT_EOF
  10238. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10239. (eval $ac_link) 2>&5
  10240. ac_status=$?
  10241. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10242. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10243. (./conftest; exit; ) >&5 2>/dev/null
  10244. lt_status=$?
  10245. case x$lt_status in
  10246. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10247. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10248. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10249. esac
  10250. else :
  10251. # compilation failed
  10252. lt_cv_dlopen_self=no
  10253. fi
  10254. fi
  10255. rm -fr conftest*
  10256. fi
  10257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10258. $as_echo "$lt_cv_dlopen_self" >&6; }
  10259. if test "x$lt_cv_dlopen_self" = xyes; then
  10260. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10262. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10263. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  10264. $as_echo_n "(cached) " >&6
  10265. else
  10266. if test "$cross_compiling" = yes; then :
  10267. lt_cv_dlopen_self_static=cross
  10268. else
  10269. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10270. lt_status=$lt_dlunknown
  10271. cat > conftest.$ac_ext <<_LT_EOF
  10272. #line 11894 "configure"
  10273. #include "confdefs.h"
  10274. #if HAVE_DLFCN_H
  10275. #include <dlfcn.h>
  10276. #endif
  10277. #include <stdio.h>
  10278. #ifdef RTLD_GLOBAL
  10279. # define LT_DLGLOBAL RTLD_GLOBAL
  10280. #else
  10281. # ifdef DL_GLOBAL
  10282. # define LT_DLGLOBAL DL_GLOBAL
  10283. # else
  10284. # define LT_DLGLOBAL 0
  10285. # endif
  10286. #endif
  10287. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10288. find out it does not work in some platform. */
  10289. #ifndef LT_DLLAZY_OR_NOW
  10290. # ifdef RTLD_LAZY
  10291. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10292. # else
  10293. # ifdef DL_LAZY
  10294. # define LT_DLLAZY_OR_NOW DL_LAZY
  10295. # else
  10296. # ifdef RTLD_NOW
  10297. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10298. # else
  10299. # ifdef DL_NOW
  10300. # define LT_DLLAZY_OR_NOW DL_NOW
  10301. # else
  10302. # define LT_DLLAZY_OR_NOW 0
  10303. # endif
  10304. # endif
  10305. # endif
  10306. # endif
  10307. #endif
  10308. /* When -fvisbility=hidden is used, assume the code has been annotated
  10309. correspondingly for the symbols needed. */
  10310. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10311. void fnord () __attribute__((visibility("default")));
  10312. #endif
  10313. void fnord () { int i=42; }
  10314. int main ()
  10315. {
  10316. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10317. int status = $lt_dlunknown;
  10318. if (self)
  10319. {
  10320. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10321. else
  10322. {
  10323. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10324. else puts (dlerror ());
  10325. }
  10326. /* dlclose (self); */
  10327. }
  10328. else
  10329. puts (dlerror ());
  10330. return status;
  10331. }
  10332. _LT_EOF
  10333. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10334. (eval $ac_link) 2>&5
  10335. ac_status=$?
  10336. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10337. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10338. (./conftest; exit; ) >&5 2>/dev/null
  10339. lt_status=$?
  10340. case x$lt_status in
  10341. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10342. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10343. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10344. esac
  10345. else :
  10346. # compilation failed
  10347. lt_cv_dlopen_self_static=no
  10348. fi
  10349. fi
  10350. rm -fr conftest*
  10351. fi
  10352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10353. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10354. fi
  10355. CPPFLAGS="$save_CPPFLAGS"
  10356. LDFLAGS="$save_LDFLAGS"
  10357. LIBS="$save_LIBS"
  10358. ;;
  10359. esac
  10360. case $lt_cv_dlopen_self in
  10361. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10362. *) enable_dlopen_self=unknown ;;
  10363. esac
  10364. case $lt_cv_dlopen_self_static in
  10365. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10366. *) enable_dlopen_self_static=unknown ;;
  10367. esac
  10368. fi
  10369. striplib=
  10370. old_striplib=
  10371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10372. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10373. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10374. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10375. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10377. $as_echo "yes" >&6; }
  10378. else
  10379. # FIXME - insert some real tests, host_os isn't really good enough
  10380. case $host_os in
  10381. darwin*)
  10382. if test -n "$STRIP" ; then
  10383. striplib="$STRIP -x"
  10384. old_striplib="$STRIP -S"
  10385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10386. $as_echo "yes" >&6; }
  10387. else
  10388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10389. $as_echo "no" >&6; }
  10390. fi
  10391. ;;
  10392. *)
  10393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10394. $as_echo "no" >&6; }
  10395. ;;
  10396. esac
  10397. fi
  10398. # Report which library types will actually be built
  10399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10400. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10402. $as_echo "$can_build_shared" >&6; }
  10403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10404. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10405. test "$can_build_shared" = "no" && enable_shared=no
  10406. # On AIX, shared libraries and static libraries use the same namespace, and
  10407. # are all built from PIC.
  10408. case $host_os in
  10409. aix3*)
  10410. test "$enable_shared" = yes && enable_static=no
  10411. if test -n "$RANLIB"; then
  10412. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10413. postinstall_cmds='$RANLIB $lib'
  10414. fi
  10415. ;;
  10416. aix[4-9]*)
  10417. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10418. test "$enable_shared" = yes && enable_static=no
  10419. fi
  10420. ;;
  10421. esac
  10422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10423. $as_echo "$enable_shared" >&6; }
  10424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10425. $as_echo_n "checking whether to build static libraries... " >&6; }
  10426. # Make sure either enable_shared or enable_static is yes.
  10427. test "$enable_shared" = yes || enable_static=yes
  10428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10429. $as_echo "$enable_static" >&6; }
  10430. fi
  10431. ac_ext=c
  10432. ac_cpp='$CPP $CPPFLAGS'
  10433. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10434. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10435. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10436. CC="$lt_save_CC"
  10437. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10438. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10439. (test "X$CXX" != "Xg++"))) ; then
  10440. ac_ext=cpp
  10441. ac_cpp='$CXXCPP $CPPFLAGS'
  10442. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10443. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10444. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10446. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10447. if test -z "$CXXCPP"; then
  10448. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  10449. $as_echo_n "(cached) " >&6
  10450. else
  10451. # Double quotes because CXXCPP needs to be expanded
  10452. for CXXCPP in "$CXX -E" "/lib/cpp"
  10453. do
  10454. ac_preproc_ok=false
  10455. for ac_cxx_preproc_warn_flag in '' yes
  10456. do
  10457. # Use a header file that comes with gcc, so configuring glibc
  10458. # with a fresh cross-compiler works.
  10459. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10460. # <limits.h> exists even on freestanding compilers.
  10461. # On the NeXT, cc -E runs the code through the compiler's parser,
  10462. # not just through cpp. "Syntax error" is here to catch this case.
  10463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10464. /* end confdefs.h. */
  10465. #ifdef __STDC__
  10466. # include <limits.h>
  10467. #else
  10468. # include <assert.h>
  10469. #endif
  10470. Syntax error
  10471. _ACEOF
  10472. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10473. else
  10474. # Broken: fails on valid input.
  10475. continue
  10476. fi
  10477. rm -f conftest.err conftest.$ac_ext
  10478. # OK, works on sane cases. Now check whether nonexistent headers
  10479. # can be detected and how.
  10480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10481. /* end confdefs.h. */
  10482. #include <ac_nonexistent.h>
  10483. _ACEOF
  10484. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10485. # Broken: success on invalid input.
  10486. continue
  10487. else
  10488. # Passes both tests.
  10489. ac_preproc_ok=:
  10490. break
  10491. fi
  10492. rm -f conftest.err conftest.$ac_ext
  10493. done
  10494. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10495. rm -f conftest.err conftest.$ac_ext
  10496. if $ac_preproc_ok; then :
  10497. break
  10498. fi
  10499. done
  10500. ac_cv_prog_CXXCPP=$CXXCPP
  10501. fi
  10502. CXXCPP=$ac_cv_prog_CXXCPP
  10503. else
  10504. ac_cv_prog_CXXCPP=$CXXCPP
  10505. fi
  10506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10507. $as_echo "$CXXCPP" >&6; }
  10508. ac_preproc_ok=false
  10509. for ac_cxx_preproc_warn_flag in '' yes
  10510. do
  10511. # Use a header file that comes with gcc, so configuring glibc
  10512. # with a fresh cross-compiler works.
  10513. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10514. # <limits.h> exists even on freestanding compilers.
  10515. # On the NeXT, cc -E runs the code through the compiler's parser,
  10516. # not just through cpp. "Syntax error" is here to catch this case.
  10517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10518. /* end confdefs.h. */
  10519. #ifdef __STDC__
  10520. # include <limits.h>
  10521. #else
  10522. # include <assert.h>
  10523. #endif
  10524. Syntax error
  10525. _ACEOF
  10526. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10527. else
  10528. # Broken: fails on valid input.
  10529. continue
  10530. fi
  10531. rm -f conftest.err conftest.$ac_ext
  10532. # OK, works on sane cases. Now check whether nonexistent headers
  10533. # can be detected and how.
  10534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10535. /* end confdefs.h. */
  10536. #include <ac_nonexistent.h>
  10537. _ACEOF
  10538. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10539. # Broken: success on invalid input.
  10540. continue
  10541. else
  10542. # Passes both tests.
  10543. ac_preproc_ok=:
  10544. break
  10545. fi
  10546. rm -f conftest.err conftest.$ac_ext
  10547. done
  10548. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10549. rm -f conftest.err conftest.$ac_ext
  10550. if $ac_preproc_ok; then :
  10551. else
  10552. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10553. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10554. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  10555. See \`config.log' for more details." "$LINENO" 5; }
  10556. fi
  10557. ac_ext=c
  10558. ac_cpp='$CPP $CPPFLAGS'
  10559. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10560. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10561. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10562. else
  10563. _lt_caught_CXX_error=yes
  10564. fi
  10565. ac_ext=cpp
  10566. ac_cpp='$CXXCPP $CPPFLAGS'
  10567. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10568. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10569. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10570. archive_cmds_need_lc_CXX=no
  10571. allow_undefined_flag_CXX=
  10572. always_export_symbols_CXX=no
  10573. archive_expsym_cmds_CXX=
  10574. compiler_needs_object_CXX=no
  10575. export_dynamic_flag_spec_CXX=
  10576. hardcode_direct_CXX=no
  10577. hardcode_direct_absolute_CXX=no
  10578. hardcode_libdir_flag_spec_CXX=
  10579. hardcode_libdir_flag_spec_ld_CXX=
  10580. hardcode_libdir_separator_CXX=
  10581. hardcode_minus_L_CXX=no
  10582. hardcode_shlibpath_var_CXX=unsupported
  10583. hardcode_automatic_CXX=no
  10584. inherit_rpath_CXX=no
  10585. module_cmds_CXX=
  10586. module_expsym_cmds_CXX=
  10587. link_all_deplibs_CXX=unknown
  10588. old_archive_cmds_CXX=$old_archive_cmds
  10589. reload_flag_CXX=$reload_flag
  10590. reload_cmds_CXX=$reload_cmds
  10591. no_undefined_flag_CXX=
  10592. whole_archive_flag_spec_CXX=
  10593. enable_shared_with_static_runtimes_CXX=no
  10594. # Source file extension for C++ test sources.
  10595. ac_ext=cpp
  10596. # Object file extension for compiled C++ test sources.
  10597. objext=o
  10598. objext_CXX=$objext
  10599. # No sense in running all these tests if we already determined that
  10600. # the CXX compiler isn't working. Some variables (like enable_shared)
  10601. # are currently assumed to apply to all compilers on this platform,
  10602. # and will be corrupted by setting them based on a non-working compiler.
  10603. if test "$_lt_caught_CXX_error" != yes; then
  10604. # Code to be used in simple compile tests
  10605. lt_simple_compile_test_code="int some_variable = 0;"
  10606. # Code to be used in simple link tests
  10607. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10608. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10609. # If no C compiler was specified, use CC.
  10610. LTCC=${LTCC-"$CC"}
  10611. # If no C compiler flags were specified, use CFLAGS.
  10612. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10613. # Allow CC to be a program name with arguments.
  10614. compiler=$CC
  10615. # save warnings/boilerplate of simple test code
  10616. ac_outfile=conftest.$ac_objext
  10617. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10618. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10619. _lt_compiler_boilerplate=`cat conftest.err`
  10620. $RM conftest*
  10621. ac_outfile=conftest.$ac_objext
  10622. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10623. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10624. _lt_linker_boilerplate=`cat conftest.err`
  10625. $RM -r conftest*
  10626. # Allow CC to be a program name with arguments.
  10627. lt_save_CC=$CC
  10628. lt_save_LD=$LD
  10629. lt_save_GCC=$GCC
  10630. GCC=$GXX
  10631. lt_save_with_gnu_ld=$with_gnu_ld
  10632. lt_save_path_LD=$lt_cv_path_LD
  10633. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10634. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10635. else
  10636. $as_unset lt_cv_prog_gnu_ld
  10637. fi
  10638. if test -n "${lt_cv_path_LDCXX+set}"; then
  10639. lt_cv_path_LD=$lt_cv_path_LDCXX
  10640. else
  10641. $as_unset lt_cv_path_LD
  10642. fi
  10643. test -z "${LDCXX+set}" || LD=$LDCXX
  10644. CC=${CXX-"c++"}
  10645. compiler=$CC
  10646. compiler_CXX=$CC
  10647. for cc_temp in $compiler""; do
  10648. case $cc_temp in
  10649. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10650. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10651. \-*) ;;
  10652. *) break;;
  10653. esac
  10654. done
  10655. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10656. if test -n "$compiler"; then
  10657. # We don't want -fno-exception when compiling C++ code, so set the
  10658. # no_builtin_flag separately
  10659. if test "$GXX" = yes; then
  10660. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10661. else
  10662. lt_prog_compiler_no_builtin_flag_CXX=
  10663. fi
  10664. if test "$GXX" = yes; then
  10665. # Set up default GNU C++ configuration
  10666. # Check whether --with-gnu-ld was given.
  10667. if test "${with_gnu_ld+set}" = set; then :
  10668. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10669. else
  10670. with_gnu_ld=no
  10671. fi
  10672. ac_prog=ld
  10673. if test "$GCC" = yes; then
  10674. # Check if gcc -print-prog-name=ld gives a path.
  10675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10676. $as_echo_n "checking for ld used by $CC... " >&6; }
  10677. case $host in
  10678. *-*-mingw*)
  10679. # gcc leaves a trailing carriage return which upsets mingw
  10680. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10681. *)
  10682. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10683. esac
  10684. case $ac_prog in
  10685. # Accept absolute paths.
  10686. [\\/]* | ?:[\\/]*)
  10687. re_direlt='/[^/][^/]*/\.\./'
  10688. # Canonicalize the pathname of ld
  10689. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10690. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10691. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10692. done
  10693. test -z "$LD" && LD="$ac_prog"
  10694. ;;
  10695. "")
  10696. # If it fails, then pretend we aren't using GCC.
  10697. ac_prog=ld
  10698. ;;
  10699. *)
  10700. # If it is relative, then search for the first ld in PATH.
  10701. with_gnu_ld=unknown
  10702. ;;
  10703. esac
  10704. elif test "$with_gnu_ld" = yes; then
  10705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10706. $as_echo_n "checking for GNU ld... " >&6; }
  10707. else
  10708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10709. $as_echo_n "checking for non-GNU ld... " >&6; }
  10710. fi
  10711. if test "${lt_cv_path_LD+set}" = set; then :
  10712. $as_echo_n "(cached) " >&6
  10713. else
  10714. if test -z "$LD"; then
  10715. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10716. for ac_dir in $PATH; do
  10717. IFS="$lt_save_ifs"
  10718. test -z "$ac_dir" && ac_dir=.
  10719. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10720. lt_cv_path_LD="$ac_dir/$ac_prog"
  10721. # Check to see if the program is GNU ld. I'd rather use --version,
  10722. # but apparently some variants of GNU ld only accept -v.
  10723. # Break only if it was the GNU/non-GNU ld that we prefer.
  10724. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10725. *GNU* | *'with BFD'*)
  10726. test "$with_gnu_ld" != no && break
  10727. ;;
  10728. *)
  10729. test "$with_gnu_ld" != yes && break
  10730. ;;
  10731. esac
  10732. fi
  10733. done
  10734. IFS="$lt_save_ifs"
  10735. else
  10736. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10737. fi
  10738. fi
  10739. LD="$lt_cv_path_LD"
  10740. if test -n "$LD"; then
  10741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10742. $as_echo "$LD" >&6; }
  10743. else
  10744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10745. $as_echo "no" >&6; }
  10746. fi
  10747. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10749. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10750. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10751. $as_echo_n "(cached) " >&6
  10752. else
  10753. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10754. case `$LD -v 2>&1 </dev/null` in
  10755. *GNU* | *'with BFD'*)
  10756. lt_cv_prog_gnu_ld=yes
  10757. ;;
  10758. *)
  10759. lt_cv_prog_gnu_ld=no
  10760. ;;
  10761. esac
  10762. fi
  10763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10764. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10765. with_gnu_ld=$lt_cv_prog_gnu_ld
  10766. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10767. # archiving commands below assume that GNU ld is being used.
  10768. if test "$with_gnu_ld" = yes; then
  10769. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10770. 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'
  10771. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10772. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10773. # If archive_cmds runs LD, not CC, wlarc should be empty
  10774. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10775. # investigate it a little bit more. (MM)
  10776. wlarc='${wl}'
  10777. # ancient GNU ld didn't support --whole-archive et. al.
  10778. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10779. $GREP 'no-whole-archive' > /dev/null; then
  10780. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10781. else
  10782. whole_archive_flag_spec_CXX=
  10783. fi
  10784. else
  10785. with_gnu_ld=no
  10786. wlarc=
  10787. # A generic and very simple default shared library creation
  10788. # command for GNU C++ for the case where it uses the native
  10789. # linker, instead of GNU ld. If possible, this setting should
  10790. # overridden to take advantage of the native linker features on
  10791. # the platform it is being used on.
  10792. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10793. fi
  10794. # Commands to make compiler produce verbose output that lists
  10795. # what "hidden" libraries, object files and flags are used when
  10796. # linking a shared library.
  10797. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10798. else
  10799. GXX=no
  10800. with_gnu_ld=no
  10801. wlarc=
  10802. fi
  10803. # PORTME: fill in a description of your system's C++ link characteristics
  10804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10805. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10806. ld_shlibs_CXX=yes
  10807. case $host_os in
  10808. aix3*)
  10809. # FIXME: insert proper C++ library support
  10810. ld_shlibs_CXX=no
  10811. ;;
  10812. aix[4-9]*)
  10813. if test "$host_cpu" = ia64; then
  10814. # On IA64, the linker does run time linking by default, so we don't
  10815. # have to do anything special.
  10816. aix_use_runtimelinking=no
  10817. exp_sym_flag='-Bexport'
  10818. no_entry_flag=""
  10819. else
  10820. aix_use_runtimelinking=no
  10821. # Test if we are trying to use run time linking or normal
  10822. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10823. # need to do runtime linking.
  10824. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10825. for ld_flag in $LDFLAGS; do
  10826. case $ld_flag in
  10827. *-brtl*)
  10828. aix_use_runtimelinking=yes
  10829. break
  10830. ;;
  10831. esac
  10832. done
  10833. ;;
  10834. esac
  10835. exp_sym_flag='-bexport'
  10836. no_entry_flag='-bnoentry'
  10837. fi
  10838. # When large executables or shared objects are built, AIX ld can
  10839. # have problems creating the table of contents. If linking a library
  10840. # or program results in "error TOC overflow" add -mminimal-toc to
  10841. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10842. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10843. archive_cmds_CXX=''
  10844. hardcode_direct_CXX=yes
  10845. hardcode_direct_absolute_CXX=yes
  10846. hardcode_libdir_separator_CXX=':'
  10847. link_all_deplibs_CXX=yes
  10848. file_list_spec_CXX='${wl}-f,'
  10849. if test "$GXX" = yes; then
  10850. case $host_os in aix4.[012]|aix4.[012].*)
  10851. # We only want to do this on AIX 4.2 and lower, the check
  10852. # below for broken collect2 doesn't work under 4.3+
  10853. collect2name=`${CC} -print-prog-name=collect2`
  10854. if test -f "$collect2name" &&
  10855. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10856. then
  10857. # We have reworked collect2
  10858. :
  10859. else
  10860. # We have old collect2
  10861. hardcode_direct_CXX=unsupported
  10862. # It fails to find uninstalled libraries when the uninstalled
  10863. # path is not listed in the libpath. Setting hardcode_minus_L
  10864. # to unsupported forces relinking
  10865. hardcode_minus_L_CXX=yes
  10866. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10867. hardcode_libdir_separator_CXX=
  10868. fi
  10869. esac
  10870. shared_flag='-shared'
  10871. if test "$aix_use_runtimelinking" = yes; then
  10872. shared_flag="$shared_flag "'${wl}-G'
  10873. fi
  10874. else
  10875. # not using gcc
  10876. if test "$host_cpu" = ia64; then
  10877. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10878. # chokes on -Wl,-G. The following line is correct:
  10879. shared_flag='-G'
  10880. else
  10881. if test "$aix_use_runtimelinking" = yes; then
  10882. shared_flag='${wl}-G'
  10883. else
  10884. shared_flag='${wl}-bM:SRE'
  10885. fi
  10886. fi
  10887. fi
  10888. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10889. # It seems that -bexpall does not export symbols beginning with
  10890. # underscore (_), so it is better to generate a list of symbols to
  10891. # export.
  10892. always_export_symbols_CXX=yes
  10893. if test "$aix_use_runtimelinking" = yes; then
  10894. # Warning - without using the other runtime loading flags (-brtl),
  10895. # -berok will link without error, but may produce a broken library.
  10896. allow_undefined_flag_CXX='-berok'
  10897. # Determine the default libpath from the value encoded in an empty
  10898. # executable.
  10899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10900. /* end confdefs.h. */
  10901. int
  10902. main ()
  10903. {
  10904. ;
  10905. return 0;
  10906. }
  10907. _ACEOF
  10908. if ac_fn_cxx_try_link "$LINENO"; then :
  10909. lt_aix_libpath_sed='
  10910. /Import File Strings/,/^$/ {
  10911. /^0/ {
  10912. s/^0 *\(.*\)$/\1/
  10913. p
  10914. }
  10915. }'
  10916. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10917. # Check for a 64-bit object if we didn't find anything.
  10918. if test -z "$aix_libpath"; then
  10919. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10920. fi
  10921. fi
  10922. rm -f core conftest.err conftest.$ac_objext \
  10923. conftest$ac_exeext conftest.$ac_ext
  10924. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10925. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10926. 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"
  10927. else
  10928. if test "$host_cpu" = ia64; then
  10929. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10930. allow_undefined_flag_CXX="-z nodefs"
  10931. 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"
  10932. else
  10933. # Determine the default libpath from the value encoded in an
  10934. # empty executable.
  10935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10936. /* end confdefs.h. */
  10937. int
  10938. main ()
  10939. {
  10940. ;
  10941. return 0;
  10942. }
  10943. _ACEOF
  10944. if ac_fn_cxx_try_link "$LINENO"; then :
  10945. lt_aix_libpath_sed='
  10946. /Import File Strings/,/^$/ {
  10947. /^0/ {
  10948. s/^0 *\(.*\)$/\1/
  10949. p
  10950. }
  10951. }'
  10952. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10953. # Check for a 64-bit object if we didn't find anything.
  10954. if test -z "$aix_libpath"; then
  10955. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10956. fi
  10957. fi
  10958. rm -f core conftest.err conftest.$ac_objext \
  10959. conftest$ac_exeext conftest.$ac_ext
  10960. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10961. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10962. # Warning - without using the other run time loading flags,
  10963. # -berok will link without error, but may produce a broken library.
  10964. no_undefined_flag_CXX=' ${wl}-bernotok'
  10965. allow_undefined_flag_CXX=' ${wl}-berok'
  10966. if test "$with_gnu_ld" = yes; then
  10967. # We only use this code for GNU lds that support --whole-archive.
  10968. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10969. else
  10970. # Exported symbols can be pulled into shared objects from archives
  10971. whole_archive_flag_spec_CXX='$convenience'
  10972. fi
  10973. archive_cmds_need_lc_CXX=yes
  10974. # This is similar to how AIX traditionally builds its shared
  10975. # libraries.
  10976. 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'
  10977. fi
  10978. fi
  10979. ;;
  10980. beos*)
  10981. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10982. allow_undefined_flag_CXX=unsupported
  10983. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10984. # support --undefined. This deserves some investigation. FIXME
  10985. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10986. else
  10987. ld_shlibs_CXX=no
  10988. fi
  10989. ;;
  10990. chorus*)
  10991. case $cc_basename in
  10992. *)
  10993. # FIXME: insert proper C++ library support
  10994. ld_shlibs_CXX=no
  10995. ;;
  10996. esac
  10997. ;;
  10998. cygwin* | mingw* | pw32* | cegcc*)
  10999. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11000. # as there is no search path for DLLs.
  11001. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11002. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11003. allow_undefined_flag_CXX=unsupported
  11004. always_export_symbols_CXX=no
  11005. enable_shared_with_static_runtimes_CXX=yes
  11006. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11007. 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'
  11008. # If the export-symbols file already is a .def file (1st line
  11009. # is EXPORTS), use it as is; otherwise, prepend...
  11010. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11011. cp $export_symbols $output_objdir/$soname.def;
  11012. else
  11013. echo EXPORTS > $output_objdir/$soname.def;
  11014. cat $export_symbols >> $output_objdir/$soname.def;
  11015. fi~
  11016. $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'
  11017. else
  11018. ld_shlibs_CXX=no
  11019. fi
  11020. ;;
  11021. darwin* | rhapsody*)
  11022. archive_cmds_need_lc_CXX=no
  11023. hardcode_direct_CXX=no
  11024. hardcode_automatic_CXX=yes
  11025. hardcode_shlibpath_var_CXX=unsupported
  11026. if test "$lt_cv_ld_force_load" = "yes"; then
  11027. 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\"`'
  11028. else
  11029. whole_archive_flag_spec_CXX=''
  11030. fi
  11031. link_all_deplibs_CXX=yes
  11032. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11033. case $cc_basename in
  11034. ifort*) _lt_dar_can_shared=yes ;;
  11035. *) _lt_dar_can_shared=$GCC ;;
  11036. esac
  11037. if test "$_lt_dar_can_shared" = "yes"; then
  11038. output_verbose_link_cmd=func_echo_all
  11039. 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}"
  11040. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11041. 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}"
  11042. 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}"
  11043. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11044. 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}"
  11045. 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}"
  11046. fi
  11047. else
  11048. ld_shlibs_CXX=no
  11049. fi
  11050. ;;
  11051. dgux*)
  11052. case $cc_basename in
  11053. ec++*)
  11054. # FIXME: insert proper C++ library support
  11055. ld_shlibs_CXX=no
  11056. ;;
  11057. ghcx*)
  11058. # Green Hills C++ Compiler
  11059. # FIXME: insert proper C++ library support
  11060. ld_shlibs_CXX=no
  11061. ;;
  11062. *)
  11063. # FIXME: insert proper C++ library support
  11064. ld_shlibs_CXX=no
  11065. ;;
  11066. esac
  11067. ;;
  11068. freebsd2.*)
  11069. # C++ shared libraries reported to be fairly broken before
  11070. # switch to ELF
  11071. ld_shlibs_CXX=no
  11072. ;;
  11073. freebsd-elf*)
  11074. archive_cmds_need_lc_CXX=no
  11075. ;;
  11076. freebsd* | dragonfly*)
  11077. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11078. # conventions
  11079. ld_shlibs_CXX=yes
  11080. ;;
  11081. gnu*)
  11082. ;;
  11083. haiku*)
  11084. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11085. link_all_deplibs_CXX=yes
  11086. ;;
  11087. hpux9*)
  11088. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11089. hardcode_libdir_separator_CXX=:
  11090. export_dynamic_flag_spec_CXX='${wl}-E'
  11091. hardcode_direct_CXX=yes
  11092. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11093. # but as the default
  11094. # location of the library.
  11095. case $cc_basename in
  11096. CC*)
  11097. # FIXME: insert proper C++ library support
  11098. ld_shlibs_CXX=no
  11099. ;;
  11100. aCC*)
  11101. 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'
  11102. # Commands to make compiler produce verbose output that lists
  11103. # what "hidden" libraries, object files and flags are used when
  11104. # linking a shared library.
  11105. #
  11106. # There doesn't appear to be a way to prevent this compiler from
  11107. # explicitly linking system object files so we need to strip them
  11108. # from the output so that they don't get included in the library
  11109. # dependencies.
  11110. 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"'
  11111. ;;
  11112. *)
  11113. if test "$GXX" = yes; then
  11114. 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'
  11115. else
  11116. # FIXME: insert proper C++ library support
  11117. ld_shlibs_CXX=no
  11118. fi
  11119. ;;
  11120. esac
  11121. ;;
  11122. hpux10*|hpux11*)
  11123. if test $with_gnu_ld = no; then
  11124. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11125. hardcode_libdir_separator_CXX=:
  11126. case $host_cpu in
  11127. hppa*64*|ia64*)
  11128. ;;
  11129. *)
  11130. export_dynamic_flag_spec_CXX='${wl}-E'
  11131. ;;
  11132. esac
  11133. fi
  11134. case $host_cpu in
  11135. hppa*64*|ia64*)
  11136. hardcode_direct_CXX=no
  11137. hardcode_shlibpath_var_CXX=no
  11138. ;;
  11139. *)
  11140. hardcode_direct_CXX=yes
  11141. hardcode_direct_absolute_CXX=yes
  11142. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11143. # but as the default
  11144. # location of the library.
  11145. ;;
  11146. esac
  11147. case $cc_basename in
  11148. CC*)
  11149. # FIXME: insert proper C++ library support
  11150. ld_shlibs_CXX=no
  11151. ;;
  11152. aCC*)
  11153. case $host_cpu in
  11154. hppa*64*)
  11155. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11156. ;;
  11157. ia64*)
  11158. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11159. ;;
  11160. *)
  11161. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11162. ;;
  11163. esac
  11164. # Commands to make compiler produce verbose output that lists
  11165. # what "hidden" libraries, object files and flags are used when
  11166. # linking a shared library.
  11167. #
  11168. # There doesn't appear to be a way to prevent this compiler from
  11169. # explicitly linking system object files so we need to strip them
  11170. # from the output so that they don't get included in the library
  11171. # dependencies.
  11172. 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"'
  11173. ;;
  11174. *)
  11175. if test "$GXX" = yes; then
  11176. if test $with_gnu_ld = no; then
  11177. case $host_cpu in
  11178. hppa*64*)
  11179. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11180. ;;
  11181. ia64*)
  11182. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11183. ;;
  11184. *)
  11185. 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'
  11186. ;;
  11187. esac
  11188. fi
  11189. else
  11190. # FIXME: insert proper C++ library support
  11191. ld_shlibs_CXX=no
  11192. fi
  11193. ;;
  11194. esac
  11195. ;;
  11196. interix[3-9]*)
  11197. hardcode_direct_CXX=no
  11198. hardcode_shlibpath_var_CXX=no
  11199. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11200. export_dynamic_flag_spec_CXX='${wl}-E'
  11201. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11202. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11203. # default) and relocated if they conflict, which is a slow very memory
  11204. # consuming and fragmenting process. To avoid this, we pick a random,
  11205. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11206. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11207. 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'
  11208. 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'
  11209. ;;
  11210. irix5* | irix6*)
  11211. case $cc_basename in
  11212. CC*)
  11213. # SGI C++
  11214. 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'
  11215. # Archives containing C++ object files must be created using
  11216. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11217. # necessary to make sure instantiated templates are included
  11218. # in the archive.
  11219. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11220. ;;
  11221. *)
  11222. if test "$GXX" = yes; then
  11223. if test "$with_gnu_ld" = no; then
  11224. 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'
  11225. else
  11226. 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'
  11227. fi
  11228. fi
  11229. link_all_deplibs_CXX=yes
  11230. ;;
  11231. esac
  11232. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11233. hardcode_libdir_separator_CXX=:
  11234. inherit_rpath_CXX=yes
  11235. ;;
  11236. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11237. case $cc_basename in
  11238. KCC*)
  11239. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11240. # KCC will only create a shared library if the output file
  11241. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11242. # to its proper name (with version) after linking.
  11243. 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'
  11244. 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'
  11245. # Commands to make compiler produce verbose output that lists
  11246. # what "hidden" libraries, object files and flags are used when
  11247. # linking a shared library.
  11248. #
  11249. # There doesn't appear to be a way to prevent this compiler from
  11250. # explicitly linking system object files so we need to strip them
  11251. # from the output so that they don't get included in the library
  11252. # dependencies.
  11253. 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"'
  11254. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11255. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11256. # Archives containing C++ object files must be created using
  11257. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11258. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11259. ;;
  11260. icpc* | ecpc* )
  11261. # Intel C++
  11262. with_gnu_ld=yes
  11263. # version 8.0 and above of icpc choke on multiply defined symbols
  11264. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11265. # earlier do not add the objects themselves.
  11266. case `$CC -V 2>&1` in
  11267. *"Version 7."*)
  11268. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11269. 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'
  11270. ;;
  11271. *) # Version 8.0 or newer
  11272. tmp_idyn=
  11273. case $host_cpu in
  11274. ia64*) tmp_idyn=' -i_dynamic';;
  11275. esac
  11276. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11277. 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'
  11278. ;;
  11279. esac
  11280. archive_cmds_need_lc_CXX=no
  11281. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11282. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11283. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11284. ;;
  11285. pgCC* | pgcpp*)
  11286. # Portland Group C++ compiler
  11287. case `$CC -V` in
  11288. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11289. prelink_cmds_CXX='tpldir=Template.dir~
  11290. rm -rf $tpldir~
  11291. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11292. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11293. old_archive_cmds_CXX='tpldir=Template.dir~
  11294. rm -rf $tpldir~
  11295. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11296. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11297. $RANLIB $oldlib'
  11298. archive_cmds_CXX='tpldir=Template.dir~
  11299. rm -rf $tpldir~
  11300. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11301. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11302. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11303. rm -rf $tpldir~
  11304. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11305. $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'
  11306. ;;
  11307. *) # Version 6 and above use weak symbols
  11308. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11309. 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'
  11310. ;;
  11311. esac
  11312. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11313. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11314. 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'
  11315. ;;
  11316. cxx*)
  11317. # Compaq C++
  11318. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11319. 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'
  11320. runpath_var=LD_RUN_PATH
  11321. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11322. hardcode_libdir_separator_CXX=:
  11323. # Commands to make compiler produce verbose output that lists
  11324. # what "hidden" libraries, object files and flags are used when
  11325. # linking a shared library.
  11326. #
  11327. # There doesn't appear to be a way to prevent this compiler from
  11328. # explicitly linking system object files so we need to strip them
  11329. # from the output so that they don't get included in the library
  11330. # dependencies.
  11331. 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'
  11332. ;;
  11333. xl* | mpixl* | bgxl*)
  11334. # IBM XL 8.0 on PPC, with GNU ld
  11335. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11336. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11337. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11338. if test "x$supports_anon_versioning" = xyes; then
  11339. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11340. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11341. echo "local: *; };" >> $output_objdir/$libname.ver~
  11342. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11343. fi
  11344. ;;
  11345. *)
  11346. case `$CC -V 2>&1 | sed 5q` in
  11347. *Sun\ C*)
  11348. # Sun C++ 5.9
  11349. no_undefined_flag_CXX=' -zdefs'
  11350. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11351. 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'
  11352. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11353. 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'
  11354. compiler_needs_object_CXX=yes
  11355. # Not sure whether something based on
  11356. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11357. # would be better.
  11358. output_verbose_link_cmd='func_echo_all'
  11359. # Archives containing C++ object files must be created using
  11360. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11361. # necessary to make sure instantiated templates are included
  11362. # in the archive.
  11363. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11364. ;;
  11365. esac
  11366. ;;
  11367. esac
  11368. ;;
  11369. lynxos*)
  11370. # FIXME: insert proper C++ library support
  11371. ld_shlibs_CXX=no
  11372. ;;
  11373. m88k*)
  11374. # FIXME: insert proper C++ library support
  11375. ld_shlibs_CXX=no
  11376. ;;
  11377. mvs*)
  11378. case $cc_basename in
  11379. cxx*)
  11380. # FIXME: insert proper C++ library support
  11381. ld_shlibs_CXX=no
  11382. ;;
  11383. *)
  11384. # FIXME: insert proper C++ library support
  11385. ld_shlibs_CXX=no
  11386. ;;
  11387. esac
  11388. ;;
  11389. netbsd*)
  11390. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11391. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11392. wlarc=
  11393. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11394. hardcode_direct_CXX=yes
  11395. hardcode_shlibpath_var_CXX=no
  11396. fi
  11397. # Workaround some broken pre-1.5 toolchains
  11398. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11399. ;;
  11400. *nto* | *qnx*)
  11401. ld_shlibs_CXX=yes
  11402. ;;
  11403. openbsd2*)
  11404. # C++ shared libraries are fairly broken
  11405. ld_shlibs_CXX=no
  11406. ;;
  11407. openbsd*)
  11408. if test -f /usr/libexec/ld.so; then
  11409. hardcode_direct_CXX=yes
  11410. hardcode_shlibpath_var_CXX=no
  11411. hardcode_direct_absolute_CXX=yes
  11412. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11413. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11414. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11415. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11416. export_dynamic_flag_spec_CXX='${wl}-E'
  11417. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11418. fi
  11419. output_verbose_link_cmd=func_echo_all
  11420. else
  11421. ld_shlibs_CXX=no
  11422. fi
  11423. ;;
  11424. osf3* | osf4* | osf5*)
  11425. case $cc_basename in
  11426. KCC*)
  11427. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11428. # KCC will only create a shared library if the output file
  11429. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11430. # to its proper name (with version) after linking.
  11431. 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'
  11432. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11433. hardcode_libdir_separator_CXX=:
  11434. # Archives containing C++ object files must be created using
  11435. # the KAI C++ compiler.
  11436. case $host in
  11437. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11438. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11439. esac
  11440. ;;
  11441. RCC*)
  11442. # Rational C++ 2.4.1
  11443. # FIXME: insert proper C++ library support
  11444. ld_shlibs_CXX=no
  11445. ;;
  11446. cxx*)
  11447. case $host in
  11448. osf3*)
  11449. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11450. 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'
  11451. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11452. ;;
  11453. *)
  11454. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11455. 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'
  11456. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11457. echo "-hidden">> $lib.exp~
  11458. $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~
  11459. $RM $lib.exp'
  11460. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11461. ;;
  11462. esac
  11463. hardcode_libdir_separator_CXX=:
  11464. # Commands to make compiler produce verbose output that lists
  11465. # what "hidden" libraries, object files and flags are used when
  11466. # linking a shared library.
  11467. #
  11468. # There doesn't appear to be a way to prevent this compiler from
  11469. # explicitly linking system object files so we need to strip them
  11470. # from the output so that they don't get included in the library
  11471. # dependencies.
  11472. 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"'
  11473. ;;
  11474. *)
  11475. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11476. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11477. case $host in
  11478. osf3*)
  11479. 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'
  11480. ;;
  11481. *)
  11482. 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'
  11483. ;;
  11484. esac
  11485. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11486. hardcode_libdir_separator_CXX=:
  11487. # Commands to make compiler produce verbose output that lists
  11488. # what "hidden" libraries, object files and flags are used when
  11489. # linking a shared library.
  11490. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11491. else
  11492. # FIXME: insert proper C++ library support
  11493. ld_shlibs_CXX=no
  11494. fi
  11495. ;;
  11496. esac
  11497. ;;
  11498. psos*)
  11499. # FIXME: insert proper C++ library support
  11500. ld_shlibs_CXX=no
  11501. ;;
  11502. sunos4*)
  11503. case $cc_basename in
  11504. CC*)
  11505. # Sun C++ 4.x
  11506. # FIXME: insert proper C++ library support
  11507. ld_shlibs_CXX=no
  11508. ;;
  11509. lcc*)
  11510. # Lucid
  11511. # FIXME: insert proper C++ library support
  11512. ld_shlibs_CXX=no
  11513. ;;
  11514. *)
  11515. # FIXME: insert proper C++ library support
  11516. ld_shlibs_CXX=no
  11517. ;;
  11518. esac
  11519. ;;
  11520. solaris*)
  11521. case $cc_basename in
  11522. CC*)
  11523. # Sun C++ 4.2, 5.x and Centerline C++
  11524. archive_cmds_need_lc_CXX=yes
  11525. no_undefined_flag_CXX=' -zdefs'
  11526. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11527. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11528. $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'
  11529. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11530. hardcode_shlibpath_var_CXX=no
  11531. case $host_os in
  11532. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11533. *)
  11534. # The compiler driver will combine and reorder linker options,
  11535. # but understands `-z linker_flag'.
  11536. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11537. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11538. ;;
  11539. esac
  11540. link_all_deplibs_CXX=yes
  11541. output_verbose_link_cmd='func_echo_all'
  11542. # Archives containing C++ object files must be created using
  11543. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11544. # necessary to make sure instantiated templates are included
  11545. # in the archive.
  11546. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11547. ;;
  11548. gcx*)
  11549. # Green Hills C++ Compiler
  11550. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11551. # The C++ compiler must be used to create the archive.
  11552. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11553. ;;
  11554. *)
  11555. # GNU C++ compiler with Solaris linker
  11556. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11557. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11558. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11559. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11560. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11561. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11562. # Commands to make compiler produce verbose output that lists
  11563. # what "hidden" libraries, object files and flags are used when
  11564. # linking a shared library.
  11565. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11566. else
  11567. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11568. # platform.
  11569. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11570. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11571. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11572. # Commands to make compiler produce verbose output that lists
  11573. # what "hidden" libraries, object files and flags are used when
  11574. # linking a shared library.
  11575. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11576. fi
  11577. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11578. case $host_os in
  11579. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11580. *)
  11581. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11582. ;;
  11583. esac
  11584. fi
  11585. ;;
  11586. esac
  11587. ;;
  11588. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11589. no_undefined_flag_CXX='${wl}-z,text'
  11590. archive_cmds_need_lc_CXX=no
  11591. hardcode_shlibpath_var_CXX=no
  11592. runpath_var='LD_RUN_PATH'
  11593. case $cc_basename in
  11594. CC*)
  11595. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11596. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11597. ;;
  11598. *)
  11599. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11600. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11601. ;;
  11602. esac
  11603. ;;
  11604. sysv5* | sco3.2v5* | sco5v6*)
  11605. # Note: We can NOT use -z defs as we might desire, because we do not
  11606. # link with -lc, and that would cause any symbols used from libc to
  11607. # always be unresolved, which means just about no library would
  11608. # ever link correctly. If we're not using GNU ld we use -z text
  11609. # though, which does catch some bad symbols but isn't as heavy-handed
  11610. # as -z defs.
  11611. no_undefined_flag_CXX='${wl}-z,text'
  11612. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11613. archive_cmds_need_lc_CXX=no
  11614. hardcode_shlibpath_var_CXX=no
  11615. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11616. hardcode_libdir_separator_CXX=':'
  11617. link_all_deplibs_CXX=yes
  11618. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11619. runpath_var='LD_RUN_PATH'
  11620. case $cc_basename in
  11621. CC*)
  11622. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11623. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11624. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11625. '"$old_archive_cmds_CXX"
  11626. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11627. '"$reload_cmds_CXX"
  11628. ;;
  11629. *)
  11630. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11631. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11632. ;;
  11633. esac
  11634. ;;
  11635. tandem*)
  11636. case $cc_basename in
  11637. NCC*)
  11638. # NonStop-UX NCC 3.20
  11639. # FIXME: insert proper C++ library support
  11640. ld_shlibs_CXX=no
  11641. ;;
  11642. *)
  11643. # FIXME: insert proper C++ library support
  11644. ld_shlibs_CXX=no
  11645. ;;
  11646. esac
  11647. ;;
  11648. vxworks*)
  11649. # FIXME: insert proper C++ library support
  11650. ld_shlibs_CXX=no
  11651. ;;
  11652. *)
  11653. # FIXME: insert proper C++ library support
  11654. ld_shlibs_CXX=no
  11655. ;;
  11656. esac
  11657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11658. $as_echo "$ld_shlibs_CXX" >&6; }
  11659. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11660. GCC_CXX="$GXX"
  11661. LD_CXX="$LD"
  11662. ## CAVEAT EMPTOR:
  11663. ## There is no encapsulation within the following macros, do not change
  11664. ## the running order or otherwise move them around unless you know exactly
  11665. ## what you are doing...
  11666. # Dependencies to place before and after the object being linked:
  11667. predep_objects_CXX=
  11668. postdep_objects_CXX=
  11669. predeps_CXX=
  11670. postdeps_CXX=
  11671. compiler_lib_search_path_CXX=
  11672. cat > conftest.$ac_ext <<_LT_EOF
  11673. class Foo
  11674. {
  11675. public:
  11676. Foo (void) { a = 0; }
  11677. private:
  11678. int a;
  11679. };
  11680. _LT_EOF
  11681. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11682. (eval $ac_compile) 2>&5
  11683. ac_status=$?
  11684. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11685. test $ac_status = 0; }; then
  11686. # Parse the compiler output and extract the necessary
  11687. # objects, libraries and library flags.
  11688. # Sentinel used to keep track of whether or not we are before
  11689. # the conftest object file.
  11690. pre_test_object_deps_done=no
  11691. for p in `eval "$output_verbose_link_cmd"`; do
  11692. case $p in
  11693. -L* | -R* | -l*)
  11694. # Some compilers place space between "-{L,R}" and the path.
  11695. # Remove the space.
  11696. if test $p = "-L" ||
  11697. test $p = "-R"; then
  11698. prev=$p
  11699. continue
  11700. else
  11701. prev=
  11702. fi
  11703. if test "$pre_test_object_deps_done" = no; then
  11704. case $p in
  11705. -L* | -R*)
  11706. # Internal compiler library paths should come after those
  11707. # provided the user. The postdeps already come after the
  11708. # user supplied libs so there is no need to process them.
  11709. if test -z "$compiler_lib_search_path_CXX"; then
  11710. compiler_lib_search_path_CXX="${prev}${p}"
  11711. else
  11712. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11713. fi
  11714. ;;
  11715. # The "-l" case would never come before the object being
  11716. # linked, so don't bother handling this case.
  11717. esac
  11718. else
  11719. if test -z "$postdeps_CXX"; then
  11720. postdeps_CXX="${prev}${p}"
  11721. else
  11722. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11723. fi
  11724. fi
  11725. ;;
  11726. *.$objext)
  11727. # This assumes that the test object file only shows up
  11728. # once in the compiler output.
  11729. if test "$p" = "conftest.$objext"; then
  11730. pre_test_object_deps_done=yes
  11731. continue
  11732. fi
  11733. if test "$pre_test_object_deps_done" = no; then
  11734. if test -z "$predep_objects_CXX"; then
  11735. predep_objects_CXX="$p"
  11736. else
  11737. predep_objects_CXX="$predep_objects_CXX $p"
  11738. fi
  11739. else
  11740. if test -z "$postdep_objects_CXX"; then
  11741. postdep_objects_CXX="$p"
  11742. else
  11743. postdep_objects_CXX="$postdep_objects_CXX $p"
  11744. fi
  11745. fi
  11746. ;;
  11747. *) ;; # Ignore the rest.
  11748. esac
  11749. done
  11750. # Clean up.
  11751. rm -f a.out a.exe
  11752. else
  11753. echo "libtool.m4: error: problem compiling CXX test program"
  11754. fi
  11755. $RM -f confest.$objext
  11756. # PORTME: override above test on systems where it is broken
  11757. case $host_os in
  11758. interix[3-9]*)
  11759. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11760. # hack all around it, let's just trust "g++" to DTRT.
  11761. predep_objects_CXX=
  11762. postdep_objects_CXX=
  11763. postdeps_CXX=
  11764. ;;
  11765. linux*)
  11766. case `$CC -V 2>&1 | sed 5q` in
  11767. *Sun\ C*)
  11768. # Sun C++ 5.9
  11769. # The more standards-conforming stlport4 library is
  11770. # incompatible with the Cstd library. Avoid specifying
  11771. # it if it's in CXXFLAGS. Ignore libCrun as
  11772. # -library=stlport4 depends on it.
  11773. case " $CXX $CXXFLAGS " in
  11774. *" -library=stlport4 "*)
  11775. solaris_use_stlport4=yes
  11776. ;;
  11777. esac
  11778. if test "$solaris_use_stlport4" != yes; then
  11779. postdeps_CXX='-library=Cstd -library=Crun'
  11780. fi
  11781. ;;
  11782. esac
  11783. ;;
  11784. solaris*)
  11785. case $cc_basename in
  11786. CC*)
  11787. # The more standards-conforming stlport4 library is
  11788. # incompatible with the Cstd library. Avoid specifying
  11789. # it if it's in CXXFLAGS. Ignore libCrun as
  11790. # -library=stlport4 depends on it.
  11791. case " $CXX $CXXFLAGS " in
  11792. *" -library=stlport4 "*)
  11793. solaris_use_stlport4=yes
  11794. ;;
  11795. esac
  11796. # Adding this requires a known-good setup of shared libraries for
  11797. # Sun compiler versions before 5.6, else PIC objects from an old
  11798. # archive will be linked into the output, leading to subtle bugs.
  11799. if test "$solaris_use_stlport4" != yes; then
  11800. postdeps_CXX='-library=Cstd -library=Crun'
  11801. fi
  11802. ;;
  11803. esac
  11804. ;;
  11805. esac
  11806. case " $postdeps_CXX " in
  11807. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11808. esac
  11809. compiler_lib_search_dirs_CXX=
  11810. if test -n "${compiler_lib_search_path_CXX}"; then
  11811. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11812. fi
  11813. lt_prog_compiler_wl_CXX=
  11814. lt_prog_compiler_pic_CXX=
  11815. lt_prog_compiler_static_CXX=
  11816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11817. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11818. # C++ specific cases for pic, static, wl, etc.
  11819. if test "$GXX" = yes; then
  11820. lt_prog_compiler_wl_CXX='-Wl,'
  11821. lt_prog_compiler_static_CXX='-static'
  11822. case $host_os in
  11823. aix*)
  11824. # All AIX code is PIC.
  11825. if test "$host_cpu" = ia64; then
  11826. # AIX 5 now supports IA64 processor
  11827. lt_prog_compiler_static_CXX='-Bstatic'
  11828. fi
  11829. lt_prog_compiler_pic_CXX='-fPIC'
  11830. ;;
  11831. amigaos*)
  11832. case $host_cpu in
  11833. powerpc)
  11834. # see comment about AmigaOS4 .so support
  11835. lt_prog_compiler_pic_CXX='-fPIC'
  11836. ;;
  11837. m68k)
  11838. # FIXME: we need at least 68020 code to build shared libraries, but
  11839. # adding the `-m68020' flag to GCC prevents building anything better,
  11840. # like `-m68040'.
  11841. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11842. ;;
  11843. esac
  11844. ;;
  11845. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11846. # PIC is the default for these OSes.
  11847. ;;
  11848. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11849. # This hack is so that the source file can tell whether it is being
  11850. # built for inclusion in a dll (and should export symbols for example).
  11851. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11852. # (--disable-auto-import) libraries
  11853. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11854. ;;
  11855. darwin* | rhapsody*)
  11856. # PIC is the default on this platform
  11857. # Common symbols not allowed in MH_DYLIB files
  11858. lt_prog_compiler_pic_CXX='-fno-common'
  11859. ;;
  11860. *djgpp*)
  11861. # DJGPP does not support shared libraries at all
  11862. lt_prog_compiler_pic_CXX=
  11863. ;;
  11864. haiku*)
  11865. # PIC is the default for Haiku.
  11866. # The "-static" flag exists, but is broken.
  11867. lt_prog_compiler_static_CXX=
  11868. ;;
  11869. interix[3-9]*)
  11870. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11871. # Instead, we relocate shared libraries at runtime.
  11872. ;;
  11873. sysv4*MP*)
  11874. if test -d /usr/nec; then
  11875. lt_prog_compiler_pic_CXX=-Kconform_pic
  11876. fi
  11877. ;;
  11878. hpux*)
  11879. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11880. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11881. # sets the default TLS model and affects inlining.
  11882. case $host_cpu in
  11883. hppa*64*)
  11884. ;;
  11885. *)
  11886. lt_prog_compiler_pic_CXX='-fPIC'
  11887. ;;
  11888. esac
  11889. ;;
  11890. *qnx* | *nto*)
  11891. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11892. # it will coredump.
  11893. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11894. ;;
  11895. *)
  11896. lt_prog_compiler_pic_CXX='-fPIC'
  11897. ;;
  11898. esac
  11899. else
  11900. case $host_os in
  11901. aix[4-9]*)
  11902. # All AIX code is PIC.
  11903. if test "$host_cpu" = ia64; then
  11904. # AIX 5 now supports IA64 processor
  11905. lt_prog_compiler_static_CXX='-Bstatic'
  11906. else
  11907. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11908. fi
  11909. ;;
  11910. chorus*)
  11911. case $cc_basename in
  11912. cxch68*)
  11913. # Green Hills C++ Compiler
  11914. # _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"
  11915. ;;
  11916. esac
  11917. ;;
  11918. dgux*)
  11919. case $cc_basename in
  11920. ec++*)
  11921. lt_prog_compiler_pic_CXX='-KPIC'
  11922. ;;
  11923. ghcx*)
  11924. # Green Hills C++ Compiler
  11925. lt_prog_compiler_pic_CXX='-pic'
  11926. ;;
  11927. *)
  11928. ;;
  11929. esac
  11930. ;;
  11931. freebsd* | dragonfly*)
  11932. # FreeBSD uses GNU C++
  11933. ;;
  11934. hpux9* | hpux10* | hpux11*)
  11935. case $cc_basename in
  11936. CC*)
  11937. lt_prog_compiler_wl_CXX='-Wl,'
  11938. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11939. if test "$host_cpu" != ia64; then
  11940. lt_prog_compiler_pic_CXX='+Z'
  11941. fi
  11942. ;;
  11943. aCC*)
  11944. lt_prog_compiler_wl_CXX='-Wl,'
  11945. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11946. case $host_cpu in
  11947. hppa*64*|ia64*)
  11948. # +Z the default
  11949. ;;
  11950. *)
  11951. lt_prog_compiler_pic_CXX='+Z'
  11952. ;;
  11953. esac
  11954. ;;
  11955. *)
  11956. ;;
  11957. esac
  11958. ;;
  11959. interix*)
  11960. # This is c89, which is MS Visual C++ (no shared libs)
  11961. # Anyone wants to do a port?
  11962. ;;
  11963. irix5* | irix6* | nonstopux*)
  11964. case $cc_basename in
  11965. CC*)
  11966. lt_prog_compiler_wl_CXX='-Wl,'
  11967. lt_prog_compiler_static_CXX='-non_shared'
  11968. # CC pic flag -KPIC is the default.
  11969. ;;
  11970. *)
  11971. ;;
  11972. esac
  11973. ;;
  11974. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11975. case $cc_basename in
  11976. KCC*)
  11977. # KAI C++ Compiler
  11978. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11979. lt_prog_compiler_pic_CXX='-fPIC'
  11980. ;;
  11981. ecpc* )
  11982. # old Intel C++ for x86_64 which still supported -KPIC.
  11983. lt_prog_compiler_wl_CXX='-Wl,'
  11984. lt_prog_compiler_pic_CXX='-KPIC'
  11985. lt_prog_compiler_static_CXX='-static'
  11986. ;;
  11987. icpc* )
  11988. # Intel C++, used to be incompatible with GCC.
  11989. # ICC 10 doesn't accept -KPIC any more.
  11990. lt_prog_compiler_wl_CXX='-Wl,'
  11991. lt_prog_compiler_pic_CXX='-fPIC'
  11992. lt_prog_compiler_static_CXX='-static'
  11993. ;;
  11994. pgCC* | pgcpp*)
  11995. # Portland Group C++ compiler
  11996. lt_prog_compiler_wl_CXX='-Wl,'
  11997. lt_prog_compiler_pic_CXX='-fpic'
  11998. lt_prog_compiler_static_CXX='-Bstatic'
  11999. ;;
  12000. cxx*)
  12001. # Compaq C++
  12002. # Make sure the PIC flag is empty. It appears that all Alpha
  12003. # Linux and Compaq Tru64 Unix objects are PIC.
  12004. lt_prog_compiler_pic_CXX=
  12005. lt_prog_compiler_static_CXX='-non_shared'
  12006. ;;
  12007. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12008. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12009. lt_prog_compiler_wl_CXX='-Wl,'
  12010. lt_prog_compiler_pic_CXX='-qpic'
  12011. lt_prog_compiler_static_CXX='-qstaticlink'
  12012. ;;
  12013. *)
  12014. case `$CC -V 2>&1 | sed 5q` in
  12015. *Sun\ C*)
  12016. # Sun C++ 5.9
  12017. lt_prog_compiler_pic_CXX='-KPIC'
  12018. lt_prog_compiler_static_CXX='-Bstatic'
  12019. lt_prog_compiler_wl_CXX='-Qoption ld '
  12020. ;;
  12021. esac
  12022. ;;
  12023. esac
  12024. ;;
  12025. lynxos*)
  12026. ;;
  12027. m88k*)
  12028. ;;
  12029. mvs*)
  12030. case $cc_basename in
  12031. cxx*)
  12032. lt_prog_compiler_pic_CXX='-W c,exportall'
  12033. ;;
  12034. *)
  12035. ;;
  12036. esac
  12037. ;;
  12038. netbsd*)
  12039. ;;
  12040. *qnx* | *nto*)
  12041. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12042. # it will coredump.
  12043. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12044. ;;
  12045. osf3* | osf4* | osf5*)
  12046. case $cc_basename in
  12047. KCC*)
  12048. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12049. ;;
  12050. RCC*)
  12051. # Rational C++ 2.4.1
  12052. lt_prog_compiler_pic_CXX='-pic'
  12053. ;;
  12054. cxx*)
  12055. # Digital/Compaq C++
  12056. lt_prog_compiler_wl_CXX='-Wl,'
  12057. # Make sure the PIC flag is empty. It appears that all Alpha
  12058. # Linux and Compaq Tru64 Unix objects are PIC.
  12059. lt_prog_compiler_pic_CXX=
  12060. lt_prog_compiler_static_CXX='-non_shared'
  12061. ;;
  12062. *)
  12063. ;;
  12064. esac
  12065. ;;
  12066. psos*)
  12067. ;;
  12068. solaris*)
  12069. case $cc_basename in
  12070. CC*)
  12071. # Sun C++ 4.2, 5.x and Centerline C++
  12072. lt_prog_compiler_pic_CXX='-KPIC'
  12073. lt_prog_compiler_static_CXX='-Bstatic'
  12074. lt_prog_compiler_wl_CXX='-Qoption ld '
  12075. ;;
  12076. gcx*)
  12077. # Green Hills C++ Compiler
  12078. lt_prog_compiler_pic_CXX='-PIC'
  12079. ;;
  12080. *)
  12081. ;;
  12082. esac
  12083. ;;
  12084. sunos4*)
  12085. case $cc_basename in
  12086. CC*)
  12087. # Sun C++ 4.x
  12088. lt_prog_compiler_pic_CXX='-pic'
  12089. lt_prog_compiler_static_CXX='-Bstatic'
  12090. ;;
  12091. lcc*)
  12092. # Lucid
  12093. lt_prog_compiler_pic_CXX='-pic'
  12094. ;;
  12095. *)
  12096. ;;
  12097. esac
  12098. ;;
  12099. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12100. case $cc_basename in
  12101. CC*)
  12102. lt_prog_compiler_wl_CXX='-Wl,'
  12103. lt_prog_compiler_pic_CXX='-KPIC'
  12104. lt_prog_compiler_static_CXX='-Bstatic'
  12105. ;;
  12106. esac
  12107. ;;
  12108. tandem*)
  12109. case $cc_basename in
  12110. NCC*)
  12111. # NonStop-UX NCC 3.20
  12112. lt_prog_compiler_pic_CXX='-KPIC'
  12113. ;;
  12114. *)
  12115. ;;
  12116. esac
  12117. ;;
  12118. vxworks*)
  12119. ;;
  12120. *)
  12121. lt_prog_compiler_can_build_shared_CXX=no
  12122. ;;
  12123. esac
  12124. fi
  12125. case $host_os in
  12126. # For platforms which do not support PIC, -DPIC is meaningless:
  12127. *djgpp*)
  12128. lt_prog_compiler_pic_CXX=
  12129. ;;
  12130. *)
  12131. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12132. ;;
  12133. esac
  12134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  12135. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12136. #
  12137. # Check to make sure the PIC flag actually works.
  12138. #
  12139. if test -n "$lt_prog_compiler_pic_CXX"; then
  12140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12141. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12142. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  12143. $as_echo_n "(cached) " >&6
  12144. else
  12145. lt_cv_prog_compiler_pic_works_CXX=no
  12146. ac_outfile=conftest.$ac_objext
  12147. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12148. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12149. # Insert the option either (1) after the last *FLAGS variable, or
  12150. # (2) before a word containing "conftest.", or (3) at the end.
  12151. # Note that $ac_compile itself does not contain backslashes and begins
  12152. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12153. # The option is referenced via a variable to avoid confusing sed.
  12154. lt_compile=`echo "$ac_compile" | $SED \
  12155. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12156. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12157. -e 's:$: $lt_compiler_flag:'`
  12158. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12159. (eval "$lt_compile" 2>conftest.err)
  12160. ac_status=$?
  12161. cat conftest.err >&5
  12162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12163. if (exit $ac_status) && test -s "$ac_outfile"; then
  12164. # The compiler can only warn and ignore the option if not recognized
  12165. # So say no if there are warnings other than the usual output.
  12166. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12167. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12168. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12169. lt_cv_prog_compiler_pic_works_CXX=yes
  12170. fi
  12171. fi
  12172. $RM conftest*
  12173. fi
  12174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12175. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12176. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12177. case $lt_prog_compiler_pic_CXX in
  12178. "" | " "*) ;;
  12179. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12180. esac
  12181. else
  12182. lt_prog_compiler_pic_CXX=
  12183. lt_prog_compiler_can_build_shared_CXX=no
  12184. fi
  12185. fi
  12186. #
  12187. # Check to make sure the static flag actually works.
  12188. #
  12189. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12191. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12192. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  12193. $as_echo_n "(cached) " >&6
  12194. else
  12195. lt_cv_prog_compiler_static_works_CXX=no
  12196. save_LDFLAGS="$LDFLAGS"
  12197. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12198. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12199. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12200. # The linker can only warn and ignore the option if not recognized
  12201. # So say no if there are warnings
  12202. if test -s conftest.err; then
  12203. # Append any errors to the config.log.
  12204. cat conftest.err 1>&5
  12205. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12206. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12207. if diff conftest.exp conftest.er2 >/dev/null; then
  12208. lt_cv_prog_compiler_static_works_CXX=yes
  12209. fi
  12210. else
  12211. lt_cv_prog_compiler_static_works_CXX=yes
  12212. fi
  12213. fi
  12214. $RM -r conftest*
  12215. LDFLAGS="$save_LDFLAGS"
  12216. fi
  12217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12218. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12219. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12220. :
  12221. else
  12222. lt_prog_compiler_static_CXX=
  12223. fi
  12224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12225. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12226. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  12227. $as_echo_n "(cached) " >&6
  12228. else
  12229. lt_cv_prog_compiler_c_o_CXX=no
  12230. $RM -r conftest 2>/dev/null
  12231. mkdir conftest
  12232. cd conftest
  12233. mkdir out
  12234. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12235. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12236. # Insert the option either (1) after the last *FLAGS variable, or
  12237. # (2) before a word containing "conftest.", or (3) at the end.
  12238. # Note that $ac_compile itself does not contain backslashes and begins
  12239. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12240. lt_compile=`echo "$ac_compile" | $SED \
  12241. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12242. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12243. -e 's:$: $lt_compiler_flag:'`
  12244. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12245. (eval "$lt_compile" 2>out/conftest.err)
  12246. ac_status=$?
  12247. cat out/conftest.err >&5
  12248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12249. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12250. then
  12251. # The compiler can only warn and ignore the option if not recognized
  12252. # So say no if there are warnings
  12253. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12254. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12255. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12256. lt_cv_prog_compiler_c_o_CXX=yes
  12257. fi
  12258. fi
  12259. chmod u+w . 2>&5
  12260. $RM conftest*
  12261. # SGI C++ compiler will create directory out/ii_files/ for
  12262. # template instantiation
  12263. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12264. $RM out/* && rmdir out
  12265. cd ..
  12266. $RM -r conftest
  12267. $RM conftest*
  12268. fi
  12269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12270. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12272. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12273. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  12274. $as_echo_n "(cached) " >&6
  12275. else
  12276. lt_cv_prog_compiler_c_o_CXX=no
  12277. $RM -r conftest 2>/dev/null
  12278. mkdir conftest
  12279. cd conftest
  12280. mkdir out
  12281. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12282. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12283. # Insert the option either (1) after the last *FLAGS variable, or
  12284. # (2) before a word containing "conftest.", or (3) at the end.
  12285. # Note that $ac_compile itself does not contain backslashes and begins
  12286. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12287. lt_compile=`echo "$ac_compile" | $SED \
  12288. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12289. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12290. -e 's:$: $lt_compiler_flag:'`
  12291. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12292. (eval "$lt_compile" 2>out/conftest.err)
  12293. ac_status=$?
  12294. cat out/conftest.err >&5
  12295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12296. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12297. then
  12298. # The compiler can only warn and ignore the option if not recognized
  12299. # So say no if there are warnings
  12300. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12301. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12302. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12303. lt_cv_prog_compiler_c_o_CXX=yes
  12304. fi
  12305. fi
  12306. chmod u+w . 2>&5
  12307. $RM conftest*
  12308. # SGI C++ compiler will create directory out/ii_files/ for
  12309. # template instantiation
  12310. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12311. $RM out/* && rmdir out
  12312. cd ..
  12313. $RM -r conftest
  12314. $RM conftest*
  12315. fi
  12316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12317. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12318. hard_links="nottested"
  12319. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12320. # do not overwrite the value of need_locks provided by the user
  12321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12322. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12323. hard_links=yes
  12324. $RM conftest*
  12325. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12326. touch conftest.a
  12327. ln conftest.a conftest.b 2>&5 || hard_links=no
  12328. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12330. $as_echo "$hard_links" >&6; }
  12331. if test "$hard_links" = no; then
  12332. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12333. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12334. need_locks=warn
  12335. fi
  12336. else
  12337. need_locks=no
  12338. fi
  12339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12340. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12341. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12342. case $host_os in
  12343. aix[4-9]*)
  12344. # If we're using GNU nm, then we don't want the "-C" option.
  12345. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12346. # Also, AIX nm treats weak defined symbols like other global defined
  12347. # symbols, whereas GNU nm marks them as "W".
  12348. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12349. 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'
  12350. else
  12351. 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'
  12352. fi
  12353. ;;
  12354. pw32*)
  12355. export_symbols_cmds_CXX="$ltdll_cmds"
  12356. ;;
  12357. cygwin* | mingw* | cegcc*)
  12358. 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'
  12359. ;;
  12360. *)
  12361. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12362. ;;
  12363. esac
  12364. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12366. $as_echo "$ld_shlibs_CXX" >&6; }
  12367. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12368. with_gnu_ld_CXX=$with_gnu_ld
  12369. #
  12370. # Do we need to explicitly link libc?
  12371. #
  12372. case "x$archive_cmds_need_lc_CXX" in
  12373. x|xyes)
  12374. # Assume -lc should be added
  12375. archive_cmds_need_lc_CXX=yes
  12376. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12377. case $archive_cmds_CXX in
  12378. *'~'*)
  12379. # FIXME: we may have to deal with multi-command sequences.
  12380. ;;
  12381. '$CC '*)
  12382. # Test whether the compiler implicitly links with -lc since on some
  12383. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12384. # to ld, don't add -lc before -lgcc.
  12385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12386. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12387. if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
  12388. $as_echo_n "(cached) " >&6
  12389. else
  12390. $RM conftest*
  12391. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12392. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12393. (eval $ac_compile) 2>&5
  12394. ac_status=$?
  12395. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12396. test $ac_status = 0; } 2>conftest.err; then
  12397. soname=conftest
  12398. lib=conftest
  12399. libobjs=conftest.$ac_objext
  12400. deplibs=
  12401. wl=$lt_prog_compiler_wl_CXX
  12402. pic_flag=$lt_prog_compiler_pic_CXX
  12403. compiler_flags=-v
  12404. linker_flags=-v
  12405. verstring=
  12406. output_objdir=.
  12407. libname=conftest
  12408. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12409. allow_undefined_flag_CXX=
  12410. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12411. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12412. ac_status=$?
  12413. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12414. test $ac_status = 0; }
  12415. then
  12416. lt_cv_archive_cmds_need_lc_CXX=no
  12417. else
  12418. lt_cv_archive_cmds_need_lc_CXX=yes
  12419. fi
  12420. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12421. else
  12422. cat conftest.err 1>&5
  12423. fi
  12424. $RM conftest*
  12425. fi
  12426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12427. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12428. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12429. ;;
  12430. esac
  12431. fi
  12432. ;;
  12433. esac
  12434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12435. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12436. library_names_spec=
  12437. libname_spec='lib$name'
  12438. soname_spec=
  12439. shrext_cmds=".so"
  12440. postinstall_cmds=
  12441. postuninstall_cmds=
  12442. finish_cmds=
  12443. finish_eval=
  12444. shlibpath_var=
  12445. shlibpath_overrides_runpath=unknown
  12446. version_type=none
  12447. dynamic_linker="$host_os ld.so"
  12448. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12449. need_lib_prefix=unknown
  12450. hardcode_into_libs=no
  12451. # when you set need_version to no, make sure it does not cause -set_version
  12452. # flags to be left without arguments
  12453. need_version=unknown
  12454. case $host_os in
  12455. aix3*)
  12456. version_type=linux
  12457. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12458. shlibpath_var=LIBPATH
  12459. # AIX 3 has no versioning support, so we append a major version to the name.
  12460. soname_spec='${libname}${release}${shared_ext}$major'
  12461. ;;
  12462. aix[4-9]*)
  12463. version_type=linux
  12464. need_lib_prefix=no
  12465. need_version=no
  12466. hardcode_into_libs=yes
  12467. if test "$host_cpu" = ia64; then
  12468. # AIX 5 supports IA64
  12469. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12470. shlibpath_var=LD_LIBRARY_PATH
  12471. else
  12472. # With GCC up to 2.95.x, collect2 would create an import file
  12473. # for dependence libraries. The import file would start with
  12474. # the line `#! .'. This would cause the generated library to
  12475. # depend on `.', always an invalid library. This was fixed in
  12476. # development snapshots of GCC prior to 3.0.
  12477. case $host_os in
  12478. aix4 | aix4.[01] | aix4.[01].*)
  12479. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12480. echo ' yes '
  12481. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12482. :
  12483. else
  12484. can_build_shared=no
  12485. fi
  12486. ;;
  12487. esac
  12488. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12489. # soname into executable. Probably we can add versioning support to
  12490. # collect2, so additional links can be useful in future.
  12491. if test "$aix_use_runtimelinking" = yes; then
  12492. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12493. # instead of lib<name>.a to let people know that these are not
  12494. # typical AIX shared libraries.
  12495. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12496. else
  12497. # We preserve .a as extension for shared libraries through AIX4.2
  12498. # and later when we are not doing run time linking.
  12499. library_names_spec='${libname}${release}.a $libname.a'
  12500. soname_spec='${libname}${release}${shared_ext}$major'
  12501. fi
  12502. shlibpath_var=LIBPATH
  12503. fi
  12504. ;;
  12505. amigaos*)
  12506. case $host_cpu in
  12507. powerpc)
  12508. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12509. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12510. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12511. ;;
  12512. m68k)
  12513. library_names_spec='$libname.ixlibrary $libname.a'
  12514. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12515. 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'
  12516. ;;
  12517. esac
  12518. ;;
  12519. beos*)
  12520. library_names_spec='${libname}${shared_ext}'
  12521. dynamic_linker="$host_os ld.so"
  12522. shlibpath_var=LIBRARY_PATH
  12523. ;;
  12524. bsdi[45]*)
  12525. version_type=linux
  12526. need_version=no
  12527. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12528. soname_spec='${libname}${release}${shared_ext}$major'
  12529. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12530. shlibpath_var=LD_LIBRARY_PATH
  12531. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12532. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12533. # the default ld.so.conf also contains /usr/contrib/lib and
  12534. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12535. # libtool to hard-code these into programs
  12536. ;;
  12537. cygwin* | mingw* | pw32* | cegcc*)
  12538. version_type=windows
  12539. shrext_cmds=".dll"
  12540. need_version=no
  12541. need_lib_prefix=no
  12542. case $GCC,$host_os in
  12543. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12544. library_names_spec='$libname.dll.a'
  12545. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12546. postinstall_cmds='base_file=`basename \${file}`~
  12547. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12548. dldir=$destdir/`dirname \$dlpath`~
  12549. test -d \$dldir || mkdir -p \$dldir~
  12550. $install_prog $dir/$dlname \$dldir/$dlname~
  12551. chmod a+x \$dldir/$dlname~
  12552. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12553. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12554. fi'
  12555. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12556. dlpath=$dir/\$dldll~
  12557. $RM \$dlpath'
  12558. shlibpath_overrides_runpath=yes
  12559. case $host_os in
  12560. cygwin*)
  12561. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12562. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12563. ;;
  12564. mingw* | cegcc*)
  12565. # MinGW DLLs use traditional 'lib' prefix
  12566. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12567. ;;
  12568. pw32*)
  12569. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12570. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12571. ;;
  12572. esac
  12573. ;;
  12574. *)
  12575. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12576. ;;
  12577. esac
  12578. dynamic_linker='Win32 ld.exe'
  12579. # FIXME: first we should search . and the directory the executable is in
  12580. shlibpath_var=PATH
  12581. ;;
  12582. darwin* | rhapsody*)
  12583. dynamic_linker="$host_os dyld"
  12584. version_type=darwin
  12585. need_lib_prefix=no
  12586. need_version=no
  12587. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12588. soname_spec='${libname}${release}${major}$shared_ext'
  12589. shlibpath_overrides_runpath=yes
  12590. shlibpath_var=DYLD_LIBRARY_PATH
  12591. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12592. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12593. ;;
  12594. dgux*)
  12595. version_type=linux
  12596. need_lib_prefix=no
  12597. need_version=no
  12598. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12599. soname_spec='${libname}${release}${shared_ext}$major'
  12600. shlibpath_var=LD_LIBRARY_PATH
  12601. ;;
  12602. freebsd* | dragonfly*)
  12603. # DragonFly does not have aout. When/if they implement a new
  12604. # versioning mechanism, adjust this.
  12605. if test -x /usr/bin/objformat; then
  12606. objformat=`/usr/bin/objformat`
  12607. else
  12608. case $host_os in
  12609. freebsd[23].*) objformat=aout ;;
  12610. *) objformat=elf ;;
  12611. esac
  12612. fi
  12613. version_type=freebsd-$objformat
  12614. case $version_type in
  12615. freebsd-elf*)
  12616. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12617. need_version=no
  12618. need_lib_prefix=no
  12619. ;;
  12620. freebsd-*)
  12621. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12622. need_version=yes
  12623. ;;
  12624. esac
  12625. shlibpath_var=LD_LIBRARY_PATH
  12626. case $host_os in
  12627. freebsd2.*)
  12628. shlibpath_overrides_runpath=yes
  12629. ;;
  12630. freebsd3.[01]* | freebsdelf3.[01]*)
  12631. shlibpath_overrides_runpath=yes
  12632. hardcode_into_libs=yes
  12633. ;;
  12634. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12635. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12636. shlibpath_overrides_runpath=no
  12637. hardcode_into_libs=yes
  12638. ;;
  12639. *) # from 4.6 on, and DragonFly
  12640. shlibpath_overrides_runpath=yes
  12641. hardcode_into_libs=yes
  12642. ;;
  12643. esac
  12644. ;;
  12645. gnu*)
  12646. version_type=linux
  12647. need_lib_prefix=no
  12648. need_version=no
  12649. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12650. soname_spec='${libname}${release}${shared_ext}$major'
  12651. shlibpath_var=LD_LIBRARY_PATH
  12652. hardcode_into_libs=yes
  12653. ;;
  12654. haiku*)
  12655. version_type=linux
  12656. need_lib_prefix=no
  12657. need_version=no
  12658. dynamic_linker="$host_os runtime_loader"
  12659. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12660. soname_spec='${libname}${release}${shared_ext}$major'
  12661. shlibpath_var=LIBRARY_PATH
  12662. shlibpath_overrides_runpath=yes
  12663. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  12664. hardcode_into_libs=yes
  12665. ;;
  12666. hpux9* | hpux10* | hpux11*)
  12667. # Give a soname corresponding to the major version so that dld.sl refuses to
  12668. # link against other versions.
  12669. version_type=sunos
  12670. need_lib_prefix=no
  12671. need_version=no
  12672. case $host_cpu in
  12673. ia64*)
  12674. shrext_cmds='.so'
  12675. hardcode_into_libs=yes
  12676. dynamic_linker="$host_os dld.so"
  12677. shlibpath_var=LD_LIBRARY_PATH
  12678. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12679. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12680. soname_spec='${libname}${release}${shared_ext}$major'
  12681. if test "X$HPUX_IA64_MODE" = X32; then
  12682. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12683. else
  12684. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12685. fi
  12686. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12687. ;;
  12688. hppa*64*)
  12689. shrext_cmds='.sl'
  12690. hardcode_into_libs=yes
  12691. dynamic_linker="$host_os dld.sl"
  12692. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12693. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12694. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12695. soname_spec='${libname}${release}${shared_ext}$major'
  12696. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12697. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12698. ;;
  12699. *)
  12700. shrext_cmds='.sl'
  12701. dynamic_linker="$host_os dld.sl"
  12702. shlibpath_var=SHLIB_PATH
  12703. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12704. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12705. soname_spec='${libname}${release}${shared_ext}$major'
  12706. ;;
  12707. esac
  12708. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12709. postinstall_cmds='chmod 555 $lib'
  12710. # or fails outright, so override atomically:
  12711. install_override_mode=555
  12712. ;;
  12713. interix[3-9]*)
  12714. version_type=linux
  12715. need_lib_prefix=no
  12716. need_version=no
  12717. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12718. soname_spec='${libname}${release}${shared_ext}$major'
  12719. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12720. shlibpath_var=LD_LIBRARY_PATH
  12721. shlibpath_overrides_runpath=no
  12722. hardcode_into_libs=yes
  12723. ;;
  12724. irix5* | irix6* | nonstopux*)
  12725. case $host_os in
  12726. nonstopux*) version_type=nonstopux ;;
  12727. *)
  12728. if test "$lt_cv_prog_gnu_ld" = yes; then
  12729. version_type=linux
  12730. else
  12731. version_type=irix
  12732. fi ;;
  12733. esac
  12734. need_lib_prefix=no
  12735. need_version=no
  12736. soname_spec='${libname}${release}${shared_ext}$major'
  12737. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12738. case $host_os in
  12739. irix5* | nonstopux*)
  12740. libsuff= shlibsuff=
  12741. ;;
  12742. *)
  12743. case $LD in # libtool.m4 will add one of these switches to LD
  12744. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12745. libsuff= shlibsuff= libmagic=32-bit;;
  12746. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12747. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12748. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12749. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12750. *) libsuff= shlibsuff= libmagic=never-match;;
  12751. esac
  12752. ;;
  12753. esac
  12754. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12755. shlibpath_overrides_runpath=no
  12756. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12757. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12758. hardcode_into_libs=yes
  12759. ;;
  12760. # No shared lib support for Linux oldld, aout, or coff.
  12761. linux*oldld* | linux*aout* | linux*coff*)
  12762. dynamic_linker=no
  12763. ;;
  12764. # This must be Linux ELF.
  12765. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12766. version_type=linux
  12767. need_lib_prefix=no
  12768. need_version=no
  12769. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12770. soname_spec='${libname}${release}${shared_ext}$major'
  12771. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12772. shlibpath_var=LD_LIBRARY_PATH
  12773. shlibpath_overrides_runpath=no
  12774. # Some binutils ld are patched to set DT_RUNPATH
  12775. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  12776. $as_echo_n "(cached) " >&6
  12777. else
  12778. lt_cv_shlibpath_overrides_runpath=no
  12779. save_LDFLAGS=$LDFLAGS
  12780. save_libdir=$libdir
  12781. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12782. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12784. /* end confdefs.h. */
  12785. int
  12786. main ()
  12787. {
  12788. ;
  12789. return 0;
  12790. }
  12791. _ACEOF
  12792. if ac_fn_cxx_try_link "$LINENO"; then :
  12793. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12794. lt_cv_shlibpath_overrides_runpath=yes
  12795. fi
  12796. fi
  12797. rm -f core conftest.err conftest.$ac_objext \
  12798. conftest$ac_exeext conftest.$ac_ext
  12799. LDFLAGS=$save_LDFLAGS
  12800. libdir=$save_libdir
  12801. fi
  12802. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12803. # This implies no fast_install, which is unacceptable.
  12804. # Some rework will be needed to allow for fast_install
  12805. # before this can be enabled.
  12806. hardcode_into_libs=yes
  12807. # Append ld.so.conf contents to the search path
  12808. if test -f /etc/ld.so.conf; then
  12809. 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' ' '`
  12810. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12811. fi
  12812. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12813. # powerpc, because MkLinux only supported shared libraries with the
  12814. # GNU dynamic linker. Since this was broken with cross compilers,
  12815. # most powerpc-linux boxes support dynamic linking these days and
  12816. # people can always --disable-shared, the test was removed, and we
  12817. # assume the GNU/Linux dynamic linker is in use.
  12818. dynamic_linker='GNU/Linux ld.so'
  12819. ;;
  12820. netbsd*)
  12821. version_type=sunos
  12822. need_lib_prefix=no
  12823. need_version=no
  12824. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12825. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12826. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12827. dynamic_linker='NetBSD (a.out) ld.so'
  12828. else
  12829. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12830. soname_spec='${libname}${release}${shared_ext}$major'
  12831. dynamic_linker='NetBSD ld.elf_so'
  12832. fi
  12833. shlibpath_var=LD_LIBRARY_PATH
  12834. shlibpath_overrides_runpath=yes
  12835. hardcode_into_libs=yes
  12836. ;;
  12837. newsos6)
  12838. version_type=linux
  12839. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12840. shlibpath_var=LD_LIBRARY_PATH
  12841. shlibpath_overrides_runpath=yes
  12842. ;;
  12843. *nto* | *qnx*)
  12844. version_type=qnx
  12845. need_lib_prefix=no
  12846. need_version=no
  12847. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12848. soname_spec='${libname}${release}${shared_ext}$major'
  12849. shlibpath_var=LD_LIBRARY_PATH
  12850. shlibpath_overrides_runpath=no
  12851. hardcode_into_libs=yes
  12852. dynamic_linker='ldqnx.so'
  12853. ;;
  12854. openbsd*)
  12855. version_type=sunos
  12856. sys_lib_dlsearch_path_spec="/usr/lib"
  12857. need_lib_prefix=no
  12858. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12859. case $host_os in
  12860. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12861. *) need_version=no ;;
  12862. esac
  12863. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12864. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12865. shlibpath_var=LD_LIBRARY_PATH
  12866. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12867. case $host_os in
  12868. openbsd2.[89] | openbsd2.[89].*)
  12869. shlibpath_overrides_runpath=no
  12870. ;;
  12871. *)
  12872. shlibpath_overrides_runpath=yes
  12873. ;;
  12874. esac
  12875. else
  12876. shlibpath_overrides_runpath=yes
  12877. fi
  12878. ;;
  12879. os2*)
  12880. libname_spec='$name'
  12881. shrext_cmds=".dll"
  12882. need_lib_prefix=no
  12883. library_names_spec='$libname${shared_ext} $libname.a'
  12884. dynamic_linker='OS/2 ld.exe'
  12885. shlibpath_var=LIBPATH
  12886. ;;
  12887. osf3* | osf4* | osf5*)
  12888. version_type=osf
  12889. need_lib_prefix=no
  12890. need_version=no
  12891. soname_spec='${libname}${release}${shared_ext}$major'
  12892. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12893. shlibpath_var=LD_LIBRARY_PATH
  12894. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12895. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12896. ;;
  12897. rdos*)
  12898. dynamic_linker=no
  12899. ;;
  12900. solaris*)
  12901. version_type=linux
  12902. need_lib_prefix=no
  12903. need_version=no
  12904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12905. soname_spec='${libname}${release}${shared_ext}$major'
  12906. shlibpath_var=LD_LIBRARY_PATH
  12907. shlibpath_overrides_runpath=yes
  12908. hardcode_into_libs=yes
  12909. # ldd complains unless libraries are executable
  12910. postinstall_cmds='chmod +x $lib'
  12911. ;;
  12912. sunos4*)
  12913. version_type=sunos
  12914. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12915. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12916. shlibpath_var=LD_LIBRARY_PATH
  12917. shlibpath_overrides_runpath=yes
  12918. if test "$with_gnu_ld" = yes; then
  12919. need_lib_prefix=no
  12920. fi
  12921. need_version=yes
  12922. ;;
  12923. sysv4 | sysv4.3*)
  12924. version_type=linux
  12925. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12926. soname_spec='${libname}${release}${shared_ext}$major'
  12927. shlibpath_var=LD_LIBRARY_PATH
  12928. case $host_vendor in
  12929. sni)
  12930. shlibpath_overrides_runpath=no
  12931. need_lib_prefix=no
  12932. runpath_var=LD_RUN_PATH
  12933. ;;
  12934. siemens)
  12935. need_lib_prefix=no
  12936. ;;
  12937. motorola)
  12938. need_lib_prefix=no
  12939. need_version=no
  12940. shlibpath_overrides_runpath=no
  12941. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12942. ;;
  12943. esac
  12944. ;;
  12945. sysv4*MP*)
  12946. if test -d /usr/nec ;then
  12947. version_type=linux
  12948. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12949. soname_spec='$libname${shared_ext}.$major'
  12950. shlibpath_var=LD_LIBRARY_PATH
  12951. fi
  12952. ;;
  12953. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12954. version_type=freebsd-elf
  12955. need_lib_prefix=no
  12956. need_version=no
  12957. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12958. soname_spec='${libname}${release}${shared_ext}$major'
  12959. shlibpath_var=LD_LIBRARY_PATH
  12960. shlibpath_overrides_runpath=yes
  12961. hardcode_into_libs=yes
  12962. if test "$with_gnu_ld" = yes; then
  12963. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12964. else
  12965. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12966. case $host_os in
  12967. sco3.2v5*)
  12968. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12969. ;;
  12970. esac
  12971. fi
  12972. sys_lib_dlsearch_path_spec='/usr/lib'
  12973. ;;
  12974. tpf*)
  12975. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12976. version_type=linux
  12977. need_lib_prefix=no
  12978. need_version=no
  12979. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12980. shlibpath_var=LD_LIBRARY_PATH
  12981. shlibpath_overrides_runpath=no
  12982. hardcode_into_libs=yes
  12983. ;;
  12984. uts4*)
  12985. version_type=linux
  12986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12987. soname_spec='${libname}${release}${shared_ext}$major'
  12988. shlibpath_var=LD_LIBRARY_PATH
  12989. ;;
  12990. *)
  12991. dynamic_linker=no
  12992. ;;
  12993. esac
  12994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12995. $as_echo "$dynamic_linker" >&6; }
  12996. test "$dynamic_linker" = no && can_build_shared=no
  12997. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12998. if test "$GCC" = yes; then
  12999. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13000. fi
  13001. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13002. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13003. fi
  13004. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13005. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13006. fi
  13007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13008. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13009. hardcode_action_CXX=
  13010. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13011. test -n "$runpath_var_CXX" ||
  13012. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13013. # We can hardcode non-existent directories.
  13014. if test "$hardcode_direct_CXX" != no &&
  13015. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13016. # have to relink, otherwise we might link with an installed library
  13017. # when we should be linking with a yet-to-be-installed one
  13018. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13019. test "$hardcode_minus_L_CXX" != no; then
  13020. # Linking always hardcodes the temporary library directory.
  13021. hardcode_action_CXX=relink
  13022. else
  13023. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13024. hardcode_action_CXX=immediate
  13025. fi
  13026. else
  13027. # We cannot hardcode anything, or else we can only hardcode existing
  13028. # directories.
  13029. hardcode_action_CXX=unsupported
  13030. fi
  13031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13032. $as_echo "$hardcode_action_CXX" >&6; }
  13033. if test "$hardcode_action_CXX" = relink ||
  13034. test "$inherit_rpath_CXX" = yes; then
  13035. # Fast installation is not supported
  13036. enable_fast_install=no
  13037. elif test "$shlibpath_overrides_runpath" = yes ||
  13038. test "$enable_shared" = no; then
  13039. # Fast installation is not necessary
  13040. enable_fast_install=needless
  13041. fi
  13042. fi # test -n "$compiler"
  13043. CC=$lt_save_CC
  13044. LDCXX=$LD
  13045. LD=$lt_save_LD
  13046. GCC=$lt_save_GCC
  13047. with_gnu_ld=$lt_save_with_gnu_ld
  13048. lt_cv_path_LDCXX=$lt_cv_path_LD
  13049. lt_cv_path_LD=$lt_save_path_LD
  13050. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13051. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13052. fi # test "$_lt_caught_CXX_error" != yes
  13053. ac_ext=c
  13054. ac_cpp='$CPP $CPPFLAGS'
  13055. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13056. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13057. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13058. ac_config_commands="$ac_config_commands libtool"
  13059. # Only expand once:
  13060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  13061. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  13062. # Check whether --enable-maintainer-mode was given.
  13063. if test "${enable_maintainer_mode+set}" = set; then :
  13064. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  13065. else
  13066. USE_MAINTAINER_MODE=no
  13067. fi
  13068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  13069. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  13070. if test $USE_MAINTAINER_MODE = yes; then
  13071. MAINTAINER_MODE_TRUE=
  13072. MAINTAINER_MODE_FALSE='#'
  13073. else
  13074. MAINTAINER_MODE_TRUE='#'
  13075. MAINTAINER_MODE_FALSE=
  13076. fi
  13077. MAINT=$MAINTAINER_MODE_TRUE
  13078. # For libtool versioning info, format is CURRENT:REVISION:AGE
  13079. libtool_VERSION=1:0:0
  13080. # Check header files.
  13081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13082. $as_echo_n "checking for ANSI C header files... " >&6; }
  13083. if test "${ac_cv_header_stdc+set}" = set; then :
  13084. $as_echo_n "(cached) " >&6
  13085. else
  13086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13087. /* end confdefs.h. */
  13088. #include <stdlib.h>
  13089. #include <stdarg.h>
  13090. #include <string.h>
  13091. #include <float.h>
  13092. int
  13093. main ()
  13094. {
  13095. ;
  13096. return 0;
  13097. }
  13098. _ACEOF
  13099. if ac_fn_c_try_compile "$LINENO"; then :
  13100. ac_cv_header_stdc=yes
  13101. else
  13102. ac_cv_header_stdc=no
  13103. fi
  13104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13105. if test $ac_cv_header_stdc = yes; then
  13106. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13108. /* end confdefs.h. */
  13109. #include <string.h>
  13110. _ACEOF
  13111. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13112. $EGREP "memchr" >/dev/null 2>&1; then :
  13113. else
  13114. ac_cv_header_stdc=no
  13115. fi
  13116. rm -f conftest*
  13117. fi
  13118. if test $ac_cv_header_stdc = yes; then
  13119. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13121. /* end confdefs.h. */
  13122. #include <stdlib.h>
  13123. _ACEOF
  13124. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13125. $EGREP "free" >/dev/null 2>&1; then :
  13126. else
  13127. ac_cv_header_stdc=no
  13128. fi
  13129. rm -f conftest*
  13130. fi
  13131. if test $ac_cv_header_stdc = yes; then
  13132. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13133. if test "$cross_compiling" = yes; then :
  13134. :
  13135. else
  13136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13137. /* end confdefs.h. */
  13138. #include <ctype.h>
  13139. #include <stdlib.h>
  13140. #if ((' ' & 0x0FF) == 0x020)
  13141. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13142. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13143. #else
  13144. # define ISLOWER(c) \
  13145. (('a' <= (c) && (c) <= 'i') \
  13146. || ('j' <= (c) && (c) <= 'r') \
  13147. || ('s' <= (c) && (c) <= 'z'))
  13148. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13149. #endif
  13150. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13151. int
  13152. main ()
  13153. {
  13154. int i;
  13155. for (i = 0; i < 256; i++)
  13156. if (XOR (islower (i), ISLOWER (i))
  13157. || toupper (i) != TOUPPER (i))
  13158. return 2;
  13159. return 0;
  13160. }
  13161. _ACEOF
  13162. if ac_fn_c_try_run "$LINENO"; then :
  13163. else
  13164. ac_cv_header_stdc=no
  13165. fi
  13166. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13167. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13168. fi
  13169. fi
  13170. fi
  13171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13172. $as_echo "$ac_cv_header_stdc" >&6; }
  13173. if test $ac_cv_header_stdc = yes; then
  13174. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13175. fi
  13176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  13177. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  13178. if test "${ac_cv_header_time+set}" = set; then :
  13179. $as_echo_n "(cached) " >&6
  13180. else
  13181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13182. /* end confdefs.h. */
  13183. #include <sys/types.h>
  13184. #include <sys/time.h>
  13185. #include <time.h>
  13186. int
  13187. main ()
  13188. {
  13189. if ((struct tm *) 0)
  13190. return 0;
  13191. ;
  13192. return 0;
  13193. }
  13194. _ACEOF
  13195. if ac_fn_c_try_compile "$LINENO"; then :
  13196. ac_cv_header_time=yes
  13197. else
  13198. ac_cv_header_time=no
  13199. fi
  13200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13201. fi
  13202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  13203. $as_echo "$ac_cv_header_time" >&6; }
  13204. if test $ac_cv_header_time = yes; then
  13205. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  13206. fi
  13207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
  13208. $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
  13209. if test "${gcc_cv_header_string+set}" = set; then :
  13210. $as_echo_n "(cached) " >&6
  13211. else
  13212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13213. /* end confdefs.h. */
  13214. #include <string.h>
  13215. #include <strings.h>
  13216. int
  13217. main ()
  13218. {
  13219. ;
  13220. return 0;
  13221. }
  13222. _ACEOF
  13223. if ac_fn_c_try_compile "$LINENO"; then :
  13224. gcc_cv_header_string=yes
  13225. else
  13226. gcc_cv_header_string=no
  13227. fi
  13228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13229. fi
  13230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
  13231. $as_echo "$gcc_cv_header_string" >&6; }
  13232. if test $gcc_cv_header_string = yes; then
  13233. $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
  13234. fi
  13235. for ac_header in unistd.h semaphore.h sys/time.h sys/auxv.h malloc.h
  13236. do :
  13237. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13238. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13239. eval as_val=\$$as_ac_Header
  13240. if test "x$as_val" = x""yes; then :
  13241. cat >>confdefs.h <<_ACEOF
  13242. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13243. _ACEOF
  13244. fi
  13245. done
  13246. inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
  13247. acx_cv_header_stdint=stddef.h
  13248. acx_cv_header_stdint_kind="(already complete)"
  13249. for i in stdint.h $inttype_headers; do
  13250. unset ac_cv_type_uintptr_t
  13251. unset ac_cv_type_uintmax_t
  13252. unset ac_cv_type_int_least32_t
  13253. unset ac_cv_type_int_fast32_t
  13254. unset ac_cv_type_uint64_t
  13255. $as_echo_n "looking for a compliant stdint.h in $i, " >&6
  13256. ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
  13257. #include <$i>
  13258. "
  13259. if test "x$ac_cv_type_uintmax_t" = x""yes; then :
  13260. acx_cv_header_stdint=$i
  13261. else
  13262. continue
  13263. fi
  13264. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  13265. #include <$i>
  13266. "
  13267. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  13268. else
  13269. acx_cv_header_stdint_kind="(mostly complete)"
  13270. fi
  13271. ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
  13272. #include <$i>
  13273. "
  13274. if test "x$ac_cv_type_int_least32_t" = x""yes; then :
  13275. else
  13276. acx_cv_header_stdint_kind="(mostly complete)"
  13277. fi
  13278. ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
  13279. #include <$i>
  13280. "
  13281. if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
  13282. else
  13283. acx_cv_header_stdint_kind="(mostly complete)"
  13284. fi
  13285. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  13286. #include <$i>
  13287. "
  13288. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  13289. else
  13290. acx_cv_header_stdint_kind="(lacks uint64_t)"
  13291. fi
  13292. break
  13293. done
  13294. if test "$acx_cv_header_stdint" = stddef.h; then
  13295. acx_cv_header_stdint_kind="(lacks uintmax_t)"
  13296. for i in stdint.h $inttype_headers; do
  13297. unset ac_cv_type_uintptr_t
  13298. unset ac_cv_type_uint32_t
  13299. unset ac_cv_type_uint64_t
  13300. $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
  13301. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
  13302. #include <$i>
  13303. "
  13304. if test "x$ac_cv_type_uint32_t" = x""yes; then :
  13305. acx_cv_header_stdint=$i
  13306. else
  13307. continue
  13308. fi
  13309. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  13310. #include <$i>
  13311. "
  13312. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  13313. fi
  13314. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  13315. #include <$i>
  13316. "
  13317. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  13318. fi
  13319. break
  13320. done
  13321. fi
  13322. if test "$acx_cv_header_stdint" = stddef.h; then
  13323. acx_cv_header_stdint_kind="(u_intXX_t style)"
  13324. for i in sys/types.h $inttype_headers; do
  13325. unset ac_cv_type_u_int32_t
  13326. unset ac_cv_type_u_int64_t
  13327. $as_echo_n "looking for u_intXX_t types in $i, " >&6
  13328. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
  13329. #include <$i>
  13330. "
  13331. if test "x$ac_cv_type_u_int32_t" = x""yes; then :
  13332. acx_cv_header_stdint=$i
  13333. else
  13334. continue
  13335. fi
  13336. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
  13337. #include <$i>
  13338. "
  13339. if test "x$ac_cv_type_u_int64_t" = x""yes; then :
  13340. fi
  13341. break
  13342. done
  13343. fi
  13344. if test "$acx_cv_header_stdint" = stddef.h; then
  13345. acx_cv_header_stdint_kind="(using manual detection)"
  13346. fi
  13347. test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
  13348. test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
  13349. test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
  13350. test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
  13351. test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
  13352. # ----------------- Summarize what we found so far
  13353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
  13354. $as_echo_n "checking what to include in gstdint.h... " >&6; }
  13355. case `$as_basename -- gstdint.h ||
  13356. $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
  13357. Xgstdint.h : 'X\(//\)$' \| \
  13358. Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
  13359. $as_echo X/gstdint.h |
  13360. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13361. s//\1/
  13362. q
  13363. }
  13364. /^X\/\(\/\/\)$/{
  13365. s//\1/
  13366. q
  13367. }
  13368. /^X\/\(\/\).*/{
  13369. s//\1/
  13370. q
  13371. }
  13372. s/.*/./; q'` in
  13373. stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  13374. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  13375. inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  13376. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  13377. *) ;;
  13378. esac
  13379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
  13380. $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
  13381. # ----------------- done included file, check C basic types --------
  13382. # Lacking an uintptr_t? Test size of void *
  13383. case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
  13384. stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
  13385. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13386. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13387. # This bug is HP SR number 8606223364.
  13388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  13389. $as_echo_n "checking size of void *... " >&6; }
  13390. if test "${ac_cv_sizeof_void_p+set}" = set; then :
  13391. $as_echo_n "(cached) " >&6
  13392. else
  13393. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  13394. else
  13395. if test "$ac_cv_type_void_p" = yes; then
  13396. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13397. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13398. { as_fn_set_status 77
  13399. as_fn_error "cannot compute sizeof (void *)
  13400. See \`config.log' for more details." "$LINENO" 5; }; }
  13401. else
  13402. ac_cv_sizeof_void_p=0
  13403. fi
  13404. fi
  13405. fi
  13406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  13407. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  13408. cat >>confdefs.h <<_ACEOF
  13409. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  13410. _ACEOF
  13411. ;;
  13412. esac
  13413. # Lacking an uint64_t? Test size of long
  13414. case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
  13415. stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
  13416. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13417. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13418. # This bug is HP SR number 8606223364.
  13419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  13420. $as_echo_n "checking size of long... " >&6; }
  13421. if test "${ac_cv_sizeof_long+set}" = set; then :
  13422. $as_echo_n "(cached) " >&6
  13423. else
  13424. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  13425. else
  13426. if test "$ac_cv_type_long" = yes; then
  13427. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13428. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13429. { as_fn_set_status 77
  13430. as_fn_error "cannot compute sizeof (long)
  13431. See \`config.log' for more details." "$LINENO" 5; }; }
  13432. else
  13433. ac_cv_sizeof_long=0
  13434. fi
  13435. fi
  13436. fi
  13437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  13438. $as_echo "$ac_cv_sizeof_long" >&6; }
  13439. cat >>confdefs.h <<_ACEOF
  13440. #define SIZEOF_LONG $ac_cv_sizeof_long
  13441. _ACEOF
  13442. ;;
  13443. esac
  13444. if test $acx_cv_header_stdint = stddef.h; then
  13445. # Lacking a good header? Test size of everything and deduce all types.
  13446. # The cast to long int works around a bug in the HP C Compiler
  13447. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13448. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13449. # This bug is HP SR number 8606223364.
  13450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  13451. $as_echo_n "checking size of int... " >&6; }
  13452. if test "${ac_cv_sizeof_int+set}" = set; then :
  13453. $as_echo_n "(cached) " >&6
  13454. else
  13455. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  13456. else
  13457. if test "$ac_cv_type_int" = yes; then
  13458. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13459. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13460. { as_fn_set_status 77
  13461. as_fn_error "cannot compute sizeof (int)
  13462. See \`config.log' for more details." "$LINENO" 5; }; }
  13463. else
  13464. ac_cv_sizeof_int=0
  13465. fi
  13466. fi
  13467. fi
  13468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  13469. $as_echo "$ac_cv_sizeof_int" >&6; }
  13470. cat >>confdefs.h <<_ACEOF
  13471. #define SIZEOF_INT $ac_cv_sizeof_int
  13472. _ACEOF
  13473. # The cast to long int works around a bug in the HP C Compiler
  13474. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13475. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13476. # This bug is HP SR number 8606223364.
  13477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  13478. $as_echo_n "checking size of short... " >&6; }
  13479. if test "${ac_cv_sizeof_short+set}" = set; then :
  13480. $as_echo_n "(cached) " >&6
  13481. else
  13482. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  13483. else
  13484. if test "$ac_cv_type_short" = yes; then
  13485. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13486. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13487. { as_fn_set_status 77
  13488. as_fn_error "cannot compute sizeof (short)
  13489. See \`config.log' for more details." "$LINENO" 5; }; }
  13490. else
  13491. ac_cv_sizeof_short=0
  13492. fi
  13493. fi
  13494. fi
  13495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  13496. $as_echo "$ac_cv_sizeof_short" >&6; }
  13497. cat >>confdefs.h <<_ACEOF
  13498. #define SIZEOF_SHORT $ac_cv_sizeof_short
  13499. _ACEOF
  13500. # The cast to long int works around a bug in the HP C Compiler
  13501. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13502. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13503. # This bug is HP SR number 8606223364.
  13504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
  13505. $as_echo_n "checking size of char... " >&6; }
  13506. if test "${ac_cv_sizeof_char+set}" = set; then :
  13507. $as_echo_n "(cached) " >&6
  13508. else
  13509. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
  13510. else
  13511. if test "$ac_cv_type_char" = yes; then
  13512. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13513. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13514. { as_fn_set_status 77
  13515. as_fn_error "cannot compute sizeof (char)
  13516. See \`config.log' for more details." "$LINENO" 5; }; }
  13517. else
  13518. ac_cv_sizeof_char=0
  13519. fi
  13520. fi
  13521. fi
  13522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
  13523. $as_echo "$ac_cv_sizeof_char" >&6; }
  13524. cat >>confdefs.h <<_ACEOF
  13525. #define SIZEOF_CHAR $ac_cv_sizeof_char
  13526. _ACEOF
  13527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
  13528. $as_echo_n "checking for type equivalent to int8_t... " >&6; }
  13529. case "$ac_cv_sizeof_char" in
  13530. 1) acx_cv_type_int8_t=char ;;
  13531. *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
  13532. esac
  13533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
  13534. $as_echo "$acx_cv_type_int8_t" >&6; }
  13535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
  13536. $as_echo_n "checking for type equivalent to int16_t... " >&6; }
  13537. case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
  13538. 2:*) acx_cv_type_int16_t=int ;;
  13539. *:2) acx_cv_type_int16_t=short ;;
  13540. *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
  13541. esac
  13542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
  13543. $as_echo "$acx_cv_type_int16_t" >&6; }
  13544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
  13545. $as_echo_n "checking for type equivalent to int32_t... " >&6; }
  13546. case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
  13547. 4:*) acx_cv_type_int32_t=int ;;
  13548. *:4) acx_cv_type_int32_t=long ;;
  13549. *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
  13550. esac
  13551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
  13552. $as_echo "$acx_cv_type_int32_t" >&6; }
  13553. fi
  13554. # These tests are here to make the output prettier
  13555. if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
  13556. case "$ac_cv_sizeof_long" in
  13557. 8) acx_cv_type_int64_t=long ;;
  13558. esac
  13559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
  13560. $as_echo_n "checking for type equivalent to int64_t... " >&6; }
  13561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
  13562. $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
  13563. fi
  13564. # Now we can use the above types
  13565. if test "$ac_cv_type_uintptr_t" != yes; then
  13566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
  13567. $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
  13568. case $ac_cv_sizeof_void_p in
  13569. 2) acx_cv_type_intptr_t=int16_t ;;
  13570. 4) acx_cv_type_intptr_t=int32_t ;;
  13571. 8) acx_cv_type_intptr_t=int64_t ;;
  13572. *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
  13573. esac
  13574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
  13575. $as_echo "$acx_cv_type_intptr_t" >&6; }
  13576. fi
  13577. # ----------------- done all checks, emit header -------------
  13578. ac_config_commands="$ac_config_commands gstdint.h"
  13579. ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  13580. if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
  13581. gcc_header_sys_mman_h=yes
  13582. else
  13583. gcc_header_sys_mman_h=no
  13584. fi
  13585. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  13586. if test "x$ac_cv_func_mmap" = x""yes; then :
  13587. gcc_func_mmap=yes
  13588. else
  13589. gcc_func_mmap=no
  13590. fi
  13591. if test "$gcc_header_sys_mman_h" != yes \
  13592. || test "$gcc_func_mmap" != yes; then
  13593. gcc_cv_func_mmap_file=no
  13594. gcc_cv_func_mmap_dev_zero=no
  13595. gcc_cv_func_mmap_anon=no
  13596. else
  13597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
  13598. $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
  13599. if test "${gcc_cv_func_mmap_file+set}" = set; then :
  13600. $as_echo_n "(cached) " >&6
  13601. else
  13602. # Add a system to this blacklist if
  13603. # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
  13604. # memory area containing the same data that you'd get if you applied
  13605. # read() to the same fd. The only system known to have a problem here
  13606. # is VMS, where text files have record structure.
  13607. case "$host_os" in
  13608. *vms* | ultrix*)
  13609. gcc_cv_func_mmap_file=no ;;
  13610. *)
  13611. gcc_cv_func_mmap_file=yes;;
  13612. esac
  13613. fi
  13614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
  13615. $as_echo "$gcc_cv_func_mmap_file" >&6; }
  13616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
  13617. $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
  13618. if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
  13619. $as_echo_n "(cached) " >&6
  13620. else
  13621. # Add a system to this blacklist if it has mmap() but /dev/zero
  13622. # does not exist, or if mmapping /dev/zero does not give anonymous
  13623. # zeroed pages with both the following properties:
  13624. # 1. If you map N consecutive pages in with one call, and then
  13625. # unmap any subset of those pages, the pages that were not
  13626. # explicitly unmapped remain accessible.
  13627. # 2. If you map two adjacent blocks of memory and then unmap them
  13628. # both at once, they must both go away.
  13629. # Systems known to be in this category are Windows (all variants),
  13630. # VMS, and Darwin.
  13631. case "$host_os" in
  13632. *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
  13633. gcc_cv_func_mmap_dev_zero=no ;;
  13634. *)
  13635. gcc_cv_func_mmap_dev_zero=yes;;
  13636. esac
  13637. fi
  13638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
  13639. $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
  13640. # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
  13641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
  13642. $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
  13643. if test "${gcc_cv_decl_map_anon+set}" = set; then :
  13644. $as_echo_n "(cached) " >&6
  13645. else
  13646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13647. /* end confdefs.h. */
  13648. #include <sys/types.h>
  13649. #include <sys/mman.h>
  13650. #include <unistd.h>
  13651. #ifndef MAP_ANONYMOUS
  13652. #define MAP_ANONYMOUS MAP_ANON
  13653. #endif
  13654. int
  13655. main ()
  13656. {
  13657. int n = MAP_ANONYMOUS;
  13658. ;
  13659. return 0;
  13660. }
  13661. _ACEOF
  13662. if ac_fn_c_try_compile "$LINENO"; then :
  13663. gcc_cv_decl_map_anon=yes
  13664. else
  13665. gcc_cv_decl_map_anon=no
  13666. fi
  13667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13668. fi
  13669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
  13670. $as_echo "$gcc_cv_decl_map_anon" >&6; }
  13671. if test $gcc_cv_decl_map_anon = no; then
  13672. gcc_cv_func_mmap_anon=no
  13673. else
  13674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
  13675. $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
  13676. if test "${gcc_cv_func_mmap_anon+set}" = set; then :
  13677. $as_echo_n "(cached) " >&6
  13678. else
  13679. # Add a system to this blacklist if it has mmap() and MAP_ANON or
  13680. # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
  13681. # doesn't give anonymous zeroed pages with the same properties listed
  13682. # above for use of /dev/zero.
  13683. # Systems known to be in this category are Windows, VMS, and SCO Unix.
  13684. case "$host_os" in
  13685. *vms* | cygwin* | pe | mingw* | sco* | udk* )
  13686. gcc_cv_func_mmap_anon=no ;;
  13687. *)
  13688. gcc_cv_func_mmap_anon=yes;;
  13689. esac
  13690. fi
  13691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
  13692. $as_echo "$gcc_cv_func_mmap_anon" >&6; }
  13693. fi
  13694. fi
  13695. if test $gcc_cv_func_mmap_file = yes; then
  13696. $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
  13697. fi
  13698. if test $gcc_cv_func_mmap_dev_zero = yes; then
  13699. $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
  13700. fi
  13701. if test $gcc_cv_func_mmap_anon = yes; then
  13702. $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
  13703. fi
  13704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  13705. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  13706. if test "${ac_cv_c_bigendian+set}" = set; then :
  13707. $as_echo_n "(cached) " >&6
  13708. else
  13709. ac_cv_c_bigendian=unknown
  13710. # See if we're dealing with a universal compiler.
  13711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13712. /* end confdefs.h. */
  13713. #ifndef __APPLE_CC__
  13714. not a universal capable compiler
  13715. #endif
  13716. typedef int dummy;
  13717. _ACEOF
  13718. if ac_fn_c_try_compile "$LINENO"; then :
  13719. # Check for potential -arch flags. It is not universal unless
  13720. # there are at least two -arch flags with different values.
  13721. ac_arch=
  13722. ac_prev=
  13723. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  13724. if test -n "$ac_prev"; then
  13725. case $ac_word in
  13726. i?86 | x86_64 | ppc | ppc64)
  13727. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  13728. ac_arch=$ac_word
  13729. else
  13730. ac_cv_c_bigendian=universal
  13731. break
  13732. fi
  13733. ;;
  13734. esac
  13735. ac_prev=
  13736. elif test "x$ac_word" = "x-arch"; then
  13737. ac_prev=arch
  13738. fi
  13739. done
  13740. fi
  13741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13742. if test $ac_cv_c_bigendian = unknown; then
  13743. # See if sys/param.h defines the BYTE_ORDER macro.
  13744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13745. /* end confdefs.h. */
  13746. #include <sys/types.h>
  13747. #include <sys/param.h>
  13748. int
  13749. main ()
  13750. {
  13751. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  13752. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  13753. && LITTLE_ENDIAN)
  13754. bogus endian macros
  13755. #endif
  13756. ;
  13757. return 0;
  13758. }
  13759. _ACEOF
  13760. if ac_fn_c_try_compile "$LINENO"; then :
  13761. # It does; now see whether it defined to BIG_ENDIAN or not.
  13762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13763. /* end confdefs.h. */
  13764. #include <sys/types.h>
  13765. #include <sys/param.h>
  13766. int
  13767. main ()
  13768. {
  13769. #if BYTE_ORDER != BIG_ENDIAN
  13770. not big endian
  13771. #endif
  13772. ;
  13773. return 0;
  13774. }
  13775. _ACEOF
  13776. if ac_fn_c_try_compile "$LINENO"; then :
  13777. ac_cv_c_bigendian=yes
  13778. else
  13779. ac_cv_c_bigendian=no
  13780. fi
  13781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13782. fi
  13783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13784. fi
  13785. if test $ac_cv_c_bigendian = unknown; then
  13786. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  13787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13788. /* end confdefs.h. */
  13789. #include <limits.h>
  13790. int
  13791. main ()
  13792. {
  13793. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  13794. bogus endian macros
  13795. #endif
  13796. ;
  13797. return 0;
  13798. }
  13799. _ACEOF
  13800. if ac_fn_c_try_compile "$LINENO"; then :
  13801. # It does; now see whether it defined to _BIG_ENDIAN or not.
  13802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13803. /* end confdefs.h. */
  13804. #include <limits.h>
  13805. int
  13806. main ()
  13807. {
  13808. #ifndef _BIG_ENDIAN
  13809. not big endian
  13810. #endif
  13811. ;
  13812. return 0;
  13813. }
  13814. _ACEOF
  13815. if ac_fn_c_try_compile "$LINENO"; then :
  13816. ac_cv_c_bigendian=yes
  13817. else
  13818. ac_cv_c_bigendian=no
  13819. fi
  13820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13821. fi
  13822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13823. fi
  13824. if test $ac_cv_c_bigendian = unknown; then
  13825. # Compile a test program.
  13826. if test "$cross_compiling" = yes; then :
  13827. # Try to guess by grepping values from an object file.
  13828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13829. /* end confdefs.h. */
  13830. short int ascii_mm[] =
  13831. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  13832. short int ascii_ii[] =
  13833. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  13834. int use_ascii (int i) {
  13835. return ascii_mm[i] + ascii_ii[i];
  13836. }
  13837. short int ebcdic_ii[] =
  13838. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  13839. short int ebcdic_mm[] =
  13840. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  13841. int use_ebcdic (int i) {
  13842. return ebcdic_mm[i] + ebcdic_ii[i];
  13843. }
  13844. extern int foo;
  13845. int
  13846. main ()
  13847. {
  13848. return use_ascii (foo) == use_ebcdic (foo);
  13849. ;
  13850. return 0;
  13851. }
  13852. _ACEOF
  13853. if ac_fn_c_try_compile "$LINENO"; then :
  13854. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  13855. ac_cv_c_bigendian=yes
  13856. fi
  13857. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  13858. if test "$ac_cv_c_bigendian" = unknown; then
  13859. ac_cv_c_bigendian=no
  13860. else
  13861. # finding both strings is unlikely to happen, but who knows?
  13862. ac_cv_c_bigendian=unknown
  13863. fi
  13864. fi
  13865. fi
  13866. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13867. else
  13868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13869. /* end confdefs.h. */
  13870. $ac_includes_default
  13871. int
  13872. main ()
  13873. {
  13874. /* Are we little or big endian? From Harbison&Steele. */
  13875. union
  13876. {
  13877. long int l;
  13878. char c[sizeof (long int)];
  13879. } u;
  13880. u.l = 1;
  13881. return u.c[sizeof (long int) - 1] == 1;
  13882. ;
  13883. return 0;
  13884. }
  13885. _ACEOF
  13886. if ac_fn_c_try_run "$LINENO"; then :
  13887. ac_cv_c_bigendian=no
  13888. else
  13889. ac_cv_c_bigendian=yes
  13890. fi
  13891. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13892. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13893. fi
  13894. fi
  13895. fi
  13896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  13897. $as_echo "$ac_cv_c_bigendian" >&6; }
  13898. case $ac_cv_c_bigendian in #(
  13899. yes)
  13900. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  13901. ;; #(
  13902. no)
  13903. ;; #(
  13904. universal)
  13905. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  13906. ;; #(
  13907. *)
  13908. as_fn_error "unknown endianness
  13909. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  13910. esac
  13911. # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
  13912. # Check to see if -pthread or -lpthread is needed. Prefer the former.
  13913. # In case the pthread.h system header is not found, this test will fail.
  13914. XPCFLAGS=""
  13915. CFLAGS="$CFLAGS -pthread"
  13916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13917. /* end confdefs.h. */
  13918. #include <pthread.h>
  13919. void *g(void *d) { return NULL; }
  13920. int
  13921. main ()
  13922. {
  13923. pthread_t t; pthread_create(&t,NULL,g,NULL);
  13924. ;
  13925. return 0;
  13926. }
  13927. _ACEOF
  13928. if ac_fn_c_try_link "$LINENO"; then :
  13929. XPCFLAGS=" -Wc,-pthread"
  13930. else
  13931. CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
  13932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13933. /* end confdefs.h. */
  13934. #include <pthread.h>
  13935. void *g(void *d) { return NULL; }
  13936. int
  13937. main ()
  13938. {
  13939. pthread_t t; pthread_create(&t,NULL,g,NULL);
  13940. ;
  13941. return 0;
  13942. }
  13943. _ACEOF
  13944. if ac_fn_c_try_link "$LINENO"; then :
  13945. else
  13946. as_fn_error "Pthreads are required to build libitm" "$LINENO" 5
  13947. fi
  13948. rm -f core conftest.err conftest.$ac_objext \
  13949. conftest$ac_exeext conftest.$ac_ext
  13950. fi
  13951. rm -f core conftest.err conftest.$ac_objext \
  13952. conftest$ac_exeext conftest.$ac_ext
  13953. # Check for functions needed.
  13954. for ac_func in strtoull memalign posix_memalign getauxval
  13955. do :
  13956. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13957. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13958. eval as_val=\$$as_ac_var
  13959. if test "x$as_val" = x""yes; then :
  13960. cat >>confdefs.h <<_ACEOF
  13961. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13962. _ACEOF
  13963. fi
  13964. done
  13965. # Check for broken semaphore implementation on darwin.
  13966. # sem_init returns: sem_init error: Function not implemented.
  13967. case "$host" in
  13968. *-darwin*)
  13969. $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
  13970. ;;
  13971. esac
  13972. # Check whether --enable-linux-futex was given.
  13973. if test "${enable_linux_futex+set}" = set; then :
  13974. enableval=$enable_linux_futex;
  13975. case "$enableval" in
  13976. yes|no|default) ;;
  13977. *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
  13978. esac
  13979. else
  13980. enable_linux_futex=default
  13981. fi
  13982. case "$target" in
  13983. *-linux*)
  13984. case "$enable_linux_futex" in
  13985. default)
  13986. # If headers don't have gettid/futex syscalls definition, then
  13987. # default to no, otherwise there will be compile time failures.
  13988. # Otherwise, default to yes. If we don't detect we are
  13989. # compiled/linked against NPTL and not cross-compiling, check
  13990. # if programs are run by default against NPTL and if not, issue
  13991. # a warning.
  13992. enable_linux_futex=no
  13993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13994. /* end confdefs.h. */
  13995. #include <sys/syscall.h>
  13996. int lk;
  13997. int
  13998. main ()
  13999. {
  14000. syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
  14001. ;
  14002. return 0;
  14003. }
  14004. _ACEOF
  14005. if ac_fn_c_try_link "$LINENO"; then :
  14006. save_LIBS="$LIBS"
  14007. LIBS="-lpthread $LIBS"
  14008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14009. /* end confdefs.h. */
  14010. #ifndef _GNU_SOURCE
  14011. #define _GNU_SOURCE 1
  14012. #endif
  14013. #include <pthread.h>
  14014. pthread_t th; void *status;
  14015. int
  14016. main ()
  14017. {
  14018. pthread_tryjoin_np (th, &status);
  14019. ;
  14020. return 0;
  14021. }
  14022. _ACEOF
  14023. if ac_fn_c_try_link "$LINENO"; then :
  14024. enable_linux_futex=yes
  14025. else
  14026. if test x$cross_compiling = xno; then
  14027. if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
  14028. | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
  14029. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
  14030. If so, please configure with --disable-linux-futex" >&5
  14031. $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
  14032. If so, please configure with --disable-linux-futex" >&2;}
  14033. fi
  14034. fi
  14035. enable_linux_futex=yes
  14036. fi
  14037. rm -f core conftest.err conftest.$ac_objext \
  14038. conftest$ac_exeext conftest.$ac_ext
  14039. LIBS="$save_LIBS"
  14040. fi
  14041. rm -f core conftest.err conftest.$ac_objext \
  14042. conftest$ac_exeext conftest.$ac_ext
  14043. ;;
  14044. yes)
  14045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14046. /* end confdefs.h. */
  14047. #include <sys/syscall.h>
  14048. int lk;
  14049. int
  14050. main ()
  14051. {
  14052. syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
  14053. ;
  14054. return 0;
  14055. }
  14056. _ACEOF
  14057. if ac_fn_c_try_link "$LINENO"; then :
  14058. else
  14059. as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
  14060. fi
  14061. rm -f core conftest.err conftest.$ac_objext \
  14062. conftest$ac_exeext conftest.$ac_ext
  14063. ;;
  14064. esac
  14065. ;;
  14066. *)
  14067. enable_linux_futex=no
  14068. ;;
  14069. esac
  14070. if test x$enable_linux_futex = xyes; then
  14071. :
  14072. fi
  14073. # See if we support thread-local storage.
  14074. # Check whether --enable-tls was given.
  14075. if test "${enable_tls+set}" = set; then :
  14076. enableval=$enable_tls;
  14077. case "$enableval" in
  14078. yes|no) ;;
  14079. *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
  14080. esac
  14081. else
  14082. enable_tls=yes
  14083. fi
  14084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
  14085. $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
  14086. if test "${gcc_cv_have_tls+set}" = set; then :
  14087. $as_echo_n "(cached) " >&6
  14088. else
  14089. if test "$cross_compiling" = yes; then :
  14090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14091. /* end confdefs.h. */
  14092. __thread int a; int b; int main() { return a = b; }
  14093. _ACEOF
  14094. if ac_fn_c_try_link "$LINENO"; then :
  14095. chktls_save_LDFLAGS="$LDFLAGS"
  14096. case $host in
  14097. *-*-linux*)
  14098. LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
  14099. ;;
  14100. esac
  14101. chktls_save_CFLAGS="$CFLAGS"
  14102. CFLAGS="-fPIC $CFLAGS"
  14103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14104. /* end confdefs.h. */
  14105. int f() { return 0; }
  14106. _ACEOF
  14107. if ac_fn_c_try_link "$LINENO"; then :
  14108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14109. /* end confdefs.h. */
  14110. __thread int a; int b; int f() { return a = b; }
  14111. _ACEOF
  14112. if ac_fn_c_try_link "$LINENO"; then :
  14113. gcc_cv_have_tls=yes
  14114. else
  14115. gcc_cv_have_tls=no
  14116. fi
  14117. rm -f core conftest.err conftest.$ac_objext \
  14118. conftest$ac_exeext conftest.$ac_ext
  14119. else
  14120. gcc_cv_have_tls=yes
  14121. fi
  14122. rm -f core conftest.err conftest.$ac_objext \
  14123. conftest$ac_exeext conftest.$ac_ext
  14124. CFLAGS="$chktls_save_CFLAGS"
  14125. LDFLAGS="$chktls_save_LDFLAGS"
  14126. else
  14127. gcc_cv_have_tls=no
  14128. fi
  14129. rm -f core conftest.err conftest.$ac_objext \
  14130. conftest$ac_exeext conftest.$ac_ext
  14131. else
  14132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14133. /* end confdefs.h. */
  14134. __thread int a; int b; int main() { return a = b; }
  14135. _ACEOF
  14136. if ac_fn_c_try_run "$LINENO"; then :
  14137. chktls_save_LDFLAGS="$LDFLAGS"
  14138. LDFLAGS="-static $LDFLAGS"
  14139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14140. /* end confdefs.h. */
  14141. int main() { return 0; }
  14142. _ACEOF
  14143. if ac_fn_c_try_link "$LINENO"; then :
  14144. if test "$cross_compiling" = yes; then :
  14145. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14146. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14147. as_fn_error "cannot run test program while cross compiling
  14148. See \`config.log' for more details." "$LINENO" 5; }
  14149. else
  14150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14151. /* end confdefs.h. */
  14152. __thread int a; int b; int main() { return a = b; }
  14153. _ACEOF
  14154. if ac_fn_c_try_run "$LINENO"; then :
  14155. gcc_cv_have_tls=yes
  14156. else
  14157. gcc_cv_have_tls=no
  14158. fi
  14159. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14160. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14161. fi
  14162. else
  14163. gcc_cv_have_tls=yes
  14164. fi
  14165. rm -f core conftest.err conftest.$ac_objext \
  14166. conftest$ac_exeext conftest.$ac_ext
  14167. LDFLAGS="$chktls_save_LDFLAGS"
  14168. if test $gcc_cv_have_tls = yes; then
  14169. chktls_save_CFLAGS="$CFLAGS"
  14170. thread_CFLAGS=failed
  14171. for flag in '' '-pthread' '-lpthread'; do
  14172. CFLAGS="$flag $chktls_save_CFLAGS"
  14173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14174. /* end confdefs.h. */
  14175. #include <pthread.h>
  14176. void *g(void *d) { return NULL; }
  14177. int
  14178. main ()
  14179. {
  14180. pthread_t t; pthread_create(&t,NULL,g,NULL);
  14181. ;
  14182. return 0;
  14183. }
  14184. _ACEOF
  14185. if ac_fn_c_try_link "$LINENO"; then :
  14186. thread_CFLAGS="$flag"
  14187. fi
  14188. rm -f core conftest.err conftest.$ac_objext \
  14189. conftest$ac_exeext conftest.$ac_ext
  14190. if test "X$thread_CFLAGS" != Xfailed; then
  14191. break
  14192. fi
  14193. done
  14194. CFLAGS="$chktls_save_CFLAGS"
  14195. if test "X$thread_CFLAGS" != Xfailed; then
  14196. CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
  14197. if test "$cross_compiling" = yes; then :
  14198. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14199. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14200. as_fn_error "cannot run test program while cross compiling
  14201. See \`config.log' for more details." "$LINENO" 5; }
  14202. else
  14203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14204. /* end confdefs.h. */
  14205. #include <pthread.h>
  14206. __thread int a;
  14207. static int *volatile a_in_other_thread;
  14208. static void *
  14209. thread_func (void *arg)
  14210. {
  14211. a_in_other_thread = &a;
  14212. return (void *)0;
  14213. }
  14214. int
  14215. main ()
  14216. {
  14217. pthread_t thread;
  14218. void *thread_retval;
  14219. int *volatile a_in_main_thread;
  14220. a_in_main_thread = &a;
  14221. if (pthread_create (&thread, (pthread_attr_t *)0,
  14222. thread_func, (void *)0))
  14223. return 0;
  14224. if (pthread_join (thread, &thread_retval))
  14225. return 0;
  14226. return (a_in_other_thread == a_in_main_thread);
  14227. ;
  14228. return 0;
  14229. }
  14230. _ACEOF
  14231. if ac_fn_c_try_run "$LINENO"; then :
  14232. gcc_cv_have_tls=yes
  14233. else
  14234. gcc_cv_have_tls=no
  14235. fi
  14236. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14237. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14238. fi
  14239. CFLAGS="$chktls_save_CFLAGS"
  14240. fi
  14241. fi
  14242. else
  14243. gcc_cv_have_tls=no
  14244. fi
  14245. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14246. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14247. fi
  14248. fi
  14249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
  14250. $as_echo "$gcc_cv_have_tls" >&6; }
  14251. if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
  14252. $as_echo "#define HAVE_TLS 1" >>confdefs.h
  14253. fi
  14254. # See what sort of export controls are available.
  14255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
  14256. $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
  14257. if test "${libitm_cv_have_attribute_visibility+set}" = set; then :
  14258. $as_echo_n "(cached) " >&6
  14259. else
  14260. save_CFLAGS="$CFLAGS"
  14261. CFLAGS="$CFLAGS -Werror"
  14262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14263. /* end confdefs.h. */
  14264. void __attribute__((visibility("hidden"))) foo(void) { }
  14265. int
  14266. main ()
  14267. {
  14268. ;
  14269. return 0;
  14270. }
  14271. _ACEOF
  14272. if ac_fn_c_try_compile "$LINENO"; then :
  14273. libitm_cv_have_attribute_visibility=yes
  14274. else
  14275. libitm_cv_have_attribute_visibility=no
  14276. fi
  14277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14278. CFLAGS="$save_CFLAGS"
  14279. fi
  14280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
  14281. $as_echo "$libitm_cv_have_attribute_visibility" >&6; }
  14282. if test $libitm_cv_have_attribute_visibility = yes; then
  14283. $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
  14284. fi
  14285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
  14286. $as_echo_n "checking whether the target supports dllexport... " >&6; }
  14287. if test "${libitm_cv_have_attribute_dllexport+set}" = set; then :
  14288. $as_echo_n "(cached) " >&6
  14289. else
  14290. save_CFLAGS="$CFLAGS"
  14291. CFLAGS="$CFLAGS -Werror"
  14292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14293. /* end confdefs.h. */
  14294. void __attribute__((dllexport)) foo(void) { }
  14295. int
  14296. main ()
  14297. {
  14298. ;
  14299. return 0;
  14300. }
  14301. _ACEOF
  14302. if ac_fn_c_try_compile "$LINENO"; then :
  14303. libitm_cv_have_attribute_dllexport=yes
  14304. else
  14305. libitm_cv_have_attribute_dllexport=no
  14306. fi
  14307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14308. CFLAGS="$save_CFLAGS"
  14309. fi
  14310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
  14311. $as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
  14312. if test $libitm_cv_have_attribute_dllexport = yes; then
  14313. $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
  14314. fi
  14315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
  14316. $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
  14317. if test "${libitm_cv_have_attribute_alias+set}" = set; then :
  14318. $as_echo_n "(cached) " >&6
  14319. else
  14320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14321. /* end confdefs.h. */
  14322. void foo(void) { }
  14323. extern void bar(void) __attribute__((alias("foo")));
  14324. int
  14325. main ()
  14326. {
  14327. bar();
  14328. ;
  14329. return 0;
  14330. }
  14331. _ACEOF
  14332. if ac_fn_c_try_link "$LINENO"; then :
  14333. libitm_cv_have_attribute_alias=yes
  14334. else
  14335. libitm_cv_have_attribute_alias=no
  14336. fi
  14337. rm -f core conftest.err conftest.$ac_objext \
  14338. conftest$ac_exeext conftest.$ac_ext
  14339. fi
  14340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
  14341. $as_echo "$libitm_cv_have_attribute_alias" >&6; }
  14342. if test $libitm_cv_have_attribute_alias = yes; then
  14343. $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
  14344. fi
  14345. # Check linker hardware capability support.
  14346. # Check whether --with-gnu-ld was given.
  14347. if test "${with_gnu_ld+set}" = set; then :
  14348. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  14349. else
  14350. with_gnu_ld=no
  14351. fi
  14352. ac_prog=ld
  14353. if test "$GCC" = yes; then
  14354. # Check if gcc -print-prog-name=ld gives a path.
  14355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  14356. $as_echo_n "checking for ld used by $CC... " >&6; }
  14357. case $host in
  14358. *-*-mingw*)
  14359. # gcc leaves a trailing carriage return which upsets mingw
  14360. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  14361. *)
  14362. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  14363. esac
  14364. case $ac_prog in
  14365. # Accept absolute paths.
  14366. [\\/]* | ?:[\\/]*)
  14367. re_direlt='/[^/][^/]*/\.\./'
  14368. # Canonicalize the pathname of ld
  14369. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  14370. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  14371. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  14372. done
  14373. test -z "$LD" && LD="$ac_prog"
  14374. ;;
  14375. "")
  14376. # If it fails, then pretend we aren't using GCC.
  14377. ac_prog=ld
  14378. ;;
  14379. *)
  14380. # If it is relative, then search for the first ld in PATH.
  14381. with_gnu_ld=unknown
  14382. ;;
  14383. esac
  14384. elif test "$with_gnu_ld" = yes; then
  14385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  14386. $as_echo_n "checking for GNU ld... " >&6; }
  14387. else
  14388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  14389. $as_echo_n "checking for non-GNU ld... " >&6; }
  14390. fi
  14391. if test "${lt_cv_path_LD+set}" = set; then :
  14392. $as_echo_n "(cached) " >&6
  14393. else
  14394. if test -z "$LD"; then
  14395. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  14396. for ac_dir in $PATH; do
  14397. IFS="$lt_save_ifs"
  14398. test -z "$ac_dir" && ac_dir=.
  14399. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  14400. lt_cv_path_LD="$ac_dir/$ac_prog"
  14401. # Check to see if the program is GNU ld. I'd rather use --version,
  14402. # but apparently some variants of GNU ld only accept -v.
  14403. # Break only if it was the GNU/non-GNU ld that we prefer.
  14404. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  14405. *GNU* | *'with BFD'*)
  14406. test "$with_gnu_ld" != no && break
  14407. ;;
  14408. *)
  14409. test "$with_gnu_ld" != yes && break
  14410. ;;
  14411. esac
  14412. fi
  14413. done
  14414. IFS="$lt_save_ifs"
  14415. else
  14416. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  14417. fi
  14418. fi
  14419. LD="$lt_cv_path_LD"
  14420. if test -n "$LD"; then
  14421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  14422. $as_echo "$LD" >&6; }
  14423. else
  14424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14425. $as_echo "no" >&6; }
  14426. fi
  14427. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  14428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  14429. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  14430. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  14431. $as_echo_n "(cached) " >&6
  14432. else
  14433. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  14434. case `$LD -v 2>&1 </dev/null` in
  14435. *GNU* | *'with BFD'*)
  14436. lt_cv_prog_gnu_ld=yes
  14437. ;;
  14438. *)
  14439. lt_cv_prog_gnu_ld=no
  14440. ;;
  14441. esac
  14442. fi
  14443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  14444. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  14445. with_gnu_ld=$lt_cv_prog_gnu_ld
  14446. test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
  14447. ac_save_LDFLAGS="$LDFLAGS"
  14448. LDFLAGS="$LFLAGS -mclear-hwcap"
  14449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
  14450. $as_echo_n "checking for -mclear-hwcap... " >&6; }
  14451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14452. /* end confdefs.h. */
  14453. int
  14454. main ()
  14455. {
  14456. return 0;
  14457. ;
  14458. return 0;
  14459. }
  14460. _ACEOF
  14461. if ac_fn_c_try_link "$LINENO"; then :
  14462. ac_hwcap_ldflags=yes
  14463. else
  14464. ac_hwcap_ldflags=no
  14465. fi
  14466. rm -f core conftest.err conftest.$ac_objext \
  14467. conftest$ac_exeext conftest.$ac_ext
  14468. if test "$ac_hwcap_ldflags" = "yes"; then
  14469. HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
  14470. fi
  14471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
  14472. $as_echo "$ac_hwcap_ldflags" >&6; }
  14473. LDFLAGS="$ac_save_LDFLAGS"
  14474. if test $ac_hwcap_ldflags != no; then
  14475. HAVE_HWCAP_TRUE=
  14476. HAVE_HWCAP_FALSE='#'
  14477. else
  14478. HAVE_HWCAP_TRUE='#'
  14479. HAVE_HWCAP_FALSE=
  14480. fi
  14481. # If defaulting to -mavx, don't clear hwcaps.
  14482. ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
  14483. if test "x$ac_cv_have_decl___AVX__" = x""yes; then :
  14484. HWCAP_LDFLAGS=''
  14485. fi
  14486. # If we're not using GNU ld, then there's no point in even trying these
  14487. # tests. Check for that first. We should have already tested for gld
  14488. # by now (in libtool), but require it now just to be safe...
  14489. test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
  14490. test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
  14491. # The name set by libtool depends on the version of libtool. Shame on us
  14492. # for depending on an impl detail, but c'est la vie. Older versions used
  14493. # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
  14494. # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
  14495. # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
  14496. # set (hence we're using an older libtool), then set it.
  14497. if test x${with_gnu_ld+set} != xset; then
  14498. if test x${ac_cv_prog_gnu_ld+set} != xset; then
  14499. # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
  14500. with_gnu_ld=no
  14501. else
  14502. with_gnu_ld=$ac_cv_prog_gnu_ld
  14503. fi
  14504. fi
  14505. # Start by getting the version number. I think the libtool test already
  14506. # does some of this, but throws away the result.
  14507. libitm_ld_is_gold=no
  14508. if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
  14509. libitm_ld_is_gold=yes
  14510. fi
  14511. ldver=`$LD --version 2>/dev/null |
  14512. sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
  14513. libitm_gnu_ld_version=`echo $ldver | \
  14514. $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
  14515. # Set --gc-sections.
  14516. if test "$with_gnu_ld" = "notbroken"; then
  14517. # GNU ld it is! Joy and bunny rabbits!
  14518. # All these tests are for C++; save the language and the compiler flags.
  14519. # Need to do this so that g++ won't try to link in libstdc++
  14520. ac_test_CFLAGS="${CFLAGS+set}"
  14521. ac_save_CFLAGS="$CFLAGS"
  14522. CFLAGS='-x c++ -Wl,--gc-sections'
  14523. # Check for -Wl,--gc-sections
  14524. # XXX This test is broken at the moment, as symbols required for linking
  14525. # are now in libsupc++ (not built yet). In addition, this test has
  14526. # cored on solaris in the past. In addition, --gc-sections doesn't
  14527. # really work at the moment (keeps on discarding used sections, first
  14528. # .eh_frame and now some of the glibc sections for iconv).
  14529. # Bzzzzt. Thanks for playing, maybe next time.
  14530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
  14531. $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
  14532. if test "$cross_compiling" = yes; then :
  14533. ac_sectionLDflags=yes
  14534. else
  14535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14536. /* end confdefs.h. */
  14537. int main(void)
  14538. {
  14539. try { throw 1; }
  14540. catch (...) { };
  14541. return 0;
  14542. }
  14543. _ACEOF
  14544. if ac_fn_c_try_run "$LINENO"; then :
  14545. ac_sectionLDflags=yes
  14546. else
  14547. ac_sectionLDflags=no
  14548. fi
  14549. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14550. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14551. fi
  14552. if test "$ac_test_CFLAGS" = set; then
  14553. CFLAGS="$ac_save_CFLAGS"
  14554. else
  14555. # this is the suspicious part
  14556. CFLAGS=''
  14557. fi
  14558. if test "$ac_sectionLDflags" = "yes"; then
  14559. SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
  14560. fi
  14561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
  14562. $as_echo "$ac_sectionLDflags" >&6; }
  14563. fi
  14564. # Set linker optimization flags.
  14565. if test x"$with_gnu_ld" = x"yes"; then
  14566. OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
  14567. fi
  14568. # Check whether --enable-symvers was given.
  14569. if test "${enable_symvers+set}" = set; then :
  14570. enableval=$enable_symvers;
  14571. case "$enableval" in
  14572. yes|no|gnu*|sun) ;;
  14573. *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
  14574. esac
  14575. else
  14576. enable_symvers=yes
  14577. fi
  14578. # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
  14579. # don't know enough about $LD to do tricks...
  14580. # Turn a 'yes' into a suitable default.
  14581. if test x$enable_symvers = xyes ; then
  14582. # FIXME The following test is too strict, in theory.
  14583. if test $enable_shared = no || test "x$LD" = x; then
  14584. enable_symvers=no
  14585. else
  14586. if test $with_gnu_ld = yes ; then
  14587. enable_symvers=gnu
  14588. else
  14589. case ${target_os} in
  14590. # Sun symbol versioning exists since Solaris 2.5.
  14591. solaris2.[5-9]* | solaris2.1[0-9]*)
  14592. enable_symvers=sun ;;
  14593. *)
  14594. enable_symvers=no ;;
  14595. esac
  14596. fi
  14597. fi
  14598. fi
  14599. # Check if 'sun' was requested on non-Solaris 2 platforms.
  14600. if test x$enable_symvers = xsun ; then
  14601. case ${target_os} in
  14602. solaris2*)
  14603. # All fine.
  14604. ;;
  14605. *)
  14606. # Unlikely to work.
  14607. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
  14608. $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
  14609. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
  14610. $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
  14611. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  14612. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  14613. enable_symvers=no
  14614. ;;
  14615. esac
  14616. fi
  14617. # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
  14618. if test $enable_symvers != no; then
  14619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
  14620. $as_echo_n "checking for shared libgcc... " >&6; }
  14621. ac_save_CFLAGS="$CFLAGS"
  14622. CFLAGS=' -lgcc_s'
  14623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14624. /* end confdefs.h. */
  14625. int
  14626. main ()
  14627. {
  14628. return 0;
  14629. ;
  14630. return 0;
  14631. }
  14632. _ACEOF
  14633. if ac_fn_c_try_link "$LINENO"; then :
  14634. libitm_shared_libgcc=yes
  14635. else
  14636. libitm_shared_libgcc=no
  14637. fi
  14638. rm -f core conftest.err conftest.$ac_objext \
  14639. conftest$ac_exeext conftest.$ac_ext
  14640. CFLAGS="$ac_save_CFLAGS"
  14641. if test $libitm_shared_libgcc = no; then
  14642. cat > conftest.c <<EOF
  14643. int main (void) { return 0; }
  14644. EOF
  14645. libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
  14646. -shared -shared-libgcc -o conftest.so \
  14647. conftest.c -v 2>&1 >/dev/null \
  14648. | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
  14649. rm -f conftest.c conftest.so
  14650. if test x${libitm_libgcc_s_suffix+set} = xset; then
  14651. CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
  14652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14653. /* end confdefs.h. */
  14654. int
  14655. main ()
  14656. {
  14657. return 0;
  14658. ;
  14659. return 0;
  14660. }
  14661. _ACEOF
  14662. if ac_fn_c_try_link "$LINENO"; then :
  14663. libitm_shared_libgcc=yes
  14664. fi
  14665. rm -f core conftest.err conftest.$ac_objext \
  14666. conftest$ac_exeext conftest.$ac_ext
  14667. CFLAGS="$ac_save_CFLAGS"
  14668. fi
  14669. fi
  14670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
  14671. $as_echo "$libitm_shared_libgcc" >&6; }
  14672. fi
  14673. # For GNU ld, we need at least this version. The format is described in
  14674. # LIBITM_CHECK_LINKER_FEATURES above.
  14675. libitm_min_gnu_ld_version=21400
  14676. # XXXXXXXXXXX libitm_gnu_ld_version=21390
  14677. # Check to see if unspecified "yes" value can win, given results above.
  14678. # Change "yes" into either "no" or a style name.
  14679. if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
  14680. if test $with_gnu_ld = yes; then
  14681. if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
  14682. enable_symvers=gnu
  14683. elif test $libitm_ld_is_gold = yes ; then
  14684. enable_symvers=gnu
  14685. else
  14686. # The right tools, the right setup, but too old. Fallbacks?
  14687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
  14688. $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
  14689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
  14690. $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
  14691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
  14692. $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
  14693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
  14694. $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
  14695. if test $libitm_gnu_ld_version -ge 21200 ; then
  14696. # Globbing fix is present, proper block support is not.
  14697. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  14698. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  14699. enable_symvers=no
  14700. else
  14701. # 2.11 or older.
  14702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  14703. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  14704. enable_symvers=no
  14705. fi
  14706. fi
  14707. elif test $enable_symvers = sun; then
  14708. : All interesting versions of Sun ld support sun style symbol versioning.
  14709. else
  14710. # just fail for now
  14711. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
  14712. $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
  14713. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
  14714. $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
  14715. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
  14716. $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
  14717. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  14718. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  14719. enable_symvers=no
  14720. fi
  14721. fi
  14722. if test $enable_symvers != no; then
  14723. LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
  14724. LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
  14725. else
  14726. LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
  14727. LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
  14728. fi
  14729. if test $enable_symvers = gnu; then
  14730. LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
  14731. LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
  14732. else
  14733. LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
  14734. LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
  14735. fi
  14736. if test $enable_symvers = sun; then
  14737. LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
  14738. LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
  14739. else
  14740. LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
  14741. LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
  14742. fi
  14743. { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
  14744. $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
  14745. if test $enable_symvers = gnu; then
  14746. $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
  14747. fi
  14748. # See if we can emit unwind info in the sjlj stub.
  14749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
  14750. $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
  14751. if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
  14752. $as_echo_n "(cached) " >&6
  14753. else
  14754. gcc_cv_as_cfi_pseudo_op=unknown
  14755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14756. /* end confdefs.h. */
  14757. asm (".cfi_startproc\n\t.cfi_endproc");
  14758. int
  14759. main ()
  14760. {
  14761. ;
  14762. return 0;
  14763. }
  14764. _ACEOF
  14765. if ac_fn_c_try_compile "$LINENO"; then :
  14766. gcc_cv_as_cfi_pseudo_op=yes
  14767. else
  14768. gcc_cv_as_cfi_pseudo_op=no
  14769. fi
  14770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14771. fi
  14772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
  14773. $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
  14774. if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
  14775. $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
  14776. fi
  14777. # Determine the proper ABI type for size_t.
  14778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
  14779. $as_echo_n "checking how size_t is mangled... " >&6; }
  14780. if test "${libitm_cv_size_t_mangling+set}" = set; then :
  14781. $as_echo_n "(cached) " >&6
  14782. else
  14783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14784. /* end confdefs.h. */
  14785. int
  14786. main ()
  14787. {
  14788. extern __SIZE_TYPE__ x; extern unsigned long x;
  14789. ;
  14790. return 0;
  14791. }
  14792. _ACEOF
  14793. if ac_fn_c_try_compile "$LINENO"; then :
  14794. libitm_cv_size_t_mangling=m
  14795. else
  14796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14797. /* end confdefs.h. */
  14798. int
  14799. main ()
  14800. {
  14801. extern __SIZE_TYPE__ x; extern unsigned int x;
  14802. ;
  14803. return 0;
  14804. }
  14805. _ACEOF
  14806. if ac_fn_c_try_compile "$LINENO"; then :
  14807. libitm_cv_size_t_mangling=j
  14808. else
  14809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14810. /* end confdefs.h. */
  14811. int
  14812. main ()
  14813. {
  14814. extern __SIZE_TYPE__ x; extern unsigned long long x;
  14815. ;
  14816. return 0;
  14817. }
  14818. _ACEOF
  14819. if ac_fn_c_try_compile "$LINENO"; then :
  14820. libitm_cv_size_t_mangling=y
  14821. else
  14822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14823. /* end confdefs.h. */
  14824. int
  14825. main ()
  14826. {
  14827. extern __SIZE_TYPE__ x; extern unsigned short x;
  14828. ;
  14829. return 0;
  14830. }
  14831. _ACEOF
  14832. if ac_fn_c_try_compile "$LINENO"; then :
  14833. libitm_cv_size_t_mangling=t
  14834. else
  14835. libitm_cv_size_t_mangling=x
  14836. fi
  14837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14838. fi
  14839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14840. fi
  14841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14842. fi
  14843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14844. fi
  14845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
  14846. $as_echo "$libitm_cv_size_t_mangling" >&6; }
  14847. if test $libitm_cv_size_t_mangling = x; then
  14848. as_fn_error "Unknown underlying type for size_t" "$LINENO" 5
  14849. fi
  14850. cat >>confdefs.h <<_ACEOF
  14851. #define MANGLE_SIZE_T $libitm_cv_size_t_mangling
  14852. _ACEOF
  14853. # Get target configury.
  14854. . ${srcdir}/configure.tgt
  14855. if test -n "$UNSUPPORTED"; then
  14856. as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
  14857. fi
  14858. CFLAGS="$save_CFLAGS $XCFLAGS"
  14859. # Check for __sync_val_compare_and_swap, but only after the target has
  14860. # had a chance to set XCFLAGS.
  14861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
  14862. $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
  14863. if test "${libitm_cv_have_sync_builtins+set}" = set; then :
  14864. $as_echo_n "(cached) " >&6
  14865. else
  14866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14867. /* end confdefs.h. */
  14868. int
  14869. main ()
  14870. {
  14871. int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
  14872. ;
  14873. return 0;
  14874. }
  14875. _ACEOF
  14876. if ac_fn_c_try_link "$LINENO"; then :
  14877. libitm_cv_have_sync_builtins=yes
  14878. else
  14879. libitm_cv_have_sync_builtins=no
  14880. fi
  14881. rm -f core conftest.err conftest.$ac_objext \
  14882. conftest$ac_exeext conftest.$ac_ext
  14883. fi
  14884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
  14885. $as_echo "$libitm_cv_have_sync_builtins" >&6; }
  14886. if test $libitm_cv_have_sync_builtins = yes; then
  14887. $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
  14888. fi
  14889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
  14890. $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
  14891. if test "${libitm_cv_have_64bit_sync_builtins+set}" = set; then :
  14892. $as_echo_n "(cached) " >&6
  14893. else
  14894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14895. /* end confdefs.h. */
  14896. #include <stdint.h>
  14897. int
  14898. main ()
  14899. {
  14900. uint64_t foo, bar;
  14901. bar = __sync_val_compare_and_swap(&foo, 0, 1);
  14902. ;
  14903. return 0;
  14904. }
  14905. _ACEOF
  14906. if ac_fn_c_try_link "$LINENO"; then :
  14907. libitm_cv_have_64bit_sync_builtins=yes
  14908. else
  14909. libitm_cv_have_64bit_sync_builtins=no
  14910. fi
  14911. rm -f core conftest.err conftest.$ac_objext \
  14912. conftest$ac_exeext conftest.$ac_ext
  14913. fi
  14914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
  14915. $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
  14916. if test $libitm_cv_have_64bit_sync_builtins = yes; then
  14917. $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
  14918. fi
  14919. case "${target_cpu}" in
  14920. i[34567]86 | x86_64)
  14921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
  14922. $as_echo_n "checking if the assembler supports AVX... " >&6; }
  14923. if test "${libitm_cv_as_avx+set}" = set; then :
  14924. $as_echo_n "(cached) " >&6
  14925. else
  14926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14927. /* end confdefs.h. */
  14928. int
  14929. main ()
  14930. {
  14931. asm("vzeroupper");
  14932. ;
  14933. return 0;
  14934. }
  14935. _ACEOF
  14936. if ac_fn_c_try_compile "$LINENO"; then :
  14937. libitm_cv_as_avx=yes
  14938. else
  14939. libitm_cv_as_avx=no
  14940. fi
  14941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14942. fi
  14943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
  14944. $as_echo "$libitm_cv_as_avx" >&6; }
  14945. if test x$libitm_cv_as_avx = xyes; then
  14946. $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
  14947. fi
  14948. ;;
  14949. esac
  14950. case "${target_cpu}" in
  14951. i[34567]86 | x86_64)
  14952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports RTM" >&5
  14953. $as_echo_n "checking if the assembler supports RTM... " >&6; }
  14954. if test "${libitm_cv_as_rtm+set}" = set; then :
  14955. $as_echo_n "(cached) " >&6
  14956. else
  14957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14958. /* end confdefs.h. */
  14959. int
  14960. main ()
  14961. {
  14962. asm("1: xbegin 1b; xend");
  14963. ;
  14964. return 0;
  14965. }
  14966. _ACEOF
  14967. if ac_fn_c_try_compile "$LINENO"; then :
  14968. libitm_cv_as_rtm=yes
  14969. else
  14970. libitm_cv_as_rtm=no
  14971. fi
  14972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14973. fi
  14974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_rtm" >&5
  14975. $as_echo "$libitm_cv_as_rtm" >&6; }
  14976. if test x$libitm_cv_as_rtm = xyes; then
  14977. $as_echo "#define HAVE_AS_RTM 1" >>confdefs.h
  14978. fi
  14979. ;;
  14980. esac
  14981. case "${target_cpu}" in
  14982. powerpc*)
  14983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
  14984. $as_echo_n "checking if the assembler supports HTM... " >&6; }
  14985. if test "${libitm_cv_as_htm+set}" = set; then :
  14986. $as_echo_n "(cached) " >&6
  14987. else
  14988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14989. /* end confdefs.h. */
  14990. int
  14991. main ()
  14992. {
  14993. asm("tbegin. 0; tend. 0");
  14994. ;
  14995. return 0;
  14996. }
  14997. _ACEOF
  14998. if ac_fn_c_try_compile "$LINENO"; then :
  14999. libitm_cv_as_htm=yes
  15000. else
  15001. libitm_cv_as_htm=no
  15002. fi
  15003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15004. fi
  15005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
  15006. $as_echo "$libitm_cv_as_htm" >&6; }
  15007. if test x$libitm_cv_as_htm = xyes; then
  15008. $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
  15009. fi
  15010. ;;
  15011. s390*)
  15012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
  15013. $as_echo_n "checking if the assembler supports HTM... " >&6; }
  15014. if test "${libitm_cv_as_htm+set}" = set; then :
  15015. $as_echo_n "(cached) " >&6
  15016. else
  15017. save_CFLAGS="$CFLAGS"
  15018. CFLAGS="$CFLAGS -march=zEC12"
  15019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15020. /* end confdefs.h. */
  15021. int
  15022. main ()
  15023. {
  15024. asm("tbegin 0,0; tend");
  15025. ;
  15026. return 0;
  15027. }
  15028. _ACEOF
  15029. if ac_fn_c_try_compile "$LINENO"; then :
  15030. libitm_cv_as_htm=yes
  15031. else
  15032. libitm_cv_as_htm=no
  15033. fi
  15034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15035. CFLAGS="$save_CFLAGS"
  15036. fi
  15037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
  15038. $as_echo "$libitm_cv_as_htm" >&6; }
  15039. if test x$libitm_cv_as_htm = xyes; then
  15040. $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
  15041. fi
  15042. ;;
  15043. esac
  15044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
  15045. $as_echo_n "checking whether weak refs work like ELF... " >&6; }
  15046. if test "${ac_cv_have_elf_style_weakref+set}" = set; then :
  15047. $as_echo_n "(cached) " >&6
  15048. else
  15049. weakref_m4_saved_CFLAGS="$CFLAGS"
  15050. case "${host}" in
  15051. *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
  15052. *) ;;
  15053. esac
  15054. if test "$cross_compiling" = yes; then :
  15055. case "${host}" in
  15056. *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
  15057. *) ac_cv_have_elf_style_weakref=yes;;
  15058. esac
  15059. else
  15060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15061. /* end confdefs.h. */
  15062. extern void fNotToBeFound(void) __attribute__((weak));
  15063. int main ()
  15064. {
  15065. if (fNotToBeFound)
  15066. return 1;
  15067. else
  15068. return 0;
  15069. }
  15070. _ACEOF
  15071. if ac_fn_c_try_run "$LINENO"; then :
  15072. ac_cv_have_elf_style_weakref=yes
  15073. else
  15074. ac_cv_have_elf_style_weakref=no
  15075. fi
  15076. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15077. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15078. fi
  15079. CFLAGS="$weakref_m4_saved_CFLAGS"
  15080. fi
  15081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
  15082. $as_echo "$ac_cv_have_elf_style_weakref" >&6; }
  15083. if test x"$ac_cv_have_elf_style_weakref" = xyes; then
  15084. $as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
  15085. fi
  15086. # Cleanup and exit.
  15087. CFLAGS="$save_CFLAGS"
  15088. cat >confcache <<\_ACEOF
  15089. # This file is a shell script that caches the results of configure
  15090. # tests run on this system so they can be shared between configure
  15091. # scripts and configure runs, see configure's option --config-cache.
  15092. # It is not useful on other systems. If it contains results you don't
  15093. # want to keep, you may remove or edit it.
  15094. #
  15095. # config.status only pays attention to the cache file if you give it
  15096. # the --recheck option to rerun configure.
  15097. #
  15098. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15099. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15100. # following values.
  15101. _ACEOF
  15102. # The following way of writing the cache mishandles newlines in values,
  15103. # but we know of no workaround that is simple, portable, and efficient.
  15104. # So, we kill variables containing newlines.
  15105. # Ultrix sh set writes to stderr and can't be redirected directly,
  15106. # and sets the high bit in the cache file unless we assign to the vars.
  15107. (
  15108. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15109. eval ac_val=\$$ac_var
  15110. case $ac_val in #(
  15111. *${as_nl}*)
  15112. case $ac_var in #(
  15113. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15114. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15115. esac
  15116. case $ac_var in #(
  15117. _ | IFS | as_nl) ;; #(
  15118. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15119. *) { eval $ac_var=; unset $ac_var;} ;;
  15120. esac ;;
  15121. esac
  15122. done
  15123. (set) 2>&1 |
  15124. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15125. *${as_nl}ac_space=\ *)
  15126. # `set' does not quote correctly, so add quotes: double-quote
  15127. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15128. sed -n \
  15129. "s/'/'\\\\''/g;
  15130. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15131. ;; #(
  15132. *)
  15133. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15134. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15135. ;;
  15136. esac |
  15137. sort
  15138. ) |
  15139. sed '
  15140. /^ac_cv_env_/b end
  15141. t clear
  15142. :clear
  15143. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15144. t end
  15145. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15146. :end' >>confcache
  15147. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15148. if test -w "$cache_file"; then
  15149. test "x$cache_file" != "x/dev/null" &&
  15150. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15151. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15152. cat confcache >$cache_file
  15153. else
  15154. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15155. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15156. fi
  15157. fi
  15158. rm -f confcache
  15159. # Add -Wall -Werror if we are using GCC.
  15160. if test "x$GCC" = "xyes"; then
  15161. XCFLAGS="$XCFLAGS -Wall -Werror"
  15162. fi
  15163. XCFLAGS="$XCFLAGS $XPCFLAGS"
  15164. if test ${multilib} = yes; then
  15165. multilib_arg="--enable-multilib"
  15166. else
  15167. multilib_arg=
  15168. fi
  15169. # Set up the set of libraries that we need to link against for libitm.
  15170. # Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
  15171. # which will force linkage against -lpthread (or equivalent for the system).
  15172. # That's not 100% ideal, but about the best we can do easily.
  15173. if test $enable_shared = yes; then
  15174. link_itm="-litm %{static: $LIBS}"
  15175. else
  15176. link_itm="-litm $LIBS"
  15177. fi
  15178. if test "$ARCH" = arm; then
  15179. ARCH_ARM_TRUE=
  15180. ARCH_ARM_FALSE='#'
  15181. else
  15182. ARCH_ARM_TRUE='#'
  15183. ARCH_ARM_FALSE=
  15184. fi
  15185. if test "$ARCH" = x86; then
  15186. ARCH_X86_TRUE=
  15187. ARCH_X86_FALSE='#'
  15188. else
  15189. ARCH_X86_TRUE='#'
  15190. ARCH_X86_FALSE=
  15191. fi
  15192. if test "$libitm_cv_as_avx" = yes; then
  15193. ARCH_X86_AVX_TRUE=
  15194. ARCH_X86_AVX_FALSE='#'
  15195. else
  15196. ARCH_X86_AVX_TRUE='#'
  15197. ARCH_X86_AVX_FALSE=
  15198. fi
  15199. if test $enable_linux_futex = yes; then
  15200. ARCH_FUTEX_TRUE=
  15201. ARCH_FUTEX_FALSE='#'
  15202. else
  15203. ARCH_FUTEX_TRUE='#'
  15204. ARCH_FUTEX_FALSE=
  15205. fi
  15206. ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
  15207. cat >confcache <<\_ACEOF
  15208. # This file is a shell script that caches the results of configure
  15209. # tests run on this system so they can be shared between configure
  15210. # scripts and configure runs, see configure's option --config-cache.
  15211. # It is not useful on other systems. If it contains results you don't
  15212. # want to keep, you may remove or edit it.
  15213. #
  15214. # config.status only pays attention to the cache file if you give it
  15215. # the --recheck option to rerun configure.
  15216. #
  15217. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15218. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15219. # following values.
  15220. _ACEOF
  15221. # The following way of writing the cache mishandles newlines in values,
  15222. # but we know of no workaround that is simple, portable, and efficient.
  15223. # So, we kill variables containing newlines.
  15224. # Ultrix sh set writes to stderr and can't be redirected directly,
  15225. # and sets the high bit in the cache file unless we assign to the vars.
  15226. (
  15227. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15228. eval ac_val=\$$ac_var
  15229. case $ac_val in #(
  15230. *${as_nl}*)
  15231. case $ac_var in #(
  15232. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15233. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15234. esac
  15235. case $ac_var in #(
  15236. _ | IFS | as_nl) ;; #(
  15237. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15238. *) { eval $ac_var=; unset $ac_var;} ;;
  15239. esac ;;
  15240. esac
  15241. done
  15242. (set) 2>&1 |
  15243. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15244. *${as_nl}ac_space=\ *)
  15245. # `set' does not quote correctly, so add quotes: double-quote
  15246. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15247. sed -n \
  15248. "s/'/'\\\\''/g;
  15249. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15250. ;; #(
  15251. *)
  15252. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15253. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15254. ;;
  15255. esac |
  15256. sort
  15257. ) |
  15258. sed '
  15259. /^ac_cv_env_/b end
  15260. t clear
  15261. :clear
  15262. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15263. t end
  15264. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15265. :end' >>confcache
  15266. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15267. if test -w "$cache_file"; then
  15268. test "x$cache_file" != "x/dev/null" &&
  15269. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15270. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15271. cat confcache >$cache_file
  15272. else
  15273. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15274. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15275. fi
  15276. fi
  15277. rm -f confcache
  15278. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15279. # Let make expand exec_prefix.
  15280. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15281. DEFS=-DHAVE_CONFIG_H
  15282. ac_libobjs=
  15283. ac_ltlibobjs=
  15284. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15285. # 1. Remove the extension, and $U if already installed.
  15286. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15287. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15288. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15289. # will be set to the directory where LIBOBJS objects are built.
  15290. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15291. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  15292. done
  15293. LIBOBJS=$ac_libobjs
  15294. LTLIBOBJS=$ac_ltlibobjs
  15295. if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
  15296. as_fn_error "conditional \"GENINSRC\" was never defined.
  15297. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15298. fi
  15299. if test -n "$EXEEXT"; then
  15300. am__EXEEXT_TRUE=
  15301. am__EXEEXT_FALSE='#'
  15302. else
  15303. am__EXEEXT_TRUE='#'
  15304. am__EXEEXT_FALSE=
  15305. fi
  15306. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15307. as_fn_error "conditional \"AMDEP\" was never defined.
  15308. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15309. fi
  15310. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15311. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  15312. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15313. fi
  15314. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15315. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  15316. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15317. fi
  15318. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  15319. as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
  15320. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15321. fi
  15322. if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
  15323. as_fn_error "conditional \"BUILD_INFO\" was never defined.
  15324. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15325. fi
  15326. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  15327. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  15328. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15329. fi
  15330. if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
  15331. as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
  15332. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15333. fi
  15334. if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
  15335. as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
  15336. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15337. fi
  15338. if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
  15339. as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
  15340. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15341. fi
  15342. if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
  15343. as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
  15344. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15345. fi
  15346. if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
  15347. as_fn_error "conditional \"ARCH_ARM\" was never defined.
  15348. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15349. fi
  15350. if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
  15351. as_fn_error "conditional \"ARCH_X86\" was never defined.
  15352. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15353. fi
  15354. if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
  15355. as_fn_error "conditional \"ARCH_X86_AVX\" was never defined.
  15356. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15357. fi
  15358. if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
  15359. as_fn_error "conditional \"ARCH_FUTEX\" was never defined.
  15360. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15361. fi
  15362. : ${CONFIG_STATUS=./config.status}
  15363. ac_write_fail=0
  15364. ac_clean_files_save=$ac_clean_files
  15365. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15366. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  15367. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15368. as_write_fail=0
  15369. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  15370. #! $SHELL
  15371. # Generated by $as_me.
  15372. # Run this file to recreate the current configuration.
  15373. # Compiler output produced by configure, useful for debugging
  15374. # configure, is in config.log if it exists.
  15375. debug=false
  15376. ac_cs_recheck=false
  15377. ac_cs_silent=false
  15378. SHELL=\${CONFIG_SHELL-$SHELL}
  15379. export SHELL
  15380. _ASEOF
  15381. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  15382. ## -------------------- ##
  15383. ## M4sh Initialization. ##
  15384. ## -------------------- ##
  15385. # Be more Bourne compatible
  15386. DUALCASE=1; export DUALCASE # for MKS sh
  15387. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15388. emulate sh
  15389. NULLCMD=:
  15390. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15391. # is contrary to our usage. Disable this feature.
  15392. alias -g '${1+"$@"}'='"$@"'
  15393. setopt NO_GLOB_SUBST
  15394. else
  15395. case `(set -o) 2>/dev/null` in #(
  15396. *posix*) :
  15397. set -o posix ;; #(
  15398. *) :
  15399. ;;
  15400. esac
  15401. fi
  15402. as_nl='
  15403. '
  15404. export as_nl
  15405. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15406. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15407. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15408. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15409. # Prefer a ksh shell builtin over an external printf program on Solaris,
  15410. # but without wasting forks for bash or zsh.
  15411. if test -z "$BASH_VERSION$ZSH_VERSION" \
  15412. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15413. as_echo='print -r --'
  15414. as_echo_n='print -rn --'
  15415. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15416. as_echo='printf %s\n'
  15417. as_echo_n='printf %s'
  15418. else
  15419. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15420. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15421. as_echo_n='/usr/ucb/echo -n'
  15422. else
  15423. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15424. as_echo_n_body='eval
  15425. arg=$1;
  15426. case $arg in #(
  15427. *"$as_nl"*)
  15428. expr "X$arg" : "X\\(.*\\)$as_nl";
  15429. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15430. esac;
  15431. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15432. '
  15433. export as_echo_n_body
  15434. as_echo_n='sh -c $as_echo_n_body as_echo'
  15435. fi
  15436. export as_echo_body
  15437. as_echo='sh -c $as_echo_body as_echo'
  15438. fi
  15439. # The user is always right.
  15440. if test "${PATH_SEPARATOR+set}" != set; then
  15441. PATH_SEPARATOR=:
  15442. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15443. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15444. PATH_SEPARATOR=';'
  15445. }
  15446. fi
  15447. # IFS
  15448. # We need space, tab and new line, in precisely that order. Quoting is
  15449. # there to prevent editors from complaining about space-tab.
  15450. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15451. # splitting by setting IFS to empty value.)
  15452. IFS=" "" $as_nl"
  15453. # Find who we are. Look in the path if we contain no directory separator.
  15454. case $0 in #((
  15455. *[\\/]* ) as_myself=$0 ;;
  15456. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15457. for as_dir in $PATH
  15458. do
  15459. IFS=$as_save_IFS
  15460. test -z "$as_dir" && as_dir=.
  15461. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15462. done
  15463. IFS=$as_save_IFS
  15464. ;;
  15465. esac
  15466. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15467. # in which case we are not to be found in the path.
  15468. if test "x$as_myself" = x; then
  15469. as_myself=$0
  15470. fi
  15471. if test ! -f "$as_myself"; then
  15472. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15473. exit 1
  15474. fi
  15475. # Unset variables that we do not need and which cause bugs (e.g. in
  15476. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15477. # suppresses any "Segmentation fault" message there. '((' could
  15478. # trigger a bug in pdksh 5.2.14.
  15479. for as_var in BASH_ENV ENV MAIL MAILPATH
  15480. do eval test x\${$as_var+set} = xset \
  15481. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15482. done
  15483. PS1='$ '
  15484. PS2='> '
  15485. PS4='+ '
  15486. # NLS nuisances.
  15487. LC_ALL=C
  15488. export LC_ALL
  15489. LANGUAGE=C
  15490. export LANGUAGE
  15491. # CDPATH.
  15492. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15493. # as_fn_error ERROR [LINENO LOG_FD]
  15494. # ---------------------------------
  15495. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15496. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15497. # script with status $?, using 1 if that was 0.
  15498. as_fn_error ()
  15499. {
  15500. as_status=$?; test $as_status -eq 0 && as_status=1
  15501. if test "$3"; then
  15502. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15503. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  15504. fi
  15505. $as_echo "$as_me: error: $1" >&2
  15506. as_fn_exit $as_status
  15507. } # as_fn_error
  15508. # as_fn_set_status STATUS
  15509. # -----------------------
  15510. # Set $? to STATUS, without forking.
  15511. as_fn_set_status ()
  15512. {
  15513. return $1
  15514. } # as_fn_set_status
  15515. # as_fn_exit STATUS
  15516. # -----------------
  15517. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15518. as_fn_exit ()
  15519. {
  15520. set +e
  15521. as_fn_set_status $1
  15522. exit $1
  15523. } # as_fn_exit
  15524. # as_fn_unset VAR
  15525. # ---------------
  15526. # Portably unset VAR.
  15527. as_fn_unset ()
  15528. {
  15529. { eval $1=; unset $1;}
  15530. }
  15531. as_unset=as_fn_unset
  15532. # as_fn_append VAR VALUE
  15533. # ----------------------
  15534. # Append the text in VALUE to the end of the definition contained in VAR. Take
  15535. # advantage of any shell optimizations that allow amortized linear growth over
  15536. # repeated appends, instead of the typical quadratic growth present in naive
  15537. # implementations.
  15538. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15539. eval 'as_fn_append ()
  15540. {
  15541. eval $1+=\$2
  15542. }'
  15543. else
  15544. as_fn_append ()
  15545. {
  15546. eval $1=\$$1\$2
  15547. }
  15548. fi # as_fn_append
  15549. # as_fn_arith ARG...
  15550. # ------------------
  15551. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15552. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15553. # must be portable across $(()) and expr.
  15554. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15555. eval 'as_fn_arith ()
  15556. {
  15557. as_val=$(( $* ))
  15558. }'
  15559. else
  15560. as_fn_arith ()
  15561. {
  15562. as_val=`expr "$@" || test $? -eq 1`
  15563. }
  15564. fi # as_fn_arith
  15565. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15566. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15567. as_expr=expr
  15568. else
  15569. as_expr=false
  15570. fi
  15571. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15572. as_basename=basename
  15573. else
  15574. as_basename=false
  15575. fi
  15576. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15577. as_dirname=dirname
  15578. else
  15579. as_dirname=false
  15580. fi
  15581. as_me=`$as_basename -- "$0" ||
  15582. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15583. X"$0" : 'X\(//\)$' \| \
  15584. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15585. $as_echo X/"$0" |
  15586. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15587. s//\1/
  15588. q
  15589. }
  15590. /^X\/\(\/\/\)$/{
  15591. s//\1/
  15592. q
  15593. }
  15594. /^X\/\(\/\).*/{
  15595. s//\1/
  15596. q
  15597. }
  15598. s/.*/./; q'`
  15599. # Avoid depending upon Character Ranges.
  15600. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15601. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15602. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15603. as_cr_digits='0123456789'
  15604. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15605. ECHO_C= ECHO_N= ECHO_T=
  15606. case `echo -n x` in #(((((
  15607. -n*)
  15608. case `echo 'xy\c'` in
  15609. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15610. xy) ECHO_C='\c';;
  15611. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15612. ECHO_T=' ';;
  15613. esac;;
  15614. *)
  15615. ECHO_N='-n';;
  15616. esac
  15617. rm -f conf$$ conf$$.exe conf$$.file
  15618. if test -d conf$$.dir; then
  15619. rm -f conf$$.dir/conf$$.file
  15620. else
  15621. rm -f conf$$.dir
  15622. mkdir conf$$.dir 2>/dev/null
  15623. fi
  15624. if (echo >conf$$.file) 2>/dev/null; then
  15625. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15626. as_ln_s='ln -s'
  15627. # ... but there are two gotchas:
  15628. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15629. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15630. # In both cases, we have to default to `cp -p'.
  15631. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15632. as_ln_s='cp -p'
  15633. elif ln conf$$.file conf$$ 2>/dev/null; then
  15634. as_ln_s=ln
  15635. else
  15636. as_ln_s='cp -p'
  15637. fi
  15638. else
  15639. as_ln_s='cp -p'
  15640. fi
  15641. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15642. rmdir conf$$.dir 2>/dev/null
  15643. # as_fn_mkdir_p
  15644. # -------------
  15645. # Create "$as_dir" as a directory, including parents if necessary.
  15646. as_fn_mkdir_p ()
  15647. {
  15648. case $as_dir in #(
  15649. -*) as_dir=./$as_dir;;
  15650. esac
  15651. test -d "$as_dir" || eval $as_mkdir_p || {
  15652. as_dirs=
  15653. while :; do
  15654. case $as_dir in #(
  15655. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15656. *) as_qdir=$as_dir;;
  15657. esac
  15658. as_dirs="'$as_qdir' $as_dirs"
  15659. as_dir=`$as_dirname -- "$as_dir" ||
  15660. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15661. X"$as_dir" : 'X\(//\)[^/]' \| \
  15662. X"$as_dir" : 'X\(//\)$' \| \
  15663. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15664. $as_echo X"$as_dir" |
  15665. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15666. s//\1/
  15667. q
  15668. }
  15669. /^X\(\/\/\)[^/].*/{
  15670. s//\1/
  15671. q
  15672. }
  15673. /^X\(\/\/\)$/{
  15674. s//\1/
  15675. q
  15676. }
  15677. /^X\(\/\).*/{
  15678. s//\1/
  15679. q
  15680. }
  15681. s/.*/./; q'`
  15682. test -d "$as_dir" && break
  15683. done
  15684. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15685. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  15686. } # as_fn_mkdir_p
  15687. if mkdir -p . 2>/dev/null; then
  15688. as_mkdir_p='mkdir -p "$as_dir"'
  15689. else
  15690. test -d ./-p && rmdir ./-p
  15691. as_mkdir_p=false
  15692. fi
  15693. if test -x / >/dev/null 2>&1; then
  15694. as_test_x='test -x'
  15695. else
  15696. if ls -dL / >/dev/null 2>&1; then
  15697. as_ls_L_option=L
  15698. else
  15699. as_ls_L_option=
  15700. fi
  15701. as_test_x='
  15702. eval sh -c '\''
  15703. if test -d "$1"; then
  15704. test -d "$1/.";
  15705. else
  15706. case $1 in #(
  15707. -*)set "./$1";;
  15708. esac;
  15709. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  15710. ???[sx]*):;;*)false;;esac;fi
  15711. '\'' sh
  15712. '
  15713. fi
  15714. as_executable_p=$as_test_x
  15715. # Sed expression to map a string onto a valid CPP name.
  15716. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15717. # Sed expression to map a string onto a valid variable name.
  15718. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15719. exec 6>&1
  15720. ## ----------------------------------- ##
  15721. ## Main body of $CONFIG_STATUS script. ##
  15722. ## ----------------------------------- ##
  15723. _ASEOF
  15724. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15725. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15726. # Save the log message, to keep $0 and so on meaningful, and to
  15727. # report actual input values of CONFIG_FILES etc. instead of their
  15728. # values after options handling.
  15729. ac_log="
  15730. This file was extended by GNU TM Runtime Library $as_me 1.0, which was
  15731. generated by GNU Autoconf 2.64. Invocation command line was
  15732. CONFIG_FILES = $CONFIG_FILES
  15733. CONFIG_HEADERS = $CONFIG_HEADERS
  15734. CONFIG_LINKS = $CONFIG_LINKS
  15735. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15736. $ $0 $@
  15737. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15738. "
  15739. _ACEOF
  15740. case $ac_config_files in *"
  15741. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15742. esac
  15743. case $ac_config_headers in *"
  15744. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15745. esac
  15746. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15747. # Files that config.status was made for.
  15748. config_files="$ac_config_files"
  15749. config_headers="$ac_config_headers"
  15750. config_commands="$ac_config_commands"
  15751. _ACEOF
  15752. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15753. ac_cs_usage="\
  15754. \`$as_me' instantiates files and other configuration actions
  15755. from templates according to the current configuration. Unless the files
  15756. and actions are specified as TAGs, all are instantiated by default.
  15757. Usage: $0 [OPTION]... [TAG]...
  15758. -h, --help print this help, then exit
  15759. -V, --version print version number and configuration settings, then exit
  15760. -q, --quiet, --silent
  15761. do not print progress messages
  15762. -d, --debug don't remove temporary files
  15763. --recheck update $as_me by reconfiguring in the same conditions
  15764. --file=FILE[:TEMPLATE]
  15765. instantiate the configuration file FILE
  15766. --header=FILE[:TEMPLATE]
  15767. instantiate the configuration header FILE
  15768. Configuration files:
  15769. $config_files
  15770. Configuration headers:
  15771. $config_headers
  15772. Configuration commands:
  15773. $config_commands
  15774. Report bugs to the package provider.
  15775. GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
  15776. General help using GNU software: <http://www.gnu.org/gethelp/>."
  15777. _ACEOF
  15778. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15779. ac_cs_version="\\
  15780. GNU TM Runtime Library config.status 1.0
  15781. configured by $0, generated by GNU Autoconf 2.64,
  15782. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  15783. Copyright (C) 2009 Free Software Foundation, Inc.
  15784. This config.status script is free software; the Free Software Foundation
  15785. gives unlimited permission to copy, distribute and modify it."
  15786. ac_pwd='$ac_pwd'
  15787. srcdir='$srcdir'
  15788. INSTALL='$INSTALL'
  15789. MKDIR_P='$MKDIR_P'
  15790. AWK='$AWK'
  15791. test -n "\$AWK" || AWK=awk
  15792. _ACEOF
  15793. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15794. # The default lists apply if the user does not specify any file.
  15795. ac_need_defaults=:
  15796. while test $# != 0
  15797. do
  15798. case $1 in
  15799. --*=*)
  15800. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15801. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15802. ac_shift=:
  15803. ;;
  15804. *)
  15805. ac_option=$1
  15806. ac_optarg=$2
  15807. ac_shift=shift
  15808. ;;
  15809. esac
  15810. case $ac_option in
  15811. # Handling of the options.
  15812. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15813. ac_cs_recheck=: ;;
  15814. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15815. $as_echo "$ac_cs_version"; exit ;;
  15816. --debug | --debu | --deb | --de | --d | -d )
  15817. debug=: ;;
  15818. --file | --fil | --fi | --f )
  15819. $ac_shift
  15820. case $ac_optarg in
  15821. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15822. esac
  15823. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15824. ac_need_defaults=false;;
  15825. --header | --heade | --head | --hea )
  15826. $ac_shift
  15827. case $ac_optarg in
  15828. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15829. esac
  15830. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15831. ac_need_defaults=false;;
  15832. --he | --h)
  15833. # Conflict between --help and --header
  15834. as_fn_error "ambiguous option: \`$1'
  15835. Try \`$0 --help' for more information.";;
  15836. --help | --hel | -h )
  15837. $as_echo "$ac_cs_usage"; exit ;;
  15838. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15839. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15840. ac_cs_silent=: ;;
  15841. # This is an error.
  15842. -*) as_fn_error "unrecognized option: \`$1'
  15843. Try \`$0 --help' for more information." ;;
  15844. *) as_fn_append ac_config_targets " $1"
  15845. ac_need_defaults=false ;;
  15846. esac
  15847. shift
  15848. done
  15849. ac_configure_extra_args=
  15850. if $ac_cs_silent; then
  15851. exec 6>/dev/null
  15852. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15853. fi
  15854. _ACEOF
  15855. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15856. if \$ac_cs_recheck; then
  15857. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15858. shift
  15859. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15860. CONFIG_SHELL='$SHELL'
  15861. export CONFIG_SHELL
  15862. exec "\$@"
  15863. fi
  15864. _ACEOF
  15865. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15866. exec 5>>config.log
  15867. {
  15868. echo
  15869. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15870. ## Running $as_me. ##
  15871. _ASBOX
  15872. $as_echo "$ac_log"
  15873. } >&5
  15874. _ACEOF
  15875. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15876. #
  15877. # INIT-COMMANDS
  15878. #
  15879. srcdir="$srcdir"
  15880. host="$host"
  15881. target="$target"
  15882. with_multisubdir="$with_multisubdir"
  15883. with_multisrctop="$with_multisrctop"
  15884. with_target_subdir="$with_target_subdir"
  15885. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  15886. multi_basedir="$multi_basedir"
  15887. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  15888. CC="$CC"
  15889. CXX="$CXX"
  15890. GFORTRAN="$GFORTRAN"
  15891. GCJ="$GCJ"
  15892. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15893. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15894. # if CDPATH is set.
  15895. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15896. sed_quote_subst='$sed_quote_subst'
  15897. double_quote_subst='$double_quote_subst'
  15898. delay_variable_subst='$delay_variable_subst'
  15899. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15900. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15901. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15902. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15903. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15904. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15905. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15906. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15907. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15908. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15909. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15910. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15911. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15912. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15913. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15914. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15915. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15916. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15917. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15918. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15919. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15920. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15921. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15922. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15923. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15924. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15925. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15926. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15927. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15928. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15929. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15930. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15931. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15932. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15933. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15934. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15935. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15936. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15937. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15938. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15939. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15940. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15941. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15942. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15943. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15944. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15945. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15946. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15947. 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"`'
  15948. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15949. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15950. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15951. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15952. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15953. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15954. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15955. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15956. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15957. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15958. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15959. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15960. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15961. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15962. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15963. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15964. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15965. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15966. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15967. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15968. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15969. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15970. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15971. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15972. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15973. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15974. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15975. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15976. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15977. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15978. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15979. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  15980. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15981. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15982. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15983. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15984. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15985. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15986. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15987. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15988. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  15989. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15990. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15991. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15992. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15993. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15994. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15995. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15996. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15997. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15998. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15999. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  16000. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16001. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  16002. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  16003. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  16004. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  16005. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  16006. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16007. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16008. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  16009. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  16010. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  16011. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  16012. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  16013. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  16014. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  16015. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  16016. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  16017. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  16018. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  16019. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  16020. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  16021. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  16022. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  16023. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  16024. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  16025. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  16026. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16027. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16028. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16029. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  16030. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  16031. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16032. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  16033. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  16034. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  16035. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  16036. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  16037. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  16038. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16039. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16040. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  16041. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16042. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16043. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16044. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16045. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16046. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16047. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  16048. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16049. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16050. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16051. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  16052. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  16053. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  16054. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  16055. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  16056. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  16057. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  16058. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  16059. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  16060. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  16061. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  16062. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16063. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16064. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16065. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16066. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16067. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  16068. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  16069. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16070. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16071. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  16072. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  16073. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  16074. LTCC='$LTCC'
  16075. LTCFLAGS='$LTCFLAGS'
  16076. compiler='$compiler_DEFAULT'
  16077. # A function that is used when there is no print builtin or printf.
  16078. func_fallback_echo ()
  16079. {
  16080. eval 'cat <<_LTECHO_EOF
  16081. \$1
  16082. _LTECHO_EOF'
  16083. }
  16084. # Quote evaled strings.
  16085. for var in SHELL \
  16086. ECHO \
  16087. SED \
  16088. GREP \
  16089. EGREP \
  16090. FGREP \
  16091. LD \
  16092. NM \
  16093. LN_S \
  16094. lt_SP2NL \
  16095. lt_NL2SP \
  16096. reload_flag \
  16097. OBJDUMP \
  16098. deplibs_check_method \
  16099. file_magic_cmd \
  16100. AR \
  16101. AR_FLAGS \
  16102. STRIP \
  16103. RANLIB \
  16104. CC \
  16105. CFLAGS \
  16106. compiler \
  16107. lt_cv_sys_global_symbol_pipe \
  16108. lt_cv_sys_global_symbol_to_cdecl \
  16109. lt_cv_sys_global_symbol_to_c_name_address \
  16110. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16111. lt_prog_compiler_no_builtin_flag \
  16112. lt_prog_compiler_wl \
  16113. lt_prog_compiler_pic \
  16114. lt_prog_compiler_static \
  16115. lt_cv_prog_compiler_c_o \
  16116. need_locks \
  16117. DSYMUTIL \
  16118. NMEDIT \
  16119. LIPO \
  16120. OTOOL \
  16121. OTOOL64 \
  16122. shrext_cmds \
  16123. export_dynamic_flag_spec \
  16124. whole_archive_flag_spec \
  16125. compiler_needs_object \
  16126. with_gnu_ld \
  16127. allow_undefined_flag \
  16128. no_undefined_flag \
  16129. hardcode_libdir_flag_spec \
  16130. hardcode_libdir_flag_spec_ld \
  16131. hardcode_libdir_separator \
  16132. fix_srcfile_path \
  16133. exclude_expsyms \
  16134. include_expsyms \
  16135. file_list_spec \
  16136. variables_saved_for_relink \
  16137. libname_spec \
  16138. library_names_spec \
  16139. soname_spec \
  16140. install_override_mode \
  16141. finish_eval \
  16142. old_striplib \
  16143. striplib \
  16144. compiler_lib_search_dirs \
  16145. predep_objects \
  16146. postdep_objects \
  16147. predeps \
  16148. postdeps \
  16149. compiler_lib_search_path \
  16150. LD_CXX \
  16151. reload_flag_CXX \
  16152. compiler_CXX \
  16153. lt_prog_compiler_no_builtin_flag_CXX \
  16154. lt_prog_compiler_wl_CXX \
  16155. lt_prog_compiler_pic_CXX \
  16156. lt_prog_compiler_static_CXX \
  16157. lt_cv_prog_compiler_c_o_CXX \
  16158. export_dynamic_flag_spec_CXX \
  16159. whole_archive_flag_spec_CXX \
  16160. compiler_needs_object_CXX \
  16161. with_gnu_ld_CXX \
  16162. allow_undefined_flag_CXX \
  16163. no_undefined_flag_CXX \
  16164. hardcode_libdir_flag_spec_CXX \
  16165. hardcode_libdir_flag_spec_ld_CXX \
  16166. hardcode_libdir_separator_CXX \
  16167. fix_srcfile_path_CXX \
  16168. exclude_expsyms_CXX \
  16169. include_expsyms_CXX \
  16170. file_list_spec_CXX \
  16171. compiler_lib_search_dirs_CXX \
  16172. predep_objects_CXX \
  16173. postdep_objects_CXX \
  16174. predeps_CXX \
  16175. postdeps_CXX \
  16176. compiler_lib_search_path_CXX; do
  16177. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16178. *[\\\\\\\`\\"\\\$]*)
  16179. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  16180. ;;
  16181. *)
  16182. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16183. ;;
  16184. esac
  16185. done
  16186. # Double-quote double-evaled strings.
  16187. for var in reload_cmds \
  16188. old_postinstall_cmds \
  16189. old_postuninstall_cmds \
  16190. old_archive_cmds \
  16191. extract_expsyms_cmds \
  16192. old_archive_from_new_cmds \
  16193. old_archive_from_expsyms_cmds \
  16194. archive_cmds \
  16195. archive_expsym_cmds \
  16196. module_cmds \
  16197. module_expsym_cmds \
  16198. export_symbols_cmds \
  16199. prelink_cmds \
  16200. postinstall_cmds \
  16201. postuninstall_cmds \
  16202. finish_cmds \
  16203. sys_lib_search_path_spec \
  16204. sys_lib_dlsearch_path_spec \
  16205. reload_cmds_CXX \
  16206. old_archive_cmds_CXX \
  16207. old_archive_from_new_cmds_CXX \
  16208. old_archive_from_expsyms_cmds_CXX \
  16209. archive_cmds_CXX \
  16210. archive_expsym_cmds_CXX \
  16211. module_cmds_CXX \
  16212. module_expsym_cmds_CXX \
  16213. export_symbols_cmds_CXX \
  16214. prelink_cmds_CXX; do
  16215. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16216. *[\\\\\\\`\\"\\\$]*)
  16217. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  16218. ;;
  16219. *)
  16220. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16221. ;;
  16222. esac
  16223. done
  16224. ac_aux_dir='$ac_aux_dir'
  16225. xsi_shell='$xsi_shell'
  16226. lt_shell_append='$lt_shell_append'
  16227. # See if we are running on zsh, and set the options which allow our
  16228. # commands through without removal of \ escapes INIT.
  16229. if test -n "\${ZSH_VERSION+set}" ; then
  16230. setopt NO_GLOB_SUBST
  16231. fi
  16232. PACKAGE='$PACKAGE'
  16233. VERSION='$VERSION'
  16234. TIMESTAMP='$TIMESTAMP'
  16235. RM='$RM'
  16236. ofile='$ofile'
  16237. GCC="$GCC"
  16238. CC="$CC"
  16239. acx_cv_header_stdint="$acx_cv_header_stdint"
  16240. acx_cv_type_int8_t="$acx_cv_type_int8_t"
  16241. acx_cv_type_int16_t="$acx_cv_type_int16_t"
  16242. acx_cv_type_int32_t="$acx_cv_type_int32_t"
  16243. acx_cv_type_int64_t="$acx_cv_type_int64_t"
  16244. acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
  16245. ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
  16246. ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
  16247. ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
  16248. ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
  16249. ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
  16250. ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
  16251. ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
  16252. ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
  16253. _ACEOF
  16254. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16255. # Handling of arguments.
  16256. for ac_config_target in $ac_config_targets
  16257. do
  16258. case $ac_config_target in
  16259. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  16260. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  16261. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16262. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16263. "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
  16264. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16265. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  16266. "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
  16267. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16268. esac
  16269. done
  16270. # If the user did not use the arguments to specify the items to instantiate,
  16271. # then the envvar interface is used. Set only those that are not.
  16272. # We use the long form for the default assignment because of an extremely
  16273. # bizarre bug on SunOS 4.1.3.
  16274. if $ac_need_defaults; then
  16275. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16276. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  16277. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16278. fi
  16279. # Have a temporary directory for convenience. Make it in the build tree
  16280. # simply because there is no reason against having it here, and in addition,
  16281. # creating and moving files from /tmp can sometimes cause problems.
  16282. # Hook for its removal unless debugging.
  16283. # Note that there is a small window in which the directory will not be cleaned:
  16284. # after its creation but before its name has been assigned to `$tmp'.
  16285. $debug ||
  16286. {
  16287. tmp=
  16288. trap 'exit_status=$?
  16289. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  16290. ' 0
  16291. trap 'as_fn_exit 1' 1 2 13 15
  16292. }
  16293. # Create a (secure) tmp directory for tmp files.
  16294. {
  16295. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16296. test -n "$tmp" && test -d "$tmp"
  16297. } ||
  16298. {
  16299. tmp=./conf$$-$RANDOM
  16300. (umask 077 && mkdir "$tmp")
  16301. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  16302. # Set up the scripts for CONFIG_FILES section.
  16303. # No need to generate them if there are no CONFIG_FILES.
  16304. # This happens for instance with `./config.status config.h'.
  16305. if test -n "$CONFIG_FILES"; then
  16306. ac_cr=`echo X | tr X '\015'`
  16307. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  16308. # But we know of no other shell where ac_cr would be empty at this
  16309. # point, so we can use a bashism as a fallback.
  16310. if test "x$ac_cr" = x; then
  16311. eval ac_cr=\$\'\\r\'
  16312. fi
  16313. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16314. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16315. ac_cs_awk_cr='\r'
  16316. else
  16317. ac_cs_awk_cr=$ac_cr
  16318. fi
  16319. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  16320. _ACEOF
  16321. {
  16322. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16323. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16324. echo "_ACEOF"
  16325. } >conf$$subs.sh ||
  16326. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  16327. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  16328. ac_delim='%!_!# '
  16329. for ac_last_try in false false false false false :; do
  16330. . ./conf$$subs.sh ||
  16331. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  16332. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16333. if test $ac_delim_n = $ac_delim_num; then
  16334. break
  16335. elif $ac_last_try; then
  16336. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  16337. else
  16338. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16339. fi
  16340. done
  16341. rm -f conf$$subs.sh
  16342. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16343. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  16344. _ACEOF
  16345. sed -n '
  16346. h
  16347. s/^/S["/; s/!.*/"]=/
  16348. p
  16349. g
  16350. s/^[^!]*!//
  16351. :repl
  16352. t repl
  16353. s/'"$ac_delim"'$//
  16354. t delim
  16355. :nl
  16356. h
  16357. s/\(.\{148\}\).*/\1/
  16358. t more1
  16359. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16360. p
  16361. n
  16362. b repl
  16363. :more1
  16364. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16365. p
  16366. g
  16367. s/.\{148\}//
  16368. t nl
  16369. :delim
  16370. h
  16371. s/\(.\{148\}\).*/\1/
  16372. t more2
  16373. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16374. p
  16375. b
  16376. :more2
  16377. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16378. p
  16379. g
  16380. s/.\{148\}//
  16381. t delim
  16382. ' <conf$$subs.awk | sed '
  16383. /^[^""]/{
  16384. N
  16385. s/\n//
  16386. }
  16387. ' >>$CONFIG_STATUS || ac_write_fail=1
  16388. rm -f conf$$subs.awk
  16389. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16390. _ACAWK
  16391. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  16392. for (key in S) S_is_set[key] = 1
  16393. FS = ""
  16394. }
  16395. {
  16396. line = $ 0
  16397. nfields = split(line, field, "@")
  16398. substed = 0
  16399. len = length(field[1])
  16400. for (i = 2; i < nfields; i++) {
  16401. key = field[i]
  16402. keylen = length(key)
  16403. if (S_is_set[key]) {
  16404. value = S[key]
  16405. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16406. len += length(value) + length(field[++i])
  16407. substed = 1
  16408. } else
  16409. len += 1 + keylen
  16410. }
  16411. print line
  16412. }
  16413. _ACAWK
  16414. _ACEOF
  16415. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16416. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16417. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16418. else
  16419. cat
  16420. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  16421. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  16422. _ACEOF
  16423. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  16424. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  16425. # trailing colons and then remove the whole line if VPATH becomes empty
  16426. # (actually we leave an empty line to preserve line numbers).
  16427. if test "x$srcdir" = x.; then
  16428. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  16429. s/:*\$(srcdir):*/:/
  16430. s/:*\${srcdir}:*/:/
  16431. s/:*@srcdir@:*/:/
  16432. s/^\([^=]*=[ ]*\):*/\1/
  16433. s/:*$//
  16434. s/^[^=]*=[ ]*$//
  16435. }'
  16436. fi
  16437. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16438. fi # test -n "$CONFIG_FILES"
  16439. # Set up the scripts for CONFIG_HEADERS section.
  16440. # No need to generate them if there are no CONFIG_HEADERS.
  16441. # This happens for instance with `./config.status Makefile'.
  16442. if test -n "$CONFIG_HEADERS"; then
  16443. cat >"$tmp/defines.awk" <<\_ACAWK ||
  16444. BEGIN {
  16445. _ACEOF
  16446. # Transform confdefs.h into an awk script `defines.awk', embedded as
  16447. # here-document in config.status, that substitutes the proper values into
  16448. # config.h.in to produce config.h.
  16449. # Create a delimiter string that does not exist in confdefs.h, to ease
  16450. # handling of long lines.
  16451. ac_delim='%!_!# '
  16452. for ac_last_try in false false :; do
  16453. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  16454. if test -z "$ac_t"; then
  16455. break
  16456. elif $ac_last_try; then
  16457. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  16458. else
  16459. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16460. fi
  16461. done
  16462. # For the awk script, D is an array of macro values keyed by name,
  16463. # likewise P contains macro parameters if any. Preserve backslash
  16464. # newline sequences.
  16465. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  16466. sed -n '
  16467. s/.\{148\}/&'"$ac_delim"'/g
  16468. t rset
  16469. :rset
  16470. s/^[ ]*#[ ]*define[ ][ ]*/ /
  16471. t def
  16472. d
  16473. :def
  16474. s/\\$//
  16475. t bsnl
  16476. s/["\\]/\\&/g
  16477. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16478. D["\1"]=" \3"/p
  16479. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  16480. d
  16481. :bsnl
  16482. s/["\\]/\\&/g
  16483. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16484. D["\1"]=" \3\\\\\\n"\\/p
  16485. t cont
  16486. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  16487. t cont
  16488. d
  16489. :cont
  16490. n
  16491. s/.\{148\}/&'"$ac_delim"'/g
  16492. t clear
  16493. :clear
  16494. s/\\$//
  16495. t bsnlc
  16496. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  16497. d
  16498. :bsnlc
  16499. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  16500. b cont
  16501. ' <confdefs.h | sed '
  16502. s/'"$ac_delim"'/"\\\
  16503. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  16504. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16505. for (key in D) D_is_set[key] = 1
  16506. FS = ""
  16507. }
  16508. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  16509. line = \$ 0
  16510. split(line, arg, " ")
  16511. if (arg[1] == "#") {
  16512. defundef = arg[2]
  16513. mac1 = arg[3]
  16514. } else {
  16515. defundef = substr(arg[1], 2)
  16516. mac1 = arg[2]
  16517. }
  16518. split(mac1, mac2, "(") #)
  16519. macro = mac2[1]
  16520. prefix = substr(line, 1, index(line, defundef) - 1)
  16521. if (D_is_set[macro]) {
  16522. # Preserve the white space surrounding the "#".
  16523. print prefix "define", macro P[macro] D[macro]
  16524. next
  16525. } else {
  16526. # Replace #undef with comments. This is necessary, for example,
  16527. # in the case of _POSIX_SOURCE, which is predefined and required
  16528. # on some systems where configure will not decide to define it.
  16529. if (defundef == "undef") {
  16530. print "/*", prefix defundef, macro, "*/"
  16531. next
  16532. }
  16533. }
  16534. }
  16535. { print }
  16536. _ACAWK
  16537. _ACEOF
  16538. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16539. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  16540. fi # test -n "$CONFIG_HEADERS"
  16541. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  16542. shift
  16543. for ac_tag
  16544. do
  16545. case $ac_tag in
  16546. :[FHLC]) ac_mode=$ac_tag; continue;;
  16547. esac
  16548. case $ac_mode$ac_tag in
  16549. :[FHL]*:*);;
  16550. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16551. :[FH]-) ac_tag=-:-;;
  16552. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16553. esac
  16554. ac_save_IFS=$IFS
  16555. IFS=:
  16556. set x $ac_tag
  16557. IFS=$ac_save_IFS
  16558. shift
  16559. ac_file=$1
  16560. shift
  16561. case $ac_mode in
  16562. :L) ac_source=$1;;
  16563. :[FH])
  16564. ac_file_inputs=
  16565. for ac_f
  16566. do
  16567. case $ac_f in
  16568. -) ac_f="$tmp/stdin";;
  16569. *) # Look for the file first in the build tree, then in the source tree
  16570. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16571. # because $ac_f cannot contain `:'.
  16572. test -f "$ac_f" ||
  16573. case $ac_f in
  16574. [\\/$]*) false;;
  16575. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16576. esac ||
  16577. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16578. esac
  16579. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16580. as_fn_append ac_file_inputs " '$ac_f'"
  16581. done
  16582. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16583. # use $as_me), people would be surprised to read:
  16584. # /* config.h. Generated by config.status. */
  16585. configure_input='Generated from '`
  16586. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16587. `' by configure.'
  16588. if test x"$ac_file" != x-; then
  16589. configure_input="$ac_file. $configure_input"
  16590. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16591. $as_echo "$as_me: creating $ac_file" >&6;}
  16592. fi
  16593. # Neutralize special characters interpreted by sed in replacement strings.
  16594. case $configure_input in #(
  16595. *\&* | *\|* | *\\* )
  16596. ac_sed_conf_input=`$as_echo "$configure_input" |
  16597. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16598. *) ac_sed_conf_input=$configure_input;;
  16599. esac
  16600. case $ac_tag in
  16601. *:-:* | *:-) cat >"$tmp/stdin" \
  16602. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  16603. esac
  16604. ;;
  16605. esac
  16606. ac_dir=`$as_dirname -- "$ac_file" ||
  16607. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16608. X"$ac_file" : 'X\(//\)[^/]' \| \
  16609. X"$ac_file" : 'X\(//\)$' \| \
  16610. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16611. $as_echo X"$ac_file" |
  16612. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16613. s//\1/
  16614. q
  16615. }
  16616. /^X\(\/\/\)[^/].*/{
  16617. s//\1/
  16618. q
  16619. }
  16620. /^X\(\/\/\)$/{
  16621. s//\1/
  16622. q
  16623. }
  16624. /^X\(\/\).*/{
  16625. s//\1/
  16626. q
  16627. }
  16628. s/.*/./; q'`
  16629. as_dir="$ac_dir"; as_fn_mkdir_p
  16630. ac_builddir=.
  16631. case "$ac_dir" in
  16632. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16633. *)
  16634. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16635. # A ".." for each directory in $ac_dir_suffix.
  16636. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16637. case $ac_top_builddir_sub in
  16638. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16639. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16640. esac ;;
  16641. esac
  16642. ac_abs_top_builddir=$ac_pwd
  16643. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16644. # for backward compatibility:
  16645. ac_top_builddir=$ac_top_build_prefix
  16646. case $srcdir in
  16647. .) # We are building in place.
  16648. ac_srcdir=.
  16649. ac_top_srcdir=$ac_top_builddir_sub
  16650. ac_abs_top_srcdir=$ac_pwd ;;
  16651. [\\/]* | ?:[\\/]* ) # Absolute name.
  16652. ac_srcdir=$srcdir$ac_dir_suffix;
  16653. ac_top_srcdir=$srcdir
  16654. ac_abs_top_srcdir=$srcdir ;;
  16655. *) # Relative name.
  16656. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16657. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16658. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16659. esac
  16660. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16661. case $ac_mode in
  16662. :F)
  16663. #
  16664. # CONFIG_FILE
  16665. #
  16666. case $INSTALL in
  16667. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16668. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16669. esac
  16670. ac_MKDIR_P=$MKDIR_P
  16671. case $MKDIR_P in
  16672. [\\/$]* | ?:[\\/]* ) ;;
  16673. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16674. esac
  16675. _ACEOF
  16676. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16677. # If the template does not know about datarootdir, expand it.
  16678. # FIXME: This hack should be removed a few years after 2.60.
  16679. ac_datarootdir_hack=; ac_datarootdir_seen=
  16680. ac_sed_dataroot='
  16681. /datarootdir/ {
  16682. p
  16683. q
  16684. }
  16685. /@datadir@/p
  16686. /@docdir@/p
  16687. /@infodir@/p
  16688. /@localedir@/p
  16689. /@mandir@/p'
  16690. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16691. *datarootdir*) ac_datarootdir_seen=yes;;
  16692. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16694. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16695. _ACEOF
  16696. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16697. ac_datarootdir_hack='
  16698. s&@datadir@&$datadir&g
  16699. s&@docdir@&$docdir&g
  16700. s&@infodir@&$infodir&g
  16701. s&@localedir@&$localedir&g
  16702. s&@mandir@&$mandir&g
  16703. s&\\\${datarootdir}&$datarootdir&g' ;;
  16704. esac
  16705. _ACEOF
  16706. # Neutralize VPATH when `$srcdir' = `.'.
  16707. # Shell code in configure.ac might set extrasub.
  16708. # FIXME: do we really want to maintain this feature?
  16709. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16710. ac_sed_extra="$ac_vpsub
  16711. $extrasub
  16712. _ACEOF
  16713. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16714. :t
  16715. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16716. s|@configure_input@|$ac_sed_conf_input|;t t
  16717. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16718. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16719. s&@srcdir@&$ac_srcdir&;t t
  16720. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16721. s&@top_srcdir@&$ac_top_srcdir&;t t
  16722. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16723. s&@builddir@&$ac_builddir&;t t
  16724. s&@abs_builddir@&$ac_abs_builddir&;t t
  16725. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16726. s&@INSTALL@&$ac_INSTALL&;t t
  16727. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16728. $ac_datarootdir_hack
  16729. "
  16730. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  16731. || as_fn_error "could not create $ac_file" "$LINENO" 5
  16732. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16733. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  16734. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  16735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16736. which seems to be undefined. Please make sure it is defined." >&5
  16737. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16738. which seems to be undefined. Please make sure it is defined." >&2;}
  16739. rm -f "$tmp/stdin"
  16740. case $ac_file in
  16741. -) cat "$tmp/out" && rm -f "$tmp/out";;
  16742. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  16743. esac \
  16744. || as_fn_error "could not create $ac_file" "$LINENO" 5
  16745. ;;
  16746. :H)
  16747. #
  16748. # CONFIG_HEADER
  16749. #
  16750. if test x"$ac_file" != x-; then
  16751. {
  16752. $as_echo "/* $configure_input */" \
  16753. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  16754. } >"$tmp/config.h" \
  16755. || as_fn_error "could not create $ac_file" "$LINENO" 5
  16756. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  16757. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16758. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16759. else
  16760. rm -f "$ac_file"
  16761. mv "$tmp/config.h" "$ac_file" \
  16762. || as_fn_error "could not create $ac_file" "$LINENO" 5
  16763. fi
  16764. else
  16765. $as_echo "/* $configure_input */" \
  16766. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  16767. || as_fn_error "could not create -" "$LINENO" 5
  16768. fi
  16769. # Compute "$ac_file"'s index in $config_headers.
  16770. _am_arg="$ac_file"
  16771. _am_stamp_count=1
  16772. for _am_header in $config_headers :; do
  16773. case $_am_header in
  16774. $_am_arg | $_am_arg:* )
  16775. break ;;
  16776. * )
  16777. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16778. esac
  16779. done
  16780. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16781. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16782. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16783. X"$_am_arg" : 'X\(//\)$' \| \
  16784. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16785. $as_echo X"$_am_arg" |
  16786. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16787. s//\1/
  16788. q
  16789. }
  16790. /^X\(\/\/\)[^/].*/{
  16791. s//\1/
  16792. q
  16793. }
  16794. /^X\(\/\/\)$/{
  16795. s//\1/
  16796. q
  16797. }
  16798. /^X\(\/\).*/{
  16799. s//\1/
  16800. q
  16801. }
  16802. s/.*/./; q'`/stamp-h$_am_stamp_count
  16803. ;;
  16804. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16805. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16806. ;;
  16807. esac
  16808. case $ac_file$ac_mode in
  16809. "default-1":C)
  16810. # Only add multilib support code if we just rebuilt the top-level
  16811. # Makefile.
  16812. case " $CONFIG_FILES " in
  16813. *" Makefile "*)
  16814. ac_file=Makefile . ${multi_basedir}/config-ml.in
  16815. ;;
  16816. esac ;;
  16817. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16818. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16819. # are listed without --file. Let's play safe and only enable the eval
  16820. # if we detect the quoting.
  16821. case $CONFIG_FILES in
  16822. *\'*) eval set x "$CONFIG_FILES" ;;
  16823. *) set x $CONFIG_FILES ;;
  16824. esac
  16825. shift
  16826. for mf
  16827. do
  16828. # Strip MF so we end up with the name of the file.
  16829. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16830. # Check whether this is an Automake generated Makefile or not.
  16831. # We used to match only the files named `Makefile.in', but
  16832. # some people rename them; so instead we look at the file content.
  16833. # Grep'ing the first line is not enough: some people post-process
  16834. # each Makefile.in and add a new line on top of each file to say so.
  16835. # Grep'ing the whole file is not good either: AIX grep has a line
  16836. # limit of 2048, but all sed's we know have understand at least 4000.
  16837. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16838. dirpart=`$as_dirname -- "$mf" ||
  16839. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16840. X"$mf" : 'X\(//\)[^/]' \| \
  16841. X"$mf" : 'X\(//\)$' \| \
  16842. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16843. $as_echo X"$mf" |
  16844. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16845. s//\1/
  16846. q
  16847. }
  16848. /^X\(\/\/\)[^/].*/{
  16849. s//\1/
  16850. q
  16851. }
  16852. /^X\(\/\/\)$/{
  16853. s//\1/
  16854. q
  16855. }
  16856. /^X\(\/\).*/{
  16857. s//\1/
  16858. q
  16859. }
  16860. s/.*/./; q'`
  16861. else
  16862. continue
  16863. fi
  16864. # Extract the definition of DEPDIR, am__include, and am__quote
  16865. # from the Makefile without running `make'.
  16866. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16867. test -z "$DEPDIR" && continue
  16868. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16869. test -z "am__include" && continue
  16870. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16871. # When using ansi2knr, U may be empty or an underscore; expand it
  16872. U=`sed -n 's/^U = //p' < "$mf"`
  16873. # Find all dependency output files, they are included files with
  16874. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16875. # simplest approach to changing $(DEPDIR) to its actual value in the
  16876. # expansion.
  16877. for file in `sed -n "
  16878. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16879. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  16880. # Make sure the directory exists.
  16881. test -f "$dirpart/$file" && continue
  16882. fdir=`$as_dirname -- "$file" ||
  16883. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16884. X"$file" : 'X\(//\)[^/]' \| \
  16885. X"$file" : 'X\(//\)$' \| \
  16886. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16887. $as_echo X"$file" |
  16888. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16889. s//\1/
  16890. q
  16891. }
  16892. /^X\(\/\/\)[^/].*/{
  16893. s//\1/
  16894. q
  16895. }
  16896. /^X\(\/\/\)$/{
  16897. s//\1/
  16898. q
  16899. }
  16900. /^X\(\/\).*/{
  16901. s//\1/
  16902. q
  16903. }
  16904. s/.*/./; q'`
  16905. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16906. # echo "creating $dirpart/$file"
  16907. echo '# dummy' > "$dirpart/$file"
  16908. done
  16909. done
  16910. }
  16911. ;;
  16912. "libtool":C)
  16913. # See if we are running on zsh, and set the options which allow our
  16914. # commands through without removal of \ escapes.
  16915. if test -n "${ZSH_VERSION+set}" ; then
  16916. setopt NO_GLOB_SUBST
  16917. fi
  16918. cfgfile="${ofile}T"
  16919. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16920. $RM "$cfgfile"
  16921. cat <<_LT_EOF >> "$cfgfile"
  16922. #! $SHELL
  16923. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16924. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16925. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16926. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16927. #
  16928. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16929. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  16930. # Written by Gordon Matzigkeit, 1996
  16931. #
  16932. # This file is part of GNU Libtool.
  16933. #
  16934. # GNU Libtool is free software; you can redistribute it and/or
  16935. # modify it under the terms of the GNU General Public License as
  16936. # published by the Free Software Foundation; either version 2 of
  16937. # the License, or (at your option) any later version.
  16938. #
  16939. # As a special exception to the GNU General Public License,
  16940. # if you distribute this file as part of a program or library that
  16941. # is built using GNU Libtool, you may include this file under the
  16942. # same distribution terms that you use for the rest of that program.
  16943. #
  16944. # GNU Libtool is distributed in the hope that it will be useful,
  16945. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16946. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16947. # GNU General Public License for more details.
  16948. #
  16949. # You should have received a copy of the GNU General Public License
  16950. # along with GNU Libtool; see the file COPYING. If not, a copy
  16951. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16952. # obtained by writing to the Free Software Foundation, Inc.,
  16953. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16954. # The names of the tagged configurations supported by this script.
  16955. available_tags="CXX "
  16956. # ### BEGIN LIBTOOL CONFIG
  16957. # Which release of libtool.m4 was used?
  16958. macro_version=$macro_version
  16959. macro_revision=$macro_revision
  16960. # Whether or not to build shared libraries.
  16961. build_libtool_libs=$enable_shared
  16962. # Whether or not to build static libraries.
  16963. build_old_libs=$enable_static
  16964. # What type of objects to build.
  16965. pic_mode=$pic_mode
  16966. # Whether or not to optimize for fast installation.
  16967. fast_install=$enable_fast_install
  16968. # Shell to use when invoking shell scripts.
  16969. SHELL=$lt_SHELL
  16970. # An echo program that protects backslashes.
  16971. ECHO=$lt_ECHO
  16972. # The host system.
  16973. host_alias=$host_alias
  16974. host=$host
  16975. host_os=$host_os
  16976. # The build system.
  16977. build_alias=$build_alias
  16978. build=$build
  16979. build_os=$build_os
  16980. # A sed program that does not truncate output.
  16981. SED=$lt_SED
  16982. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16983. Xsed="\$SED -e 1s/^X//"
  16984. # A grep program that handles long lines.
  16985. GREP=$lt_GREP
  16986. # An ERE matcher.
  16987. EGREP=$lt_EGREP
  16988. # A literal string matcher.
  16989. FGREP=$lt_FGREP
  16990. # A BSD- or MS-compatible name lister.
  16991. NM=$lt_NM
  16992. # Whether we need soft or hard links.
  16993. LN_S=$lt_LN_S
  16994. # What is the maximum length of a command?
  16995. max_cmd_len=$max_cmd_len
  16996. # Object file suffix (normally "o").
  16997. objext=$ac_objext
  16998. # Executable file suffix (normally "").
  16999. exeext=$exeext
  17000. # whether the shell understands "unset".
  17001. lt_unset=$lt_unset
  17002. # turn spaces into newlines.
  17003. SP2NL=$lt_lt_SP2NL
  17004. # turn newlines into spaces.
  17005. NL2SP=$lt_lt_NL2SP
  17006. # An object symbol dumper.
  17007. OBJDUMP=$lt_OBJDUMP
  17008. # Method to check whether dependent libraries are shared objects.
  17009. deplibs_check_method=$lt_deplibs_check_method
  17010. # Command to use when deplibs_check_method == "file_magic".
  17011. file_magic_cmd=$lt_file_magic_cmd
  17012. # The archiver.
  17013. AR=$lt_AR
  17014. AR_FLAGS=$lt_AR_FLAGS
  17015. # A symbol stripping program.
  17016. STRIP=$lt_STRIP
  17017. # Commands used to install an old-style archive.
  17018. RANLIB=$lt_RANLIB
  17019. old_postinstall_cmds=$lt_old_postinstall_cmds
  17020. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17021. # Whether to use a lock for old archive extraction.
  17022. lock_old_archive_extraction=$lock_old_archive_extraction
  17023. # A C compiler.
  17024. LTCC=$lt_CC
  17025. # LTCC compiler flags.
  17026. LTCFLAGS=$lt_CFLAGS
  17027. # Take the output of nm and produce a listing of raw symbols and C names.
  17028. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17029. # Transform the output of nm in a proper C declaration.
  17030. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17031. # Transform the output of nm in a C name address pair.
  17032. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17033. # Transform the output of nm in a C name address pair when lib prefix is needed.
  17034. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  17035. # The name of the directory that contains temporary libtool files.
  17036. objdir=$objdir
  17037. # Used to examine libraries when file_magic_cmd begins with "file".
  17038. MAGIC_CMD=$MAGIC_CMD
  17039. # Must we lock files when doing compilation?
  17040. need_locks=$lt_need_locks
  17041. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  17042. DSYMUTIL=$lt_DSYMUTIL
  17043. # Tool to change global to local symbols on Mac OS X.
  17044. NMEDIT=$lt_NMEDIT
  17045. # Tool to manipulate fat objects and archives on Mac OS X.
  17046. LIPO=$lt_LIPO
  17047. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  17048. OTOOL=$lt_OTOOL
  17049. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  17050. OTOOL64=$lt_OTOOL64
  17051. # Old archive suffix (normally "a").
  17052. libext=$libext
  17053. # Shared library suffix (normally ".so").
  17054. shrext_cmds=$lt_shrext_cmds
  17055. # The commands to extract the exported symbol list from a shared archive.
  17056. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17057. # Variables whose values should be saved in libtool wrapper scripts and
  17058. # restored at link time.
  17059. variables_saved_for_relink=$lt_variables_saved_for_relink
  17060. # Do we need the "lib" prefix for modules?
  17061. need_lib_prefix=$need_lib_prefix
  17062. # Do we need a version for libraries?
  17063. need_version=$need_version
  17064. # Library versioning type.
  17065. version_type=$version_type
  17066. # Shared library runtime path variable.
  17067. runpath_var=$runpath_var
  17068. # Shared library path variable.
  17069. shlibpath_var=$shlibpath_var
  17070. # Is shlibpath searched before the hard-coded library search path?
  17071. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17072. # Format of library name prefix.
  17073. libname_spec=$lt_libname_spec
  17074. # List of archive names. First name is the real one, the rest are links.
  17075. # The last name is the one that the linker finds with -lNAME
  17076. library_names_spec=$lt_library_names_spec
  17077. # The coded name of the library, if different from the real name.
  17078. soname_spec=$lt_soname_spec
  17079. # Permission mode override for installation of shared libraries.
  17080. install_override_mode=$lt_install_override_mode
  17081. # Command to use after installation of a shared archive.
  17082. postinstall_cmds=$lt_postinstall_cmds
  17083. # Command to use after uninstallation of a shared archive.
  17084. postuninstall_cmds=$lt_postuninstall_cmds
  17085. # Commands used to finish a libtool library installation in a directory.
  17086. finish_cmds=$lt_finish_cmds
  17087. # As "finish_cmds", except a single script fragment to be evaled but
  17088. # not shown.
  17089. finish_eval=$lt_finish_eval
  17090. # Whether we should hardcode library paths into libraries.
  17091. hardcode_into_libs=$hardcode_into_libs
  17092. # Compile-time system search path for libraries.
  17093. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17094. # Run-time system search path for libraries.
  17095. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17096. # Whether dlopen is supported.
  17097. dlopen_support=$enable_dlopen
  17098. # Whether dlopen of programs is supported.
  17099. dlopen_self=$enable_dlopen_self
  17100. # Whether dlopen of statically linked programs is supported.
  17101. dlopen_self_static=$enable_dlopen_self_static
  17102. # Commands to strip libraries.
  17103. old_striplib=$lt_old_striplib
  17104. striplib=$lt_striplib
  17105. # The linker used to build libraries.
  17106. LD=$lt_LD
  17107. # How to create reloadable object files.
  17108. reload_flag=$lt_reload_flag
  17109. reload_cmds=$lt_reload_cmds
  17110. # Commands used to build an old-style archive.
  17111. old_archive_cmds=$lt_old_archive_cmds
  17112. # A language specific compiler.
  17113. CC=$lt_compiler
  17114. # Is the compiler the GNU compiler?
  17115. with_gcc=$GCC
  17116. # Compiler flag to turn off builtin functions.
  17117. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17118. # How to pass a linker flag through the compiler.
  17119. wl=$lt_lt_prog_compiler_wl
  17120. # Additional compiler flags for building library objects.
  17121. pic_flag=$lt_lt_prog_compiler_pic
  17122. # Compiler flag to prevent dynamic linking.
  17123. link_static_flag=$lt_lt_prog_compiler_static
  17124. # Does compiler simultaneously support -c and -o options?
  17125. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17126. # Whether or not to add -lc for building shared libraries.
  17127. build_libtool_need_lc=$archive_cmds_need_lc
  17128. # Whether or not to disallow shared libs when runtime libs are static.
  17129. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17130. # Compiler flag to allow reflexive dlopens.
  17131. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17132. # Compiler flag to generate shared objects directly from archives.
  17133. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17134. # Whether the compiler copes with passing no objects directly.
  17135. compiler_needs_object=$lt_compiler_needs_object
  17136. # Create an old-style archive from a shared archive.
  17137. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17138. # Create a temporary old-style archive to link instead of a shared archive.
  17139. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17140. # Commands used to build a shared archive.
  17141. archive_cmds=$lt_archive_cmds
  17142. archive_expsym_cmds=$lt_archive_expsym_cmds
  17143. # Commands used to build a loadable module if different from building
  17144. # a shared archive.
  17145. module_cmds=$lt_module_cmds
  17146. module_expsym_cmds=$lt_module_expsym_cmds
  17147. # Whether we are building with GNU ld or not.
  17148. with_gnu_ld=$lt_with_gnu_ld
  17149. # Flag that allows shared libraries with undefined symbols to be built.
  17150. allow_undefined_flag=$lt_allow_undefined_flag
  17151. # Flag that enforces no undefined symbols.
  17152. no_undefined_flag=$lt_no_undefined_flag
  17153. # Flag to hardcode \$libdir into a binary during linking.
  17154. # This must work even if \$libdir does not exist
  17155. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17156. # If ld is used when linking, flag to hardcode \$libdir into a binary
  17157. # during linking. This must work even if \$libdir does not exist.
  17158. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  17159. # Whether we need a single "-rpath" flag with a separated argument.
  17160. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17161. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17162. # DIR into the resulting binary.
  17163. hardcode_direct=$hardcode_direct
  17164. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17165. # DIR into the resulting binary and the resulting library dependency is
  17166. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17167. # library is relocated.
  17168. hardcode_direct_absolute=$hardcode_direct_absolute
  17169. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17170. # into the resulting binary.
  17171. hardcode_minus_L=$hardcode_minus_L
  17172. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17173. # into the resulting binary.
  17174. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17175. # Set to "yes" if building a shared library automatically hardcodes DIR
  17176. # into the library and all subsequent libraries and executables linked
  17177. # against it.
  17178. hardcode_automatic=$hardcode_automatic
  17179. # Set to yes if linker adds runtime paths of dependent libraries
  17180. # to runtime path list.
  17181. inherit_rpath=$inherit_rpath
  17182. # Whether libtool must link a program against all its dependency libraries.
  17183. link_all_deplibs=$link_all_deplibs
  17184. # Fix the shell variable \$srcfile for the compiler.
  17185. fix_srcfile_path=$lt_fix_srcfile_path
  17186. # Set to "yes" if exported symbols are required.
  17187. always_export_symbols=$always_export_symbols
  17188. # The commands to list exported symbols.
  17189. export_symbols_cmds=$lt_export_symbols_cmds
  17190. # Symbols that should not be listed in the preloaded symbols.
  17191. exclude_expsyms=$lt_exclude_expsyms
  17192. # Symbols that must always be exported.
  17193. include_expsyms=$lt_include_expsyms
  17194. # Commands necessary for linking programs (against libraries) with templates.
  17195. prelink_cmds=$lt_prelink_cmds
  17196. # Specify filename containing input files.
  17197. file_list_spec=$lt_file_list_spec
  17198. # How to hardcode a shared library path into an executable.
  17199. hardcode_action=$hardcode_action
  17200. # The directories searched by this compiler when creating a shared library.
  17201. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  17202. # Dependencies to place before and after the objects being linked to
  17203. # create a shared library.
  17204. predep_objects=$lt_predep_objects
  17205. postdep_objects=$lt_postdep_objects
  17206. predeps=$lt_predeps
  17207. postdeps=$lt_postdeps
  17208. # The library search path used internally by the compiler when linking
  17209. # a shared library.
  17210. compiler_lib_search_path=$lt_compiler_lib_search_path
  17211. # ### END LIBTOOL CONFIG
  17212. _LT_EOF
  17213. case $host_os in
  17214. aix3*)
  17215. cat <<\_LT_EOF >> "$cfgfile"
  17216. # AIX sometimes has problems with the GCC collect2 program. For some
  17217. # reason, if we set the COLLECT_NAMES environment variable, the problems
  17218. # vanish in a puff of smoke.
  17219. if test "X${COLLECT_NAMES+set}" != Xset; then
  17220. COLLECT_NAMES=
  17221. export COLLECT_NAMES
  17222. fi
  17223. _LT_EOF
  17224. ;;
  17225. esac
  17226. ltmain="$ac_aux_dir/ltmain.sh"
  17227. # We use sed instead of cat because bash on DJGPP gets confused if
  17228. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17229. # text mode, it properly converts lines to CR/LF. This bash problem
  17230. # is reportedly fixed, but why not run on old versions too?
  17231. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  17232. || (rm -f "$cfgfile"; exit 1)
  17233. case $xsi_shell in
  17234. yes)
  17235. cat << \_LT_EOF >> "$cfgfile"
  17236. # func_dirname file append nondir_replacement
  17237. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  17238. # otherwise set result to NONDIR_REPLACEMENT.
  17239. func_dirname ()
  17240. {
  17241. case ${1} in
  17242. */*) func_dirname_result="${1%/*}${2}" ;;
  17243. * ) func_dirname_result="${3}" ;;
  17244. esac
  17245. }
  17246. # func_basename file
  17247. func_basename ()
  17248. {
  17249. func_basename_result="${1##*/}"
  17250. }
  17251. # func_dirname_and_basename file append nondir_replacement
  17252. # perform func_basename and func_dirname in a single function
  17253. # call:
  17254. # dirname: Compute the dirname of FILE. If nonempty,
  17255. # add APPEND to the result, otherwise set result
  17256. # to NONDIR_REPLACEMENT.
  17257. # value returned in "$func_dirname_result"
  17258. # basename: Compute filename of FILE.
  17259. # value retuned in "$func_basename_result"
  17260. # Implementation must be kept synchronized with func_dirname
  17261. # and func_basename. For efficiency, we do not delegate to
  17262. # those functions but instead duplicate the functionality here.
  17263. func_dirname_and_basename ()
  17264. {
  17265. case ${1} in
  17266. */*) func_dirname_result="${1%/*}${2}" ;;
  17267. * ) func_dirname_result="${3}" ;;
  17268. esac
  17269. func_basename_result="${1##*/}"
  17270. }
  17271. # func_stripname prefix suffix name
  17272. # strip PREFIX and SUFFIX off of NAME.
  17273. # PREFIX and SUFFIX must not contain globbing or regex special
  17274. # characters, hashes, percent signs, but SUFFIX may contain a leading
  17275. # dot (in which case that matches only a dot).
  17276. func_stripname ()
  17277. {
  17278. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  17279. # positional parameters, so assign one to ordinary parameter first.
  17280. func_stripname_result=${3}
  17281. func_stripname_result=${func_stripname_result#"${1}"}
  17282. func_stripname_result=${func_stripname_result%"${2}"}
  17283. }
  17284. # func_opt_split
  17285. func_opt_split ()
  17286. {
  17287. func_opt_split_opt=${1%%=*}
  17288. func_opt_split_arg=${1#*=}
  17289. }
  17290. # func_lo2o object
  17291. func_lo2o ()
  17292. {
  17293. case ${1} in
  17294. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  17295. *) func_lo2o_result=${1} ;;
  17296. esac
  17297. }
  17298. # func_xform libobj-or-source
  17299. func_xform ()
  17300. {
  17301. func_xform_result=${1%.*}.lo
  17302. }
  17303. # func_arith arithmetic-term...
  17304. func_arith ()
  17305. {
  17306. func_arith_result=$(( $* ))
  17307. }
  17308. # func_len string
  17309. # STRING may not start with a hyphen.
  17310. func_len ()
  17311. {
  17312. func_len_result=${#1}
  17313. }
  17314. _LT_EOF
  17315. ;;
  17316. *) # Bourne compatible functions.
  17317. cat << \_LT_EOF >> "$cfgfile"
  17318. # func_dirname file append nondir_replacement
  17319. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  17320. # otherwise set result to NONDIR_REPLACEMENT.
  17321. func_dirname ()
  17322. {
  17323. # Extract subdirectory from the argument.
  17324. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  17325. if test "X$func_dirname_result" = "X${1}"; then
  17326. func_dirname_result="${3}"
  17327. else
  17328. func_dirname_result="$func_dirname_result${2}"
  17329. fi
  17330. }
  17331. # func_basename file
  17332. func_basename ()
  17333. {
  17334. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  17335. }
  17336. # func_stripname prefix suffix name
  17337. # strip PREFIX and SUFFIX off of NAME.
  17338. # PREFIX and SUFFIX must not contain globbing or regex special
  17339. # characters, hashes, percent signs, but SUFFIX may contain a leading
  17340. # dot (in which case that matches only a dot).
  17341. # func_strip_suffix prefix name
  17342. func_stripname ()
  17343. {
  17344. case ${2} in
  17345. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  17346. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  17347. esac
  17348. }
  17349. # sed scripts:
  17350. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  17351. my_sed_long_arg='1s/^-[^=]*=//'
  17352. # func_opt_split
  17353. func_opt_split ()
  17354. {
  17355. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  17356. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  17357. }
  17358. # func_lo2o object
  17359. func_lo2o ()
  17360. {
  17361. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  17362. }
  17363. # func_xform libobj-or-source
  17364. func_xform ()
  17365. {
  17366. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  17367. }
  17368. # func_arith arithmetic-term...
  17369. func_arith ()
  17370. {
  17371. func_arith_result=`expr "$@"`
  17372. }
  17373. # func_len string
  17374. # STRING may not start with a hyphen.
  17375. func_len ()
  17376. {
  17377. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  17378. }
  17379. _LT_EOF
  17380. esac
  17381. case $lt_shell_append in
  17382. yes)
  17383. cat << \_LT_EOF >> "$cfgfile"
  17384. # func_append var value
  17385. # Append VALUE to the end of shell variable VAR.
  17386. func_append ()
  17387. {
  17388. eval "$1+=\$2"
  17389. }
  17390. _LT_EOF
  17391. ;;
  17392. *)
  17393. cat << \_LT_EOF >> "$cfgfile"
  17394. # func_append var value
  17395. # Append VALUE to the end of shell variable VAR.
  17396. func_append ()
  17397. {
  17398. eval "$1=\$$1\$2"
  17399. }
  17400. _LT_EOF
  17401. ;;
  17402. esac
  17403. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  17404. || (rm -f "$cfgfile"; exit 1)
  17405. mv -f "$cfgfile" "$ofile" ||
  17406. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17407. chmod +x "$ofile"
  17408. cat <<_LT_EOF >> "$ofile"
  17409. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  17410. # The linker used to build libraries.
  17411. LD=$lt_LD_CXX
  17412. # How to create reloadable object files.
  17413. reload_flag=$lt_reload_flag_CXX
  17414. reload_cmds=$lt_reload_cmds_CXX
  17415. # Commands used to build an old-style archive.
  17416. old_archive_cmds=$lt_old_archive_cmds_CXX
  17417. # A language specific compiler.
  17418. CC=$lt_compiler_CXX
  17419. # Is the compiler the GNU compiler?
  17420. with_gcc=$GCC_CXX
  17421. # Compiler flag to turn off builtin functions.
  17422. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  17423. # How to pass a linker flag through the compiler.
  17424. wl=$lt_lt_prog_compiler_wl_CXX
  17425. # Additional compiler flags for building library objects.
  17426. pic_flag=$lt_lt_prog_compiler_pic_CXX
  17427. # Compiler flag to prevent dynamic linking.
  17428. link_static_flag=$lt_lt_prog_compiler_static_CXX
  17429. # Does compiler simultaneously support -c and -o options?
  17430. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  17431. # Whether or not to add -lc for building shared libraries.
  17432. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  17433. # Whether or not to disallow shared libs when runtime libs are static.
  17434. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  17435. # Compiler flag to allow reflexive dlopens.
  17436. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  17437. # Compiler flag to generate shared objects directly from archives.
  17438. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  17439. # Whether the compiler copes with passing no objects directly.
  17440. compiler_needs_object=$lt_compiler_needs_object_CXX
  17441. # Create an old-style archive from a shared archive.
  17442. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  17443. # Create a temporary old-style archive to link instead of a shared archive.
  17444. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  17445. # Commands used to build a shared archive.
  17446. archive_cmds=$lt_archive_cmds_CXX
  17447. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  17448. # Commands used to build a loadable module if different from building
  17449. # a shared archive.
  17450. module_cmds=$lt_module_cmds_CXX
  17451. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  17452. # Whether we are building with GNU ld or not.
  17453. with_gnu_ld=$lt_with_gnu_ld_CXX
  17454. # Flag that allows shared libraries with undefined symbols to be built.
  17455. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  17456. # Flag that enforces no undefined symbols.
  17457. no_undefined_flag=$lt_no_undefined_flag_CXX
  17458. # Flag to hardcode \$libdir into a binary during linking.
  17459. # This must work even if \$libdir does not exist
  17460. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  17461. # If ld is used when linking, flag to hardcode \$libdir into a binary
  17462. # during linking. This must work even if \$libdir does not exist.
  17463. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  17464. # Whether we need a single "-rpath" flag with a separated argument.
  17465. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  17466. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17467. # DIR into the resulting binary.
  17468. hardcode_direct=$hardcode_direct_CXX
  17469. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17470. # DIR into the resulting binary and the resulting library dependency is
  17471. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17472. # library is relocated.
  17473. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  17474. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17475. # into the resulting binary.
  17476. hardcode_minus_L=$hardcode_minus_L_CXX
  17477. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17478. # into the resulting binary.
  17479. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  17480. # Set to "yes" if building a shared library automatically hardcodes DIR
  17481. # into the library and all subsequent libraries and executables linked
  17482. # against it.
  17483. hardcode_automatic=$hardcode_automatic_CXX
  17484. # Set to yes if linker adds runtime paths of dependent libraries
  17485. # to runtime path list.
  17486. inherit_rpath=$inherit_rpath_CXX
  17487. # Whether libtool must link a program against all its dependency libraries.
  17488. link_all_deplibs=$link_all_deplibs_CXX
  17489. # Fix the shell variable \$srcfile for the compiler.
  17490. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  17491. # Set to "yes" if exported symbols are required.
  17492. always_export_symbols=$always_export_symbols_CXX
  17493. # The commands to list exported symbols.
  17494. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  17495. # Symbols that should not be listed in the preloaded symbols.
  17496. exclude_expsyms=$lt_exclude_expsyms_CXX
  17497. # Symbols that must always be exported.
  17498. include_expsyms=$lt_include_expsyms_CXX
  17499. # Commands necessary for linking programs (against libraries) with templates.
  17500. prelink_cmds=$lt_prelink_cmds_CXX
  17501. # Specify filename containing input files.
  17502. file_list_spec=$lt_file_list_spec_CXX
  17503. # How to hardcode a shared library path into an executable.
  17504. hardcode_action=$hardcode_action_CXX
  17505. # The directories searched by this compiler when creating a shared library.
  17506. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  17507. # Dependencies to place before and after the objects being linked to
  17508. # create a shared library.
  17509. predep_objects=$lt_predep_objects_CXX
  17510. postdep_objects=$lt_postdep_objects_CXX
  17511. predeps=$lt_predeps_CXX
  17512. postdeps=$lt_postdeps_CXX
  17513. # The library search path used internally by the compiler when linking
  17514. # a shared library.
  17515. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  17516. # ### END LIBTOOL TAG CONFIG: CXX
  17517. _LT_EOF
  17518. ;;
  17519. "gstdint.h":C)
  17520. if test "$GCC" = yes; then
  17521. echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
  17522. else
  17523. echo "/* generated for $CC */" > tmp-stdint.h
  17524. fi
  17525. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17526. #ifndef GCC_GENERATED_STDINT_H
  17527. #define GCC_GENERATED_STDINT_H 1
  17528. #include <sys/types.h>
  17529. EOF
  17530. if test "$acx_cv_header_stdint" != stdint.h; then
  17531. echo "#include <stddef.h>" >> tmp-stdint.h
  17532. fi
  17533. if test "$acx_cv_header_stdint" != stddef.h; then
  17534. echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
  17535. fi
  17536. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17537. /* glibc uses these symbols as guards to prevent redefinitions. */
  17538. #ifdef __int8_t_defined
  17539. #define _INT8_T
  17540. #define _INT16_T
  17541. #define _INT32_T
  17542. #endif
  17543. #ifdef __uint32_t_defined
  17544. #define _UINT32_T
  17545. #endif
  17546. EOF
  17547. # ----------------- done header, emit basic int types -------------
  17548. if test "$acx_cv_header_stdint" = stddef.h; then
  17549. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17550. #ifndef _UINT8_T
  17551. #define _UINT8_T
  17552. #ifndef __uint8_t_defined
  17553. #define __uint8_t_defined
  17554. #ifndef uint8_t
  17555. typedef unsigned $acx_cv_type_int8_t uint8_t;
  17556. #endif
  17557. #endif
  17558. #endif
  17559. #ifndef _UINT16_T
  17560. #define _UINT16_T
  17561. #ifndef __uint16_t_defined
  17562. #define __uint16_t_defined
  17563. #ifndef uint16_t
  17564. typedef unsigned $acx_cv_type_int16_t uint16_t;
  17565. #endif
  17566. #endif
  17567. #endif
  17568. #ifndef _UINT32_T
  17569. #define _UINT32_T
  17570. #ifndef __uint32_t_defined
  17571. #define __uint32_t_defined
  17572. #ifndef uint32_t
  17573. typedef unsigned $acx_cv_type_int32_t uint32_t;
  17574. #endif
  17575. #endif
  17576. #endif
  17577. #ifndef _INT8_T
  17578. #define _INT8_T
  17579. #ifndef __int8_t_defined
  17580. #define __int8_t_defined
  17581. #ifndef int8_t
  17582. typedef $acx_cv_type_int8_t int8_t;
  17583. #endif
  17584. #endif
  17585. #endif
  17586. #ifndef _INT16_T
  17587. #define _INT16_T
  17588. #ifndef __int16_t_defined
  17589. #define __int16_t_defined
  17590. #ifndef int16_t
  17591. typedef $acx_cv_type_int16_t int16_t;
  17592. #endif
  17593. #endif
  17594. #endif
  17595. #ifndef _INT32_T
  17596. #define _INT32_T
  17597. #ifndef __int32_t_defined
  17598. #define __int32_t_defined
  17599. #ifndef int32_t
  17600. typedef $acx_cv_type_int32_t int32_t;
  17601. #endif
  17602. #endif
  17603. #endif
  17604. EOF
  17605. elif test "$ac_cv_type_u_int32_t" = yes; then
  17606. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17607. /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
  17608. #ifndef _INT8_T
  17609. #define _INT8_T
  17610. #endif
  17611. #ifndef _INT16_T
  17612. #define _INT16_T
  17613. #endif
  17614. #ifndef _INT32_T
  17615. #define _INT32_T
  17616. #endif
  17617. #ifndef _UINT8_T
  17618. #define _UINT8_T
  17619. #ifndef __uint8_t_defined
  17620. #define __uint8_t_defined
  17621. #ifndef uint8_t
  17622. typedef u_int8_t uint8_t;
  17623. #endif
  17624. #endif
  17625. #endif
  17626. #ifndef _UINT16_T
  17627. #define _UINT16_T
  17628. #ifndef __uint16_t_defined
  17629. #define __uint16_t_defined
  17630. #ifndef uint16_t
  17631. typedef u_int16_t uint16_t;
  17632. #endif
  17633. #endif
  17634. #endif
  17635. #ifndef _UINT32_T
  17636. #define _UINT32_T
  17637. #ifndef __uint32_t_defined
  17638. #define __uint32_t_defined
  17639. #ifndef uint32_t
  17640. typedef u_int32_t uint32_t;
  17641. #endif
  17642. #endif
  17643. #endif
  17644. EOF
  17645. else
  17646. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17647. /* Some systems have guard macros to prevent redefinitions, define them. */
  17648. #ifndef _INT8_T
  17649. #define _INT8_T
  17650. #endif
  17651. #ifndef _INT16_T
  17652. #define _INT16_T
  17653. #endif
  17654. #ifndef _INT32_T
  17655. #define _INT32_T
  17656. #endif
  17657. #ifndef _UINT8_T
  17658. #define _UINT8_T
  17659. #endif
  17660. #ifndef _UINT16_T
  17661. #define _UINT16_T
  17662. #endif
  17663. #ifndef _UINT32_T
  17664. #define _UINT32_T
  17665. #endif
  17666. EOF
  17667. fi
  17668. # ------------- done basic int types, emit int64_t types ------------
  17669. if test "$ac_cv_type_uint64_t" = yes; then
  17670. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17671. /* system headers have good uint64_t and int64_t */
  17672. #ifndef _INT64_T
  17673. #define _INT64_T
  17674. #endif
  17675. #ifndef _UINT64_T
  17676. #define _UINT64_T
  17677. #endif
  17678. EOF
  17679. elif test "$ac_cv_type_u_int64_t" = yes; then
  17680. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17681. /* system headers have an u_int64_t (and int64_t) */
  17682. #ifndef _INT64_T
  17683. #define _INT64_T
  17684. #endif
  17685. #ifndef _UINT64_T
  17686. #define _UINT64_T
  17687. #ifndef __uint64_t_defined
  17688. #define __uint64_t_defined
  17689. #ifndef uint64_t
  17690. typedef u_int64_t uint64_t;
  17691. #endif
  17692. #endif
  17693. #endif
  17694. EOF
  17695. elif test -n "$acx_cv_type_int64_t"; then
  17696. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17697. /* architecture has a 64-bit type, $acx_cv_type_int64_t */
  17698. #ifndef _INT64_T
  17699. #define _INT64_T
  17700. #ifndef int64_t
  17701. typedef $acx_cv_type_int64_t int64_t;
  17702. #endif
  17703. #endif
  17704. #ifndef _UINT64_T
  17705. #define _UINT64_T
  17706. #ifndef __uint64_t_defined
  17707. #define __uint64_t_defined
  17708. #ifndef uint64_t
  17709. typedef unsigned $acx_cv_type_int64_t uint64_t;
  17710. #endif
  17711. #endif
  17712. #endif
  17713. EOF
  17714. else
  17715. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17716. /* some common heuristics for int64_t, using compiler-specific tests */
  17717. #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
  17718. #ifndef _INT64_T
  17719. #define _INT64_T
  17720. #ifndef __int64_t_defined
  17721. #ifndef int64_t
  17722. typedef long long int64_t;
  17723. #endif
  17724. #endif
  17725. #endif
  17726. #ifndef _UINT64_T
  17727. #define _UINT64_T
  17728. #ifndef uint64_t
  17729. typedef unsigned long long uint64_t;
  17730. #endif
  17731. #endif
  17732. #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
  17733. /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
  17734. does not implement __extension__. But that compiler doesn't define
  17735. __GNUC_MINOR__. */
  17736. # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
  17737. # define __extension__
  17738. # endif
  17739. # ifndef _INT64_T
  17740. # define _INT64_T
  17741. # ifndef int64_t
  17742. __extension__ typedef long long int64_t;
  17743. # endif
  17744. # endif
  17745. # ifndef _UINT64_T
  17746. # define _UINT64_T
  17747. # ifndef uint64_t
  17748. __extension__ typedef unsigned long long uint64_t;
  17749. # endif
  17750. # endif
  17751. #elif !defined __STRICT_ANSI__
  17752. # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
  17753. # ifndef _INT64_T
  17754. # define _INT64_T
  17755. # ifndef int64_t
  17756. typedef __int64 int64_t;
  17757. # endif
  17758. # endif
  17759. # ifndef _UINT64_T
  17760. # define _UINT64_T
  17761. # ifndef uint64_t
  17762. typedef unsigned __int64 uint64_t;
  17763. # endif
  17764. # endif
  17765. # endif /* compiler */
  17766. #endif /* ANSI version */
  17767. EOF
  17768. fi
  17769. # ------------- done int64_t types, emit intptr types ------------
  17770. if test "$ac_cv_type_uintptr_t" != yes; then
  17771. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17772. /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
  17773. #ifndef __uintptr_t_defined
  17774. #ifndef uintptr_t
  17775. typedef u$acx_cv_type_intptr_t uintptr_t;
  17776. #endif
  17777. #endif
  17778. #ifndef __intptr_t_defined
  17779. #ifndef intptr_t
  17780. typedef $acx_cv_type_intptr_t intptr_t;
  17781. #endif
  17782. #endif
  17783. EOF
  17784. fi
  17785. # ------------- done intptr types, emit int_least types ------------
  17786. if test "$ac_cv_type_int_least32_t" != yes; then
  17787. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17788. /* Define int_least types */
  17789. typedef int8_t int_least8_t;
  17790. typedef int16_t int_least16_t;
  17791. typedef int32_t int_least32_t;
  17792. #ifdef _INT64_T
  17793. typedef int64_t int_least64_t;
  17794. #endif
  17795. typedef uint8_t uint_least8_t;
  17796. typedef uint16_t uint_least16_t;
  17797. typedef uint32_t uint_least32_t;
  17798. #ifdef _UINT64_T
  17799. typedef uint64_t uint_least64_t;
  17800. #endif
  17801. EOF
  17802. fi
  17803. # ------------- done intptr types, emit int_fast types ------------
  17804. if test "$ac_cv_type_int_fast32_t" != yes; then
  17805. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17806. /* Define int_fast types. short is often slow */
  17807. typedef int8_t int_fast8_t;
  17808. typedef int int_fast16_t;
  17809. typedef int32_t int_fast32_t;
  17810. #ifdef _INT64_T
  17811. typedef int64_t int_fast64_t;
  17812. #endif
  17813. typedef uint8_t uint_fast8_t;
  17814. typedef unsigned int uint_fast16_t;
  17815. typedef uint32_t uint_fast32_t;
  17816. #ifdef _UINT64_T
  17817. typedef uint64_t uint_fast64_t;
  17818. #endif
  17819. EOF
  17820. fi
  17821. if test "$ac_cv_type_uintmax_t" != yes; then
  17822. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17823. /* Define intmax based on what we found */
  17824. #ifndef intmax_t
  17825. #ifdef _INT64_T
  17826. typedef int64_t intmax_t;
  17827. #else
  17828. typedef long intmax_t;
  17829. #endif
  17830. #endif
  17831. #ifndef uintmax_t
  17832. #ifdef _UINT64_T
  17833. typedef uint64_t uintmax_t;
  17834. #else
  17835. typedef unsigned long uintmax_t;
  17836. #endif
  17837. #endif
  17838. EOF
  17839. fi
  17840. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17841. #endif /* GCC_GENERATED_STDINT_H */
  17842. EOF
  17843. if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
  17844. rm -f tmp-stdint.h
  17845. else
  17846. mv -f tmp-stdint.h gstdint.h
  17847. fi
  17848. ;;
  17849. esac
  17850. done # for ac_tag
  17851. as_fn_exit 0
  17852. _ACEOF
  17853. ac_clean_files=$ac_clean_files_save
  17854. test $ac_write_fail = 0 ||
  17855. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17856. # configure is writing to config.log, and then calls config.status.
  17857. # config.status does its own redirection, appending to config.log.
  17858. # Unfortunately, on DOS this fails, as config.log is still kept open
  17859. # by configure, so config.status won't be able to write to it; its
  17860. # output is simply discarded. So we exec the FD to /dev/null,
  17861. # effectively closing config.log, so it can be properly (re)opened and
  17862. # appended to by config.status. When coming back to configure, we
  17863. # need to make the FD available again.
  17864. if test "$no_create" != yes; then
  17865. ac_cs_success=:
  17866. ac_config_status_args=
  17867. test "$silent" = yes &&
  17868. ac_config_status_args="$ac_config_status_args --quiet"
  17869. exec 5>/dev/null
  17870. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17871. exec 5>>config.log
  17872. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17873. # would make configure fail if this is the last instruction.
  17874. $ac_cs_success || as_fn_exit $?
  17875. fi
  17876. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17877. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17878. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17879. fi