configure 507 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for Cilk Runtime Library 2.0.
  4. #
  5. # Report bugs to <cilk@intel.com>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  9. # Foundation, Inc.
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1
  161. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  162. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  163. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  164. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  165. PATH=/empty FPATH=/empty; export PATH FPATH
  166. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  167. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  168. if (eval "$as_required") 2>/dev/null; then :
  169. as_have_required=yes
  170. else
  171. as_have_required=no
  172. fi
  173. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  174. else
  175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  176. as_found=false
  177. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  178. do
  179. IFS=$as_save_IFS
  180. test -z "$as_dir" && as_dir=.
  181. as_found=:
  182. case $as_dir in #(
  183. /*)
  184. for as_base in sh bash ksh sh5; do
  185. # Try only shells that exist, to save several forks.
  186. as_shell=$as_dir/$as_base
  187. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  188. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. CONFIG_SHELL=$as_shell as_have_required=yes
  190. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  191. break 2
  192. fi
  193. fi
  194. done;;
  195. esac
  196. as_found=false
  197. done
  198. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  199. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  200. CONFIG_SHELL=$SHELL as_have_required=yes
  201. fi; }
  202. IFS=$as_save_IFS
  203. if test "x$CONFIG_SHELL" != x; then :
  204. # We cannot yet assume a decent shell, so we have to provide a
  205. # neutralization value for shells without unset; and this also
  206. # works around shells that cannot unset nonexistent variables.
  207. BASH_ENV=/dev/null
  208. ENV=/dev/null
  209. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  210. export CONFIG_SHELL
  211. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  212. fi
  213. if test x$as_have_required = xno; then :
  214. $as_echo "$0: This script requires a shell more modern than all"
  215. $as_echo "$0: the shells that I found on your system."
  216. if test x${ZSH_VERSION+set} = xset ; then
  217. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  218. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  219. else
  220. $as_echo "$0: Please tell bug-autoconf@gnu.org and cilk@intel.com
  221. $0: about your system, including any error possibly output
  222. $0: before this message. Then install a modern shell, or
  223. $0: manually run the script under such a shell if you do
  224. $0: have one."
  225. fi
  226. exit 1
  227. fi
  228. fi
  229. fi
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. export SHELL
  232. # Unset more variables known to interfere with behavior of common tools.
  233. CLICOLOR_FORCE= GREP_OPTIONS=
  234. unset CLICOLOR_FORCE GREP_OPTIONS
  235. ## --------------------- ##
  236. ## M4sh Shell Functions. ##
  237. ## --------------------- ##
  238. # as_fn_unset VAR
  239. # ---------------
  240. # Portably unset VAR.
  241. as_fn_unset ()
  242. {
  243. { eval $1=; unset $1;}
  244. }
  245. as_unset=as_fn_unset
  246. # as_fn_set_status STATUS
  247. # -----------------------
  248. # Set $? to STATUS, without forking.
  249. as_fn_set_status ()
  250. {
  251. return $1
  252. } # as_fn_set_status
  253. # as_fn_exit STATUS
  254. # -----------------
  255. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  256. as_fn_exit ()
  257. {
  258. set +e
  259. as_fn_set_status $1
  260. exit $1
  261. } # as_fn_exit
  262. # as_fn_mkdir_p
  263. # -------------
  264. # Create "$as_dir" as a directory, including parents if necessary.
  265. as_fn_mkdir_p ()
  266. {
  267. case $as_dir in #(
  268. -*) as_dir=./$as_dir;;
  269. esac
  270. test -d "$as_dir" || eval $as_mkdir_p || {
  271. as_dirs=
  272. while :; do
  273. case $as_dir in #(
  274. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  275. *) as_qdir=$as_dir;;
  276. esac
  277. as_dirs="'$as_qdir' $as_dirs"
  278. as_dir=`$as_dirname -- "$as_dir" ||
  279. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  280. X"$as_dir" : 'X\(//\)[^/]' \| \
  281. X"$as_dir" : 'X\(//\)$' \| \
  282. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  283. $as_echo X"$as_dir" |
  284. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\/\)[^/].*/{
  289. s//\1/
  290. q
  291. }
  292. /^X\(\/\/\)$/{
  293. s//\1/
  294. q
  295. }
  296. /^X\(\/\).*/{
  297. s//\1/
  298. q
  299. }
  300. s/.*/./; q'`
  301. test -d "$as_dir" && break
  302. done
  303. test -z "$as_dirs" || eval "mkdir $as_dirs"
  304. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  305. } # as_fn_mkdir_p
  306. # as_fn_append VAR VALUE
  307. # ----------------------
  308. # Append the text in VALUE to the end of the definition contained in VAR. Take
  309. # advantage of any shell optimizations that allow amortized linear growth over
  310. # repeated appends, instead of the typical quadratic growth present in naive
  311. # implementations.
  312. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  313. eval 'as_fn_append ()
  314. {
  315. eval $1+=\$2
  316. }'
  317. else
  318. as_fn_append ()
  319. {
  320. eval $1=\$$1\$2
  321. }
  322. fi # as_fn_append
  323. # as_fn_arith ARG...
  324. # ------------------
  325. # Perform arithmetic evaluation on the ARGs, and store the result in the
  326. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  327. # must be portable across $(()) and expr.
  328. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  329. eval 'as_fn_arith ()
  330. {
  331. as_val=$(( $* ))
  332. }'
  333. else
  334. as_fn_arith ()
  335. {
  336. as_val=`expr "$@" || test $? -eq 1`
  337. }
  338. fi # as_fn_arith
  339. # as_fn_error ERROR [LINENO LOG_FD]
  340. # ---------------------------------
  341. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  342. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  343. # script with status $?, using 1 if that was 0.
  344. as_fn_error ()
  345. {
  346. as_status=$?; test $as_status -eq 0 && as_status=1
  347. if test "$3"; then
  348. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  349. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  350. fi
  351. $as_echo "$as_me: error: $1" >&2
  352. as_fn_exit $as_status
  353. } # as_fn_error
  354. if expr a : '\(a\)' >/dev/null 2>&1 &&
  355. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  356. as_expr=expr
  357. else
  358. as_expr=false
  359. fi
  360. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  361. as_basename=basename
  362. else
  363. as_basename=false
  364. fi
  365. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  366. as_dirname=dirname
  367. else
  368. as_dirname=false
  369. fi
  370. as_me=`$as_basename -- "$0" ||
  371. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  372. X"$0" : 'X\(//\)$' \| \
  373. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  374. $as_echo X/"$0" |
  375. sed '/^.*\/\([^/][^/]*\)\/*$/{
  376. s//\1/
  377. q
  378. }
  379. /^X\/\(\/\/\)$/{
  380. s//\1/
  381. q
  382. }
  383. /^X\/\(\/\).*/{
  384. s//\1/
  385. q
  386. }
  387. s/.*/./; q'`
  388. # Avoid depending upon Character Ranges.
  389. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  390. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  391. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  392. as_cr_digits='0123456789'
  393. as_cr_alnum=$as_cr_Letters$as_cr_digits
  394. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  395. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  396. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  397. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  398. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  399. sed -n '
  400. p
  401. /[$]LINENO/=
  402. ' <$as_myself |
  403. sed '
  404. s/[$]LINENO.*/&-/
  405. t lineno
  406. b
  407. :lineno
  408. N
  409. :loop
  410. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  411. t loop
  412. s/-\n.*//
  413. ' >$as_me.lineno &&
  414. chmod +x "$as_me.lineno" ||
  415. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  416. # Don't try to exec as it changes $[0], causing all sort of problems
  417. # (the dirname of $[0] is not the place where we might find the
  418. # original and so on. Autoconf is especially sensitive to this).
  419. . "./$as_me.lineno"
  420. # Exit status is that of the last command.
  421. exit
  422. }
  423. ECHO_C= ECHO_N= ECHO_T=
  424. case `echo -n x` in #(((((
  425. -n*)
  426. case `echo 'xy\c'` in
  427. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  428. xy) ECHO_C='\c';;
  429. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  430. ECHO_T=' ';;
  431. esac;;
  432. *)
  433. ECHO_N='-n';;
  434. esac
  435. rm -f conf$$ conf$$.exe conf$$.file
  436. if test -d conf$$.dir; then
  437. rm -f conf$$.dir/conf$$.file
  438. else
  439. rm -f conf$$.dir
  440. mkdir conf$$.dir 2>/dev/null
  441. fi
  442. if (echo >conf$$.file) 2>/dev/null; then
  443. if ln -s conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s='ln -s'
  445. # ... but there are two gotchas:
  446. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  447. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  448. # In both cases, we have to default to `cp -p'.
  449. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  450. as_ln_s='cp -p'
  451. elif ln conf$$.file conf$$ 2>/dev/null; then
  452. as_ln_s=ln
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. else
  457. as_ln_s='cp -p'
  458. fi
  459. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  460. rmdir conf$$.dir 2>/dev/null
  461. if mkdir -p . 2>/dev/null; then
  462. as_mkdir_p='mkdir -p "$as_dir"'
  463. else
  464. test -d ./-p && rmdir ./-p
  465. as_mkdir_p=false
  466. fi
  467. if test -x / >/dev/null 2>&1; then
  468. as_test_x='test -x'
  469. else
  470. if ls -dL / >/dev/null 2>&1; then
  471. as_ls_L_option=L
  472. else
  473. as_ls_L_option=
  474. fi
  475. as_test_x='
  476. eval sh -c '\''
  477. if test -d "$1"; then
  478. test -d "$1/.";
  479. else
  480. case $1 in #(
  481. -*)set "./$1";;
  482. esac;
  483. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  484. ???[sx]*):;;*)false;;esac;fi
  485. '\'' sh
  486. '
  487. fi
  488. as_executable_p=$as_test_x
  489. # Sed expression to map a string onto a valid CPP name.
  490. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  491. # Sed expression to map a string onto a valid variable name.
  492. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  493. SHELL=${CONFIG_SHELL-/bin/sh}
  494. exec 7<&0 </dev/null 6>&1
  495. # Name of the host.
  496. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  497. # so uname gets run too.
  498. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  499. #
  500. # Initializations.
  501. #
  502. ac_default_prefix=/usr/local
  503. ac_clean_files=
  504. ac_config_libobj_dir=.
  505. LIBOBJS=
  506. cross_compiling=no
  507. subdirs=
  508. MFLAGS=
  509. MAKEFLAGS=
  510. # Identity of this package.
  511. PACKAGE_NAME='Cilk Runtime Library'
  512. PACKAGE_TARNAME='cilk-runtime-library'
  513. PACKAGE_VERSION='2.0'
  514. PACKAGE_STRING='Cilk Runtime Library 2.0'
  515. PACKAGE_BUGREPORT='cilk@intel.com'
  516. PACKAGE_URL=''
  517. # Factoring default headers for most tests.
  518. ac_includes_default="\
  519. #include <stdio.h>
  520. #ifdef HAVE_SYS_TYPES_H
  521. # include <sys/types.h>
  522. #endif
  523. #ifdef HAVE_SYS_STAT_H
  524. # include <sys/stat.h>
  525. #endif
  526. #ifdef STDC_HEADERS
  527. # include <stdlib.h>
  528. # include <stddef.h>
  529. #else
  530. # ifdef HAVE_STDLIB_H
  531. # include <stdlib.h>
  532. # endif
  533. #endif
  534. #ifdef HAVE_STRING_H
  535. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  536. # include <memory.h>
  537. # endif
  538. # include <string.h>
  539. #endif
  540. #ifdef HAVE_STRINGS_H
  541. # include <strings.h>
  542. #endif
  543. #ifdef HAVE_INTTYPES_H
  544. # include <inttypes.h>
  545. #endif
  546. #ifdef HAVE_STDINT_H
  547. # include <stdint.h>
  548. #endif
  549. #ifdef HAVE_UNISTD_H
  550. # include <unistd.h>
  551. #endif"
  552. ac_subst_vars='am__EXEEXT_FALSE
  553. am__EXEEXT_TRUE
  554. LTLIBOBJS
  555. LIBOBJS
  556. link_cilkrts
  557. XLDFLAGS
  558. XCFLAGS
  559. lt_cv_dlopen_libs
  560. toolexeclibdir
  561. toolexecdir
  562. CXXCPP
  563. OTOOL64
  564. OTOOL
  565. LIPO
  566. NMEDIT
  567. DSYMUTIL
  568. RANLIB
  569. AR
  570. OBJDUMP
  571. LN_S
  572. NM
  573. ac_ct_DUMPBIN
  574. DUMPBIN
  575. LD
  576. FGREP
  577. SED
  578. LIBTOOL
  579. MAC_LINKER_SCRIPT_FALSE
  580. MAC_LINKER_SCRIPT_TRUE
  581. LINUX_LINKER_SCRIPT_FALSE
  582. LINUX_LINKER_SCRIPT_TRUE
  583. config_dir
  584. EGREP
  585. GREP
  586. CPP
  587. ALLOCA
  588. am__fastdepCXX_FALSE
  589. am__fastdepCXX_TRUE
  590. CXXDEPMODE
  591. ac_ct_CXX
  592. CXXFLAGS
  593. CXX
  594. am__fastdepCC_FALSE
  595. am__fastdepCC_TRUE
  596. CCDEPMODE
  597. AMDEPBACKSLASH
  598. AMDEP_FALSE
  599. AMDEP_TRUE
  600. am__quote
  601. am__include
  602. DEPDIR
  603. OBJEXT
  604. EXEEXT
  605. ac_ct_CC
  606. CPPFLAGS
  607. LDFLAGS
  608. CFLAGS
  609. CC
  610. multi_basedir
  611. MAINT
  612. MAINTAINER_MODE_FALSE
  613. MAINTAINER_MODE_TRUE
  614. am__untar
  615. am__tar
  616. AMTAR
  617. am__leading_dot
  618. SET_MAKE
  619. AWK
  620. mkdir_p
  621. MKDIR_P
  622. INSTALL_STRIP_PROGRAM
  623. STRIP
  624. install_sh
  625. MAKEINFO
  626. AUTOHEADER
  627. AUTOMAKE
  628. AUTOCONF
  629. ACLOCAL
  630. VERSION
  631. PACKAGE
  632. CYGPATH_W
  633. am__isrc
  634. INSTALL_DATA
  635. INSTALL_SCRIPT
  636. INSTALL_PROGRAM
  637. target_os
  638. target_vendor
  639. target_cpu
  640. target
  641. host_os
  642. host_vendor
  643. host_cpu
  644. host
  645. build_os
  646. build_vendor
  647. build_cpu
  648. build
  649. target_alias
  650. host_alias
  651. build_alias
  652. LIBS
  653. ECHO_T
  654. ECHO_N
  655. ECHO_C
  656. DEFS
  657. mandir
  658. localedir
  659. libdir
  660. psdir
  661. pdfdir
  662. dvidir
  663. htmldir
  664. infodir
  665. docdir
  666. oldincludedir
  667. includedir
  668. localstatedir
  669. sharedstatedir
  670. sysconfdir
  671. datadir
  672. datarootdir
  673. libexecdir
  674. sbindir
  675. bindir
  676. program_transform_name
  677. prefix
  678. exec_prefix
  679. PACKAGE_URL
  680. PACKAGE_BUGREPORT
  681. PACKAGE_STRING
  682. PACKAGE_VERSION
  683. PACKAGE_TARNAME
  684. PACKAGE_NAME
  685. PATH_SEPARATOR
  686. SHELL'
  687. ac_subst_files=''
  688. ac_user_opts='
  689. enable_option_checking
  690. enable_maintainer_mode
  691. enable_multilib
  692. enable_dependency_tracking
  693. enable_version_specific_runtime_libs
  694. enable_shared
  695. enable_static
  696. with_pic
  697. enable_fast_install
  698. with_gnu_ld
  699. enable_libtool_lock
  700. '
  701. ac_precious_vars='build_alias
  702. host_alias
  703. target_alias
  704. CC
  705. CFLAGS
  706. LDFLAGS
  707. LIBS
  708. CPPFLAGS
  709. CXX
  710. CXXFLAGS
  711. CCC
  712. CPP
  713. CXXCPP'
  714. # Initialize some variables set by options.
  715. ac_init_help=
  716. ac_init_version=false
  717. ac_unrecognized_opts=
  718. ac_unrecognized_sep=
  719. # The variables have the same names as the options, with
  720. # dashes changed to underlines.
  721. cache_file=/dev/null
  722. exec_prefix=NONE
  723. no_create=
  724. no_recursion=
  725. prefix=NONE
  726. program_prefix=NONE
  727. program_suffix=NONE
  728. program_transform_name=s,x,x,
  729. silent=
  730. site=
  731. srcdir=
  732. verbose=
  733. x_includes=NONE
  734. x_libraries=NONE
  735. # Installation directory options.
  736. # These are left unexpanded so users can "make install exec_prefix=/foo"
  737. # and all the variables that are supposed to be based on exec_prefix
  738. # by default will actually change.
  739. # Use braces instead of parens because sh, perl, etc. also accept them.
  740. # (The list follows the same order as the GNU Coding Standards.)
  741. bindir='${exec_prefix}/bin'
  742. sbindir='${exec_prefix}/sbin'
  743. libexecdir='${exec_prefix}/libexec'
  744. datarootdir='${prefix}/share'
  745. datadir='${datarootdir}'
  746. sysconfdir='${prefix}/etc'
  747. sharedstatedir='${prefix}/com'
  748. localstatedir='${prefix}/var'
  749. includedir='${prefix}/include'
  750. oldincludedir='/usr/include'
  751. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  752. infodir='${datarootdir}/info'
  753. htmldir='${docdir}'
  754. dvidir='${docdir}'
  755. pdfdir='${docdir}'
  756. psdir='${docdir}'
  757. libdir='${exec_prefix}/lib'
  758. localedir='${datarootdir}/locale'
  759. mandir='${datarootdir}/man'
  760. ac_prev=
  761. ac_dashdash=
  762. for ac_option
  763. do
  764. # If the previous option needs an argument, assign it.
  765. if test -n "$ac_prev"; then
  766. eval $ac_prev=\$ac_option
  767. ac_prev=
  768. continue
  769. fi
  770. case $ac_option in
  771. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  772. *) ac_optarg=yes ;;
  773. esac
  774. # Accept the important Cygnus configure options, so we can diagnose typos.
  775. case $ac_dashdash$ac_option in
  776. --)
  777. ac_dashdash=yes ;;
  778. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  779. ac_prev=bindir ;;
  780. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  781. bindir=$ac_optarg ;;
  782. -build | --build | --buil | --bui | --bu)
  783. ac_prev=build_alias ;;
  784. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  785. build_alias=$ac_optarg ;;
  786. -cache-file | --cache-file | --cache-fil | --cache-fi \
  787. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  788. ac_prev=cache_file ;;
  789. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  790. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  791. cache_file=$ac_optarg ;;
  792. --config-cache | -C)
  793. cache_file=config.cache ;;
  794. -datadir | --datadir | --datadi | --datad)
  795. ac_prev=datadir ;;
  796. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  797. datadir=$ac_optarg ;;
  798. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  799. | --dataroo | --dataro | --datar)
  800. ac_prev=datarootdir ;;
  801. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  802. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  803. datarootdir=$ac_optarg ;;
  804. -disable-* | --disable-*)
  805. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  806. # Reject names that are not valid shell variable names.
  807. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  808. as_fn_error "invalid feature name: $ac_useropt"
  809. ac_useropt_orig=$ac_useropt
  810. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  811. case $ac_user_opts in
  812. *"
  813. "enable_$ac_useropt"
  814. "*) ;;
  815. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  816. ac_unrecognized_sep=', ';;
  817. esac
  818. eval enable_$ac_useropt=no ;;
  819. -docdir | --docdir | --docdi | --doc | --do)
  820. ac_prev=docdir ;;
  821. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  822. docdir=$ac_optarg ;;
  823. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  824. ac_prev=dvidir ;;
  825. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  826. dvidir=$ac_optarg ;;
  827. -enable-* | --enable-*)
  828. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  829. # Reject names that are not valid shell variable names.
  830. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  831. as_fn_error "invalid feature name: $ac_useropt"
  832. ac_useropt_orig=$ac_useropt
  833. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  834. case $ac_user_opts in
  835. *"
  836. "enable_$ac_useropt"
  837. "*) ;;
  838. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  839. ac_unrecognized_sep=', ';;
  840. esac
  841. eval enable_$ac_useropt=\$ac_optarg ;;
  842. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  843. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  844. | --exec | --exe | --ex)
  845. ac_prev=exec_prefix ;;
  846. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  847. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  848. | --exec=* | --exe=* | --ex=*)
  849. exec_prefix=$ac_optarg ;;
  850. -gas | --gas | --ga | --g)
  851. # Obsolete; use --with-gas.
  852. with_gas=yes ;;
  853. -help | --help | --hel | --he | -h)
  854. ac_init_help=long ;;
  855. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  856. ac_init_help=recursive ;;
  857. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  858. ac_init_help=short ;;
  859. -host | --host | --hos | --ho)
  860. ac_prev=host_alias ;;
  861. -host=* | --host=* | --hos=* | --ho=*)
  862. host_alias=$ac_optarg ;;
  863. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  864. ac_prev=htmldir ;;
  865. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  866. | --ht=*)
  867. htmldir=$ac_optarg ;;
  868. -includedir | --includedir | --includedi | --included | --include \
  869. | --includ | --inclu | --incl | --inc)
  870. ac_prev=includedir ;;
  871. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  872. | --includ=* | --inclu=* | --incl=* | --inc=*)
  873. includedir=$ac_optarg ;;
  874. -infodir | --infodir | --infodi | --infod | --info | --inf)
  875. ac_prev=infodir ;;
  876. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  877. infodir=$ac_optarg ;;
  878. -libdir | --libdir | --libdi | --libd)
  879. ac_prev=libdir ;;
  880. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  881. libdir=$ac_optarg ;;
  882. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  883. | --libexe | --libex | --libe)
  884. ac_prev=libexecdir ;;
  885. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  886. | --libexe=* | --libex=* | --libe=*)
  887. libexecdir=$ac_optarg ;;
  888. -localedir | --localedir | --localedi | --localed | --locale)
  889. ac_prev=localedir ;;
  890. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  891. localedir=$ac_optarg ;;
  892. -localstatedir | --localstatedir | --localstatedi | --localstated \
  893. | --localstate | --localstat | --localsta | --localst | --locals)
  894. ac_prev=localstatedir ;;
  895. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  896. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  897. localstatedir=$ac_optarg ;;
  898. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  899. ac_prev=mandir ;;
  900. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  901. mandir=$ac_optarg ;;
  902. -nfp | --nfp | --nf)
  903. # Obsolete; use --without-fp.
  904. with_fp=no ;;
  905. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  906. | --no-cr | --no-c | -n)
  907. no_create=yes ;;
  908. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  909. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  910. no_recursion=yes ;;
  911. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  912. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  913. | --oldin | --oldi | --old | --ol | --o)
  914. ac_prev=oldincludedir ;;
  915. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  916. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  917. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  918. oldincludedir=$ac_optarg ;;
  919. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  920. ac_prev=prefix ;;
  921. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  922. prefix=$ac_optarg ;;
  923. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  924. | --program-pre | --program-pr | --program-p)
  925. ac_prev=program_prefix ;;
  926. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  927. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  928. program_prefix=$ac_optarg ;;
  929. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  930. | --program-suf | --program-su | --program-s)
  931. ac_prev=program_suffix ;;
  932. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  933. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  934. program_suffix=$ac_optarg ;;
  935. -program-transform-name | --program-transform-name \
  936. | --program-transform-nam | --program-transform-na \
  937. | --program-transform-n | --program-transform- \
  938. | --program-transform | --program-transfor \
  939. | --program-transfo | --program-transf \
  940. | --program-trans | --program-tran \
  941. | --progr-tra | --program-tr | --program-t)
  942. ac_prev=program_transform_name ;;
  943. -program-transform-name=* | --program-transform-name=* \
  944. | --program-transform-nam=* | --program-transform-na=* \
  945. | --program-transform-n=* | --program-transform-=* \
  946. | --program-transform=* | --program-transfor=* \
  947. | --program-transfo=* | --program-transf=* \
  948. | --program-trans=* | --program-tran=* \
  949. | --progr-tra=* | --program-tr=* | --program-t=*)
  950. program_transform_name=$ac_optarg ;;
  951. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  952. ac_prev=pdfdir ;;
  953. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  954. pdfdir=$ac_optarg ;;
  955. -psdir | --psdir | --psdi | --psd | --ps)
  956. ac_prev=psdir ;;
  957. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  958. psdir=$ac_optarg ;;
  959. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  960. | -silent | --silent | --silen | --sile | --sil)
  961. silent=yes ;;
  962. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  963. ac_prev=sbindir ;;
  964. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  965. | --sbi=* | --sb=*)
  966. sbindir=$ac_optarg ;;
  967. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  968. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  969. | --sharedst | --shareds | --shared | --share | --shar \
  970. | --sha | --sh)
  971. ac_prev=sharedstatedir ;;
  972. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  973. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  974. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  975. | --sha=* | --sh=*)
  976. sharedstatedir=$ac_optarg ;;
  977. -site | --site | --sit)
  978. ac_prev=site ;;
  979. -site=* | --site=* | --sit=*)
  980. site=$ac_optarg ;;
  981. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  982. ac_prev=srcdir ;;
  983. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  984. srcdir=$ac_optarg ;;
  985. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  986. | --syscon | --sysco | --sysc | --sys | --sy)
  987. ac_prev=sysconfdir ;;
  988. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  989. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  990. sysconfdir=$ac_optarg ;;
  991. -target | --target | --targe | --targ | --tar | --ta | --t)
  992. ac_prev=target_alias ;;
  993. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  994. target_alias=$ac_optarg ;;
  995. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  996. verbose=yes ;;
  997. -version | --version | --versio | --versi | --vers | -V)
  998. ac_init_version=: ;;
  999. -with-* | --with-*)
  1000. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1001. # Reject names that are not valid shell variable names.
  1002. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1003. as_fn_error "invalid package name: $ac_useropt"
  1004. ac_useropt_orig=$ac_useropt
  1005. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1006. case $ac_user_opts in
  1007. *"
  1008. "with_$ac_useropt"
  1009. "*) ;;
  1010. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1011. ac_unrecognized_sep=', ';;
  1012. esac
  1013. eval with_$ac_useropt=\$ac_optarg ;;
  1014. -without-* | --without-*)
  1015. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1016. # Reject names that are not valid shell variable names.
  1017. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1018. as_fn_error "invalid package name: $ac_useropt"
  1019. ac_useropt_orig=$ac_useropt
  1020. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1021. case $ac_user_opts in
  1022. *"
  1023. "with_$ac_useropt"
  1024. "*) ;;
  1025. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1026. ac_unrecognized_sep=', ';;
  1027. esac
  1028. eval with_$ac_useropt=no ;;
  1029. --x)
  1030. # Obsolete; use --with-x.
  1031. with_x=yes ;;
  1032. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1033. | --x-incl | --x-inc | --x-in | --x-i)
  1034. ac_prev=x_includes ;;
  1035. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1036. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1037. x_includes=$ac_optarg ;;
  1038. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1039. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1040. ac_prev=x_libraries ;;
  1041. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1042. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1043. x_libraries=$ac_optarg ;;
  1044. -*) as_fn_error "unrecognized option: \`$ac_option'
  1045. Try \`$0 --help' for more information."
  1046. ;;
  1047. *=*)
  1048. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1049. # Reject names that are not valid shell variable names.
  1050. case $ac_envvar in #(
  1051. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1052. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1053. esac
  1054. eval $ac_envvar=\$ac_optarg
  1055. export $ac_envvar ;;
  1056. *)
  1057. # FIXME: should be removed in autoconf 3.0.
  1058. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1059. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1060. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1061. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1062. ;;
  1063. esac
  1064. done
  1065. if test -n "$ac_prev"; then
  1066. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1067. as_fn_error "missing argument to $ac_option"
  1068. fi
  1069. if test -n "$ac_unrecognized_opts"; then
  1070. case $enable_option_checking in
  1071. no) ;;
  1072. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1073. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1074. esac
  1075. fi
  1076. # Check all directory arguments for consistency.
  1077. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1078. datadir sysconfdir sharedstatedir localstatedir includedir \
  1079. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1080. libdir localedir mandir
  1081. do
  1082. eval ac_val=\$$ac_var
  1083. # Remove trailing slashes.
  1084. case $ac_val in
  1085. */ )
  1086. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1087. eval $ac_var=\$ac_val;;
  1088. esac
  1089. # Be sure to have absolute directory names.
  1090. case $ac_val in
  1091. [\\/$]* | ?:[\\/]* ) continue;;
  1092. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1093. esac
  1094. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1095. done
  1096. # There might be people who depend on the old broken behavior: `$host'
  1097. # used to hold the argument of --host etc.
  1098. # FIXME: To remove some day.
  1099. build=$build_alias
  1100. host=$host_alias
  1101. target=$target_alias
  1102. # FIXME: To remove some day.
  1103. if test "x$host_alias" != x; then
  1104. if test "x$build_alias" = x; then
  1105. cross_compiling=maybe
  1106. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1107. If a cross compiler is detected then cross compile mode will be used." >&2
  1108. elif test "x$build_alias" != "x$host_alias"; then
  1109. cross_compiling=yes
  1110. fi
  1111. fi
  1112. ac_tool_prefix=
  1113. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1114. test "$silent" = yes && exec 6>/dev/null
  1115. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1116. ac_ls_di=`ls -di .` &&
  1117. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1118. as_fn_error "working directory cannot be determined"
  1119. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1120. as_fn_error "pwd does not report name of working directory"
  1121. # Find the source files, if location was not specified.
  1122. if test -z "$srcdir"; then
  1123. ac_srcdir_defaulted=yes
  1124. # Try the directory containing this script, then the parent directory.
  1125. ac_confdir=`$as_dirname -- "$as_myself" ||
  1126. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1127. X"$as_myself" : 'X\(//\)[^/]' \| \
  1128. X"$as_myself" : 'X\(//\)$' \| \
  1129. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1130. $as_echo X"$as_myself" |
  1131. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1132. s//\1/
  1133. q
  1134. }
  1135. /^X\(\/\/\)[^/].*/{
  1136. s//\1/
  1137. q
  1138. }
  1139. /^X\(\/\/\)$/{
  1140. s//\1/
  1141. q
  1142. }
  1143. /^X\(\/\).*/{
  1144. s//\1/
  1145. q
  1146. }
  1147. s/.*/./; q'`
  1148. srcdir=$ac_confdir
  1149. if test ! -r "$srcdir/$ac_unique_file"; then
  1150. srcdir=..
  1151. fi
  1152. else
  1153. ac_srcdir_defaulted=no
  1154. fi
  1155. if test ! -r "$srcdir/$ac_unique_file"; then
  1156. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1157. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1158. fi
  1159. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1160. ac_abs_confdir=`(
  1161. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1162. pwd)`
  1163. # When building in place, set srcdir=.
  1164. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1165. srcdir=.
  1166. fi
  1167. # Remove unnecessary trailing slashes from srcdir.
  1168. # Double slashes in file names in object file debugging info
  1169. # mess up M-x gdb in Emacs.
  1170. case $srcdir in
  1171. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1172. esac
  1173. for ac_var in $ac_precious_vars; do
  1174. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1175. eval ac_env_${ac_var}_value=\$${ac_var}
  1176. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1177. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1178. done
  1179. #
  1180. # Report the --help message.
  1181. #
  1182. if test "$ac_init_help" = "long"; then
  1183. # Omit some internal or obsolete options to make the list less imposing.
  1184. # This message is too long to be a string in the A/UX 3.1 sh.
  1185. cat <<_ACEOF
  1186. \`configure' configures Cilk Runtime Library 2.0 to adapt to many kinds of systems.
  1187. Usage: $0 [OPTION]... [VAR=VALUE]...
  1188. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1189. VAR=VALUE. See below for descriptions of some of the useful variables.
  1190. Defaults for the options are specified in brackets.
  1191. Configuration:
  1192. -h, --help display this help and exit
  1193. --help=short display options specific to this package
  1194. --help=recursive display the short help of all the included packages
  1195. -V, --version display version information and exit
  1196. -q, --quiet, --silent do not print \`checking...' messages
  1197. --cache-file=FILE cache test results in FILE [disabled]
  1198. -C, --config-cache alias for \`--cache-file=config.cache'
  1199. -n, --no-create do not create output files
  1200. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1201. Installation directories:
  1202. --prefix=PREFIX install architecture-independent files in PREFIX
  1203. [$ac_default_prefix]
  1204. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1205. [PREFIX]
  1206. By default, \`make install' will install all the files in
  1207. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1208. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1209. for instance \`--prefix=\$HOME'.
  1210. For better control, use the options below.
  1211. Fine tuning of the installation directories:
  1212. --bindir=DIR user executables [EPREFIX/bin]
  1213. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1214. --libexecdir=DIR program executables [EPREFIX/libexec]
  1215. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1216. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1217. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1218. --libdir=DIR object code libraries [EPREFIX/lib]
  1219. --includedir=DIR C header files [PREFIX/include]
  1220. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1221. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1222. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1223. --infodir=DIR info documentation [DATAROOTDIR/info]
  1224. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1225. --mandir=DIR man documentation [DATAROOTDIR/man]
  1226. --docdir=DIR documentation root
  1227. [DATAROOTDIR/doc/cilk-runtime-library]
  1228. --htmldir=DIR html documentation [DOCDIR]
  1229. --dvidir=DIR dvi documentation [DOCDIR]
  1230. --pdfdir=DIR pdf documentation [DOCDIR]
  1231. --psdir=DIR ps documentation [DOCDIR]
  1232. _ACEOF
  1233. cat <<\_ACEOF
  1234. Program names:
  1235. --program-prefix=PREFIX prepend PREFIX to installed program names
  1236. --program-suffix=SUFFIX append SUFFIX to installed program names
  1237. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1238. System types:
  1239. --build=BUILD configure for building on BUILD [guessed]
  1240. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1241. --target=TARGET configure for building compilers for TARGET [HOST]
  1242. _ACEOF
  1243. fi
  1244. if test -n "$ac_init_help"; then
  1245. case $ac_init_help in
  1246. short | recursive ) echo "Configuration of Cilk Runtime Library 2.0:";;
  1247. esac
  1248. cat <<\_ACEOF
  1249. Optional Features:
  1250. --disable-option-checking ignore unrecognized --enable/--with options
  1251. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1252. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1253. --enable-maintainer-mode enable make rules and dependencies not useful
  1254. (and sometimes confusing) to the casual installer
  1255. --enable-multilib build many library versions (default)
  1256. --disable-dependency-tracking speeds up one-time build
  1257. --enable-dependency-tracking do not reject slow dependency extractors
  1258. --enable-version-specific-runtime-libs
  1259. Specify that runtime libraries should be installed
  1260. in a compi ler-specific directory
  1261. --enable-shared[=PKGS] build shared libraries [default=yes]
  1262. --enable-static[=PKGS] build static libraries [default=yes]
  1263. --enable-fast-install[=PKGS]
  1264. optimize for fast installation [default=yes]
  1265. --disable-libtool-lock avoid locking (might break parallel builds)
  1266. Optional Packages:
  1267. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1268. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1269. --with-pic try to use only PIC/non-PIC objects [default=use
  1270. both]
  1271. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1272. Some influential environment variables:
  1273. CC C compiler command
  1274. CFLAGS C compiler flags
  1275. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1276. nonstandard directory <lib dir>
  1277. LIBS libraries to pass to the linker, e.g. -l<library>
  1278. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1279. you have headers in a nonstandard directory <include dir>
  1280. CXX C++ compiler command
  1281. CXXFLAGS C++ compiler flags
  1282. CPP C preprocessor
  1283. CXXCPP C++ preprocessor
  1284. Use these variables to override the choices made by `configure' or to help
  1285. it to find libraries and programs with nonstandard names/locations.
  1286. Report bugs to <cilk@intel.com>.
  1287. _ACEOF
  1288. ac_status=$?
  1289. fi
  1290. if test "$ac_init_help" = "recursive"; then
  1291. # If there are subdirs, report their specific --help.
  1292. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1293. test -d "$ac_dir" ||
  1294. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1295. continue
  1296. ac_builddir=.
  1297. case "$ac_dir" in
  1298. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1299. *)
  1300. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1301. # A ".." for each directory in $ac_dir_suffix.
  1302. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1303. case $ac_top_builddir_sub in
  1304. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1305. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1306. esac ;;
  1307. esac
  1308. ac_abs_top_builddir=$ac_pwd
  1309. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1310. # for backward compatibility:
  1311. ac_top_builddir=$ac_top_build_prefix
  1312. case $srcdir in
  1313. .) # We are building in place.
  1314. ac_srcdir=.
  1315. ac_top_srcdir=$ac_top_builddir_sub
  1316. ac_abs_top_srcdir=$ac_pwd ;;
  1317. [\\/]* | ?:[\\/]* ) # Absolute name.
  1318. ac_srcdir=$srcdir$ac_dir_suffix;
  1319. ac_top_srcdir=$srcdir
  1320. ac_abs_top_srcdir=$srcdir ;;
  1321. *) # Relative name.
  1322. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1323. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1324. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1325. esac
  1326. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1327. cd "$ac_dir" || { ac_status=$?; continue; }
  1328. # Check for guested configure.
  1329. if test -f "$ac_srcdir/configure.gnu"; then
  1330. echo &&
  1331. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1332. elif test -f "$ac_srcdir/configure"; then
  1333. echo &&
  1334. $SHELL "$ac_srcdir/configure" --help=recursive
  1335. else
  1336. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1337. fi || ac_status=$?
  1338. cd "$ac_pwd" || { ac_status=$?; break; }
  1339. done
  1340. fi
  1341. test -n "$ac_init_help" && exit $ac_status
  1342. if $ac_init_version; then
  1343. cat <<\_ACEOF
  1344. Cilk Runtime Library configure 2.0
  1345. generated by GNU Autoconf 2.64
  1346. Copyright (C) 2009 Free Software Foundation, Inc.
  1347. This configure script is free software; the Free Software Foundation
  1348. gives unlimited permission to copy, distribute and modify it.
  1349. _ACEOF
  1350. exit
  1351. fi
  1352. ## ------------------------ ##
  1353. ## Autoconf initialization. ##
  1354. ## ------------------------ ##
  1355. # ac_fn_c_try_compile LINENO
  1356. # --------------------------
  1357. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1358. ac_fn_c_try_compile ()
  1359. {
  1360. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1361. rm -f conftest.$ac_objext
  1362. if { { ac_try="$ac_compile"
  1363. case "(($ac_try" in
  1364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1365. *) ac_try_echo=$ac_try;;
  1366. esac
  1367. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1368. $as_echo "$ac_try_echo"; } >&5
  1369. (eval "$ac_compile") 2>conftest.err
  1370. ac_status=$?
  1371. if test -s conftest.err; then
  1372. grep -v '^ *+' conftest.err >conftest.er1
  1373. cat conftest.er1 >&5
  1374. mv -f conftest.er1 conftest.err
  1375. fi
  1376. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1377. test $ac_status = 0; } && {
  1378. test -z "$ac_c_werror_flag" ||
  1379. test ! -s conftest.err
  1380. } && test -s conftest.$ac_objext; then :
  1381. ac_retval=0
  1382. else
  1383. $as_echo "$as_me: failed program was:" >&5
  1384. sed 's/^/| /' conftest.$ac_ext >&5
  1385. ac_retval=1
  1386. fi
  1387. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1388. return $ac_retval
  1389. } # ac_fn_c_try_compile
  1390. # ac_fn_cxx_try_compile LINENO
  1391. # ----------------------------
  1392. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1393. ac_fn_cxx_try_compile ()
  1394. {
  1395. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1396. rm -f conftest.$ac_objext
  1397. if { { ac_try="$ac_compile"
  1398. case "(($ac_try" in
  1399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1400. *) ac_try_echo=$ac_try;;
  1401. esac
  1402. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1403. $as_echo "$ac_try_echo"; } >&5
  1404. (eval "$ac_compile") 2>conftest.err
  1405. ac_status=$?
  1406. if test -s conftest.err; then
  1407. grep -v '^ *+' conftest.err >conftest.er1
  1408. cat conftest.er1 >&5
  1409. mv -f conftest.er1 conftest.err
  1410. fi
  1411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1412. test $ac_status = 0; } && {
  1413. test -z "$ac_cxx_werror_flag" ||
  1414. test ! -s conftest.err
  1415. } && test -s conftest.$ac_objext; then :
  1416. ac_retval=0
  1417. else
  1418. $as_echo "$as_me: failed program was:" >&5
  1419. sed 's/^/| /' conftest.$ac_ext >&5
  1420. ac_retval=1
  1421. fi
  1422. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1423. return $ac_retval
  1424. } # ac_fn_cxx_try_compile
  1425. # ac_fn_c_try_link LINENO
  1426. # -----------------------
  1427. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1428. ac_fn_c_try_link ()
  1429. {
  1430. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1431. rm -f conftest.$ac_objext conftest$ac_exeext
  1432. if { { ac_try="$ac_link"
  1433. case "(($ac_try" in
  1434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1435. *) ac_try_echo=$ac_try;;
  1436. esac
  1437. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1438. $as_echo "$ac_try_echo"; } >&5
  1439. (eval "$ac_link") 2>conftest.err
  1440. ac_status=$?
  1441. if test -s conftest.err; then
  1442. grep -v '^ *+' conftest.err >conftest.er1
  1443. cat conftest.er1 >&5
  1444. mv -f conftest.er1 conftest.err
  1445. fi
  1446. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1447. test $ac_status = 0; } && {
  1448. test -z "$ac_c_werror_flag" ||
  1449. test ! -s conftest.err
  1450. } && test -s conftest$ac_exeext && {
  1451. test "$cross_compiling" = yes ||
  1452. $as_test_x conftest$ac_exeext
  1453. }; then :
  1454. ac_retval=0
  1455. else
  1456. $as_echo "$as_me: failed program was:" >&5
  1457. sed 's/^/| /' conftest.$ac_ext >&5
  1458. ac_retval=1
  1459. fi
  1460. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1461. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1462. # interfere with the next link command; also delete a directory that is
  1463. # left behind by Apple's compiler. We do this before executing the actions.
  1464. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1465. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1466. return $ac_retval
  1467. } # ac_fn_c_try_link
  1468. # ac_fn_c_try_cpp LINENO
  1469. # ----------------------
  1470. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1471. ac_fn_c_try_cpp ()
  1472. {
  1473. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1474. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1475. case "(($ac_try" in
  1476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1477. *) ac_try_echo=$ac_try;;
  1478. esac
  1479. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1480. $as_echo "$ac_try_echo"; } >&5
  1481. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1482. ac_status=$?
  1483. if test -s conftest.err; then
  1484. grep -v '^ *+' conftest.err >conftest.er1
  1485. cat conftest.er1 >&5
  1486. mv -f conftest.er1 conftest.err
  1487. fi
  1488. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1489. test $ac_status = 0; } >/dev/null && {
  1490. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1491. test ! -s conftest.err
  1492. }; then :
  1493. ac_retval=0
  1494. else
  1495. $as_echo "$as_me: failed program was:" >&5
  1496. sed 's/^/| /' conftest.$ac_ext >&5
  1497. ac_retval=1
  1498. fi
  1499. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1500. return $ac_retval
  1501. } # ac_fn_c_try_cpp
  1502. # ac_fn_c_check_func LINENO FUNC VAR
  1503. # ----------------------------------
  1504. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1505. ac_fn_c_check_func ()
  1506. {
  1507. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1509. $as_echo_n "checking for $2... " >&6; }
  1510. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1511. $as_echo_n "(cached) " >&6
  1512. else
  1513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1514. /* end confdefs.h. */
  1515. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1516. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1517. #define $2 innocuous_$2
  1518. /* System header to define __stub macros and hopefully few prototypes,
  1519. which can conflict with char $2 (); below.
  1520. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1521. <limits.h> exists even on freestanding compilers. */
  1522. #ifdef __STDC__
  1523. # include <limits.h>
  1524. #else
  1525. # include <assert.h>
  1526. #endif
  1527. #undef $2
  1528. /* Override any GCC internal prototype to avoid an error.
  1529. Use char because int might match the return type of a GCC
  1530. builtin and then its argument prototype would still apply. */
  1531. #ifdef __cplusplus
  1532. extern "C"
  1533. #endif
  1534. char $2 ();
  1535. /* The GNU C library defines this for functions which it implements
  1536. to always fail with ENOSYS. Some functions are actually named
  1537. something starting with __ and the normal name is an alias. */
  1538. #if defined __stub_$2 || defined __stub___$2
  1539. choke me
  1540. #endif
  1541. int
  1542. main ()
  1543. {
  1544. return $2 ();
  1545. ;
  1546. return 0;
  1547. }
  1548. _ACEOF
  1549. if ac_fn_c_try_link "$LINENO"; then :
  1550. eval "$3=yes"
  1551. else
  1552. eval "$3=no"
  1553. fi
  1554. rm -f core conftest.err conftest.$ac_objext \
  1555. conftest$ac_exeext conftest.$ac_ext
  1556. fi
  1557. eval ac_res=\$$3
  1558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1559. $as_echo "$ac_res" >&6; }
  1560. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1561. } # ac_fn_c_check_func
  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_header_compile LINENO HEADER VAR INCLUDES
  1602. # -------------------------------------------------------
  1603. # Tests whether HEADER exists and can be compiled using the include files in
  1604. # INCLUDES, setting the cache variable VAR accordingly.
  1605. ac_fn_c_check_header_compile ()
  1606. {
  1607. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1609. $as_echo_n "checking for $2... " >&6; }
  1610. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1611. $as_echo_n "(cached) " >&6
  1612. else
  1613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1614. /* end confdefs.h. */
  1615. $4
  1616. #include <$2>
  1617. _ACEOF
  1618. if ac_fn_c_try_compile "$LINENO"; then :
  1619. eval "$3=yes"
  1620. else
  1621. eval "$3=no"
  1622. fi
  1623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1624. fi
  1625. eval ac_res=\$$3
  1626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1627. $as_echo "$ac_res" >&6; }
  1628. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1629. } # ac_fn_c_check_header_compile
  1630. # ac_fn_cxx_try_cpp LINENO
  1631. # ------------------------
  1632. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1633. ac_fn_cxx_try_cpp ()
  1634. {
  1635. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1636. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1637. case "(($ac_try" in
  1638. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1639. *) ac_try_echo=$ac_try;;
  1640. esac
  1641. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1642. $as_echo "$ac_try_echo"; } >&5
  1643. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1644. ac_status=$?
  1645. if test -s conftest.err; then
  1646. grep -v '^ *+' conftest.err >conftest.er1
  1647. cat conftest.er1 >&5
  1648. mv -f conftest.er1 conftest.err
  1649. fi
  1650. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1651. test $ac_status = 0; } >/dev/null && {
  1652. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1653. test ! -s conftest.err
  1654. }; then :
  1655. ac_retval=0
  1656. else
  1657. $as_echo "$as_me: failed program was:" >&5
  1658. sed 's/^/| /' conftest.$ac_ext >&5
  1659. ac_retval=1
  1660. fi
  1661. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1662. return $ac_retval
  1663. } # ac_fn_cxx_try_cpp
  1664. # ac_fn_cxx_try_link LINENO
  1665. # -------------------------
  1666. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1667. ac_fn_cxx_try_link ()
  1668. {
  1669. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1670. rm -f conftest.$ac_objext conftest$ac_exeext
  1671. if { { ac_try="$ac_link"
  1672. case "(($ac_try" in
  1673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1674. *) ac_try_echo=$ac_try;;
  1675. esac
  1676. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1677. $as_echo "$ac_try_echo"; } >&5
  1678. (eval "$ac_link") 2>conftest.err
  1679. ac_status=$?
  1680. if test -s conftest.err; then
  1681. grep -v '^ *+' conftest.err >conftest.er1
  1682. cat conftest.er1 >&5
  1683. mv -f conftest.er1 conftest.err
  1684. fi
  1685. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1686. test $ac_status = 0; } && {
  1687. test -z "$ac_cxx_werror_flag" ||
  1688. test ! -s conftest.err
  1689. } && test -s conftest$ac_exeext && {
  1690. test "$cross_compiling" = yes ||
  1691. $as_test_x conftest$ac_exeext
  1692. }; then :
  1693. ac_retval=0
  1694. else
  1695. $as_echo "$as_me: failed program was:" >&5
  1696. sed 's/^/| /' conftest.$ac_ext >&5
  1697. ac_retval=1
  1698. fi
  1699. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1700. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1701. # interfere with the next link command; also delete a directory that is
  1702. # left behind by Apple's compiler. We do this before executing the actions.
  1703. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1704. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1705. return $ac_retval
  1706. } # ac_fn_cxx_try_link
  1707. cat >config.log <<_ACEOF
  1708. This file contains any messages produced by compilers while
  1709. running configure, to aid debugging if configure makes a mistake.
  1710. It was created by Cilk Runtime Library $as_me 2.0, which was
  1711. generated by GNU Autoconf 2.64. Invocation command line was
  1712. $ $0 $@
  1713. _ACEOF
  1714. exec 5>>config.log
  1715. {
  1716. cat <<_ASUNAME
  1717. ## --------- ##
  1718. ## Platform. ##
  1719. ## --------- ##
  1720. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1721. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1722. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1723. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1724. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1725. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1726. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1727. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1728. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1729. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1730. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1731. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1732. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1733. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1734. _ASUNAME
  1735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1736. for as_dir in $PATH
  1737. do
  1738. IFS=$as_save_IFS
  1739. test -z "$as_dir" && as_dir=.
  1740. $as_echo "PATH: $as_dir"
  1741. done
  1742. IFS=$as_save_IFS
  1743. } >&5
  1744. cat >&5 <<_ACEOF
  1745. ## ----------- ##
  1746. ## Core tests. ##
  1747. ## ----------- ##
  1748. _ACEOF
  1749. # Keep a trace of the command line.
  1750. # Strip out --no-create and --no-recursion so they do not pile up.
  1751. # Strip out --silent because we don't want to record it for future runs.
  1752. # Also quote any args containing shell meta-characters.
  1753. # Make two passes to allow for proper duplicate-argument suppression.
  1754. ac_configure_args=
  1755. ac_configure_args0=
  1756. ac_configure_args1=
  1757. ac_must_keep_next=false
  1758. for ac_pass in 1 2
  1759. do
  1760. for ac_arg
  1761. do
  1762. case $ac_arg in
  1763. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1764. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1765. | -silent | --silent | --silen | --sile | --sil)
  1766. continue ;;
  1767. *\'*)
  1768. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1769. esac
  1770. case $ac_pass in
  1771. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1772. 2)
  1773. as_fn_append ac_configure_args1 " '$ac_arg'"
  1774. if test $ac_must_keep_next = true; then
  1775. ac_must_keep_next=false # Got value, back to normal.
  1776. else
  1777. case $ac_arg in
  1778. *=* | --config-cache | -C | -disable-* | --disable-* \
  1779. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1780. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1781. | -with-* | --with-* | -without-* | --without-* | --x)
  1782. case "$ac_configure_args0 " in
  1783. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1784. esac
  1785. ;;
  1786. -* ) ac_must_keep_next=true ;;
  1787. esac
  1788. fi
  1789. as_fn_append ac_configure_args " '$ac_arg'"
  1790. ;;
  1791. esac
  1792. done
  1793. done
  1794. { ac_configure_args0=; unset ac_configure_args0;}
  1795. { ac_configure_args1=; unset ac_configure_args1;}
  1796. # When interrupted or exit'd, cleanup temporary files, and complete
  1797. # config.log. We remove comments because anyway the quotes in there
  1798. # would cause problems or look ugly.
  1799. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1800. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1801. trap 'exit_status=$?
  1802. # Save into config.log some information that might help in debugging.
  1803. {
  1804. echo
  1805. cat <<\_ASBOX
  1806. ## ---------------- ##
  1807. ## Cache variables. ##
  1808. ## ---------------- ##
  1809. _ASBOX
  1810. echo
  1811. # The following way of writing the cache mishandles newlines in values,
  1812. (
  1813. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1814. eval ac_val=\$$ac_var
  1815. case $ac_val in #(
  1816. *${as_nl}*)
  1817. case $ac_var in #(
  1818. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1819. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1820. esac
  1821. case $ac_var in #(
  1822. _ | IFS | as_nl) ;; #(
  1823. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1824. *) { eval $ac_var=; unset $ac_var;} ;;
  1825. esac ;;
  1826. esac
  1827. done
  1828. (set) 2>&1 |
  1829. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1830. *${as_nl}ac_space=\ *)
  1831. sed -n \
  1832. "s/'\''/'\''\\\\'\'''\''/g;
  1833. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1834. ;; #(
  1835. *)
  1836. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1837. ;;
  1838. esac |
  1839. sort
  1840. )
  1841. echo
  1842. cat <<\_ASBOX
  1843. ## ----------------- ##
  1844. ## Output variables. ##
  1845. ## ----------------- ##
  1846. _ASBOX
  1847. echo
  1848. for ac_var in $ac_subst_vars
  1849. do
  1850. eval ac_val=\$$ac_var
  1851. case $ac_val in
  1852. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1853. esac
  1854. $as_echo "$ac_var='\''$ac_val'\''"
  1855. done | sort
  1856. echo
  1857. if test -n "$ac_subst_files"; then
  1858. cat <<\_ASBOX
  1859. ## ------------------- ##
  1860. ## File substitutions. ##
  1861. ## ------------------- ##
  1862. _ASBOX
  1863. echo
  1864. for ac_var in $ac_subst_files
  1865. do
  1866. eval ac_val=\$$ac_var
  1867. case $ac_val in
  1868. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1869. esac
  1870. $as_echo "$ac_var='\''$ac_val'\''"
  1871. done | sort
  1872. echo
  1873. fi
  1874. if test -s confdefs.h; then
  1875. cat <<\_ASBOX
  1876. ## ----------- ##
  1877. ## confdefs.h. ##
  1878. ## ----------- ##
  1879. _ASBOX
  1880. echo
  1881. cat confdefs.h
  1882. echo
  1883. fi
  1884. test "$ac_signal" != 0 &&
  1885. $as_echo "$as_me: caught signal $ac_signal"
  1886. $as_echo "$as_me: exit $exit_status"
  1887. } >&5
  1888. rm -f core *.core core.conftest.* &&
  1889. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1890. exit $exit_status
  1891. ' 0
  1892. for ac_signal in 1 2 13 15; do
  1893. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1894. done
  1895. ac_signal=0
  1896. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1897. rm -f -r conftest* confdefs.h
  1898. $as_echo "/* confdefs.h */" > confdefs.h
  1899. # Predefined preprocessor variables.
  1900. cat >>confdefs.h <<_ACEOF
  1901. #define PACKAGE_NAME "$PACKAGE_NAME"
  1902. _ACEOF
  1903. cat >>confdefs.h <<_ACEOF
  1904. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1905. _ACEOF
  1906. cat >>confdefs.h <<_ACEOF
  1907. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1908. _ACEOF
  1909. cat >>confdefs.h <<_ACEOF
  1910. #define PACKAGE_STRING "$PACKAGE_STRING"
  1911. _ACEOF
  1912. cat >>confdefs.h <<_ACEOF
  1913. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1914. _ACEOF
  1915. cat >>confdefs.h <<_ACEOF
  1916. #define PACKAGE_URL "$PACKAGE_URL"
  1917. _ACEOF
  1918. # Let the site file select an alternate cache file if it wants to.
  1919. # Prefer an explicitly selected file to automatically selected ones.
  1920. ac_site_file1=NONE
  1921. ac_site_file2=NONE
  1922. if test -n "$CONFIG_SITE"; then
  1923. ac_site_file1=$CONFIG_SITE
  1924. elif test "x$prefix" != xNONE; then
  1925. ac_site_file1=$prefix/share/config.site
  1926. ac_site_file2=$prefix/etc/config.site
  1927. else
  1928. ac_site_file1=$ac_default_prefix/share/config.site
  1929. ac_site_file2=$ac_default_prefix/etc/config.site
  1930. fi
  1931. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1932. do
  1933. test "x$ac_site_file" = xNONE && continue
  1934. if test -r "$ac_site_file"; then
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1936. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1937. sed 's/^/| /' "$ac_site_file" >&5
  1938. . "$ac_site_file"
  1939. fi
  1940. done
  1941. if test -r "$cache_file"; then
  1942. # Some versions of bash will fail to source /dev/null (special
  1943. # files actually), so we avoid doing that.
  1944. if test -f "$cache_file"; then
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1946. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1947. case $cache_file in
  1948. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1949. *) . "./$cache_file";;
  1950. esac
  1951. fi
  1952. else
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1954. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1955. >$cache_file
  1956. fi
  1957. # Check that the precious variables saved in the cache have kept the same
  1958. # value.
  1959. ac_cache_corrupted=false
  1960. for ac_var in $ac_precious_vars; do
  1961. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1962. eval ac_new_set=\$ac_env_${ac_var}_set
  1963. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1964. eval ac_new_val=\$ac_env_${ac_var}_value
  1965. case $ac_old_set,$ac_new_set in
  1966. set,)
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1968. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1969. ac_cache_corrupted=: ;;
  1970. ,set)
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1972. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1973. ac_cache_corrupted=: ;;
  1974. ,);;
  1975. *)
  1976. if test "x$ac_old_val" != "x$ac_new_val"; then
  1977. # differences in whitespace do not lead to failure.
  1978. ac_old_val_w=`echo x $ac_old_val`
  1979. ac_new_val_w=`echo x $ac_new_val`
  1980. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1981. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1982. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1983. ac_cache_corrupted=:
  1984. else
  1985. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1986. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1987. eval $ac_var=\$ac_old_val
  1988. fi
  1989. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1990. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1992. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1993. fi;;
  1994. esac
  1995. # Pass precious variables to config.status.
  1996. if test "$ac_new_set" = set; then
  1997. case $ac_new_val in
  1998. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1999. *) ac_arg=$ac_var=$ac_new_val ;;
  2000. esac
  2001. case " $ac_configure_args " in
  2002. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2003. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2004. esac
  2005. fi
  2006. done
  2007. if $ac_cache_corrupted; then
  2008. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2009. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2011. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2012. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2013. fi
  2014. ## -------------------- ##
  2015. ## Main body of script. ##
  2016. ## -------------------- ##
  2017. ac_ext=c
  2018. ac_cpp='$CPP $CPPFLAGS'
  2019. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2020. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2021. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2022. # Needed to define ${target}. Needs to be very early to avoid annoying
  2023. # warning about calling AC_ARG_PROGRAM before AC_CANONICAL_SYSTEM
  2024. ac_aux_dir=
  2025. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2026. for ac_t in install-sh install.sh shtool; do
  2027. if test -f "$ac_dir/$ac_t"; then
  2028. ac_aux_dir=$ac_dir
  2029. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2030. break 2
  2031. fi
  2032. done
  2033. done
  2034. if test -z "$ac_aux_dir"; then
  2035. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2036. fi
  2037. # These three variables are undocumented and unsupported,
  2038. # and are intended to be withdrawn in a future Autoconf release.
  2039. # They can cause serious problems if a builder's source tree is in a directory
  2040. # whose full name contains unusual characters.
  2041. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2042. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2043. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2044. # Make sure we can run config.sub.
  2045. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2046. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2048. $as_echo_n "checking build system type... " >&6; }
  2049. if test "${ac_cv_build+set}" = set; then :
  2050. $as_echo_n "(cached) " >&6
  2051. else
  2052. ac_build_alias=$build_alias
  2053. test "x$ac_build_alias" = x &&
  2054. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2055. test "x$ac_build_alias" = x &&
  2056. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2057. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2058. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2059. fi
  2060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2061. $as_echo "$ac_cv_build" >&6; }
  2062. case $ac_cv_build in
  2063. *-*-*) ;;
  2064. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2065. esac
  2066. build=$ac_cv_build
  2067. ac_save_IFS=$IFS; IFS='-'
  2068. set x $ac_cv_build
  2069. shift
  2070. build_cpu=$1
  2071. build_vendor=$2
  2072. shift; shift
  2073. # Remember, the first character of IFS is used to create $*,
  2074. # except with old shells:
  2075. build_os=$*
  2076. IFS=$ac_save_IFS
  2077. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2079. $as_echo_n "checking host system type... " >&6; }
  2080. if test "${ac_cv_host+set}" = set; then :
  2081. $as_echo_n "(cached) " >&6
  2082. else
  2083. if test "x$host_alias" = x; then
  2084. ac_cv_host=$ac_cv_build
  2085. else
  2086. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2087. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2088. fi
  2089. fi
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2091. $as_echo "$ac_cv_host" >&6; }
  2092. case $ac_cv_host in
  2093. *-*-*) ;;
  2094. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2095. esac
  2096. host=$ac_cv_host
  2097. ac_save_IFS=$IFS; IFS='-'
  2098. set x $ac_cv_host
  2099. shift
  2100. host_cpu=$1
  2101. host_vendor=$2
  2102. shift; shift
  2103. # Remember, the first character of IFS is used to create $*,
  2104. # except with old shells:
  2105. host_os=$*
  2106. IFS=$ac_save_IFS
  2107. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2109. $as_echo_n "checking target system type... " >&6; }
  2110. if test "${ac_cv_target+set}" = set; then :
  2111. $as_echo_n "(cached) " >&6
  2112. else
  2113. if test "x$target_alias" = x; then
  2114. ac_cv_target=$ac_cv_host
  2115. else
  2116. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2117. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2118. fi
  2119. fi
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2121. $as_echo "$ac_cv_target" >&6; }
  2122. case $ac_cv_target in
  2123. *-*-*) ;;
  2124. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2125. esac
  2126. target=$ac_cv_target
  2127. ac_save_IFS=$IFS; IFS='-'
  2128. set x $ac_cv_target
  2129. shift
  2130. target_cpu=$1
  2131. target_vendor=$2
  2132. shift; shift
  2133. # Remember, the first character of IFS is used to create $*,
  2134. # except with old shells:
  2135. target_os=$*
  2136. IFS=$ac_save_IFS
  2137. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2138. # The aliases save the names the user supplied, while $host etc.
  2139. # will get canonicalized.
  2140. test -n "$target_alias" &&
  2141. test "$program_prefix$program_suffix$program_transform_name" = \
  2142. NONENONEs,x,x, &&
  2143. program_prefix=${target_alias}-
  2144. target_alias=${target_alias-$host_alias}
  2145. am__api_version='1.11'
  2146. # Find a good install program. We prefer a C program (faster),
  2147. # so one script is as good as another. But avoid the broken or
  2148. # incompatible versions:
  2149. # SysV /etc/install, /usr/sbin/install
  2150. # SunOS /usr/etc/install
  2151. # IRIX /sbin/install
  2152. # AIX /bin/install
  2153. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2154. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2155. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2156. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2157. # OS/2's system install, which has a completely different semantic
  2158. # ./install, which can be erroneously created by make from ./install.sh.
  2159. # Reject install programs that cannot install multiple files.
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2161. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2162. if test -z "$INSTALL"; then
  2163. if test "${ac_cv_path_install+set}" = set; then :
  2164. $as_echo_n "(cached) " >&6
  2165. else
  2166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2167. for as_dir in $PATH
  2168. do
  2169. IFS=$as_save_IFS
  2170. test -z "$as_dir" && as_dir=.
  2171. # Account for people who put trailing slashes in PATH elements.
  2172. case $as_dir/ in #((
  2173. ./ | .// | /[cC]/* | \
  2174. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2175. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2176. /usr/ucb/* ) ;;
  2177. *)
  2178. # OSF1 and SCO ODT 3.0 have their own names for install.
  2179. # Don't use installbsd from OSF since it installs stuff as root
  2180. # by default.
  2181. for ac_prog in ginstall scoinst install; do
  2182. for ac_exec_ext in '' $ac_executable_extensions; do
  2183. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2184. if test $ac_prog = install &&
  2185. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2186. # AIX install. It has an incompatible calling convention.
  2187. :
  2188. elif test $ac_prog = install &&
  2189. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2190. # program-specific install script used by HP pwplus--don't use.
  2191. :
  2192. else
  2193. rm -rf conftest.one conftest.two conftest.dir
  2194. echo one > conftest.one
  2195. echo two > conftest.two
  2196. mkdir conftest.dir
  2197. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2198. test -s conftest.one && test -s conftest.two &&
  2199. test -s conftest.dir/conftest.one &&
  2200. test -s conftest.dir/conftest.two
  2201. then
  2202. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2203. break 3
  2204. fi
  2205. fi
  2206. fi
  2207. done
  2208. done
  2209. ;;
  2210. esac
  2211. done
  2212. IFS=$as_save_IFS
  2213. rm -rf conftest.one conftest.two conftest.dir
  2214. fi
  2215. if test "${ac_cv_path_install+set}" = set; then
  2216. INSTALL=$ac_cv_path_install
  2217. else
  2218. # As a last resort, use the slow shell script. Don't cache a
  2219. # value for INSTALL within a source directory, because that will
  2220. # break other packages using the cache if that directory is
  2221. # removed, or if the value is a relative name.
  2222. INSTALL=$ac_install_sh
  2223. fi
  2224. fi
  2225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2226. $as_echo "$INSTALL" >&6; }
  2227. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2228. # It thinks the first close brace ends the variable substitution.
  2229. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2230. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2231. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2233. $as_echo_n "checking whether build environment is sane... " >&6; }
  2234. # Just in case
  2235. sleep 1
  2236. echo timestamp > conftest.file
  2237. # Reject unsafe characters in $srcdir or the absolute working directory
  2238. # name. Accept space and tab only in the latter.
  2239. am_lf='
  2240. '
  2241. case `pwd` in
  2242. *[\\\"\#\$\&\'\`$am_lf]*)
  2243. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2244. esac
  2245. case $srcdir in
  2246. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2247. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2248. esac
  2249. # Do `set' in a subshell so we don't clobber the current shell's
  2250. # arguments. Must try -L first in case configure is actually a
  2251. # symlink; some systems play weird games with the mod time of symlinks
  2252. # (eg FreeBSD returns the mod time of the symlink's containing
  2253. # directory).
  2254. if (
  2255. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2256. if test "$*" = "X"; then
  2257. # -L didn't work.
  2258. set X `ls -t "$srcdir/configure" conftest.file`
  2259. fi
  2260. rm -f conftest.file
  2261. if test "$*" != "X $srcdir/configure conftest.file" \
  2262. && test "$*" != "X conftest.file $srcdir/configure"; then
  2263. # If neither matched, then we have a broken ls. This can happen
  2264. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2265. # broken ls alias from the environment. This has actually
  2266. # happened. Such a system could not be considered "sane".
  2267. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2268. alias in your environment" "$LINENO" 5
  2269. fi
  2270. test "$2" = conftest.file
  2271. )
  2272. then
  2273. # Ok.
  2274. :
  2275. else
  2276. as_fn_error "newly created file is older than distributed files!
  2277. Check your system clock" "$LINENO" 5
  2278. fi
  2279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2280. $as_echo "yes" >&6; }
  2281. test "$program_prefix" != NONE &&
  2282. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2283. # Use a double $ so make ignores it.
  2284. test "$program_suffix" != NONE &&
  2285. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2286. # Double any \ or $.
  2287. # By default was `s,x,x', remove it if useless.
  2288. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2289. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2290. # expand $ac_aux_dir to an absolute path
  2291. am_aux_dir=`cd $ac_aux_dir && pwd`
  2292. if test x"${MISSING+set}" != xset; then
  2293. case $am_aux_dir in
  2294. *\ * | *\ *)
  2295. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2296. *)
  2297. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2298. esac
  2299. fi
  2300. # Use eval to expand $SHELL
  2301. if eval "$MISSING --run true"; then
  2302. am_missing_run="$MISSING --run "
  2303. else
  2304. am_missing_run=
  2305. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2306. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2307. fi
  2308. if test x"${install_sh}" != xset; then
  2309. case $am_aux_dir in
  2310. *\ * | *\ *)
  2311. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2312. *)
  2313. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2314. esac
  2315. fi
  2316. # Installed binaries are usually stripped using `strip' when the user
  2317. # run `make install-strip'. However `strip' might not be the right
  2318. # tool to use in cross-compilation environments, therefore Automake
  2319. # will honor the `STRIP' environment variable to overrule this program.
  2320. if test "$cross_compiling" != no; then
  2321. if test -n "$ac_tool_prefix"; then
  2322. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2323. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2325. $as_echo_n "checking for $ac_word... " >&6; }
  2326. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2327. $as_echo_n "(cached) " >&6
  2328. else
  2329. if test -n "$STRIP"; then
  2330. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2331. else
  2332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2333. for as_dir in $PATH
  2334. do
  2335. IFS=$as_save_IFS
  2336. test -z "$as_dir" && as_dir=.
  2337. for ac_exec_ext in '' $ac_executable_extensions; do
  2338. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2339. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2340. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2341. break 2
  2342. fi
  2343. done
  2344. done
  2345. IFS=$as_save_IFS
  2346. fi
  2347. fi
  2348. STRIP=$ac_cv_prog_STRIP
  2349. if test -n "$STRIP"; then
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2351. $as_echo "$STRIP" >&6; }
  2352. else
  2353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2354. $as_echo "no" >&6; }
  2355. fi
  2356. fi
  2357. if test -z "$ac_cv_prog_STRIP"; then
  2358. ac_ct_STRIP=$STRIP
  2359. # Extract the first word of "strip", so it can be a program name with args.
  2360. set dummy strip; ac_word=$2
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2362. $as_echo_n "checking for $ac_word... " >&6; }
  2363. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2364. $as_echo_n "(cached) " >&6
  2365. else
  2366. if test -n "$ac_ct_STRIP"; then
  2367. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2368. else
  2369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2370. for as_dir in $PATH
  2371. do
  2372. IFS=$as_save_IFS
  2373. test -z "$as_dir" && as_dir=.
  2374. for ac_exec_ext in '' $ac_executable_extensions; do
  2375. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2376. ac_cv_prog_ac_ct_STRIP="strip"
  2377. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2378. break 2
  2379. fi
  2380. done
  2381. done
  2382. IFS=$as_save_IFS
  2383. fi
  2384. fi
  2385. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2386. if test -n "$ac_ct_STRIP"; then
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2388. $as_echo "$ac_ct_STRIP" >&6; }
  2389. else
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2391. $as_echo "no" >&6; }
  2392. fi
  2393. if test "x$ac_ct_STRIP" = x; then
  2394. STRIP=":"
  2395. else
  2396. case $cross_compiling:$ac_tool_warned in
  2397. yes:)
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2399. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2400. ac_tool_warned=yes ;;
  2401. esac
  2402. STRIP=$ac_ct_STRIP
  2403. fi
  2404. else
  2405. STRIP="$ac_cv_prog_STRIP"
  2406. fi
  2407. fi
  2408. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2410. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2411. if test -z "$MKDIR_P"; then
  2412. if test "${ac_cv_path_mkdir+set}" = set; then :
  2413. $as_echo_n "(cached) " >&6
  2414. else
  2415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2416. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2417. do
  2418. IFS=$as_save_IFS
  2419. test -z "$as_dir" && as_dir=.
  2420. for ac_prog in mkdir gmkdir; do
  2421. for ac_exec_ext in '' $ac_executable_extensions; do
  2422. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2423. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2424. 'mkdir (GNU coreutils) '* | \
  2425. 'mkdir (coreutils) '* | \
  2426. 'mkdir (fileutils) '4.1*)
  2427. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2428. break 3;;
  2429. esac
  2430. done
  2431. done
  2432. done
  2433. IFS=$as_save_IFS
  2434. fi
  2435. if test "${ac_cv_path_mkdir+set}" = set; then
  2436. MKDIR_P="$ac_cv_path_mkdir -p"
  2437. else
  2438. # As a last resort, use the slow shell script. Don't cache a
  2439. # value for MKDIR_P within a source directory, because that will
  2440. # break other packages using the cache if that directory is
  2441. # removed, or if the value is a relative name.
  2442. test -d ./--version && rmdir ./--version
  2443. MKDIR_P="$ac_install_sh -d"
  2444. fi
  2445. fi
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2447. $as_echo "$MKDIR_P" >&6; }
  2448. mkdir_p="$MKDIR_P"
  2449. case $mkdir_p in
  2450. [\\/$]* | ?:[\\/]*) ;;
  2451. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2452. esac
  2453. for ac_prog in gawk mawk nawk awk
  2454. do
  2455. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2456. set dummy $ac_prog; ac_word=$2
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2458. $as_echo_n "checking for $ac_word... " >&6; }
  2459. if test "${ac_cv_prog_AWK+set}" = set; then :
  2460. $as_echo_n "(cached) " >&6
  2461. else
  2462. if test -n "$AWK"; then
  2463. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2464. else
  2465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2466. for as_dir in $PATH
  2467. do
  2468. IFS=$as_save_IFS
  2469. test -z "$as_dir" && as_dir=.
  2470. for ac_exec_ext in '' $ac_executable_extensions; do
  2471. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2472. ac_cv_prog_AWK="$ac_prog"
  2473. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2474. break 2
  2475. fi
  2476. done
  2477. done
  2478. IFS=$as_save_IFS
  2479. fi
  2480. fi
  2481. AWK=$ac_cv_prog_AWK
  2482. if test -n "$AWK"; then
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2484. $as_echo "$AWK" >&6; }
  2485. else
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2487. $as_echo "no" >&6; }
  2488. fi
  2489. test -n "$AWK" && break
  2490. done
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2492. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2493. set x ${MAKE-make}
  2494. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2495. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2496. $as_echo_n "(cached) " >&6
  2497. else
  2498. cat >conftest.make <<\_ACEOF
  2499. SHELL = /bin/sh
  2500. all:
  2501. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2502. _ACEOF
  2503. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2504. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2505. *@@@%%%=?*=@@@%%%*)
  2506. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2507. *)
  2508. eval ac_cv_prog_make_${ac_make}_set=no;;
  2509. esac
  2510. rm -f conftest.make
  2511. fi
  2512. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2514. $as_echo "yes" >&6; }
  2515. SET_MAKE=
  2516. else
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2518. $as_echo "no" >&6; }
  2519. SET_MAKE="MAKE=${MAKE-make}"
  2520. fi
  2521. rm -rf .tst 2>/dev/null
  2522. mkdir .tst 2>/dev/null
  2523. if test -d .tst; then
  2524. am__leading_dot=.
  2525. else
  2526. am__leading_dot=_
  2527. fi
  2528. rmdir .tst 2>/dev/null
  2529. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2530. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2531. # is not polluted with repeated "-I."
  2532. am__isrc=' -I$(srcdir)'
  2533. # test to see if srcdir already configured
  2534. if test -f $srcdir/config.status; then
  2535. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2536. fi
  2537. fi
  2538. # test whether we have cygpath
  2539. if test -z "$CYGPATH_W"; then
  2540. if (cygpath --version) >/dev/null 2>/dev/null; then
  2541. CYGPATH_W='cygpath -w'
  2542. else
  2543. CYGPATH_W=echo
  2544. fi
  2545. fi
  2546. # Define the identity of the package.
  2547. PACKAGE='cilk-runtime-library'
  2548. VERSION='2.0'
  2549. cat >>confdefs.h <<_ACEOF
  2550. #define PACKAGE "$PACKAGE"
  2551. _ACEOF
  2552. cat >>confdefs.h <<_ACEOF
  2553. #define VERSION "$VERSION"
  2554. _ACEOF
  2555. # Some tools Automake needs.
  2556. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2557. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2558. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2559. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2560. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2561. # We need awk for the "check" target. The system "awk" is bad on
  2562. # some platforms.
  2563. # Always define AMTAR for backward compatibility.
  2564. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2565. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2567. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2568. # Check whether --enable-maintainer-mode was given.
  2569. if test "${enable_maintainer_mode+set}" = set; then :
  2570. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2571. else
  2572. USE_MAINTAINER_MODE=no
  2573. fi
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2575. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2576. if test $USE_MAINTAINER_MODE = yes; then
  2577. MAINTAINER_MODE_TRUE=
  2578. MAINTAINER_MODE_FALSE='#'
  2579. else
  2580. MAINTAINER_MODE_TRUE='#'
  2581. MAINTAINER_MODE_FALSE=
  2582. fi
  2583. MAINT=$MAINTAINER_MODE_TRUE
  2584. # Default to --enable-multilib
  2585. # Check whether --enable-multilib was given.
  2586. if test "${enable_multilib+set}" = set; then :
  2587. enableval=$enable_multilib; case "$enableval" in
  2588. yes) multilib=yes ;;
  2589. no) multilib=no ;;
  2590. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2591. esac
  2592. else
  2593. multilib=yes
  2594. fi
  2595. # We may get other options which we leave undocumented:
  2596. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2597. # See config-ml.in if you want the gory details.
  2598. if test "$srcdir" = "."; then
  2599. if test "$with_target_subdir" != "."; then
  2600. multi_basedir="$srcdir/$with_multisrctop../.."
  2601. else
  2602. multi_basedir="$srcdir/$with_multisrctop.."
  2603. fi
  2604. else
  2605. multi_basedir="$srcdir/.."
  2606. fi
  2607. # Even if the default multilib is not a cross compilation,
  2608. # it may be that some of the other multilibs are.
  2609. if test $cross_compiling = no && test $multilib = yes \
  2610. && test "x${with_multisubdir}" != x ; then
  2611. cross_compiling=maybe
  2612. fi
  2613. ac_config_commands="$ac_config_commands default-1"
  2614. # Build a DLL on Windows
  2615. # AC_LIBTOOL_WIN32_DLL
  2616. ac_ext=c
  2617. ac_cpp='$CPP $CPPFLAGS'
  2618. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2619. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2620. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2621. if test -n "$ac_tool_prefix"; then
  2622. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2623. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2625. $as_echo_n "checking for $ac_word... " >&6; }
  2626. if test "${ac_cv_prog_CC+set}" = set; then :
  2627. $as_echo_n "(cached) " >&6
  2628. else
  2629. if test -n "$CC"; then
  2630. ac_cv_prog_CC="$CC" # Let the user override the test.
  2631. else
  2632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2633. for as_dir in $PATH
  2634. do
  2635. IFS=$as_save_IFS
  2636. test -z "$as_dir" && as_dir=.
  2637. for ac_exec_ext in '' $ac_executable_extensions; do
  2638. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2639. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2641. break 2
  2642. fi
  2643. done
  2644. done
  2645. IFS=$as_save_IFS
  2646. fi
  2647. fi
  2648. CC=$ac_cv_prog_CC
  2649. if test -n "$CC"; then
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2651. $as_echo "$CC" >&6; }
  2652. else
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2654. $as_echo "no" >&6; }
  2655. fi
  2656. fi
  2657. if test -z "$ac_cv_prog_CC"; then
  2658. ac_ct_CC=$CC
  2659. # Extract the first word of "gcc", so it can be a program name with args.
  2660. set dummy gcc; ac_word=$2
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2662. $as_echo_n "checking for $ac_word... " >&6; }
  2663. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2664. $as_echo_n "(cached) " >&6
  2665. else
  2666. if test -n "$ac_ct_CC"; then
  2667. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2668. else
  2669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2670. for as_dir in $PATH
  2671. do
  2672. IFS=$as_save_IFS
  2673. test -z "$as_dir" && as_dir=.
  2674. for ac_exec_ext in '' $ac_executable_extensions; do
  2675. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2676. ac_cv_prog_ac_ct_CC="gcc"
  2677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2678. break 2
  2679. fi
  2680. done
  2681. done
  2682. IFS=$as_save_IFS
  2683. fi
  2684. fi
  2685. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2686. if test -n "$ac_ct_CC"; then
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2688. $as_echo "$ac_ct_CC" >&6; }
  2689. else
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2691. $as_echo "no" >&6; }
  2692. fi
  2693. if test "x$ac_ct_CC" = x; then
  2694. CC=""
  2695. else
  2696. case $cross_compiling:$ac_tool_warned in
  2697. yes:)
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2699. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2700. ac_tool_warned=yes ;;
  2701. esac
  2702. CC=$ac_ct_CC
  2703. fi
  2704. else
  2705. CC="$ac_cv_prog_CC"
  2706. fi
  2707. if test -z "$CC"; then
  2708. if test -n "$ac_tool_prefix"; then
  2709. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2710. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2712. $as_echo_n "checking for $ac_word... " >&6; }
  2713. if test "${ac_cv_prog_CC+set}" = set; then :
  2714. $as_echo_n "(cached) " >&6
  2715. else
  2716. if test -n "$CC"; then
  2717. ac_cv_prog_CC="$CC" # Let the user override the test.
  2718. else
  2719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2720. for as_dir in $PATH
  2721. do
  2722. IFS=$as_save_IFS
  2723. test -z "$as_dir" && as_dir=.
  2724. for ac_exec_ext in '' $ac_executable_extensions; do
  2725. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2726. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2728. break 2
  2729. fi
  2730. done
  2731. done
  2732. IFS=$as_save_IFS
  2733. fi
  2734. fi
  2735. CC=$ac_cv_prog_CC
  2736. if test -n "$CC"; then
  2737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2738. $as_echo "$CC" >&6; }
  2739. else
  2740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2741. $as_echo "no" >&6; }
  2742. fi
  2743. fi
  2744. fi
  2745. if test -z "$CC"; then
  2746. # Extract the first word of "cc", so it can be a program name with args.
  2747. set dummy cc; ac_word=$2
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2749. $as_echo_n "checking for $ac_word... " >&6; }
  2750. if test "${ac_cv_prog_CC+set}" = set; then :
  2751. $as_echo_n "(cached) " >&6
  2752. else
  2753. if test -n "$CC"; then
  2754. ac_cv_prog_CC="$CC" # Let the user override the test.
  2755. else
  2756. ac_prog_rejected=no
  2757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2758. for as_dir in $PATH
  2759. do
  2760. IFS=$as_save_IFS
  2761. test -z "$as_dir" && as_dir=.
  2762. for ac_exec_ext in '' $ac_executable_extensions; do
  2763. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2764. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2765. ac_prog_rejected=yes
  2766. continue
  2767. fi
  2768. ac_cv_prog_CC="cc"
  2769. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2770. break 2
  2771. fi
  2772. done
  2773. done
  2774. IFS=$as_save_IFS
  2775. if test $ac_prog_rejected = yes; then
  2776. # We found a bogon in the path, so make sure we never use it.
  2777. set dummy $ac_cv_prog_CC
  2778. shift
  2779. if test $# != 0; then
  2780. # We chose a different compiler from the bogus one.
  2781. # However, it has the same basename, so the bogon will be chosen
  2782. # first if we set CC to just the basename; use the full file name.
  2783. shift
  2784. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2785. fi
  2786. fi
  2787. fi
  2788. fi
  2789. CC=$ac_cv_prog_CC
  2790. if test -n "$CC"; then
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2792. $as_echo "$CC" >&6; }
  2793. else
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2795. $as_echo "no" >&6; }
  2796. fi
  2797. fi
  2798. if test -z "$CC"; then
  2799. if test -n "$ac_tool_prefix"; then
  2800. for ac_prog in cl.exe
  2801. do
  2802. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2803. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2805. $as_echo_n "checking for $ac_word... " >&6; }
  2806. if test "${ac_cv_prog_CC+set}" = set; then :
  2807. $as_echo_n "(cached) " >&6
  2808. else
  2809. if test -n "$CC"; then
  2810. ac_cv_prog_CC="$CC" # Let the user override the test.
  2811. else
  2812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2813. for as_dir in $PATH
  2814. do
  2815. IFS=$as_save_IFS
  2816. test -z "$as_dir" && as_dir=.
  2817. for ac_exec_ext in '' $ac_executable_extensions; do
  2818. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2819. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2820. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2821. break 2
  2822. fi
  2823. done
  2824. done
  2825. IFS=$as_save_IFS
  2826. fi
  2827. fi
  2828. CC=$ac_cv_prog_CC
  2829. if test -n "$CC"; then
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2831. $as_echo "$CC" >&6; }
  2832. else
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2834. $as_echo "no" >&6; }
  2835. fi
  2836. test -n "$CC" && break
  2837. done
  2838. fi
  2839. if test -z "$CC"; then
  2840. ac_ct_CC=$CC
  2841. for ac_prog in cl.exe
  2842. do
  2843. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2844. set dummy $ac_prog; ac_word=$2
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2846. $as_echo_n "checking for $ac_word... " >&6; }
  2847. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2848. $as_echo_n "(cached) " >&6
  2849. else
  2850. if test -n "$ac_ct_CC"; then
  2851. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2852. else
  2853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2854. for as_dir in $PATH
  2855. do
  2856. IFS=$as_save_IFS
  2857. test -z "$as_dir" && as_dir=.
  2858. for ac_exec_ext in '' $ac_executable_extensions; do
  2859. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2860. ac_cv_prog_ac_ct_CC="$ac_prog"
  2861. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2862. break 2
  2863. fi
  2864. done
  2865. done
  2866. IFS=$as_save_IFS
  2867. fi
  2868. fi
  2869. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2870. if test -n "$ac_ct_CC"; then
  2871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2872. $as_echo "$ac_ct_CC" >&6; }
  2873. else
  2874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2875. $as_echo "no" >&6; }
  2876. fi
  2877. test -n "$ac_ct_CC" && break
  2878. done
  2879. if test "x$ac_ct_CC" = x; then
  2880. CC=""
  2881. else
  2882. case $cross_compiling:$ac_tool_warned in
  2883. yes:)
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2885. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2886. ac_tool_warned=yes ;;
  2887. esac
  2888. CC=$ac_ct_CC
  2889. fi
  2890. fi
  2891. fi
  2892. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2893. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2894. as_fn_error "no acceptable C compiler found in \$PATH
  2895. See \`config.log' for more details." "$LINENO" 5; }
  2896. # Provide some information about the compiler.
  2897. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2898. set X $ac_compile
  2899. ac_compiler=$2
  2900. for ac_option in --version -v -V -qversion; do
  2901. { { ac_try="$ac_compiler $ac_option >&5"
  2902. case "(($ac_try" in
  2903. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2904. *) ac_try_echo=$ac_try;;
  2905. esac
  2906. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2907. $as_echo "$ac_try_echo"; } >&5
  2908. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2909. ac_status=$?
  2910. if test -s conftest.err; then
  2911. sed '10a\
  2912. ... rest of stderr output deleted ...
  2913. 10q' conftest.err >conftest.er1
  2914. cat conftest.er1 >&5
  2915. rm -f conftest.er1 conftest.err
  2916. fi
  2917. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2918. test $ac_status = 0; }
  2919. done
  2920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2921. /* end confdefs.h. */
  2922. int
  2923. main ()
  2924. {
  2925. ;
  2926. return 0;
  2927. }
  2928. _ACEOF
  2929. ac_clean_files_save=$ac_clean_files
  2930. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2931. # Try to create an executable without -o first, disregard a.out.
  2932. # It will help us diagnose broken compilers, and finding out an intuition
  2933. # of exeext.
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2935. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2936. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2937. # The possible output files:
  2938. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2939. ac_rmfiles=
  2940. for ac_file in $ac_files
  2941. do
  2942. case $ac_file in
  2943. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2944. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2945. esac
  2946. done
  2947. rm -f $ac_rmfiles
  2948. if { { ac_try="$ac_link_default"
  2949. case "(($ac_try" in
  2950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2951. *) ac_try_echo=$ac_try;;
  2952. esac
  2953. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2954. $as_echo "$ac_try_echo"; } >&5
  2955. (eval "$ac_link_default") 2>&5
  2956. ac_status=$?
  2957. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2958. test $ac_status = 0; }; then :
  2959. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2960. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2961. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2962. # so that the user can short-circuit this test for compilers unknown to
  2963. # Autoconf.
  2964. for ac_file in $ac_files ''
  2965. do
  2966. test -f "$ac_file" || continue
  2967. case $ac_file in
  2968. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2969. ;;
  2970. [ab].out )
  2971. # We found the default executable, but exeext='' is most
  2972. # certainly right.
  2973. break;;
  2974. *.* )
  2975. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2976. then :; else
  2977. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2978. fi
  2979. # We set ac_cv_exeext here because the later test for it is not
  2980. # safe: cross compilers may not add the suffix if given an `-o'
  2981. # argument, so we may need to know it at that point already.
  2982. # Even if this section looks crufty: it has the advantage of
  2983. # actually working.
  2984. break;;
  2985. * )
  2986. break;;
  2987. esac
  2988. done
  2989. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2990. else
  2991. ac_file=''
  2992. fi
  2993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2994. $as_echo "$ac_file" >&6; }
  2995. if test -z "$ac_file"; then :
  2996. $as_echo "$as_me: failed program was:" >&5
  2997. sed 's/^/| /' conftest.$ac_ext >&5
  2998. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2999. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3000. { as_fn_set_status 77
  3001. as_fn_error "C compiler cannot create executables
  3002. See \`config.log' for more details." "$LINENO" 5; }; }
  3003. fi
  3004. ac_exeext=$ac_cv_exeext
  3005. # Check that the compiler produces executables we can run. If not, either
  3006. # the compiler is broken, or we cross compile.
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3008. $as_echo_n "checking whether the C compiler works... " >&6; }
  3009. # If not cross compiling, check that we can run a simple program.
  3010. if test "$cross_compiling" != yes; then
  3011. if { ac_try='./$ac_file'
  3012. { { case "(($ac_try" in
  3013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3014. *) ac_try_echo=$ac_try;;
  3015. esac
  3016. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3017. $as_echo "$ac_try_echo"; } >&5
  3018. (eval "$ac_try") 2>&5
  3019. ac_status=$?
  3020. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3021. test $ac_status = 0; }; }; then
  3022. cross_compiling=no
  3023. else
  3024. if test "$cross_compiling" = maybe; then
  3025. cross_compiling=yes
  3026. else
  3027. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3028. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3029. as_fn_error "cannot run C compiled programs.
  3030. If you meant to cross compile, use \`--host'.
  3031. See \`config.log' for more details." "$LINENO" 5; }
  3032. fi
  3033. fi
  3034. fi
  3035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3036. $as_echo "yes" >&6; }
  3037. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3038. ac_clean_files=$ac_clean_files_save
  3039. # Check that the compiler produces executables we can run. If not, either
  3040. # the compiler is broken, or we cross compile.
  3041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3042. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3044. $as_echo "$cross_compiling" >&6; }
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3046. $as_echo_n "checking for suffix of executables... " >&6; }
  3047. if { { ac_try="$ac_link"
  3048. case "(($ac_try" in
  3049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3050. *) ac_try_echo=$ac_try;;
  3051. esac
  3052. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3053. $as_echo "$ac_try_echo"; } >&5
  3054. (eval "$ac_link") 2>&5
  3055. ac_status=$?
  3056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3057. test $ac_status = 0; }; then :
  3058. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3059. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3060. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3061. # `rm'.
  3062. for ac_file in conftest.exe conftest conftest.*; do
  3063. test -f "$ac_file" || continue
  3064. case $ac_file in
  3065. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3066. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3067. break;;
  3068. * ) break;;
  3069. esac
  3070. done
  3071. else
  3072. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3073. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3074. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3075. See \`config.log' for more details." "$LINENO" 5; }
  3076. fi
  3077. rm -f conftest$ac_cv_exeext
  3078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3079. $as_echo "$ac_cv_exeext" >&6; }
  3080. rm -f conftest.$ac_ext
  3081. EXEEXT=$ac_cv_exeext
  3082. ac_exeext=$EXEEXT
  3083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3084. $as_echo_n "checking for suffix of object files... " >&6; }
  3085. if test "${ac_cv_objext+set}" = set; then :
  3086. $as_echo_n "(cached) " >&6
  3087. else
  3088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3089. /* end confdefs.h. */
  3090. int
  3091. main ()
  3092. {
  3093. ;
  3094. return 0;
  3095. }
  3096. _ACEOF
  3097. rm -f conftest.o conftest.obj
  3098. if { { ac_try="$ac_compile"
  3099. case "(($ac_try" in
  3100. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3101. *) ac_try_echo=$ac_try;;
  3102. esac
  3103. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3104. $as_echo "$ac_try_echo"; } >&5
  3105. (eval "$ac_compile") 2>&5
  3106. ac_status=$?
  3107. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3108. test $ac_status = 0; }; then :
  3109. for ac_file in conftest.o conftest.obj conftest.*; do
  3110. test -f "$ac_file" || continue;
  3111. case $ac_file in
  3112. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3113. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3114. break;;
  3115. esac
  3116. done
  3117. else
  3118. $as_echo "$as_me: failed program was:" >&5
  3119. sed 's/^/| /' conftest.$ac_ext >&5
  3120. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3121. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3122. as_fn_error "cannot compute suffix of object files: cannot compile
  3123. See \`config.log' for more details." "$LINENO" 5; }
  3124. fi
  3125. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3126. fi
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3128. $as_echo "$ac_cv_objext" >&6; }
  3129. OBJEXT=$ac_cv_objext
  3130. ac_objext=$OBJEXT
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3132. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3133. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3134. $as_echo_n "(cached) " >&6
  3135. else
  3136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3137. /* end confdefs.h. */
  3138. int
  3139. main ()
  3140. {
  3141. #ifndef __GNUC__
  3142. choke me
  3143. #endif
  3144. ;
  3145. return 0;
  3146. }
  3147. _ACEOF
  3148. if ac_fn_c_try_compile "$LINENO"; then :
  3149. ac_compiler_gnu=yes
  3150. else
  3151. ac_compiler_gnu=no
  3152. fi
  3153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3154. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3155. fi
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3157. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3158. if test $ac_compiler_gnu = yes; then
  3159. GCC=yes
  3160. else
  3161. GCC=
  3162. fi
  3163. ac_test_CFLAGS=${CFLAGS+set}
  3164. ac_save_CFLAGS=$CFLAGS
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3166. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3167. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3168. $as_echo_n "(cached) " >&6
  3169. else
  3170. ac_save_c_werror_flag=$ac_c_werror_flag
  3171. ac_c_werror_flag=yes
  3172. ac_cv_prog_cc_g=no
  3173. CFLAGS="-g"
  3174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3175. /* end confdefs.h. */
  3176. int
  3177. main ()
  3178. {
  3179. ;
  3180. return 0;
  3181. }
  3182. _ACEOF
  3183. if ac_fn_c_try_compile "$LINENO"; then :
  3184. ac_cv_prog_cc_g=yes
  3185. else
  3186. CFLAGS=""
  3187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3188. /* end confdefs.h. */
  3189. int
  3190. main ()
  3191. {
  3192. ;
  3193. return 0;
  3194. }
  3195. _ACEOF
  3196. if ac_fn_c_try_compile "$LINENO"; then :
  3197. else
  3198. ac_c_werror_flag=$ac_save_c_werror_flag
  3199. CFLAGS="-g"
  3200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3201. /* end confdefs.h. */
  3202. int
  3203. main ()
  3204. {
  3205. ;
  3206. return 0;
  3207. }
  3208. _ACEOF
  3209. if ac_fn_c_try_compile "$LINENO"; then :
  3210. ac_cv_prog_cc_g=yes
  3211. fi
  3212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3213. fi
  3214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3215. fi
  3216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3217. ac_c_werror_flag=$ac_save_c_werror_flag
  3218. fi
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3220. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3221. if test "$ac_test_CFLAGS" = set; then
  3222. CFLAGS=$ac_save_CFLAGS
  3223. elif test $ac_cv_prog_cc_g = yes; then
  3224. if test "$GCC" = yes; then
  3225. CFLAGS="-g -O2"
  3226. else
  3227. CFLAGS="-g"
  3228. fi
  3229. else
  3230. if test "$GCC" = yes; then
  3231. CFLAGS="-O2"
  3232. else
  3233. CFLAGS=
  3234. fi
  3235. fi
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3237. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3238. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3239. $as_echo_n "(cached) " >&6
  3240. else
  3241. ac_cv_prog_cc_c89=no
  3242. ac_save_CC=$CC
  3243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3244. /* end confdefs.h. */
  3245. #include <stdarg.h>
  3246. #include <stdio.h>
  3247. #include <sys/types.h>
  3248. #include <sys/stat.h>
  3249. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3250. struct buf { int x; };
  3251. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3252. static char *e (p, i)
  3253. char **p;
  3254. int i;
  3255. {
  3256. return p[i];
  3257. }
  3258. static char *f (char * (*g) (char **, int), char **p, ...)
  3259. {
  3260. char *s;
  3261. va_list v;
  3262. va_start (v,p);
  3263. s = g (p, va_arg (v,int));
  3264. va_end (v);
  3265. return s;
  3266. }
  3267. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3268. function prototypes and stuff, but not '\xHH' hex character constants.
  3269. These don't provoke an error unfortunately, instead are silently treated
  3270. as 'x'. The following induces an error, until -std is added to get
  3271. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3272. array size at least. It's necessary to write '\x00'==0 to get something
  3273. that's true only with -std. */
  3274. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3275. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3276. inside strings and character constants. */
  3277. #define FOO(x) 'x'
  3278. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3279. int test (int i, double x);
  3280. struct s1 {int (*f) (int a);};
  3281. struct s2 {int (*f) (double a);};
  3282. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3283. int argc;
  3284. char **argv;
  3285. int
  3286. main ()
  3287. {
  3288. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3289. ;
  3290. return 0;
  3291. }
  3292. _ACEOF
  3293. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3294. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3295. do
  3296. CC="$ac_save_CC $ac_arg"
  3297. if ac_fn_c_try_compile "$LINENO"; then :
  3298. ac_cv_prog_cc_c89=$ac_arg
  3299. fi
  3300. rm -f core conftest.err conftest.$ac_objext
  3301. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3302. done
  3303. rm -f conftest.$ac_ext
  3304. CC=$ac_save_CC
  3305. fi
  3306. # AC_CACHE_VAL
  3307. case "x$ac_cv_prog_cc_c89" in
  3308. x)
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3310. $as_echo "none needed" >&6; } ;;
  3311. xno)
  3312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3313. $as_echo "unsupported" >&6; } ;;
  3314. *)
  3315. CC="$CC $ac_cv_prog_cc_c89"
  3316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3317. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3318. esac
  3319. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3320. fi
  3321. ac_ext=c
  3322. ac_cpp='$CPP $CPPFLAGS'
  3323. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3324. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3325. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3326. DEPDIR="${am__leading_dot}deps"
  3327. ac_config_commands="$ac_config_commands depfiles"
  3328. am_make=${MAKE-make}
  3329. cat > confinc << 'END'
  3330. am__doit:
  3331. @echo this is the am__doit target
  3332. .PHONY: am__doit
  3333. END
  3334. # If we don't find an include directive, just comment out the code.
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3336. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3337. am__include="#"
  3338. am__quote=
  3339. _am_result=none
  3340. # First try GNU make style include.
  3341. echo "include confinc" > confmf
  3342. # Ignore all kinds of additional output from `make'.
  3343. case `$am_make -s -f confmf 2> /dev/null` in #(
  3344. *the\ am__doit\ target*)
  3345. am__include=include
  3346. am__quote=
  3347. _am_result=GNU
  3348. ;;
  3349. esac
  3350. # Now try BSD make style include.
  3351. if test "$am__include" = "#"; then
  3352. echo '.include "confinc"' > confmf
  3353. case `$am_make -s -f confmf 2> /dev/null` in #(
  3354. *the\ am__doit\ target*)
  3355. am__include=.include
  3356. am__quote="\""
  3357. _am_result=BSD
  3358. ;;
  3359. esac
  3360. fi
  3361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3362. $as_echo "$_am_result" >&6; }
  3363. rm -f confinc confmf
  3364. # Check whether --enable-dependency-tracking was given.
  3365. if test "${enable_dependency_tracking+set}" = set; then :
  3366. enableval=$enable_dependency_tracking;
  3367. fi
  3368. if test "x$enable_dependency_tracking" != xno; then
  3369. am_depcomp="$ac_aux_dir/depcomp"
  3370. AMDEPBACKSLASH='\'
  3371. fi
  3372. if test "x$enable_dependency_tracking" != xno; then
  3373. AMDEP_TRUE=
  3374. AMDEP_FALSE='#'
  3375. else
  3376. AMDEP_TRUE='#'
  3377. AMDEP_FALSE=
  3378. fi
  3379. depcc="$CC" am_compiler_list=
  3380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3381. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3382. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3383. $as_echo_n "(cached) " >&6
  3384. else
  3385. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3386. # We make a subdir and do the tests there. Otherwise we can end up
  3387. # making bogus files that we don't know about and never remove. For
  3388. # instance it was reported that on HP-UX the gcc test will end up
  3389. # making a dummy file named `D' -- because `-MD' means `put the output
  3390. # in D'.
  3391. mkdir conftest.dir
  3392. # Copy depcomp to subdir because otherwise we won't find it if we're
  3393. # using a relative directory.
  3394. cp "$am_depcomp" conftest.dir
  3395. cd conftest.dir
  3396. # We will build objects and dependencies in a subdirectory because
  3397. # it helps to detect inapplicable dependency modes. For instance
  3398. # both Tru64's cc and ICC support -MD to output dependencies as a
  3399. # side effect of compilation, but ICC will put the dependencies in
  3400. # the current directory while Tru64 will put them in the object
  3401. # directory.
  3402. mkdir sub
  3403. am_cv_CC_dependencies_compiler_type=none
  3404. if test "$am_compiler_list" = ""; then
  3405. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3406. fi
  3407. am__universal=false
  3408. case " $depcc " in #(
  3409. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3410. esac
  3411. for depmode in $am_compiler_list; do
  3412. # Setup a source with many dependencies, because some compilers
  3413. # like to wrap large dependency lists on column 80 (with \), and
  3414. # we should not choose a depcomp mode which is confused by this.
  3415. #
  3416. # We need to recreate these files for each test, as the compiler may
  3417. # overwrite some of them when testing with obscure command lines.
  3418. # This happens at least with the AIX C compiler.
  3419. : > sub/conftest.c
  3420. for i in 1 2 3 4 5 6; do
  3421. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3422. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3423. # Solaris 8's {/usr,}/bin/sh.
  3424. touch sub/conftst$i.h
  3425. done
  3426. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3427. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3428. # mode. It turns out that the SunPro C++ compiler does not properly
  3429. # handle `-M -o', and we need to detect this. Also, some Intel
  3430. # versions had trouble with output in subdirs
  3431. am__obj=sub/conftest.${OBJEXT-o}
  3432. am__minus_obj="-o $am__obj"
  3433. case $depmode in
  3434. gcc)
  3435. # This depmode causes a compiler race in universal mode.
  3436. test "$am__universal" = false || continue
  3437. ;;
  3438. nosideeffect)
  3439. # after this tag, mechanisms are not by side-effect, so they'll
  3440. # only be used when explicitly requested
  3441. if test "x$enable_dependency_tracking" = xyes; then
  3442. continue
  3443. else
  3444. break
  3445. fi
  3446. ;;
  3447. msvisualcpp | msvcmsys)
  3448. # This compiler won't grok `-c -o', but also, the minuso test has
  3449. # not run yet. These depmodes are late enough in the game, and
  3450. # so weak that their functioning should not be impacted.
  3451. am__obj=conftest.${OBJEXT-o}
  3452. am__minus_obj=
  3453. ;;
  3454. none) break ;;
  3455. esac
  3456. if depmode=$depmode \
  3457. source=sub/conftest.c object=$am__obj \
  3458. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3459. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3460. >/dev/null 2>conftest.err &&
  3461. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3462. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3463. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3464. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3465. # icc doesn't choke on unknown options, it will just issue warnings
  3466. # or remarks (even with -Werror). So we grep stderr for any message
  3467. # that says an option was ignored or not supported.
  3468. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3469. # icc: Command line warning: ignoring option '-M'; no argument required
  3470. # The diagnosis changed in icc 8.0:
  3471. # icc: Command line remark: option '-MP' not supported
  3472. if (grep 'ignoring option' conftest.err ||
  3473. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3474. am_cv_CC_dependencies_compiler_type=$depmode
  3475. break
  3476. fi
  3477. fi
  3478. done
  3479. cd ..
  3480. rm -rf conftest.dir
  3481. else
  3482. am_cv_CC_dependencies_compiler_type=none
  3483. fi
  3484. fi
  3485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3486. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3487. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3488. if
  3489. test "x$enable_dependency_tracking" != xno \
  3490. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3491. am__fastdepCC_TRUE=
  3492. am__fastdepCC_FALSE='#'
  3493. else
  3494. am__fastdepCC_TRUE='#'
  3495. am__fastdepCC_FALSE=
  3496. fi
  3497. ac_ext=cpp
  3498. ac_cpp='$CXXCPP $CPPFLAGS'
  3499. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3500. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3501. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3502. if test -z "$CXX"; then
  3503. if test -n "$CCC"; then
  3504. CXX=$CCC
  3505. else
  3506. if test -n "$ac_tool_prefix"; then
  3507. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3508. do
  3509. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3510. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3512. $as_echo_n "checking for $ac_word... " >&6; }
  3513. if test "${ac_cv_prog_CXX+set}" = set; then :
  3514. $as_echo_n "(cached) " >&6
  3515. else
  3516. if test -n "$CXX"; then
  3517. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3518. else
  3519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3520. for as_dir in $PATH
  3521. do
  3522. IFS=$as_save_IFS
  3523. test -z "$as_dir" && as_dir=.
  3524. for ac_exec_ext in '' $ac_executable_extensions; do
  3525. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3526. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3527. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3528. break 2
  3529. fi
  3530. done
  3531. done
  3532. IFS=$as_save_IFS
  3533. fi
  3534. fi
  3535. CXX=$ac_cv_prog_CXX
  3536. if test -n "$CXX"; then
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3538. $as_echo "$CXX" >&6; }
  3539. else
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3541. $as_echo "no" >&6; }
  3542. fi
  3543. test -n "$CXX" && break
  3544. done
  3545. fi
  3546. if test -z "$CXX"; then
  3547. ac_ct_CXX=$CXX
  3548. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3549. do
  3550. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3551. set dummy $ac_prog; ac_word=$2
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3553. $as_echo_n "checking for $ac_word... " >&6; }
  3554. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3555. $as_echo_n "(cached) " >&6
  3556. else
  3557. if test -n "$ac_ct_CXX"; then
  3558. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3559. else
  3560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3561. for as_dir in $PATH
  3562. do
  3563. IFS=$as_save_IFS
  3564. test -z "$as_dir" && as_dir=.
  3565. for ac_exec_ext in '' $ac_executable_extensions; do
  3566. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3567. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3569. break 2
  3570. fi
  3571. done
  3572. done
  3573. IFS=$as_save_IFS
  3574. fi
  3575. fi
  3576. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3577. if test -n "$ac_ct_CXX"; then
  3578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3579. $as_echo "$ac_ct_CXX" >&6; }
  3580. else
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3582. $as_echo "no" >&6; }
  3583. fi
  3584. test -n "$ac_ct_CXX" && break
  3585. done
  3586. if test "x$ac_ct_CXX" = x; then
  3587. CXX="g++"
  3588. else
  3589. case $cross_compiling:$ac_tool_warned in
  3590. yes:)
  3591. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3592. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3593. ac_tool_warned=yes ;;
  3594. esac
  3595. CXX=$ac_ct_CXX
  3596. fi
  3597. fi
  3598. fi
  3599. fi
  3600. # Provide some information about the compiler.
  3601. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3602. set X $ac_compile
  3603. ac_compiler=$2
  3604. for ac_option in --version -v -V -qversion; do
  3605. { { ac_try="$ac_compiler $ac_option >&5"
  3606. case "(($ac_try" in
  3607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3608. *) ac_try_echo=$ac_try;;
  3609. esac
  3610. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3611. $as_echo "$ac_try_echo"; } >&5
  3612. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3613. ac_status=$?
  3614. if test -s conftest.err; then
  3615. sed '10a\
  3616. ... rest of stderr output deleted ...
  3617. 10q' conftest.err >conftest.er1
  3618. cat conftest.er1 >&5
  3619. rm -f conftest.er1 conftest.err
  3620. fi
  3621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3622. test $ac_status = 0; }
  3623. done
  3624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3625. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3626. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3627. $as_echo_n "(cached) " >&6
  3628. else
  3629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3630. /* end confdefs.h. */
  3631. int
  3632. main ()
  3633. {
  3634. #ifndef __GNUC__
  3635. choke me
  3636. #endif
  3637. ;
  3638. return 0;
  3639. }
  3640. _ACEOF
  3641. if ac_fn_cxx_try_compile "$LINENO"; then :
  3642. ac_compiler_gnu=yes
  3643. else
  3644. ac_compiler_gnu=no
  3645. fi
  3646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3647. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3648. fi
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3650. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3651. if test $ac_compiler_gnu = yes; then
  3652. GXX=yes
  3653. else
  3654. GXX=
  3655. fi
  3656. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3657. ac_save_CXXFLAGS=$CXXFLAGS
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3659. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3660. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3661. $as_echo_n "(cached) " >&6
  3662. else
  3663. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3664. ac_cxx_werror_flag=yes
  3665. ac_cv_prog_cxx_g=no
  3666. CXXFLAGS="-g"
  3667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3668. /* end confdefs.h. */
  3669. int
  3670. main ()
  3671. {
  3672. ;
  3673. return 0;
  3674. }
  3675. _ACEOF
  3676. if ac_fn_cxx_try_compile "$LINENO"; then :
  3677. ac_cv_prog_cxx_g=yes
  3678. else
  3679. CXXFLAGS=""
  3680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3681. /* end confdefs.h. */
  3682. int
  3683. main ()
  3684. {
  3685. ;
  3686. return 0;
  3687. }
  3688. _ACEOF
  3689. if ac_fn_cxx_try_compile "$LINENO"; then :
  3690. else
  3691. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3692. CXXFLAGS="-g"
  3693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3694. /* end confdefs.h. */
  3695. int
  3696. main ()
  3697. {
  3698. ;
  3699. return 0;
  3700. }
  3701. _ACEOF
  3702. if ac_fn_cxx_try_compile "$LINENO"; then :
  3703. ac_cv_prog_cxx_g=yes
  3704. fi
  3705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3706. fi
  3707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3708. fi
  3709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3710. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3711. fi
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3713. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3714. if test "$ac_test_CXXFLAGS" = set; then
  3715. CXXFLAGS=$ac_save_CXXFLAGS
  3716. elif test $ac_cv_prog_cxx_g = yes; then
  3717. if test "$GXX" = yes; then
  3718. CXXFLAGS="-g -O2"
  3719. else
  3720. CXXFLAGS="-g"
  3721. fi
  3722. else
  3723. if test "$GXX" = yes; then
  3724. CXXFLAGS="-O2"
  3725. else
  3726. CXXFLAGS=
  3727. fi
  3728. fi
  3729. ac_ext=c
  3730. ac_cpp='$CPP $CPPFLAGS'
  3731. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3732. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3733. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3734. depcc="$CXX" am_compiler_list=
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3736. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3737. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3738. $as_echo_n "(cached) " >&6
  3739. else
  3740. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3741. # We make a subdir and do the tests there. Otherwise we can end up
  3742. # making bogus files that we don't know about and never remove. For
  3743. # instance it was reported that on HP-UX the gcc test will end up
  3744. # making a dummy file named `D' -- because `-MD' means `put the output
  3745. # in D'.
  3746. mkdir conftest.dir
  3747. # Copy depcomp to subdir because otherwise we won't find it if we're
  3748. # using a relative directory.
  3749. cp "$am_depcomp" conftest.dir
  3750. cd conftest.dir
  3751. # We will build objects and dependencies in a subdirectory because
  3752. # it helps to detect inapplicable dependency modes. For instance
  3753. # both Tru64's cc and ICC support -MD to output dependencies as a
  3754. # side effect of compilation, but ICC will put the dependencies in
  3755. # the current directory while Tru64 will put them in the object
  3756. # directory.
  3757. mkdir sub
  3758. am_cv_CXX_dependencies_compiler_type=none
  3759. if test "$am_compiler_list" = ""; then
  3760. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3761. fi
  3762. am__universal=false
  3763. case " $depcc " in #(
  3764. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3765. esac
  3766. for depmode in $am_compiler_list; do
  3767. # Setup a source with many dependencies, because some compilers
  3768. # like to wrap large dependency lists on column 80 (with \), and
  3769. # we should not choose a depcomp mode which is confused by this.
  3770. #
  3771. # We need to recreate these files for each test, as the compiler may
  3772. # overwrite some of them when testing with obscure command lines.
  3773. # This happens at least with the AIX C compiler.
  3774. : > sub/conftest.c
  3775. for i in 1 2 3 4 5 6; do
  3776. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3777. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3778. # Solaris 8's {/usr,}/bin/sh.
  3779. touch sub/conftst$i.h
  3780. done
  3781. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3782. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3783. # mode. It turns out that the SunPro C++ compiler does not properly
  3784. # handle `-M -o', and we need to detect this. Also, some Intel
  3785. # versions had trouble with output in subdirs
  3786. am__obj=sub/conftest.${OBJEXT-o}
  3787. am__minus_obj="-o $am__obj"
  3788. case $depmode in
  3789. gcc)
  3790. # This depmode causes a compiler race in universal mode.
  3791. test "$am__universal" = false || continue
  3792. ;;
  3793. nosideeffect)
  3794. # after this tag, mechanisms are not by side-effect, so they'll
  3795. # only be used when explicitly requested
  3796. if test "x$enable_dependency_tracking" = xyes; then
  3797. continue
  3798. else
  3799. break
  3800. fi
  3801. ;;
  3802. msvisualcpp | msvcmsys)
  3803. # This compiler won't grok `-c -o', but also, the minuso test has
  3804. # not run yet. These depmodes are late enough in the game, and
  3805. # so weak that their functioning should not be impacted.
  3806. am__obj=conftest.${OBJEXT-o}
  3807. am__minus_obj=
  3808. ;;
  3809. none) break ;;
  3810. esac
  3811. if depmode=$depmode \
  3812. source=sub/conftest.c object=$am__obj \
  3813. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3814. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3815. >/dev/null 2>conftest.err &&
  3816. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3817. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3818. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3819. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3820. # icc doesn't choke on unknown options, it will just issue warnings
  3821. # or remarks (even with -Werror). So we grep stderr for any message
  3822. # that says an option was ignored or not supported.
  3823. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3824. # icc: Command line warning: ignoring option '-M'; no argument required
  3825. # The diagnosis changed in icc 8.0:
  3826. # icc: Command line remark: option '-MP' not supported
  3827. if (grep 'ignoring option' conftest.err ||
  3828. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3829. am_cv_CXX_dependencies_compiler_type=$depmode
  3830. break
  3831. fi
  3832. fi
  3833. done
  3834. cd ..
  3835. rm -rf conftest.dir
  3836. else
  3837. am_cv_CXX_dependencies_compiler_type=none
  3838. fi
  3839. fi
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3841. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3842. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3843. if
  3844. test "x$enable_dependency_tracking" != xno \
  3845. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3846. am__fastdepCXX_TRUE=
  3847. am__fastdepCXX_FALSE='#'
  3848. else
  3849. am__fastdepCXX_TRUE='#'
  3850. am__fastdepCXX_FALSE=
  3851. fi
  3852. # AC_PROG_LIBTOOL
  3853. # AC_CONFIG_MACRO_DIR([..])
  3854. ac_config_files="$ac_config_files Makefile libcilkrts.spec"
  3855. ac_ext=c
  3856. ac_cpp='$CPP $CPPFLAGS'
  3857. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3858. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3859. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3861. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3862. # On Suns, sometimes $CPP names a directory.
  3863. if test -n "$CPP" && test -d "$CPP"; then
  3864. CPP=
  3865. fi
  3866. if test -z "$CPP"; then
  3867. if test "${ac_cv_prog_CPP+set}" = set; then :
  3868. $as_echo_n "(cached) " >&6
  3869. else
  3870. # Double quotes because CPP needs to be expanded
  3871. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3872. do
  3873. ac_preproc_ok=false
  3874. for ac_c_preproc_warn_flag in '' yes
  3875. do
  3876. # Use a header file that comes with gcc, so configuring glibc
  3877. # with a fresh cross-compiler works.
  3878. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3879. # <limits.h> exists even on freestanding compilers.
  3880. # On the NeXT, cc -E runs the code through the compiler's parser,
  3881. # not just through cpp. "Syntax error" is here to catch this case.
  3882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3883. /* end confdefs.h. */
  3884. #ifdef __STDC__
  3885. # include <limits.h>
  3886. #else
  3887. # include <assert.h>
  3888. #endif
  3889. Syntax error
  3890. _ACEOF
  3891. if ac_fn_c_try_cpp "$LINENO"; then :
  3892. else
  3893. # Broken: fails on valid input.
  3894. continue
  3895. fi
  3896. rm -f conftest.err conftest.$ac_ext
  3897. # OK, works on sane cases. Now check whether nonexistent headers
  3898. # can be detected and how.
  3899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3900. /* end confdefs.h. */
  3901. #include <ac_nonexistent.h>
  3902. _ACEOF
  3903. if ac_fn_c_try_cpp "$LINENO"; then :
  3904. # Broken: success on invalid input.
  3905. continue
  3906. else
  3907. # Passes both tests.
  3908. ac_preproc_ok=:
  3909. break
  3910. fi
  3911. rm -f conftest.err conftest.$ac_ext
  3912. done
  3913. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3914. rm -f conftest.err conftest.$ac_ext
  3915. if $ac_preproc_ok; then :
  3916. break
  3917. fi
  3918. done
  3919. ac_cv_prog_CPP=$CPP
  3920. fi
  3921. CPP=$ac_cv_prog_CPP
  3922. else
  3923. ac_cv_prog_CPP=$CPP
  3924. fi
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3926. $as_echo "$CPP" >&6; }
  3927. ac_preproc_ok=false
  3928. for ac_c_preproc_warn_flag in '' yes
  3929. do
  3930. # Use a header file that comes with gcc, so configuring glibc
  3931. # with a fresh cross-compiler works.
  3932. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3933. # <limits.h> exists even on freestanding compilers.
  3934. # On the NeXT, cc -E runs the code through the compiler's parser,
  3935. # not just through cpp. "Syntax error" is here to catch this case.
  3936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3937. /* end confdefs.h. */
  3938. #ifdef __STDC__
  3939. # include <limits.h>
  3940. #else
  3941. # include <assert.h>
  3942. #endif
  3943. Syntax error
  3944. _ACEOF
  3945. if ac_fn_c_try_cpp "$LINENO"; then :
  3946. else
  3947. # Broken: fails on valid input.
  3948. continue
  3949. fi
  3950. rm -f conftest.err conftest.$ac_ext
  3951. # OK, works on sane cases. Now check whether nonexistent headers
  3952. # can be detected and how.
  3953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3954. /* end confdefs.h. */
  3955. #include <ac_nonexistent.h>
  3956. _ACEOF
  3957. if ac_fn_c_try_cpp "$LINENO"; then :
  3958. # Broken: success on invalid input.
  3959. continue
  3960. else
  3961. # Passes both tests.
  3962. ac_preproc_ok=:
  3963. break
  3964. fi
  3965. rm -f conftest.err conftest.$ac_ext
  3966. done
  3967. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3968. rm -f conftest.err conftest.$ac_ext
  3969. if $ac_preproc_ok; then :
  3970. else
  3971. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3972. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3973. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3974. See \`config.log' for more details." "$LINENO" 5; }
  3975. fi
  3976. ac_ext=c
  3977. ac_cpp='$CPP $CPPFLAGS'
  3978. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3979. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3980. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3982. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3983. if test "${ac_cv_path_GREP+set}" = set; then :
  3984. $as_echo_n "(cached) " >&6
  3985. else
  3986. if test -z "$GREP"; then
  3987. ac_path_GREP_found=false
  3988. # Loop through the user's path and test for each of PROGNAME-LIST
  3989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3990. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3991. do
  3992. IFS=$as_save_IFS
  3993. test -z "$as_dir" && as_dir=.
  3994. for ac_prog in grep ggrep; do
  3995. for ac_exec_ext in '' $ac_executable_extensions; do
  3996. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3997. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3998. # Check for GNU ac_path_GREP and select it if it is found.
  3999. # Check for GNU $ac_path_GREP
  4000. case `"$ac_path_GREP" --version 2>&1` in
  4001. *GNU*)
  4002. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4003. *)
  4004. ac_count=0
  4005. $as_echo_n 0123456789 >"conftest.in"
  4006. while :
  4007. do
  4008. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4009. mv "conftest.tmp" "conftest.in"
  4010. cp "conftest.in" "conftest.nl"
  4011. $as_echo 'GREP' >> "conftest.nl"
  4012. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4013. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4014. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4015. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4016. # Best one so far, save it but keep looking for a better one
  4017. ac_cv_path_GREP="$ac_path_GREP"
  4018. ac_path_GREP_max=$ac_count
  4019. fi
  4020. # 10*(2^10) chars as input seems more than enough
  4021. test $ac_count -gt 10 && break
  4022. done
  4023. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4024. esac
  4025. $ac_path_GREP_found && break 3
  4026. done
  4027. done
  4028. done
  4029. IFS=$as_save_IFS
  4030. if test -z "$ac_cv_path_GREP"; then
  4031. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4032. fi
  4033. else
  4034. ac_cv_path_GREP=$GREP
  4035. fi
  4036. fi
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4038. $as_echo "$ac_cv_path_GREP" >&6; }
  4039. GREP="$ac_cv_path_GREP"
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4041. $as_echo_n "checking for egrep... " >&6; }
  4042. if test "${ac_cv_path_EGREP+set}" = set; then :
  4043. $as_echo_n "(cached) " >&6
  4044. else
  4045. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4046. then ac_cv_path_EGREP="$GREP -E"
  4047. else
  4048. if test -z "$EGREP"; then
  4049. ac_path_EGREP_found=false
  4050. # Loop through the user's path and test for each of PROGNAME-LIST
  4051. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4052. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4053. do
  4054. IFS=$as_save_IFS
  4055. test -z "$as_dir" && as_dir=.
  4056. for ac_prog in egrep; do
  4057. for ac_exec_ext in '' $ac_executable_extensions; do
  4058. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4059. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4060. # Check for GNU ac_path_EGREP and select it if it is found.
  4061. # Check for GNU $ac_path_EGREP
  4062. case `"$ac_path_EGREP" --version 2>&1` in
  4063. *GNU*)
  4064. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4065. *)
  4066. ac_count=0
  4067. $as_echo_n 0123456789 >"conftest.in"
  4068. while :
  4069. do
  4070. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4071. mv "conftest.tmp" "conftest.in"
  4072. cp "conftest.in" "conftest.nl"
  4073. $as_echo 'EGREP' >> "conftest.nl"
  4074. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4075. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4076. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4077. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4078. # Best one so far, save it but keep looking for a better one
  4079. ac_cv_path_EGREP="$ac_path_EGREP"
  4080. ac_path_EGREP_max=$ac_count
  4081. fi
  4082. # 10*(2^10) chars as input seems more than enough
  4083. test $ac_count -gt 10 && break
  4084. done
  4085. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4086. esac
  4087. $ac_path_EGREP_found && break 3
  4088. done
  4089. done
  4090. done
  4091. IFS=$as_save_IFS
  4092. if test -z "$ac_cv_path_EGREP"; then
  4093. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4094. fi
  4095. else
  4096. ac_cv_path_EGREP=$EGREP
  4097. fi
  4098. fi
  4099. fi
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4101. $as_echo "$ac_cv_path_EGREP" >&6; }
  4102. EGREP="$ac_cv_path_EGREP"
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4104. $as_echo_n "checking for ANSI C header files... " >&6; }
  4105. if test "${ac_cv_header_stdc+set}" = set; then :
  4106. $as_echo_n "(cached) " >&6
  4107. else
  4108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4109. /* end confdefs.h. */
  4110. #include <stdlib.h>
  4111. #include <stdarg.h>
  4112. #include <string.h>
  4113. #include <float.h>
  4114. int
  4115. main ()
  4116. {
  4117. ;
  4118. return 0;
  4119. }
  4120. _ACEOF
  4121. if ac_fn_c_try_compile "$LINENO"; then :
  4122. ac_cv_header_stdc=yes
  4123. else
  4124. ac_cv_header_stdc=no
  4125. fi
  4126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4127. if test $ac_cv_header_stdc = yes; then
  4128. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4130. /* end confdefs.h. */
  4131. #include <string.h>
  4132. _ACEOF
  4133. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4134. $EGREP "memchr" >/dev/null 2>&1; then :
  4135. else
  4136. ac_cv_header_stdc=no
  4137. fi
  4138. rm -f conftest*
  4139. fi
  4140. if test $ac_cv_header_stdc = yes; then
  4141. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4143. /* end confdefs.h. */
  4144. #include <stdlib.h>
  4145. _ACEOF
  4146. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4147. $EGREP "free" >/dev/null 2>&1; then :
  4148. else
  4149. ac_cv_header_stdc=no
  4150. fi
  4151. rm -f conftest*
  4152. fi
  4153. if test $ac_cv_header_stdc = yes; then
  4154. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4155. if test "$cross_compiling" = yes; then :
  4156. :
  4157. else
  4158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4159. /* end confdefs.h. */
  4160. #include <ctype.h>
  4161. #include <stdlib.h>
  4162. #if ((' ' & 0x0FF) == 0x020)
  4163. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4164. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4165. #else
  4166. # define ISLOWER(c) \
  4167. (('a' <= (c) && (c) <= 'i') \
  4168. || ('j' <= (c) && (c) <= 'r') \
  4169. || ('s' <= (c) && (c) <= 'z'))
  4170. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4171. #endif
  4172. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4173. int
  4174. main ()
  4175. {
  4176. int i;
  4177. for (i = 0; i < 256; i++)
  4178. if (XOR (islower (i), ISLOWER (i))
  4179. || toupper (i) != TOUPPER (i))
  4180. return 2;
  4181. return 0;
  4182. }
  4183. _ACEOF
  4184. if ac_fn_c_try_run "$LINENO"; then :
  4185. else
  4186. ac_cv_header_stdc=no
  4187. fi
  4188. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4189. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4190. fi
  4191. fi
  4192. fi
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4194. $as_echo "$ac_cv_header_stdc" >&6; }
  4195. if test $ac_cv_header_stdc = yes; then
  4196. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4197. fi
  4198. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4199. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4200. inttypes.h stdint.h unistd.h
  4201. do :
  4202. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4203. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4204. "
  4205. eval as_val=\$$as_ac_Header
  4206. if test "x$as_val" = x""yes; then :
  4207. cat >>confdefs.h <<_ACEOF
  4208. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4209. _ACEOF
  4210. fi
  4211. done
  4212. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  4213. # for constant arguments. Useless!
  4214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  4215. $as_echo_n "checking for working alloca.h... " >&6; }
  4216. if test "${ac_cv_working_alloca_h+set}" = set; then :
  4217. $as_echo_n "(cached) " >&6
  4218. else
  4219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4220. /* end confdefs.h. */
  4221. #include <alloca.h>
  4222. int
  4223. main ()
  4224. {
  4225. char *p = (char *) alloca (2 * sizeof (int));
  4226. if (p) return 0;
  4227. ;
  4228. return 0;
  4229. }
  4230. _ACEOF
  4231. if ac_fn_c_try_link "$LINENO"; then :
  4232. ac_cv_working_alloca_h=yes
  4233. else
  4234. ac_cv_working_alloca_h=no
  4235. fi
  4236. rm -f core conftest.err conftest.$ac_objext \
  4237. conftest$ac_exeext conftest.$ac_ext
  4238. fi
  4239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  4240. $as_echo "$ac_cv_working_alloca_h" >&6; }
  4241. if test $ac_cv_working_alloca_h = yes; then
  4242. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  4243. fi
  4244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  4245. $as_echo_n "checking for alloca... " >&6; }
  4246. if test "${ac_cv_func_alloca_works+set}" = set; then :
  4247. $as_echo_n "(cached) " >&6
  4248. else
  4249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4250. /* end confdefs.h. */
  4251. #ifdef __GNUC__
  4252. # define alloca __builtin_alloca
  4253. #else
  4254. # ifdef _MSC_VER
  4255. # include <malloc.h>
  4256. # define alloca _alloca
  4257. # else
  4258. # ifdef HAVE_ALLOCA_H
  4259. # include <alloca.h>
  4260. # else
  4261. # ifdef _AIX
  4262. #pragma alloca
  4263. # else
  4264. # ifndef alloca /* predefined by HP cc +Olibcalls */
  4265. char *alloca ();
  4266. # endif
  4267. # endif
  4268. # endif
  4269. # endif
  4270. #endif
  4271. int
  4272. main ()
  4273. {
  4274. char *p = (char *) alloca (1);
  4275. if (p) return 0;
  4276. ;
  4277. return 0;
  4278. }
  4279. _ACEOF
  4280. if ac_fn_c_try_link "$LINENO"; then :
  4281. ac_cv_func_alloca_works=yes
  4282. else
  4283. ac_cv_func_alloca_works=no
  4284. fi
  4285. rm -f core conftest.err conftest.$ac_objext \
  4286. conftest$ac_exeext conftest.$ac_ext
  4287. fi
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  4289. $as_echo "$ac_cv_func_alloca_works" >&6; }
  4290. if test $ac_cv_func_alloca_works = yes; then
  4291. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  4292. else
  4293. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  4294. # that cause trouble. Some versions do not even contain alloca or
  4295. # contain a buggy version. If you still want to use their alloca,
  4296. # use ar to extract alloca.o from them instead of compiling alloca.c.
  4297. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  4298. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  4299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  4300. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  4301. if test "${ac_cv_os_cray+set}" = set; then :
  4302. $as_echo_n "(cached) " >&6
  4303. else
  4304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4305. /* end confdefs.h. */
  4306. #if defined CRAY && ! defined CRAY2
  4307. webecray
  4308. #else
  4309. wenotbecray
  4310. #endif
  4311. _ACEOF
  4312. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4313. $EGREP "webecray" >/dev/null 2>&1; then :
  4314. ac_cv_os_cray=yes
  4315. else
  4316. ac_cv_os_cray=no
  4317. fi
  4318. rm -f conftest*
  4319. fi
  4320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  4321. $as_echo "$ac_cv_os_cray" >&6; }
  4322. if test $ac_cv_os_cray = yes; then
  4323. for ac_func in _getb67 GETB67 getb67; do
  4324. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4325. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4326. eval as_val=\$$as_ac_var
  4327. if test "x$as_val" = x""yes; then :
  4328. cat >>confdefs.h <<_ACEOF
  4329. #define CRAY_STACKSEG_END $ac_func
  4330. _ACEOF
  4331. break
  4332. fi
  4333. done
  4334. fi
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  4336. $as_echo_n "checking stack direction for C alloca... " >&6; }
  4337. if test "${ac_cv_c_stack_direction+set}" = set; then :
  4338. $as_echo_n "(cached) " >&6
  4339. else
  4340. if test "$cross_compiling" = yes; then :
  4341. ac_cv_c_stack_direction=0
  4342. else
  4343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4344. /* end confdefs.h. */
  4345. $ac_includes_default
  4346. int
  4347. find_stack_direction ()
  4348. {
  4349. static char *addr = 0;
  4350. auto char dummy;
  4351. if (addr == 0)
  4352. {
  4353. addr = &dummy;
  4354. return find_stack_direction ();
  4355. }
  4356. else
  4357. return (&dummy > addr) ? 1 : -1;
  4358. }
  4359. int
  4360. main ()
  4361. {
  4362. return find_stack_direction () < 0;
  4363. }
  4364. _ACEOF
  4365. if ac_fn_c_try_run "$LINENO"; then :
  4366. ac_cv_c_stack_direction=1
  4367. else
  4368. ac_cv_c_stack_direction=-1
  4369. fi
  4370. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4371. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4372. fi
  4373. fi
  4374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  4375. $as_echo "$ac_cv_c_stack_direction" >&6; }
  4376. cat >>confdefs.h <<_ACEOF
  4377. #define STACK_DIRECTION $ac_cv_c_stack_direction
  4378. _ACEOF
  4379. fi
  4380. # Check whether the target supports protected visibility.
  4381. save_CFLAGS="$CFLAGS"
  4382. CFLAGS="$CFLAGS -Werror"
  4383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4384. /* end confdefs.h. */
  4385. void __attribute__((visibility("protected"))) foo(void) { }
  4386. int
  4387. main ()
  4388. {
  4389. ;
  4390. return 0;
  4391. }
  4392. _ACEOF
  4393. if ac_fn_c_try_compile "$LINENO"; then :
  4394. libcilkrts_cv_have_attribute_visibility=yes
  4395. else
  4396. libcilkrts_cv_have_attribute_visibility=no
  4397. fi
  4398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4399. CFLAGS="$save_CFLAGS"
  4400. if test $libcilkrts_cv_have_attribute_visibility = yes; then
  4401. $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
  4402. fi
  4403. # Get target configury.
  4404. . ${srcdir}/configure.tgt
  4405. if test -n "$UNSUPPORTED"; then
  4406. as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
  4407. fi
  4408. if test "${multilib}" = "yes"; then
  4409. multilib_arg="--enable-multilib"
  4410. else
  4411. multilib_arg=
  4412. fi
  4413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  4414. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  4415. # Check whether --enable-version-specific-runtime-libs was given.
  4416. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  4417. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  4418. yes) enable_version_specific_runtime_libs=yes ;;
  4419. no) enable_version_specific_runtime_libs=no ;;
  4420. *) as_fn_error "Unknown argument to enable/disable version-specific libs
  4421. " "$LINENO" 5;;
  4422. esac
  4423. else
  4424. enable_version_specific_runtime_libs=no
  4425. fi
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
  4427. $as_echo "$enable_version_specific_runtime_libs" >&6; }
  4428. # Calculate toolexeclibdir
  4429. # Also toolexecdir, though it's only used in toolexeclibdir
  4430. case ${enable_version_specific_runtime_libs} in
  4431. yes)
  4432. # Need the gcc compiler version to know where to install libraries
  4433. # and header files if --enable-version-specific-runtime-libs option
  4434. # is selected.
  4435. toolexecdir='$(libdir)/gcc/$(target_alias)'
  4436. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  4437. ;;
  4438. no)
  4439. if test -n "$with_cross_host" &&
  4440. test x"$with_cross_host" != x"no"; then
  4441. # Install a library built with a cross compiler in tooldir, not libdir.
  4442. toolexecdir='$(exec_prefix)/$(target_alias)'
  4443. toolexeclibdir='$(toolexecdir)/lib'
  4444. else
  4445. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  4446. toolexeclibdir='$(libdir)'
  4447. fi
  4448. multi_os_directory=`$CC -print-multi-os-directory`
  4449. case $multi_os_directory in
  4450. .) ;; # Avoid trailing /.
  4451. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  4452. esac
  4453. ;;
  4454. esac
  4455. # Set config_dir based on the target. config_dir specifies where to get
  4456. # target-specific files. The generic implementation is incomplete, but
  4457. # contains information on what's needed
  4458. case "${target}" in
  4459. x86_64-*-*)
  4460. config_dir="x86"
  4461. ;;
  4462. i?86-*-*)
  4463. config_dir="x86"
  4464. ;;
  4465. *)
  4466. config_dir="generic"
  4467. ;;
  4468. esac
  4469. # We have linker scripts for appropriate operating systems
  4470. linux_linker_script=no
  4471. case "${host}" in
  4472. *-*-linux*)
  4473. linux_linker_script=yes
  4474. ;;
  4475. esac
  4476. if test "$linux_linker_script" = "yes"; then
  4477. LINUX_LINKER_SCRIPT_TRUE=
  4478. LINUX_LINKER_SCRIPT_FALSE='#'
  4479. else
  4480. LINUX_LINKER_SCRIPT_TRUE='#'
  4481. LINUX_LINKER_SCRIPT_FALSE=
  4482. fi
  4483. mac_linker_script=no
  4484. case "${host}" in
  4485. *-*-apple*)
  4486. mac_linker_script=yes
  4487. ;;
  4488. esac
  4489. if test "$mac_linker_script" = "yes"; then
  4490. MAC_LINKER_SCRIPT_TRUE=
  4491. MAC_LINKER_SCRIPT_FALSE='#'
  4492. else
  4493. MAC_LINKER_SCRIPT_TRUE='#'
  4494. MAC_LINKER_SCRIPT_FALSE=
  4495. fi
  4496. enable_dlopen=yes
  4497. case `pwd` in
  4498. *\ * | *\ *)
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4500. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4501. esac
  4502. macro_version='2.2.7a'
  4503. macro_revision='1.3134'
  4504. ltmain="$ac_aux_dir/ltmain.sh"
  4505. # Backslashify metacharacters that are still active within
  4506. # double-quoted strings.
  4507. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4508. # Same as above, but do not quote variable references.
  4509. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4510. # Sed substitution to delay expansion of an escaped shell variable in a
  4511. # double_quote_subst'ed string.
  4512. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4513. # Sed substitution to delay expansion of an escaped single quote.
  4514. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4515. # Sed substitution to avoid accidental globbing in evaled expressions
  4516. no_glob_subst='s/\*/\\\*/g'
  4517. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4518. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4519. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4521. $as_echo_n "checking how to print strings... " >&6; }
  4522. # Test print first, because it will be a builtin if present.
  4523. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4524. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4525. ECHO='print -r --'
  4526. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4527. ECHO='printf %s\n'
  4528. else
  4529. # Use this function as a fallback that always works.
  4530. func_fallback_echo ()
  4531. {
  4532. eval 'cat <<_LTECHO_EOF
  4533. $1
  4534. _LTECHO_EOF'
  4535. }
  4536. ECHO='func_fallback_echo'
  4537. fi
  4538. # func_echo_all arg...
  4539. # Invoke $ECHO with all args, space-separated.
  4540. func_echo_all ()
  4541. {
  4542. $ECHO ""
  4543. }
  4544. case "$ECHO" in
  4545. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4546. $as_echo "printf" >&6; } ;;
  4547. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4548. $as_echo "print -r" >&6; } ;;
  4549. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4550. $as_echo "cat" >&6; } ;;
  4551. esac
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4553. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4554. if test "${ac_cv_path_SED+set}" = set; then :
  4555. $as_echo_n "(cached) " >&6
  4556. else
  4557. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4558. for ac_i in 1 2 3 4 5 6 7; do
  4559. ac_script="$ac_script$as_nl$ac_script"
  4560. done
  4561. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4562. { ac_script=; unset ac_script;}
  4563. if test -z "$SED"; then
  4564. ac_path_SED_found=false
  4565. # Loop through the user's path and test for each of PROGNAME-LIST
  4566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4567. for as_dir in $PATH
  4568. do
  4569. IFS=$as_save_IFS
  4570. test -z "$as_dir" && as_dir=.
  4571. for ac_prog in sed gsed; do
  4572. for ac_exec_ext in '' $ac_executable_extensions; do
  4573. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4574. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4575. # Check for GNU ac_path_SED and select it if it is found.
  4576. # Check for GNU $ac_path_SED
  4577. case `"$ac_path_SED" --version 2>&1` in
  4578. *GNU*)
  4579. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4580. *)
  4581. ac_count=0
  4582. $as_echo_n 0123456789 >"conftest.in"
  4583. while :
  4584. do
  4585. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4586. mv "conftest.tmp" "conftest.in"
  4587. cp "conftest.in" "conftest.nl"
  4588. $as_echo '' >> "conftest.nl"
  4589. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4590. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4591. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4592. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4593. # Best one so far, save it but keep looking for a better one
  4594. ac_cv_path_SED="$ac_path_SED"
  4595. ac_path_SED_max=$ac_count
  4596. fi
  4597. # 10*(2^10) chars as input seems more than enough
  4598. test $ac_count -gt 10 && break
  4599. done
  4600. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4601. esac
  4602. $ac_path_SED_found && break 3
  4603. done
  4604. done
  4605. done
  4606. IFS=$as_save_IFS
  4607. if test -z "$ac_cv_path_SED"; then
  4608. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4609. fi
  4610. else
  4611. ac_cv_path_SED=$SED
  4612. fi
  4613. fi
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4615. $as_echo "$ac_cv_path_SED" >&6; }
  4616. SED="$ac_cv_path_SED"
  4617. rm -f conftest.sed
  4618. test -z "$SED" && SED=sed
  4619. Xsed="$SED -e 1s/^X//"
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4621. $as_echo_n "checking for fgrep... " >&6; }
  4622. if test "${ac_cv_path_FGREP+set}" = set; then :
  4623. $as_echo_n "(cached) " >&6
  4624. else
  4625. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4626. then ac_cv_path_FGREP="$GREP -F"
  4627. else
  4628. if test -z "$FGREP"; then
  4629. ac_path_FGREP_found=false
  4630. # Loop through the user's path and test for each of PROGNAME-LIST
  4631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4632. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4633. do
  4634. IFS=$as_save_IFS
  4635. test -z "$as_dir" && as_dir=.
  4636. for ac_prog in fgrep; do
  4637. for ac_exec_ext in '' $ac_executable_extensions; do
  4638. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4639. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4640. # Check for GNU ac_path_FGREP and select it if it is found.
  4641. # Check for GNU $ac_path_FGREP
  4642. case `"$ac_path_FGREP" --version 2>&1` in
  4643. *GNU*)
  4644. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4645. *)
  4646. ac_count=0
  4647. $as_echo_n 0123456789 >"conftest.in"
  4648. while :
  4649. do
  4650. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4651. mv "conftest.tmp" "conftest.in"
  4652. cp "conftest.in" "conftest.nl"
  4653. $as_echo 'FGREP' >> "conftest.nl"
  4654. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4655. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4656. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4657. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4658. # Best one so far, save it but keep looking for a better one
  4659. ac_cv_path_FGREP="$ac_path_FGREP"
  4660. ac_path_FGREP_max=$ac_count
  4661. fi
  4662. # 10*(2^10) chars as input seems more than enough
  4663. test $ac_count -gt 10 && break
  4664. done
  4665. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4666. esac
  4667. $ac_path_FGREP_found && break 3
  4668. done
  4669. done
  4670. done
  4671. IFS=$as_save_IFS
  4672. if test -z "$ac_cv_path_FGREP"; then
  4673. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4674. fi
  4675. else
  4676. ac_cv_path_FGREP=$FGREP
  4677. fi
  4678. fi
  4679. fi
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4681. $as_echo "$ac_cv_path_FGREP" >&6; }
  4682. FGREP="$ac_cv_path_FGREP"
  4683. test -z "$GREP" && GREP=grep
  4684. # Check whether --with-gnu-ld was given.
  4685. if test "${with_gnu_ld+set}" = set; then :
  4686. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4687. else
  4688. with_gnu_ld=no
  4689. fi
  4690. ac_prog=ld
  4691. if test "$GCC" = yes; then
  4692. # Check if gcc -print-prog-name=ld gives a path.
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4694. $as_echo_n "checking for ld used by $CC... " >&6; }
  4695. case $host in
  4696. *-*-mingw*)
  4697. # gcc leaves a trailing carriage return which upsets mingw
  4698. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4699. *)
  4700. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4701. esac
  4702. case $ac_prog in
  4703. # Accept absolute paths.
  4704. [\\/]* | ?:[\\/]*)
  4705. re_direlt='/[^/][^/]*/\.\./'
  4706. # Canonicalize the pathname of ld
  4707. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4708. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4709. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4710. done
  4711. test -z "$LD" && LD="$ac_prog"
  4712. ;;
  4713. "")
  4714. # If it fails, then pretend we aren't using GCC.
  4715. ac_prog=ld
  4716. ;;
  4717. *)
  4718. # If it is relative, then search for the first ld in PATH.
  4719. with_gnu_ld=unknown
  4720. ;;
  4721. esac
  4722. elif test "$with_gnu_ld" = yes; then
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4724. $as_echo_n "checking for GNU ld... " >&6; }
  4725. else
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4727. $as_echo_n "checking for non-GNU ld... " >&6; }
  4728. fi
  4729. if test "${lt_cv_path_LD+set}" = set; then :
  4730. $as_echo_n "(cached) " >&6
  4731. else
  4732. if test -z "$LD"; then
  4733. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4734. for ac_dir in $PATH; do
  4735. IFS="$lt_save_ifs"
  4736. test -z "$ac_dir" && ac_dir=.
  4737. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4738. lt_cv_path_LD="$ac_dir/$ac_prog"
  4739. # Check to see if the program is GNU ld. I'd rather use --version,
  4740. # but apparently some variants of GNU ld only accept -v.
  4741. # Break only if it was the GNU/non-GNU ld that we prefer.
  4742. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4743. *GNU* | *'with BFD'*)
  4744. test "$with_gnu_ld" != no && break
  4745. ;;
  4746. *)
  4747. test "$with_gnu_ld" != yes && break
  4748. ;;
  4749. esac
  4750. fi
  4751. done
  4752. IFS="$lt_save_ifs"
  4753. else
  4754. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4755. fi
  4756. fi
  4757. LD="$lt_cv_path_LD"
  4758. if test -n "$LD"; then
  4759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4760. $as_echo "$LD" >&6; }
  4761. else
  4762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4763. $as_echo "no" >&6; }
  4764. fi
  4765. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4767. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4768. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4769. $as_echo_n "(cached) " >&6
  4770. else
  4771. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4772. case `$LD -v 2>&1 </dev/null` in
  4773. *GNU* | *'with BFD'*)
  4774. lt_cv_prog_gnu_ld=yes
  4775. ;;
  4776. *)
  4777. lt_cv_prog_gnu_ld=no
  4778. ;;
  4779. esac
  4780. fi
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4782. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4783. with_gnu_ld=$lt_cv_prog_gnu_ld
  4784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4785. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4786. if test "${lt_cv_path_NM+set}" = set; then :
  4787. $as_echo_n "(cached) " >&6
  4788. else
  4789. if test -n "$NM"; then
  4790. # Let the user override the test.
  4791. lt_cv_path_NM="$NM"
  4792. else
  4793. lt_nm_to_check="${ac_tool_prefix}nm"
  4794. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4795. lt_nm_to_check="$lt_nm_to_check nm"
  4796. fi
  4797. for lt_tmp_nm in $lt_nm_to_check; do
  4798. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4799. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4800. IFS="$lt_save_ifs"
  4801. test -z "$ac_dir" && ac_dir=.
  4802. tmp_nm="$ac_dir/$lt_tmp_nm"
  4803. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4804. # Check to see if the nm accepts a BSD-compat flag.
  4805. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4806. # nm: unknown option "B" ignored
  4807. # Tru64's nm complains that /dev/null is an invalid object file
  4808. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4809. */dev/null* | *'Invalid file or object type'*)
  4810. lt_cv_path_NM="$tmp_nm -B"
  4811. break
  4812. ;;
  4813. *)
  4814. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4815. */dev/null*)
  4816. lt_cv_path_NM="$tmp_nm -p"
  4817. break
  4818. ;;
  4819. *)
  4820. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4821. continue # so that we can try to find one that supports BSD flags
  4822. ;;
  4823. esac
  4824. ;;
  4825. esac
  4826. fi
  4827. done
  4828. IFS="$lt_save_ifs"
  4829. done
  4830. : ${lt_cv_path_NM=no}
  4831. fi
  4832. fi
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4834. $as_echo "$lt_cv_path_NM" >&6; }
  4835. if test "$lt_cv_path_NM" != "no"; then
  4836. NM="$lt_cv_path_NM"
  4837. else
  4838. # Didn't find any BSD compatible name lister, look for dumpbin.
  4839. if test -n "$DUMPBIN"; then :
  4840. # Let the user override the test.
  4841. else
  4842. if test -n "$ac_tool_prefix"; then
  4843. for ac_prog in dumpbin "link -dump"
  4844. do
  4845. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4846. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4848. $as_echo_n "checking for $ac_word... " >&6; }
  4849. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4850. $as_echo_n "(cached) " >&6
  4851. else
  4852. if test -n "$DUMPBIN"; then
  4853. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4854. else
  4855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4856. for as_dir in $PATH
  4857. do
  4858. IFS=$as_save_IFS
  4859. test -z "$as_dir" && as_dir=.
  4860. for ac_exec_ext in '' $ac_executable_extensions; do
  4861. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4862. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4864. break 2
  4865. fi
  4866. done
  4867. done
  4868. IFS=$as_save_IFS
  4869. fi
  4870. fi
  4871. DUMPBIN=$ac_cv_prog_DUMPBIN
  4872. if test -n "$DUMPBIN"; then
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4874. $as_echo "$DUMPBIN" >&6; }
  4875. else
  4876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4877. $as_echo "no" >&6; }
  4878. fi
  4879. test -n "$DUMPBIN" && break
  4880. done
  4881. fi
  4882. if test -z "$DUMPBIN"; then
  4883. ac_ct_DUMPBIN=$DUMPBIN
  4884. for ac_prog in dumpbin "link -dump"
  4885. do
  4886. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4887. set dummy $ac_prog; ac_word=$2
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4889. $as_echo_n "checking for $ac_word... " >&6; }
  4890. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4891. $as_echo_n "(cached) " >&6
  4892. else
  4893. if test -n "$ac_ct_DUMPBIN"; then
  4894. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4895. else
  4896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4897. for as_dir in $PATH
  4898. do
  4899. IFS=$as_save_IFS
  4900. test -z "$as_dir" && as_dir=.
  4901. for ac_exec_ext in '' $ac_executable_extensions; do
  4902. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4903. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4904. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4905. break 2
  4906. fi
  4907. done
  4908. done
  4909. IFS=$as_save_IFS
  4910. fi
  4911. fi
  4912. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4913. if test -n "$ac_ct_DUMPBIN"; then
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4915. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4916. else
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4918. $as_echo "no" >&6; }
  4919. fi
  4920. test -n "$ac_ct_DUMPBIN" && break
  4921. done
  4922. if test "x$ac_ct_DUMPBIN" = x; then
  4923. DUMPBIN=":"
  4924. else
  4925. case $cross_compiling:$ac_tool_warned in
  4926. yes:)
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4928. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4929. ac_tool_warned=yes ;;
  4930. esac
  4931. DUMPBIN=$ac_ct_DUMPBIN
  4932. fi
  4933. fi
  4934. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4935. *COFF*)
  4936. DUMPBIN="$DUMPBIN -symbols"
  4937. ;;
  4938. *)
  4939. DUMPBIN=:
  4940. ;;
  4941. esac
  4942. fi
  4943. if test "$DUMPBIN" != ":"; then
  4944. NM="$DUMPBIN"
  4945. fi
  4946. fi
  4947. test -z "$NM" && NM=nm
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4949. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4950. if test "${lt_cv_nm_interface+set}" = set; then :
  4951. $as_echo_n "(cached) " >&6
  4952. else
  4953. lt_cv_nm_interface="BSD nm"
  4954. echo "int some_variable = 0;" > conftest.$ac_ext
  4955. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4956. (eval "$ac_compile" 2>conftest.err)
  4957. cat conftest.err >&5
  4958. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4959. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4960. cat conftest.err >&5
  4961. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4962. cat conftest.out >&5
  4963. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4964. lt_cv_nm_interface="MS dumpbin"
  4965. fi
  4966. rm -f conftest*
  4967. fi
  4968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4969. $as_echo "$lt_cv_nm_interface" >&6; }
  4970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4971. $as_echo_n "checking whether ln -s works... " >&6; }
  4972. LN_S=$as_ln_s
  4973. if test "$LN_S" = "ln -s"; then
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4975. $as_echo "yes" >&6; }
  4976. else
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4978. $as_echo "no, using $LN_S" >&6; }
  4979. fi
  4980. # find the maximum length of command line arguments
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4982. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4983. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4984. $as_echo_n "(cached) " >&6
  4985. else
  4986. i=0
  4987. teststring="ABCD"
  4988. case $build_os in
  4989. msdosdjgpp*)
  4990. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4991. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4992. # during glob expansion). Even if it were fixed, the result of this
  4993. # check would be larger than it should be.
  4994. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4995. ;;
  4996. gnu*)
  4997. # Under GNU Hurd, this test is not required because there is
  4998. # no limit to the length of command line arguments.
  4999. # Libtool will interpret -1 as no limit whatsoever
  5000. lt_cv_sys_max_cmd_len=-1;
  5001. ;;
  5002. cygwin* | mingw* | cegcc*)
  5003. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5004. # about 5 minutes as the teststring grows exponentially.
  5005. # Worse, since 9x/ME are not pre-emptively multitasking,
  5006. # you end up with a "frozen" computer, even though with patience
  5007. # the test eventually succeeds (with a max line length of 256k).
  5008. # Instead, let's just punt: use the minimum linelength reported by
  5009. # all of the supported platforms: 8192 (on NT/2K/XP).
  5010. lt_cv_sys_max_cmd_len=8192;
  5011. ;;
  5012. mint*)
  5013. # On MiNT this can take a long time and run out of memory.
  5014. lt_cv_sys_max_cmd_len=8192;
  5015. ;;
  5016. amigaos*)
  5017. # On AmigaOS with pdksh, this test takes hours, literally.
  5018. # So we just punt and use a minimum line length of 8192.
  5019. lt_cv_sys_max_cmd_len=8192;
  5020. ;;
  5021. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5022. # This has been around since 386BSD, at least. Likely further.
  5023. if test -x /sbin/sysctl; then
  5024. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5025. elif test -x /usr/sbin/sysctl; then
  5026. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5027. else
  5028. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5029. fi
  5030. # And add a safety zone
  5031. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5032. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5033. ;;
  5034. interix*)
  5035. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5036. lt_cv_sys_max_cmd_len=196608
  5037. ;;
  5038. osf*)
  5039. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5040. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5041. # nice to cause kernel panics so lets avoid the loop below.
  5042. # First set a reasonable default.
  5043. lt_cv_sys_max_cmd_len=16384
  5044. #
  5045. if test -x /sbin/sysconfig; then
  5046. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5047. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5048. esac
  5049. fi
  5050. ;;
  5051. sco3.2v5*)
  5052. lt_cv_sys_max_cmd_len=102400
  5053. ;;
  5054. sysv5* | sco5v6* | sysv4.2uw2*)
  5055. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5056. if test -n "$kargmax"; then
  5057. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5058. else
  5059. lt_cv_sys_max_cmd_len=32768
  5060. fi
  5061. ;;
  5062. *)
  5063. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5064. if test -n "$lt_cv_sys_max_cmd_len"; then
  5065. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5066. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5067. else
  5068. # Make teststring a little bigger before we do anything with it.
  5069. # a 1K string should be a reasonable start.
  5070. for i in 1 2 3 4 5 6 7 8 ; do
  5071. teststring=$teststring$teststring
  5072. done
  5073. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5074. # If test is not a shell built-in, we'll probably end up computing a
  5075. # maximum length that is only half of the actual maximum length, but
  5076. # we can't tell.
  5077. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5078. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5079. test $i != 17 # 1/2 MB should be enough
  5080. do
  5081. i=`expr $i + 1`
  5082. teststring=$teststring$teststring
  5083. done
  5084. # Only check the string length outside the loop.
  5085. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5086. teststring=
  5087. # Add a significant safety factor because C++ compilers can tack on
  5088. # massive amounts of additional arguments before passing them to the
  5089. # linker. It appears as though 1/2 is a usable value.
  5090. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5091. fi
  5092. ;;
  5093. esac
  5094. fi
  5095. if test -n $lt_cv_sys_max_cmd_len ; then
  5096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5097. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5098. else
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5100. $as_echo "none" >&6; }
  5101. fi
  5102. max_cmd_len=$lt_cv_sys_max_cmd_len
  5103. : ${CP="cp -f"}
  5104. : ${MV="mv -f"}
  5105. : ${RM="rm -f"}
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5107. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5108. # Try some XSI features
  5109. xsi_shell=no
  5110. ( _lt_dummy="a/b/c"
  5111. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5112. = c,a/b,, \
  5113. && eval 'test $(( 1 + 1 )) -eq 2 \
  5114. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5115. && xsi_shell=yes
  5116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5117. $as_echo "$xsi_shell" >&6; }
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5119. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5120. lt_shell_append=no
  5121. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5122. >/dev/null 2>&1 \
  5123. && lt_shell_append=yes
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5125. $as_echo "$lt_shell_append" >&6; }
  5126. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5127. lt_unset=unset
  5128. else
  5129. lt_unset=false
  5130. fi
  5131. # test EBCDIC or ASCII
  5132. case `echo X|tr X '\101'` in
  5133. A) # ASCII based system
  5134. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5135. lt_SP2NL='tr \040 \012'
  5136. lt_NL2SP='tr \015\012 \040\040'
  5137. ;;
  5138. *) # EBCDIC based system
  5139. lt_SP2NL='tr \100 \n'
  5140. lt_NL2SP='tr \r\n \100\100'
  5141. ;;
  5142. esac
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5144. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5145. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5146. $as_echo_n "(cached) " >&6
  5147. else
  5148. lt_cv_ld_reload_flag='-r'
  5149. fi
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5151. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5152. reload_flag=$lt_cv_ld_reload_flag
  5153. case $reload_flag in
  5154. "" | " "*) ;;
  5155. *) reload_flag=" $reload_flag" ;;
  5156. esac
  5157. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5158. case $host_os in
  5159. darwin*)
  5160. if test "$GCC" = yes; then
  5161. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5162. else
  5163. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5164. fi
  5165. ;;
  5166. esac
  5167. if test -n "$ac_tool_prefix"; then
  5168. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5169. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5171. $as_echo_n "checking for $ac_word... " >&6; }
  5172. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5173. $as_echo_n "(cached) " >&6
  5174. else
  5175. if test -n "$OBJDUMP"; then
  5176. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5177. else
  5178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5179. for as_dir in $PATH
  5180. do
  5181. IFS=$as_save_IFS
  5182. test -z "$as_dir" && as_dir=.
  5183. for ac_exec_ext in '' $ac_executable_extensions; do
  5184. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5185. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5187. break 2
  5188. fi
  5189. done
  5190. done
  5191. IFS=$as_save_IFS
  5192. fi
  5193. fi
  5194. OBJDUMP=$ac_cv_prog_OBJDUMP
  5195. if test -n "$OBJDUMP"; then
  5196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5197. $as_echo "$OBJDUMP" >&6; }
  5198. else
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5200. $as_echo "no" >&6; }
  5201. fi
  5202. fi
  5203. if test -z "$ac_cv_prog_OBJDUMP"; then
  5204. ac_ct_OBJDUMP=$OBJDUMP
  5205. # Extract the first word of "objdump", so it can be a program name with args.
  5206. set dummy objdump; ac_word=$2
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5208. $as_echo_n "checking for $ac_word... " >&6; }
  5209. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5210. $as_echo_n "(cached) " >&6
  5211. else
  5212. if test -n "$ac_ct_OBJDUMP"; then
  5213. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5214. else
  5215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5216. for as_dir in $PATH
  5217. do
  5218. IFS=$as_save_IFS
  5219. test -z "$as_dir" && as_dir=.
  5220. for ac_exec_ext in '' $ac_executable_extensions; do
  5221. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5222. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5224. break 2
  5225. fi
  5226. done
  5227. done
  5228. IFS=$as_save_IFS
  5229. fi
  5230. fi
  5231. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5232. if test -n "$ac_ct_OBJDUMP"; then
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5234. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5235. else
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5237. $as_echo "no" >&6; }
  5238. fi
  5239. if test "x$ac_ct_OBJDUMP" = x; then
  5240. OBJDUMP="false"
  5241. else
  5242. case $cross_compiling:$ac_tool_warned in
  5243. yes:)
  5244. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5245. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5246. ac_tool_warned=yes ;;
  5247. esac
  5248. OBJDUMP=$ac_ct_OBJDUMP
  5249. fi
  5250. else
  5251. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5252. fi
  5253. test -z "$OBJDUMP" && OBJDUMP=objdump
  5254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5255. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5256. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5257. $as_echo_n "(cached) " >&6
  5258. else
  5259. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5260. lt_cv_file_magic_test_file=
  5261. lt_cv_deplibs_check_method='unknown'
  5262. # Need to set the preceding variable on all platforms that support
  5263. # interlibrary dependencies.
  5264. # 'none' -- dependencies not supported.
  5265. # `unknown' -- same as none, but documents that we really don't know.
  5266. # 'pass_all' -- all dependencies passed with no checks.
  5267. # 'test_compile' -- check by making test program.
  5268. # 'file_magic [[regex]]' -- check by looking for files in library path
  5269. # which responds to the $file_magic_cmd with a given extended regex.
  5270. # If you have `file' or equivalent on your system and you're not sure
  5271. # whether `pass_all' will *always* work, you probably want this one.
  5272. case $host_os in
  5273. aix[4-9]*)
  5274. lt_cv_deplibs_check_method=pass_all
  5275. ;;
  5276. beos*)
  5277. lt_cv_deplibs_check_method=pass_all
  5278. ;;
  5279. bsdi[45]*)
  5280. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5281. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5282. lt_cv_file_magic_test_file=/shlib/libc.so
  5283. ;;
  5284. cygwin*)
  5285. # func_win32_libid is a shell function defined in ltmain.sh
  5286. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5287. lt_cv_file_magic_cmd='func_win32_libid'
  5288. ;;
  5289. mingw* | pw32*)
  5290. # Base MSYS/MinGW do not provide the 'file' command needed by
  5291. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5292. # unless we find 'file', for example because we are cross-compiling.
  5293. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5294. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5295. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5296. lt_cv_file_magic_cmd='func_win32_libid'
  5297. else
  5298. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5299. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5300. fi
  5301. ;;
  5302. cegcc*)
  5303. # use the weaker test based on 'objdump'. See mingw*.
  5304. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5305. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5306. ;;
  5307. darwin* | rhapsody*)
  5308. lt_cv_deplibs_check_method=pass_all
  5309. ;;
  5310. freebsd* | dragonfly*)
  5311. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5312. case $host_cpu in
  5313. i*86 )
  5314. # Not sure whether the presence of OpenBSD here was a mistake.
  5315. # Let's accept both of them until this is cleared up.
  5316. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5317. lt_cv_file_magic_cmd=/usr/bin/file
  5318. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5319. ;;
  5320. esac
  5321. else
  5322. lt_cv_deplibs_check_method=pass_all
  5323. fi
  5324. ;;
  5325. gnu*)
  5326. lt_cv_deplibs_check_method=pass_all
  5327. ;;
  5328. haiku*)
  5329. lt_cv_deplibs_check_method=pass_all
  5330. ;;
  5331. hpux10.20* | hpux11*)
  5332. lt_cv_file_magic_cmd=/usr/bin/file
  5333. case $host_cpu in
  5334. ia64*)
  5335. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5336. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5337. ;;
  5338. hppa*64*)
  5339. 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]'
  5340. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5341. ;;
  5342. *)
  5343. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5344. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5345. ;;
  5346. esac
  5347. ;;
  5348. interix[3-9]*)
  5349. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5350. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5351. ;;
  5352. irix5* | irix6* | nonstopux*)
  5353. case $LD in
  5354. *-32|*"-32 ") libmagic=32-bit;;
  5355. *-n32|*"-n32 ") libmagic=N32;;
  5356. *-64|*"-64 ") libmagic=64-bit;;
  5357. *) libmagic=never-match;;
  5358. esac
  5359. lt_cv_deplibs_check_method=pass_all
  5360. ;;
  5361. # This must be Linux ELF.
  5362. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5363. lt_cv_deplibs_check_method=pass_all
  5364. ;;
  5365. netbsd*)
  5366. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5367. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5368. else
  5369. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5370. fi
  5371. ;;
  5372. newos6*)
  5373. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5374. lt_cv_file_magic_cmd=/usr/bin/file
  5375. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5376. ;;
  5377. *nto* | *qnx*)
  5378. lt_cv_deplibs_check_method=pass_all
  5379. ;;
  5380. openbsd*)
  5381. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5382. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5383. else
  5384. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5385. fi
  5386. ;;
  5387. osf3* | osf4* | osf5*)
  5388. lt_cv_deplibs_check_method=pass_all
  5389. ;;
  5390. rdos*)
  5391. lt_cv_deplibs_check_method=pass_all
  5392. ;;
  5393. solaris*)
  5394. lt_cv_deplibs_check_method=pass_all
  5395. ;;
  5396. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5397. lt_cv_deplibs_check_method=pass_all
  5398. ;;
  5399. sysv4 | sysv4.3*)
  5400. case $host_vendor in
  5401. motorola)
  5402. 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]'
  5403. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5404. ;;
  5405. ncr)
  5406. lt_cv_deplibs_check_method=pass_all
  5407. ;;
  5408. sequent)
  5409. lt_cv_file_magic_cmd='/bin/file'
  5410. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5411. ;;
  5412. sni)
  5413. lt_cv_file_magic_cmd='/bin/file'
  5414. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5415. lt_cv_file_magic_test_file=/lib/libc.so
  5416. ;;
  5417. siemens)
  5418. lt_cv_deplibs_check_method=pass_all
  5419. ;;
  5420. pc)
  5421. lt_cv_deplibs_check_method=pass_all
  5422. ;;
  5423. esac
  5424. ;;
  5425. tpf*)
  5426. lt_cv_deplibs_check_method=pass_all
  5427. ;;
  5428. esac
  5429. fi
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5431. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5432. file_magic_cmd=$lt_cv_file_magic_cmd
  5433. deplibs_check_method=$lt_cv_deplibs_check_method
  5434. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5435. if test -n "$ac_tool_prefix"; then
  5436. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5437. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5439. $as_echo_n "checking for $ac_word... " >&6; }
  5440. if test "${ac_cv_prog_AR+set}" = set; then :
  5441. $as_echo_n "(cached) " >&6
  5442. else
  5443. if test -n "$AR"; then
  5444. ac_cv_prog_AR="$AR" # Let the user override the test.
  5445. else
  5446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5447. for as_dir in $PATH
  5448. do
  5449. IFS=$as_save_IFS
  5450. test -z "$as_dir" && as_dir=.
  5451. for ac_exec_ext in '' $ac_executable_extensions; do
  5452. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5453. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5455. break 2
  5456. fi
  5457. done
  5458. done
  5459. IFS=$as_save_IFS
  5460. fi
  5461. fi
  5462. AR=$ac_cv_prog_AR
  5463. if test -n "$AR"; then
  5464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5465. $as_echo "$AR" >&6; }
  5466. else
  5467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5468. $as_echo "no" >&6; }
  5469. fi
  5470. fi
  5471. if test -z "$ac_cv_prog_AR"; then
  5472. ac_ct_AR=$AR
  5473. # Extract the first word of "ar", so it can be a program name with args.
  5474. set dummy ar; ac_word=$2
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5476. $as_echo_n "checking for $ac_word... " >&6; }
  5477. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5478. $as_echo_n "(cached) " >&6
  5479. else
  5480. if test -n "$ac_ct_AR"; then
  5481. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5482. else
  5483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5484. for as_dir in $PATH
  5485. do
  5486. IFS=$as_save_IFS
  5487. test -z "$as_dir" && as_dir=.
  5488. for ac_exec_ext in '' $ac_executable_extensions; do
  5489. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5490. ac_cv_prog_ac_ct_AR="ar"
  5491. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5492. break 2
  5493. fi
  5494. done
  5495. done
  5496. IFS=$as_save_IFS
  5497. fi
  5498. fi
  5499. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5500. if test -n "$ac_ct_AR"; then
  5501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5502. $as_echo "$ac_ct_AR" >&6; }
  5503. else
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5505. $as_echo "no" >&6; }
  5506. fi
  5507. if test "x$ac_ct_AR" = x; then
  5508. AR="false"
  5509. else
  5510. case $cross_compiling:$ac_tool_warned in
  5511. yes:)
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5513. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5514. ac_tool_warned=yes ;;
  5515. esac
  5516. AR=$ac_ct_AR
  5517. fi
  5518. else
  5519. AR="$ac_cv_prog_AR"
  5520. fi
  5521. test -z "$AR" && AR=ar
  5522. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5523. if test -n "$ac_tool_prefix"; then
  5524. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5525. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5527. $as_echo_n "checking for $ac_word... " >&6; }
  5528. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5529. $as_echo_n "(cached) " >&6
  5530. else
  5531. if test -n "$STRIP"; then
  5532. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5533. else
  5534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5535. for as_dir in $PATH
  5536. do
  5537. IFS=$as_save_IFS
  5538. test -z "$as_dir" && as_dir=.
  5539. for ac_exec_ext in '' $ac_executable_extensions; do
  5540. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5541. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5542. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5543. break 2
  5544. fi
  5545. done
  5546. done
  5547. IFS=$as_save_IFS
  5548. fi
  5549. fi
  5550. STRIP=$ac_cv_prog_STRIP
  5551. if test -n "$STRIP"; then
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5553. $as_echo "$STRIP" >&6; }
  5554. else
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5556. $as_echo "no" >&6; }
  5557. fi
  5558. fi
  5559. if test -z "$ac_cv_prog_STRIP"; then
  5560. ac_ct_STRIP=$STRIP
  5561. # Extract the first word of "strip", so it can be a program name with args.
  5562. set dummy strip; ac_word=$2
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5564. $as_echo_n "checking for $ac_word... " >&6; }
  5565. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5566. $as_echo_n "(cached) " >&6
  5567. else
  5568. if test -n "$ac_ct_STRIP"; then
  5569. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5570. else
  5571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5572. for as_dir in $PATH
  5573. do
  5574. IFS=$as_save_IFS
  5575. test -z "$as_dir" && as_dir=.
  5576. for ac_exec_ext in '' $ac_executable_extensions; do
  5577. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5578. ac_cv_prog_ac_ct_STRIP="strip"
  5579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5580. break 2
  5581. fi
  5582. done
  5583. done
  5584. IFS=$as_save_IFS
  5585. fi
  5586. fi
  5587. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5588. if test -n "$ac_ct_STRIP"; then
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5590. $as_echo "$ac_ct_STRIP" >&6; }
  5591. else
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5593. $as_echo "no" >&6; }
  5594. fi
  5595. if test "x$ac_ct_STRIP" = x; then
  5596. STRIP=":"
  5597. else
  5598. case $cross_compiling:$ac_tool_warned in
  5599. yes:)
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5601. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5602. ac_tool_warned=yes ;;
  5603. esac
  5604. STRIP=$ac_ct_STRIP
  5605. fi
  5606. else
  5607. STRIP="$ac_cv_prog_STRIP"
  5608. fi
  5609. test -z "$STRIP" && STRIP=:
  5610. if test -n "$ac_tool_prefix"; then
  5611. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5612. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5614. $as_echo_n "checking for $ac_word... " >&6; }
  5615. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5616. $as_echo_n "(cached) " >&6
  5617. else
  5618. if test -n "$RANLIB"; then
  5619. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5620. else
  5621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5622. for as_dir in $PATH
  5623. do
  5624. IFS=$as_save_IFS
  5625. test -z "$as_dir" && as_dir=.
  5626. for ac_exec_ext in '' $ac_executable_extensions; do
  5627. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5628. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5630. break 2
  5631. fi
  5632. done
  5633. done
  5634. IFS=$as_save_IFS
  5635. fi
  5636. fi
  5637. RANLIB=$ac_cv_prog_RANLIB
  5638. if test -n "$RANLIB"; then
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5640. $as_echo "$RANLIB" >&6; }
  5641. else
  5642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5643. $as_echo "no" >&6; }
  5644. fi
  5645. fi
  5646. if test -z "$ac_cv_prog_RANLIB"; then
  5647. ac_ct_RANLIB=$RANLIB
  5648. # Extract the first word of "ranlib", so it can be a program name with args.
  5649. set dummy ranlib; ac_word=$2
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5651. $as_echo_n "checking for $ac_word... " >&6; }
  5652. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5653. $as_echo_n "(cached) " >&6
  5654. else
  5655. if test -n "$ac_ct_RANLIB"; then
  5656. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5657. else
  5658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5659. for as_dir in $PATH
  5660. do
  5661. IFS=$as_save_IFS
  5662. test -z "$as_dir" && as_dir=.
  5663. for ac_exec_ext in '' $ac_executable_extensions; do
  5664. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5665. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5667. break 2
  5668. fi
  5669. done
  5670. done
  5671. IFS=$as_save_IFS
  5672. fi
  5673. fi
  5674. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5675. if test -n "$ac_ct_RANLIB"; then
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5677. $as_echo "$ac_ct_RANLIB" >&6; }
  5678. else
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5680. $as_echo "no" >&6; }
  5681. fi
  5682. if test "x$ac_ct_RANLIB" = x; then
  5683. RANLIB=":"
  5684. else
  5685. case $cross_compiling:$ac_tool_warned in
  5686. yes:)
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5688. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5689. ac_tool_warned=yes ;;
  5690. esac
  5691. RANLIB=$ac_ct_RANLIB
  5692. fi
  5693. else
  5694. RANLIB="$ac_cv_prog_RANLIB"
  5695. fi
  5696. test -z "$RANLIB" && RANLIB=:
  5697. # Determine commands to create old-style static archives.
  5698. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5699. old_postinstall_cmds='chmod 644 $oldlib'
  5700. old_postuninstall_cmds=
  5701. if test -n "$RANLIB"; then
  5702. case $host_os in
  5703. openbsd*)
  5704. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5705. ;;
  5706. *)
  5707. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5708. ;;
  5709. esac
  5710. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5711. fi
  5712. case $host_os in
  5713. darwin*)
  5714. lock_old_archive_extraction=yes ;;
  5715. *)
  5716. lock_old_archive_extraction=no ;;
  5717. esac
  5718. # If no C compiler was specified, use CC.
  5719. LTCC=${LTCC-"$CC"}
  5720. # If no C compiler flags were specified, use CFLAGS.
  5721. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5722. # Allow CC to be a program name with arguments.
  5723. compiler=$CC
  5724. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5726. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5727. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5728. $as_echo_n "(cached) " >&6
  5729. else
  5730. # These are sane defaults that work on at least a few old systems.
  5731. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5732. # Character class describing NM global symbol codes.
  5733. symcode='[BCDEGRST]'
  5734. # Regexp to match symbols that can be accessed directly from C.
  5735. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5736. # Define system-specific variables.
  5737. case $host_os in
  5738. aix*)
  5739. symcode='[BCDT]'
  5740. ;;
  5741. cygwin* | mingw* | pw32* | cegcc*)
  5742. symcode='[ABCDGISTW]'
  5743. ;;
  5744. hpux*)
  5745. if test "$host_cpu" = ia64; then
  5746. symcode='[ABCDEGRST]'
  5747. fi
  5748. ;;
  5749. irix* | nonstopux*)
  5750. symcode='[BCDEGRST]'
  5751. ;;
  5752. osf*)
  5753. symcode='[BCDEGQRST]'
  5754. ;;
  5755. solaris*)
  5756. symcode='[BDRT]'
  5757. ;;
  5758. sco3.2v5*)
  5759. symcode='[DT]'
  5760. ;;
  5761. sysv4.2uw2*)
  5762. symcode='[DT]'
  5763. ;;
  5764. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5765. symcode='[ABDT]'
  5766. ;;
  5767. sysv4)
  5768. symcode='[DFNSTU]'
  5769. ;;
  5770. esac
  5771. # If we're using GNU nm, then use its standard symbol codes.
  5772. case `$NM -V 2>&1` in
  5773. *GNU* | *'with BFD'*)
  5774. symcode='[ABCDGIRSTW]' ;;
  5775. esac
  5776. # Transform an extracted symbol line into a proper C declaration.
  5777. # Some systems (esp. on ia64) link data and code symbols differently,
  5778. # so use this general approach.
  5779. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5780. # Transform an extracted symbol line into symbol name and symbol address
  5781. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5782. 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'"
  5783. # Handle CRLF in mingw tool chain
  5784. opt_cr=
  5785. case $build_os in
  5786. mingw*)
  5787. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5788. ;;
  5789. esac
  5790. # Try without a prefix underscore, then with it.
  5791. for ac_symprfx in "" "_"; do
  5792. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5793. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5794. # Write the raw and C identifiers.
  5795. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5796. # Fake it for dumpbin and say T for any non-static function
  5797. # and D for any global variable.
  5798. # Also find C++ and __fastcall symbols from MSVC++,
  5799. # which start with @ or ?.
  5800. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5801. " {last_section=section; section=\$ 3};"\
  5802. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5803. " \$ 0!~/External *\|/{next};"\
  5804. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5805. " {if(hide[section]) next};"\
  5806. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5807. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5808. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5809. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5810. " ' prfx=^$ac_symprfx"
  5811. else
  5812. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5813. fi
  5814. # Check to see that the pipe works correctly.
  5815. pipe_works=no
  5816. rm -f conftest*
  5817. cat > conftest.$ac_ext <<_LT_EOF
  5818. #ifdef __cplusplus
  5819. extern "C" {
  5820. #endif
  5821. char nm_test_var;
  5822. void nm_test_func(void);
  5823. void nm_test_func(void){}
  5824. #ifdef __cplusplus
  5825. }
  5826. #endif
  5827. int main(){nm_test_var='a';nm_test_func();return(0);}
  5828. _LT_EOF
  5829. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5830. (eval $ac_compile) 2>&5
  5831. ac_status=$?
  5832. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5833. test $ac_status = 0; }; then
  5834. # Now try to grab the symbols.
  5835. nlist=conftest.nm
  5836. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5837. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5838. ac_status=$?
  5839. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5840. test $ac_status = 0; } && test -s "$nlist"; then
  5841. # Try sorting and uniquifying the output.
  5842. if sort "$nlist" | uniq > "$nlist"T; then
  5843. mv -f "$nlist"T "$nlist"
  5844. else
  5845. rm -f "$nlist"T
  5846. fi
  5847. # Make sure that we snagged all the symbols we need.
  5848. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5849. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5850. cat <<_LT_EOF > conftest.$ac_ext
  5851. #ifdef __cplusplus
  5852. extern "C" {
  5853. #endif
  5854. _LT_EOF
  5855. # Now generate the symbol file.
  5856. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5857. cat <<_LT_EOF >> conftest.$ac_ext
  5858. /* The mapping between symbol names and symbols. */
  5859. const struct {
  5860. const char *name;
  5861. void *address;
  5862. }
  5863. lt__PROGRAM__LTX_preloaded_symbols[] =
  5864. {
  5865. { "@PROGRAM@", (void *) 0 },
  5866. _LT_EOF
  5867. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5868. cat <<\_LT_EOF >> conftest.$ac_ext
  5869. {0, (void *) 0}
  5870. };
  5871. /* This works around a problem in FreeBSD linker */
  5872. #ifdef FREEBSD_WORKAROUND
  5873. static const void *lt_preloaded_setup() {
  5874. return lt__PROGRAM__LTX_preloaded_symbols;
  5875. }
  5876. #endif
  5877. #ifdef __cplusplus
  5878. }
  5879. #endif
  5880. _LT_EOF
  5881. # Now try linking the two files.
  5882. mv conftest.$ac_objext conftstm.$ac_objext
  5883. lt_save_LIBS="$LIBS"
  5884. lt_save_CFLAGS="$CFLAGS"
  5885. LIBS="conftstm.$ac_objext"
  5886. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5887. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5888. (eval $ac_link) 2>&5
  5889. ac_status=$?
  5890. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5891. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5892. pipe_works=yes
  5893. fi
  5894. LIBS="$lt_save_LIBS"
  5895. CFLAGS="$lt_save_CFLAGS"
  5896. else
  5897. echo "cannot find nm_test_func in $nlist" >&5
  5898. fi
  5899. else
  5900. echo "cannot find nm_test_var in $nlist" >&5
  5901. fi
  5902. else
  5903. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5904. fi
  5905. else
  5906. echo "$progname: failed program was:" >&5
  5907. cat conftest.$ac_ext >&5
  5908. fi
  5909. rm -rf conftest* conftst*
  5910. # Do not use the global_symbol_pipe unless it works.
  5911. if test "$pipe_works" = yes; then
  5912. break
  5913. else
  5914. lt_cv_sys_global_symbol_pipe=
  5915. fi
  5916. done
  5917. fi
  5918. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5919. lt_cv_sys_global_symbol_to_cdecl=
  5920. fi
  5921. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5923. $as_echo "failed" >&6; }
  5924. else
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5926. $as_echo "ok" >&6; }
  5927. fi
  5928. # Check whether --enable-libtool-lock was given.
  5929. if test "${enable_libtool_lock+set}" = set; then :
  5930. enableval=$enable_libtool_lock;
  5931. fi
  5932. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5933. # Some flags need to be propagated to the compiler or linker for good
  5934. # libtool support.
  5935. case $host in
  5936. ia64-*-hpux*)
  5937. # Find out which ABI we are using.
  5938. echo 'int i;' > conftest.$ac_ext
  5939. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5940. (eval $ac_compile) 2>&5
  5941. ac_status=$?
  5942. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5943. test $ac_status = 0; }; then
  5944. case `/usr/bin/file conftest.$ac_objext` in
  5945. *ELF-32*)
  5946. HPUX_IA64_MODE="32"
  5947. ;;
  5948. *ELF-64*)
  5949. HPUX_IA64_MODE="64"
  5950. ;;
  5951. esac
  5952. fi
  5953. rm -rf conftest*
  5954. ;;
  5955. *-*-irix6*)
  5956. # Find out which ABI we are using.
  5957. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5958. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5959. (eval $ac_compile) 2>&5
  5960. ac_status=$?
  5961. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5962. test $ac_status = 0; }; then
  5963. if test "$lt_cv_prog_gnu_ld" = yes; then
  5964. case `/usr/bin/file conftest.$ac_objext` in
  5965. *32-bit*)
  5966. LD="${LD-ld} -melf32bsmip"
  5967. ;;
  5968. *N32*)
  5969. LD="${LD-ld} -melf32bmipn32"
  5970. ;;
  5971. *64-bit*)
  5972. LD="${LD-ld} -melf64bmip"
  5973. ;;
  5974. esac
  5975. else
  5976. case `/usr/bin/file conftest.$ac_objext` in
  5977. *32-bit*)
  5978. LD="${LD-ld} -32"
  5979. ;;
  5980. *N32*)
  5981. LD="${LD-ld} -n32"
  5982. ;;
  5983. *64-bit*)
  5984. LD="${LD-ld} -64"
  5985. ;;
  5986. esac
  5987. fi
  5988. fi
  5989. rm -rf conftest*
  5990. ;;
  5991. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5992. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5993. # Find out which ABI we are using.
  5994. echo 'int i;' > conftest.$ac_ext
  5995. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5996. (eval $ac_compile) 2>&5
  5997. ac_status=$?
  5998. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5999. test $ac_status = 0; }; then
  6000. case `/usr/bin/file conftest.o` in
  6001. *32-bit*)
  6002. case $host in
  6003. x86_64-*kfreebsd*-gnu)
  6004. LD="${LD-ld} -m elf_i386_fbsd"
  6005. ;;
  6006. x86_64-*linux*)
  6007. case `/usr/bin/file conftest.o` in
  6008. *x86-64*)
  6009. LD="${LD-ld} -m elf32_x86_64"
  6010. ;;
  6011. *)
  6012. LD="${LD-ld} -m elf_i386"
  6013. ;;
  6014. esac
  6015. ;;
  6016. powerpc64le-*linux*)
  6017. LD="${LD-ld} -m elf32lppclinux"
  6018. ;;
  6019. powerpc64-*linux*)
  6020. LD="${LD-ld} -m elf32ppclinux"
  6021. ;;
  6022. s390x-*linux*)
  6023. LD="${LD-ld} -m elf_s390"
  6024. ;;
  6025. sparc64-*linux*)
  6026. LD="${LD-ld} -m elf32_sparc"
  6027. ;;
  6028. esac
  6029. ;;
  6030. *64-bit*)
  6031. case $host in
  6032. x86_64-*kfreebsd*-gnu)
  6033. LD="${LD-ld} -m elf_x86_64_fbsd"
  6034. ;;
  6035. x86_64-*linux*)
  6036. LD="${LD-ld} -m elf_x86_64"
  6037. ;;
  6038. powerpcle-*linux*)
  6039. LD="${LD-ld} -m elf64lppc"
  6040. ;;
  6041. powerpc-*linux*)
  6042. LD="${LD-ld} -m elf64ppc"
  6043. ;;
  6044. s390*-*linux*|s390*-*tpf*)
  6045. LD="${LD-ld} -m elf64_s390"
  6046. ;;
  6047. sparc*-*linux*)
  6048. LD="${LD-ld} -m elf64_sparc"
  6049. ;;
  6050. esac
  6051. ;;
  6052. esac
  6053. fi
  6054. rm -rf conftest*
  6055. ;;
  6056. *-*-sco3.2v5*)
  6057. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6058. SAVE_CFLAGS="$CFLAGS"
  6059. CFLAGS="$CFLAGS -belf"
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6061. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6062. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6063. $as_echo_n "(cached) " >&6
  6064. else
  6065. ac_ext=c
  6066. ac_cpp='$CPP $CPPFLAGS'
  6067. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6068. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6069. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6071. /* end confdefs.h. */
  6072. int
  6073. main ()
  6074. {
  6075. ;
  6076. return 0;
  6077. }
  6078. _ACEOF
  6079. if ac_fn_c_try_link "$LINENO"; then :
  6080. lt_cv_cc_needs_belf=yes
  6081. else
  6082. lt_cv_cc_needs_belf=no
  6083. fi
  6084. rm -f core conftest.err conftest.$ac_objext \
  6085. conftest$ac_exeext conftest.$ac_ext
  6086. ac_ext=c
  6087. ac_cpp='$CPP $CPPFLAGS'
  6088. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6089. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6090. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6091. fi
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6093. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6094. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6095. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6096. CFLAGS="$SAVE_CFLAGS"
  6097. fi
  6098. ;;
  6099. sparc*-*solaris*)
  6100. # Find out which ABI we are using.
  6101. echo 'int i;' > conftest.$ac_ext
  6102. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6103. (eval $ac_compile) 2>&5
  6104. ac_status=$?
  6105. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6106. test $ac_status = 0; }; then
  6107. case `/usr/bin/file conftest.o` in
  6108. *64-bit*)
  6109. case $lt_cv_prog_gnu_ld in
  6110. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6111. *)
  6112. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6113. LD="${LD-ld} -64"
  6114. fi
  6115. ;;
  6116. esac
  6117. ;;
  6118. esac
  6119. fi
  6120. rm -rf conftest*
  6121. ;;
  6122. esac
  6123. need_locks="$enable_libtool_lock"
  6124. case $host_os in
  6125. rhapsody* | darwin*)
  6126. if test -n "$ac_tool_prefix"; then
  6127. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6128. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6130. $as_echo_n "checking for $ac_word... " >&6; }
  6131. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6132. $as_echo_n "(cached) " >&6
  6133. else
  6134. if test -n "$DSYMUTIL"; then
  6135. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6136. else
  6137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6138. for as_dir in $PATH
  6139. do
  6140. IFS=$as_save_IFS
  6141. test -z "$as_dir" && as_dir=.
  6142. for ac_exec_ext in '' $ac_executable_extensions; do
  6143. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6144. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6145. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6146. break 2
  6147. fi
  6148. done
  6149. done
  6150. IFS=$as_save_IFS
  6151. fi
  6152. fi
  6153. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6154. if test -n "$DSYMUTIL"; then
  6155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6156. $as_echo "$DSYMUTIL" >&6; }
  6157. else
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6159. $as_echo "no" >&6; }
  6160. fi
  6161. fi
  6162. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6163. ac_ct_DSYMUTIL=$DSYMUTIL
  6164. # Extract the first word of "dsymutil", so it can be a program name with args.
  6165. set dummy dsymutil; ac_word=$2
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6167. $as_echo_n "checking for $ac_word... " >&6; }
  6168. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6169. $as_echo_n "(cached) " >&6
  6170. else
  6171. if test -n "$ac_ct_DSYMUTIL"; then
  6172. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6173. else
  6174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6175. for as_dir in $PATH
  6176. do
  6177. IFS=$as_save_IFS
  6178. test -z "$as_dir" && as_dir=.
  6179. for ac_exec_ext in '' $ac_executable_extensions; do
  6180. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6181. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6182. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6183. break 2
  6184. fi
  6185. done
  6186. done
  6187. IFS=$as_save_IFS
  6188. fi
  6189. fi
  6190. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6191. if test -n "$ac_ct_DSYMUTIL"; then
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6193. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6194. else
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6196. $as_echo "no" >&6; }
  6197. fi
  6198. if test "x$ac_ct_DSYMUTIL" = x; then
  6199. DSYMUTIL=":"
  6200. else
  6201. case $cross_compiling:$ac_tool_warned in
  6202. yes:)
  6203. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6204. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6205. ac_tool_warned=yes ;;
  6206. esac
  6207. DSYMUTIL=$ac_ct_DSYMUTIL
  6208. fi
  6209. else
  6210. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6211. fi
  6212. if test -n "$ac_tool_prefix"; then
  6213. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6214. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6216. $as_echo_n "checking for $ac_word... " >&6; }
  6217. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6218. $as_echo_n "(cached) " >&6
  6219. else
  6220. if test -n "$NMEDIT"; then
  6221. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6222. else
  6223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6224. for as_dir in $PATH
  6225. do
  6226. IFS=$as_save_IFS
  6227. test -z "$as_dir" && as_dir=.
  6228. for ac_exec_ext in '' $ac_executable_extensions; do
  6229. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6230. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6231. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6232. break 2
  6233. fi
  6234. done
  6235. done
  6236. IFS=$as_save_IFS
  6237. fi
  6238. fi
  6239. NMEDIT=$ac_cv_prog_NMEDIT
  6240. if test -n "$NMEDIT"; then
  6241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6242. $as_echo "$NMEDIT" >&6; }
  6243. else
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6245. $as_echo "no" >&6; }
  6246. fi
  6247. fi
  6248. if test -z "$ac_cv_prog_NMEDIT"; then
  6249. ac_ct_NMEDIT=$NMEDIT
  6250. # Extract the first word of "nmedit", so it can be a program name with args.
  6251. set dummy nmedit; ac_word=$2
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6253. $as_echo_n "checking for $ac_word... " >&6; }
  6254. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6255. $as_echo_n "(cached) " >&6
  6256. else
  6257. if test -n "$ac_ct_NMEDIT"; then
  6258. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6259. else
  6260. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6261. for as_dir in $PATH
  6262. do
  6263. IFS=$as_save_IFS
  6264. test -z "$as_dir" && as_dir=.
  6265. for ac_exec_ext in '' $ac_executable_extensions; do
  6266. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6267. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6268. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6269. break 2
  6270. fi
  6271. done
  6272. done
  6273. IFS=$as_save_IFS
  6274. fi
  6275. fi
  6276. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6277. if test -n "$ac_ct_NMEDIT"; then
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6279. $as_echo "$ac_ct_NMEDIT" >&6; }
  6280. else
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6282. $as_echo "no" >&6; }
  6283. fi
  6284. if test "x$ac_ct_NMEDIT" = x; then
  6285. NMEDIT=":"
  6286. else
  6287. case $cross_compiling:$ac_tool_warned in
  6288. yes:)
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6290. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6291. ac_tool_warned=yes ;;
  6292. esac
  6293. NMEDIT=$ac_ct_NMEDIT
  6294. fi
  6295. else
  6296. NMEDIT="$ac_cv_prog_NMEDIT"
  6297. fi
  6298. if test -n "$ac_tool_prefix"; then
  6299. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6300. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6302. $as_echo_n "checking for $ac_word... " >&6; }
  6303. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6304. $as_echo_n "(cached) " >&6
  6305. else
  6306. if test -n "$LIPO"; then
  6307. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6308. else
  6309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6310. for as_dir in $PATH
  6311. do
  6312. IFS=$as_save_IFS
  6313. test -z "$as_dir" && as_dir=.
  6314. for ac_exec_ext in '' $ac_executable_extensions; do
  6315. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6316. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6317. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6318. break 2
  6319. fi
  6320. done
  6321. done
  6322. IFS=$as_save_IFS
  6323. fi
  6324. fi
  6325. LIPO=$ac_cv_prog_LIPO
  6326. if test -n "$LIPO"; then
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6328. $as_echo "$LIPO" >&6; }
  6329. else
  6330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6331. $as_echo "no" >&6; }
  6332. fi
  6333. fi
  6334. if test -z "$ac_cv_prog_LIPO"; then
  6335. ac_ct_LIPO=$LIPO
  6336. # Extract the first word of "lipo", so it can be a program name with args.
  6337. set dummy lipo; ac_word=$2
  6338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6339. $as_echo_n "checking for $ac_word... " >&6; }
  6340. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6341. $as_echo_n "(cached) " >&6
  6342. else
  6343. if test -n "$ac_ct_LIPO"; then
  6344. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6345. else
  6346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6347. for as_dir in $PATH
  6348. do
  6349. IFS=$as_save_IFS
  6350. test -z "$as_dir" && as_dir=.
  6351. for ac_exec_ext in '' $ac_executable_extensions; do
  6352. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6353. ac_cv_prog_ac_ct_LIPO="lipo"
  6354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6355. break 2
  6356. fi
  6357. done
  6358. done
  6359. IFS=$as_save_IFS
  6360. fi
  6361. fi
  6362. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6363. if test -n "$ac_ct_LIPO"; then
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6365. $as_echo "$ac_ct_LIPO" >&6; }
  6366. else
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6368. $as_echo "no" >&6; }
  6369. fi
  6370. if test "x$ac_ct_LIPO" = x; then
  6371. LIPO=":"
  6372. else
  6373. case $cross_compiling:$ac_tool_warned in
  6374. yes:)
  6375. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6376. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6377. ac_tool_warned=yes ;;
  6378. esac
  6379. LIPO=$ac_ct_LIPO
  6380. fi
  6381. else
  6382. LIPO="$ac_cv_prog_LIPO"
  6383. fi
  6384. if test -n "$ac_tool_prefix"; then
  6385. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6386. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6388. $as_echo_n "checking for $ac_word... " >&6; }
  6389. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6390. $as_echo_n "(cached) " >&6
  6391. else
  6392. if test -n "$OTOOL"; then
  6393. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6394. else
  6395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6396. for as_dir in $PATH
  6397. do
  6398. IFS=$as_save_IFS
  6399. test -z "$as_dir" && as_dir=.
  6400. for ac_exec_ext in '' $ac_executable_extensions; do
  6401. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6402. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6403. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6404. break 2
  6405. fi
  6406. done
  6407. done
  6408. IFS=$as_save_IFS
  6409. fi
  6410. fi
  6411. OTOOL=$ac_cv_prog_OTOOL
  6412. if test -n "$OTOOL"; then
  6413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6414. $as_echo "$OTOOL" >&6; }
  6415. else
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6417. $as_echo "no" >&6; }
  6418. fi
  6419. fi
  6420. if test -z "$ac_cv_prog_OTOOL"; then
  6421. ac_ct_OTOOL=$OTOOL
  6422. # Extract the first word of "otool", so it can be a program name with args.
  6423. set dummy otool; ac_word=$2
  6424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6425. $as_echo_n "checking for $ac_word... " >&6; }
  6426. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6427. $as_echo_n "(cached) " >&6
  6428. else
  6429. if test -n "$ac_ct_OTOOL"; then
  6430. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6431. else
  6432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6433. for as_dir in $PATH
  6434. do
  6435. IFS=$as_save_IFS
  6436. test -z "$as_dir" && as_dir=.
  6437. for ac_exec_ext in '' $ac_executable_extensions; do
  6438. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6439. ac_cv_prog_ac_ct_OTOOL="otool"
  6440. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6441. break 2
  6442. fi
  6443. done
  6444. done
  6445. IFS=$as_save_IFS
  6446. fi
  6447. fi
  6448. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6449. if test -n "$ac_ct_OTOOL"; then
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6451. $as_echo "$ac_ct_OTOOL" >&6; }
  6452. else
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6454. $as_echo "no" >&6; }
  6455. fi
  6456. if test "x$ac_ct_OTOOL" = x; then
  6457. OTOOL=":"
  6458. else
  6459. case $cross_compiling:$ac_tool_warned in
  6460. yes:)
  6461. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6462. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6463. ac_tool_warned=yes ;;
  6464. esac
  6465. OTOOL=$ac_ct_OTOOL
  6466. fi
  6467. else
  6468. OTOOL="$ac_cv_prog_OTOOL"
  6469. fi
  6470. if test -n "$ac_tool_prefix"; then
  6471. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6472. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6474. $as_echo_n "checking for $ac_word... " >&6; }
  6475. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6476. $as_echo_n "(cached) " >&6
  6477. else
  6478. if test -n "$OTOOL64"; then
  6479. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6480. else
  6481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6482. for as_dir in $PATH
  6483. do
  6484. IFS=$as_save_IFS
  6485. test -z "$as_dir" && as_dir=.
  6486. for ac_exec_ext in '' $ac_executable_extensions; do
  6487. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6488. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6489. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6490. break 2
  6491. fi
  6492. done
  6493. done
  6494. IFS=$as_save_IFS
  6495. fi
  6496. fi
  6497. OTOOL64=$ac_cv_prog_OTOOL64
  6498. if test -n "$OTOOL64"; then
  6499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6500. $as_echo "$OTOOL64" >&6; }
  6501. else
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6503. $as_echo "no" >&6; }
  6504. fi
  6505. fi
  6506. if test -z "$ac_cv_prog_OTOOL64"; then
  6507. ac_ct_OTOOL64=$OTOOL64
  6508. # Extract the first word of "otool64", so it can be a program name with args.
  6509. set dummy otool64; ac_word=$2
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6511. $as_echo_n "checking for $ac_word... " >&6; }
  6512. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6513. $as_echo_n "(cached) " >&6
  6514. else
  6515. if test -n "$ac_ct_OTOOL64"; then
  6516. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6517. else
  6518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6519. for as_dir in $PATH
  6520. do
  6521. IFS=$as_save_IFS
  6522. test -z "$as_dir" && as_dir=.
  6523. for ac_exec_ext in '' $ac_executable_extensions; do
  6524. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6525. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6527. break 2
  6528. fi
  6529. done
  6530. done
  6531. IFS=$as_save_IFS
  6532. fi
  6533. fi
  6534. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6535. if test -n "$ac_ct_OTOOL64"; then
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6537. $as_echo "$ac_ct_OTOOL64" >&6; }
  6538. else
  6539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6540. $as_echo "no" >&6; }
  6541. fi
  6542. if test "x$ac_ct_OTOOL64" = x; then
  6543. OTOOL64=":"
  6544. else
  6545. case $cross_compiling:$ac_tool_warned in
  6546. yes:)
  6547. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6548. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6549. ac_tool_warned=yes ;;
  6550. esac
  6551. OTOOL64=$ac_ct_OTOOL64
  6552. fi
  6553. else
  6554. OTOOL64="$ac_cv_prog_OTOOL64"
  6555. fi
  6556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6557. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6558. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6559. $as_echo_n "(cached) " >&6
  6560. else
  6561. lt_cv_apple_cc_single_mod=no
  6562. if test -z "${LT_MULTI_MODULE}"; then
  6563. # By default we will add the -single_module flag. You can override
  6564. # by either setting the environment variable LT_MULTI_MODULE
  6565. # non-empty at configure time, or by adding -multi_module to the
  6566. # link flags.
  6567. rm -rf libconftest.dylib*
  6568. echo "int foo(void){return 1;}" > conftest.c
  6569. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6570. -dynamiclib -Wl,-single_module conftest.c" >&5
  6571. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6572. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6573. _lt_result=$?
  6574. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6575. lt_cv_apple_cc_single_mod=yes
  6576. else
  6577. cat conftest.err >&5
  6578. fi
  6579. rm -rf libconftest.dylib*
  6580. rm -f conftest.*
  6581. fi
  6582. fi
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6584. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6586. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6587. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6588. $as_echo_n "(cached) " >&6
  6589. else
  6590. lt_cv_ld_exported_symbols_list=no
  6591. save_LDFLAGS=$LDFLAGS
  6592. echo "_main" > conftest.sym
  6593. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6595. /* end confdefs.h. */
  6596. int
  6597. main ()
  6598. {
  6599. ;
  6600. return 0;
  6601. }
  6602. _ACEOF
  6603. if ac_fn_c_try_link "$LINENO"; then :
  6604. lt_cv_ld_exported_symbols_list=yes
  6605. else
  6606. lt_cv_ld_exported_symbols_list=no
  6607. fi
  6608. rm -f core conftest.err conftest.$ac_objext \
  6609. conftest$ac_exeext conftest.$ac_ext
  6610. LDFLAGS="$save_LDFLAGS"
  6611. fi
  6612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6613. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6615. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6616. if test "${lt_cv_ld_force_load+set}" = set; then :
  6617. $as_echo_n "(cached) " >&6
  6618. else
  6619. lt_cv_ld_force_load=no
  6620. cat > conftest.c << _LT_EOF
  6621. int forced_loaded() { return 2;}
  6622. _LT_EOF
  6623. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6624. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6625. echo "$AR cru libconftest.a conftest.o" >&5
  6626. $AR cru libconftest.a conftest.o 2>&5
  6627. cat > conftest.c << _LT_EOF
  6628. int main() { return 0;}
  6629. _LT_EOF
  6630. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6631. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6632. _lt_result=$?
  6633. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6634. lt_cv_ld_force_load=yes
  6635. else
  6636. cat conftest.err >&5
  6637. fi
  6638. rm -f conftest.err libconftest.a conftest conftest.c
  6639. rm -rf conftest.dSYM
  6640. fi
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6642. $as_echo "$lt_cv_ld_force_load" >&6; }
  6643. case $host_os in
  6644. rhapsody* | darwin1.[012])
  6645. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6646. darwin1.*)
  6647. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6648. darwin*) # darwin 5.x on
  6649. # if running on 10.5 or later, the deployment target defaults
  6650. # to the OS version, if on x86, and 10.4, the deployment
  6651. # target defaults to 10.4. Don't you love it?
  6652. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6653. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6654. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6655. 10.[012][,.]*)
  6656. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6657. 10.*)
  6658. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6659. esac
  6660. ;;
  6661. esac
  6662. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6663. _lt_dar_single_mod='$single_module'
  6664. fi
  6665. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6666. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6667. else
  6668. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6669. fi
  6670. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6671. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6672. else
  6673. _lt_dsymutil=
  6674. fi
  6675. ;;
  6676. esac
  6677. for ac_header in dlfcn.h
  6678. do :
  6679. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6680. "
  6681. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6682. cat >>confdefs.h <<_ACEOF
  6683. #define HAVE_DLFCN_H 1
  6684. _ACEOF
  6685. fi
  6686. done
  6687. # Set options
  6688. enable_win32_dll=no
  6689. # Check whether --enable-shared was given.
  6690. if test "${enable_shared+set}" = set; then :
  6691. enableval=$enable_shared; p=${PACKAGE-default}
  6692. case $enableval in
  6693. yes) enable_shared=yes ;;
  6694. no) enable_shared=no ;;
  6695. *)
  6696. enable_shared=no
  6697. # Look at the argument we got. We use all the common list separators.
  6698. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6699. for pkg in $enableval; do
  6700. IFS="$lt_save_ifs"
  6701. if test "X$pkg" = "X$p"; then
  6702. enable_shared=yes
  6703. fi
  6704. done
  6705. IFS="$lt_save_ifs"
  6706. ;;
  6707. esac
  6708. else
  6709. enable_shared=yes
  6710. fi
  6711. # Check whether --enable-static was given.
  6712. if test "${enable_static+set}" = set; then :
  6713. enableval=$enable_static; p=${PACKAGE-default}
  6714. case $enableval in
  6715. yes) enable_static=yes ;;
  6716. no) enable_static=no ;;
  6717. *)
  6718. enable_static=no
  6719. # Look at the argument we got. We use all the common list separators.
  6720. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6721. for pkg in $enableval; do
  6722. IFS="$lt_save_ifs"
  6723. if test "X$pkg" = "X$p"; then
  6724. enable_static=yes
  6725. fi
  6726. done
  6727. IFS="$lt_save_ifs"
  6728. ;;
  6729. esac
  6730. else
  6731. enable_static=yes
  6732. fi
  6733. # Check whether --with-pic was given.
  6734. if test "${with_pic+set}" = set; then :
  6735. withval=$with_pic; pic_mode="$withval"
  6736. else
  6737. pic_mode=default
  6738. fi
  6739. test -z "$pic_mode" && pic_mode=default
  6740. # Check whether --enable-fast-install was given.
  6741. if test "${enable_fast_install+set}" = set; then :
  6742. enableval=$enable_fast_install; p=${PACKAGE-default}
  6743. case $enableval in
  6744. yes) enable_fast_install=yes ;;
  6745. no) enable_fast_install=no ;;
  6746. *)
  6747. enable_fast_install=no
  6748. # Look at the argument we got. We use all the common list separators.
  6749. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6750. for pkg in $enableval; do
  6751. IFS="$lt_save_ifs"
  6752. if test "X$pkg" = "X$p"; then
  6753. enable_fast_install=yes
  6754. fi
  6755. done
  6756. IFS="$lt_save_ifs"
  6757. ;;
  6758. esac
  6759. else
  6760. enable_fast_install=yes
  6761. fi
  6762. # This can be used to rebuild libtool when needed
  6763. LIBTOOL_DEPS="$ltmain"
  6764. # Always use our own libtool.
  6765. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6766. test -z "$LN_S" && LN_S="ln -s"
  6767. if test -n "${ZSH_VERSION+set}" ; then
  6768. setopt NO_GLOB_SUBST
  6769. fi
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6771. $as_echo_n "checking for objdir... " >&6; }
  6772. if test "${lt_cv_objdir+set}" = set; then :
  6773. $as_echo_n "(cached) " >&6
  6774. else
  6775. rm -f .libs 2>/dev/null
  6776. mkdir .libs 2>/dev/null
  6777. if test -d .libs; then
  6778. lt_cv_objdir=.libs
  6779. else
  6780. # MS-DOS does not allow filenames that begin with a dot.
  6781. lt_cv_objdir=_libs
  6782. fi
  6783. rmdir .libs 2>/dev/null
  6784. fi
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6786. $as_echo "$lt_cv_objdir" >&6; }
  6787. objdir=$lt_cv_objdir
  6788. cat >>confdefs.h <<_ACEOF
  6789. #define LT_OBJDIR "$lt_cv_objdir/"
  6790. _ACEOF
  6791. case $host_os in
  6792. aix3*)
  6793. # AIX sometimes has problems with the GCC collect2 program. For some
  6794. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6795. # vanish in a puff of smoke.
  6796. if test "X${COLLECT_NAMES+set}" != Xset; then
  6797. COLLECT_NAMES=
  6798. export COLLECT_NAMES
  6799. fi
  6800. ;;
  6801. esac
  6802. # Global variables:
  6803. ofile=libtool
  6804. can_build_shared=yes
  6805. # All known linkers require a `.a' archive for static linking (except MSVC,
  6806. # which needs '.lib').
  6807. libext=a
  6808. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6809. old_CC="$CC"
  6810. old_CFLAGS="$CFLAGS"
  6811. # Set sane defaults for various variables
  6812. test -z "$CC" && CC=cc
  6813. test -z "$LTCC" && LTCC=$CC
  6814. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6815. test -z "$LD" && LD=ld
  6816. test -z "$ac_objext" && ac_objext=o
  6817. for cc_temp in $compiler""; do
  6818. case $cc_temp in
  6819. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6820. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6821. \-*) ;;
  6822. *) break;;
  6823. esac
  6824. done
  6825. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6826. # Only perform the check for file, if the check method requires it
  6827. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6828. case $deplibs_check_method in
  6829. file_magic*)
  6830. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6832. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6833. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6834. $as_echo_n "(cached) " >&6
  6835. else
  6836. case $MAGIC_CMD in
  6837. [\\/*] | ?:[\\/]*)
  6838. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6839. ;;
  6840. *)
  6841. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6842. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6843. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6844. for ac_dir in $ac_dummy; do
  6845. IFS="$lt_save_ifs"
  6846. test -z "$ac_dir" && ac_dir=.
  6847. if test -f $ac_dir/${ac_tool_prefix}file; then
  6848. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6849. if test -n "$file_magic_test_file"; then
  6850. case $deplibs_check_method in
  6851. "file_magic "*)
  6852. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6853. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6854. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6855. $EGREP "$file_magic_regex" > /dev/null; then
  6856. :
  6857. else
  6858. cat <<_LT_EOF 1>&2
  6859. *** Warning: the command libtool uses to detect shared libraries,
  6860. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6861. *** The result is that libtool may fail to recognize shared libraries
  6862. *** as such. This will affect the creation of libtool libraries that
  6863. *** depend on shared libraries, but programs linked with such libtool
  6864. *** libraries will work regardless of this problem. Nevertheless, you
  6865. *** may want to report the problem to your system manager and/or to
  6866. *** bug-libtool@gnu.org
  6867. _LT_EOF
  6868. fi ;;
  6869. esac
  6870. fi
  6871. break
  6872. fi
  6873. done
  6874. IFS="$lt_save_ifs"
  6875. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6876. ;;
  6877. esac
  6878. fi
  6879. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6880. if test -n "$MAGIC_CMD"; then
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6882. $as_echo "$MAGIC_CMD" >&6; }
  6883. else
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6885. $as_echo "no" >&6; }
  6886. fi
  6887. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6888. if test -n "$ac_tool_prefix"; then
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6890. $as_echo_n "checking for file... " >&6; }
  6891. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6892. $as_echo_n "(cached) " >&6
  6893. else
  6894. case $MAGIC_CMD in
  6895. [\\/*] | ?:[\\/]*)
  6896. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6897. ;;
  6898. *)
  6899. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6900. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6901. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6902. for ac_dir in $ac_dummy; do
  6903. IFS="$lt_save_ifs"
  6904. test -z "$ac_dir" && ac_dir=.
  6905. if test -f $ac_dir/file; then
  6906. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6907. if test -n "$file_magic_test_file"; then
  6908. case $deplibs_check_method in
  6909. "file_magic "*)
  6910. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6911. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6912. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6913. $EGREP "$file_magic_regex" > /dev/null; then
  6914. :
  6915. else
  6916. cat <<_LT_EOF 1>&2
  6917. *** Warning: the command libtool uses to detect shared libraries,
  6918. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6919. *** The result is that libtool may fail to recognize shared libraries
  6920. *** as such. This will affect the creation of libtool libraries that
  6921. *** depend on shared libraries, but programs linked with such libtool
  6922. *** libraries will work regardless of this problem. Nevertheless, you
  6923. *** may want to report the problem to your system manager and/or to
  6924. *** bug-libtool@gnu.org
  6925. _LT_EOF
  6926. fi ;;
  6927. esac
  6928. fi
  6929. break
  6930. fi
  6931. done
  6932. IFS="$lt_save_ifs"
  6933. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6934. ;;
  6935. esac
  6936. fi
  6937. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6938. if test -n "$MAGIC_CMD"; then
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6940. $as_echo "$MAGIC_CMD" >&6; }
  6941. else
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6943. $as_echo "no" >&6; }
  6944. fi
  6945. else
  6946. MAGIC_CMD=:
  6947. fi
  6948. fi
  6949. fi
  6950. ;;
  6951. esac
  6952. # Use C for the default configuration in the libtool script
  6953. lt_save_CC="$CC"
  6954. ac_ext=c
  6955. ac_cpp='$CPP $CPPFLAGS'
  6956. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6957. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6958. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6959. # Source file extension for C test sources.
  6960. ac_ext=c
  6961. # Object file extension for compiled C test sources.
  6962. objext=o
  6963. objext=$objext
  6964. # Code to be used in simple compile tests
  6965. lt_simple_compile_test_code="int some_variable = 0;"
  6966. # Code to be used in simple link tests
  6967. lt_simple_link_test_code='int main(){return(0);}'
  6968. # If no C compiler was specified, use CC.
  6969. LTCC=${LTCC-"$CC"}
  6970. # If no C compiler flags were specified, use CFLAGS.
  6971. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6972. # Allow CC to be a program name with arguments.
  6973. compiler=$CC
  6974. # Save the default compiler, since it gets overwritten when the other
  6975. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6976. compiler_DEFAULT=$CC
  6977. # save warnings/boilerplate of simple test code
  6978. ac_outfile=conftest.$ac_objext
  6979. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6980. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6981. _lt_compiler_boilerplate=`cat conftest.err`
  6982. $RM conftest*
  6983. ac_outfile=conftest.$ac_objext
  6984. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6985. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6986. _lt_linker_boilerplate=`cat conftest.err`
  6987. $RM -r conftest*
  6988. ## CAVEAT EMPTOR:
  6989. ## There is no encapsulation within the following macros, do not change
  6990. ## the running order or otherwise move them around unless you know exactly
  6991. ## what you are doing...
  6992. if test -n "$compiler"; then
  6993. lt_prog_compiler_no_builtin_flag=
  6994. if test "$GCC" = yes; then
  6995. case $cc_basename in
  6996. nvcc*)
  6997. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6998. *)
  6999. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7000. esac
  7001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7002. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7003. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7004. $as_echo_n "(cached) " >&6
  7005. else
  7006. lt_cv_prog_compiler_rtti_exceptions=no
  7007. ac_outfile=conftest.$ac_objext
  7008. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7009. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7010. # Insert the option either (1) after the last *FLAGS variable, or
  7011. # (2) before a word containing "conftest.", or (3) at the end.
  7012. # Note that $ac_compile itself does not contain backslashes and begins
  7013. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7014. # The option is referenced via a variable to avoid confusing sed.
  7015. lt_compile=`echo "$ac_compile" | $SED \
  7016. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7017. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7018. -e 's:$: $lt_compiler_flag:'`
  7019. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7020. (eval "$lt_compile" 2>conftest.err)
  7021. ac_status=$?
  7022. cat conftest.err >&5
  7023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7024. if (exit $ac_status) && test -s "$ac_outfile"; then
  7025. # The compiler can only warn and ignore the option if not recognized
  7026. # So say no if there are warnings other than the usual output.
  7027. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7028. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7029. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7030. lt_cv_prog_compiler_rtti_exceptions=yes
  7031. fi
  7032. fi
  7033. $RM conftest*
  7034. fi
  7035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7036. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7037. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7038. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7039. else
  7040. :
  7041. fi
  7042. fi
  7043. lt_prog_compiler_wl=
  7044. lt_prog_compiler_pic=
  7045. lt_prog_compiler_static=
  7046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7047. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7048. if test "$GCC" = yes; then
  7049. lt_prog_compiler_wl='-Wl,'
  7050. lt_prog_compiler_static='-static'
  7051. case $host_os in
  7052. aix*)
  7053. # All AIX code is PIC.
  7054. if test "$host_cpu" = ia64; then
  7055. # AIX 5 now supports IA64 processor
  7056. lt_prog_compiler_static='-Bstatic'
  7057. fi
  7058. lt_prog_compiler_pic='-fPIC'
  7059. ;;
  7060. amigaos*)
  7061. case $host_cpu in
  7062. powerpc)
  7063. # see comment about AmigaOS4 .so support
  7064. lt_prog_compiler_pic='-fPIC'
  7065. ;;
  7066. m68k)
  7067. # FIXME: we need at least 68020 code to build shared libraries, but
  7068. # adding the `-m68020' flag to GCC prevents building anything better,
  7069. # like `-m68040'.
  7070. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7071. ;;
  7072. esac
  7073. ;;
  7074. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7075. # PIC is the default for these OSes.
  7076. ;;
  7077. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7078. # This hack is so that the source file can tell whether it is being
  7079. # built for inclusion in a dll (and should export symbols for example).
  7080. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7081. # (--disable-auto-import) libraries
  7082. lt_prog_compiler_pic='-DDLL_EXPORT'
  7083. ;;
  7084. darwin* | rhapsody*)
  7085. # PIC is the default on this platform
  7086. # Common symbols not allowed in MH_DYLIB files
  7087. lt_prog_compiler_pic='-fno-common'
  7088. ;;
  7089. haiku*)
  7090. # PIC is the default for Haiku.
  7091. # The "-static" flag exists, but is broken.
  7092. lt_prog_compiler_static=
  7093. ;;
  7094. hpux*)
  7095. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7096. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7097. # sets the default TLS model and affects inlining.
  7098. case $host_cpu in
  7099. hppa*64*)
  7100. # +Z the default
  7101. ;;
  7102. *)
  7103. lt_prog_compiler_pic='-fPIC'
  7104. ;;
  7105. esac
  7106. ;;
  7107. interix[3-9]*)
  7108. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7109. # Instead, we relocate shared libraries at runtime.
  7110. ;;
  7111. msdosdjgpp*)
  7112. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7113. # on systems that don't support them.
  7114. lt_prog_compiler_can_build_shared=no
  7115. enable_shared=no
  7116. ;;
  7117. *nto* | *qnx*)
  7118. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7119. # it will coredump.
  7120. lt_prog_compiler_pic='-fPIC -shared'
  7121. ;;
  7122. sysv4*MP*)
  7123. if test -d /usr/nec; then
  7124. lt_prog_compiler_pic=-Kconform_pic
  7125. fi
  7126. ;;
  7127. *)
  7128. lt_prog_compiler_pic='-fPIC'
  7129. ;;
  7130. esac
  7131. case $cc_basename in
  7132. nvcc*) # Cuda Compiler Driver 2.2
  7133. lt_prog_compiler_wl='-Xlinker '
  7134. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7135. ;;
  7136. esac
  7137. else
  7138. # PORTME Check for flag to pass linker flags through the system compiler.
  7139. case $host_os in
  7140. aix*)
  7141. lt_prog_compiler_wl='-Wl,'
  7142. if test "$host_cpu" = ia64; then
  7143. # AIX 5 now supports IA64 processor
  7144. lt_prog_compiler_static='-Bstatic'
  7145. else
  7146. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7147. fi
  7148. ;;
  7149. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7150. # This hack is so that the source file can tell whether it is being
  7151. # built for inclusion in a dll (and should export symbols for example).
  7152. lt_prog_compiler_pic='-DDLL_EXPORT'
  7153. ;;
  7154. hpux9* | hpux10* | hpux11*)
  7155. lt_prog_compiler_wl='-Wl,'
  7156. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7157. # not for PA HP-UX.
  7158. case $host_cpu in
  7159. hppa*64*|ia64*)
  7160. # +Z the default
  7161. ;;
  7162. *)
  7163. lt_prog_compiler_pic='+Z'
  7164. ;;
  7165. esac
  7166. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7167. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7168. ;;
  7169. irix5* | irix6* | nonstopux*)
  7170. lt_prog_compiler_wl='-Wl,'
  7171. # PIC (with -KPIC) is the default.
  7172. lt_prog_compiler_static='-non_shared'
  7173. ;;
  7174. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7175. case $cc_basename in
  7176. # old Intel for x86_64 which still supported -KPIC.
  7177. ecc*)
  7178. lt_prog_compiler_wl='-Wl,'
  7179. lt_prog_compiler_pic='-KPIC'
  7180. lt_prog_compiler_static='-static'
  7181. ;;
  7182. # icc used to be incompatible with GCC.
  7183. # ICC 10 doesn't accept -KPIC any more.
  7184. icc* | ifort*)
  7185. lt_prog_compiler_wl='-Wl,'
  7186. lt_prog_compiler_pic='-fPIC'
  7187. lt_prog_compiler_static='-static'
  7188. ;;
  7189. # Lahey Fortran 8.1.
  7190. lf95*)
  7191. lt_prog_compiler_wl='-Wl,'
  7192. lt_prog_compiler_pic='--shared'
  7193. lt_prog_compiler_static='--static'
  7194. ;;
  7195. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7196. # Portland Group compilers (*not* the Pentium gcc compiler,
  7197. # which looks to be a dead project)
  7198. lt_prog_compiler_wl='-Wl,'
  7199. lt_prog_compiler_pic='-fpic'
  7200. lt_prog_compiler_static='-Bstatic'
  7201. ;;
  7202. ccc*)
  7203. lt_prog_compiler_wl='-Wl,'
  7204. # All Alpha code is PIC.
  7205. lt_prog_compiler_static='-non_shared'
  7206. ;;
  7207. xl* | bgxl* | bgf* | mpixl*)
  7208. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7209. lt_prog_compiler_wl='-Wl,'
  7210. lt_prog_compiler_pic='-qpic'
  7211. lt_prog_compiler_static='-qstaticlink'
  7212. ;;
  7213. *)
  7214. case `$CC -V 2>&1 | sed 5q` in
  7215. *Sun\ F* | *Sun*Fortran*)
  7216. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7217. lt_prog_compiler_pic='-KPIC'
  7218. lt_prog_compiler_static='-Bstatic'
  7219. lt_prog_compiler_wl=''
  7220. ;;
  7221. *Sun\ C*)
  7222. # Sun C 5.9
  7223. lt_prog_compiler_pic='-KPIC'
  7224. lt_prog_compiler_static='-Bstatic'
  7225. lt_prog_compiler_wl='-Wl,'
  7226. ;;
  7227. esac
  7228. ;;
  7229. esac
  7230. ;;
  7231. newsos6)
  7232. lt_prog_compiler_pic='-KPIC'
  7233. lt_prog_compiler_static='-Bstatic'
  7234. ;;
  7235. *nto* | *qnx*)
  7236. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7237. # it will coredump.
  7238. lt_prog_compiler_pic='-fPIC -shared'
  7239. ;;
  7240. osf3* | osf4* | osf5*)
  7241. lt_prog_compiler_wl='-Wl,'
  7242. # All OSF/1 code is PIC.
  7243. lt_prog_compiler_static='-non_shared'
  7244. ;;
  7245. rdos*)
  7246. lt_prog_compiler_static='-non_shared'
  7247. ;;
  7248. solaris*)
  7249. lt_prog_compiler_pic='-KPIC'
  7250. lt_prog_compiler_static='-Bstatic'
  7251. case $cc_basename in
  7252. f77* | f90* | f95*)
  7253. lt_prog_compiler_wl='-Qoption ld ';;
  7254. *)
  7255. lt_prog_compiler_wl='-Wl,';;
  7256. esac
  7257. ;;
  7258. sunos4*)
  7259. lt_prog_compiler_wl='-Qoption ld '
  7260. lt_prog_compiler_pic='-PIC'
  7261. lt_prog_compiler_static='-Bstatic'
  7262. ;;
  7263. sysv4 | sysv4.2uw2* | sysv4.3*)
  7264. lt_prog_compiler_wl='-Wl,'
  7265. lt_prog_compiler_pic='-KPIC'
  7266. lt_prog_compiler_static='-Bstatic'
  7267. ;;
  7268. sysv4*MP*)
  7269. if test -d /usr/nec ;then
  7270. lt_prog_compiler_pic='-Kconform_pic'
  7271. lt_prog_compiler_static='-Bstatic'
  7272. fi
  7273. ;;
  7274. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7275. lt_prog_compiler_wl='-Wl,'
  7276. lt_prog_compiler_pic='-KPIC'
  7277. lt_prog_compiler_static='-Bstatic'
  7278. ;;
  7279. unicos*)
  7280. lt_prog_compiler_wl='-Wl,'
  7281. lt_prog_compiler_can_build_shared=no
  7282. ;;
  7283. uts4*)
  7284. lt_prog_compiler_pic='-pic'
  7285. lt_prog_compiler_static='-Bstatic'
  7286. ;;
  7287. *)
  7288. lt_prog_compiler_can_build_shared=no
  7289. ;;
  7290. esac
  7291. fi
  7292. case $host_os in
  7293. # For platforms which do not support PIC, -DPIC is meaningless:
  7294. *djgpp*)
  7295. lt_prog_compiler_pic=
  7296. ;;
  7297. *)
  7298. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7299. ;;
  7300. esac
  7301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7302. $as_echo "$lt_prog_compiler_pic" >&6; }
  7303. #
  7304. # Check to make sure the PIC flag actually works.
  7305. #
  7306. if test -n "$lt_prog_compiler_pic"; then
  7307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7308. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7309. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7310. $as_echo_n "(cached) " >&6
  7311. else
  7312. lt_cv_prog_compiler_pic_works=no
  7313. ac_outfile=conftest.$ac_objext
  7314. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7315. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7316. # Insert the option either (1) after the last *FLAGS variable, or
  7317. # (2) before a word containing "conftest.", or (3) at the end.
  7318. # Note that $ac_compile itself does not contain backslashes and begins
  7319. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7320. # The option is referenced via a variable to avoid confusing sed.
  7321. lt_compile=`echo "$ac_compile" | $SED \
  7322. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7323. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7324. -e 's:$: $lt_compiler_flag:'`
  7325. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7326. (eval "$lt_compile" 2>conftest.err)
  7327. ac_status=$?
  7328. cat conftest.err >&5
  7329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7330. if (exit $ac_status) && test -s "$ac_outfile"; then
  7331. # The compiler can only warn and ignore the option if not recognized
  7332. # So say no if there are warnings other than the usual output.
  7333. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7334. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7335. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7336. lt_cv_prog_compiler_pic_works=yes
  7337. fi
  7338. fi
  7339. $RM conftest*
  7340. fi
  7341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7342. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7343. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7344. case $lt_prog_compiler_pic in
  7345. "" | " "*) ;;
  7346. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7347. esac
  7348. else
  7349. lt_prog_compiler_pic=
  7350. lt_prog_compiler_can_build_shared=no
  7351. fi
  7352. fi
  7353. #
  7354. # Check to make sure the static flag actually works.
  7355. #
  7356. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7358. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7359. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7360. $as_echo_n "(cached) " >&6
  7361. else
  7362. lt_cv_prog_compiler_static_works=no
  7363. save_LDFLAGS="$LDFLAGS"
  7364. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7365. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7366. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7367. # The linker can only warn and ignore the option if not recognized
  7368. # So say no if there are warnings
  7369. if test -s conftest.err; then
  7370. # Append any errors to the config.log.
  7371. cat conftest.err 1>&5
  7372. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7373. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7374. if diff conftest.exp conftest.er2 >/dev/null; then
  7375. lt_cv_prog_compiler_static_works=yes
  7376. fi
  7377. else
  7378. lt_cv_prog_compiler_static_works=yes
  7379. fi
  7380. fi
  7381. $RM -r conftest*
  7382. LDFLAGS="$save_LDFLAGS"
  7383. fi
  7384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7385. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7386. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7387. :
  7388. else
  7389. lt_prog_compiler_static=
  7390. fi
  7391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7392. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7393. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7394. $as_echo_n "(cached) " >&6
  7395. else
  7396. lt_cv_prog_compiler_c_o=no
  7397. $RM -r conftest 2>/dev/null
  7398. mkdir conftest
  7399. cd conftest
  7400. mkdir out
  7401. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7402. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7403. # Insert the option either (1) after the last *FLAGS variable, or
  7404. # (2) before a word containing "conftest.", or (3) at the end.
  7405. # Note that $ac_compile itself does not contain backslashes and begins
  7406. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7407. lt_compile=`echo "$ac_compile" | $SED \
  7408. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7409. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7410. -e 's:$: $lt_compiler_flag:'`
  7411. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7412. (eval "$lt_compile" 2>out/conftest.err)
  7413. ac_status=$?
  7414. cat out/conftest.err >&5
  7415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7416. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7417. then
  7418. # The compiler can only warn and ignore the option if not recognized
  7419. # So say no if there are warnings
  7420. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7421. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7422. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7423. lt_cv_prog_compiler_c_o=yes
  7424. fi
  7425. fi
  7426. chmod u+w . 2>&5
  7427. $RM conftest*
  7428. # SGI C++ compiler will create directory out/ii_files/ for
  7429. # template instantiation
  7430. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7431. $RM out/* && rmdir out
  7432. cd ..
  7433. $RM -r conftest
  7434. $RM conftest*
  7435. fi
  7436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7437. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7439. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7440. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7441. $as_echo_n "(cached) " >&6
  7442. else
  7443. lt_cv_prog_compiler_c_o=no
  7444. $RM -r conftest 2>/dev/null
  7445. mkdir conftest
  7446. cd conftest
  7447. mkdir out
  7448. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7449. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7450. # Insert the option either (1) after the last *FLAGS variable, or
  7451. # (2) before a word containing "conftest.", or (3) at the end.
  7452. # Note that $ac_compile itself does not contain backslashes and begins
  7453. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7454. lt_compile=`echo "$ac_compile" | $SED \
  7455. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7456. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7457. -e 's:$: $lt_compiler_flag:'`
  7458. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7459. (eval "$lt_compile" 2>out/conftest.err)
  7460. ac_status=$?
  7461. cat out/conftest.err >&5
  7462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7463. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7464. then
  7465. # The compiler can only warn and ignore the option if not recognized
  7466. # So say no if there are warnings
  7467. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7468. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7469. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7470. lt_cv_prog_compiler_c_o=yes
  7471. fi
  7472. fi
  7473. chmod u+w . 2>&5
  7474. $RM conftest*
  7475. # SGI C++ compiler will create directory out/ii_files/ for
  7476. # template instantiation
  7477. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7478. $RM out/* && rmdir out
  7479. cd ..
  7480. $RM -r conftest
  7481. $RM conftest*
  7482. fi
  7483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7484. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7485. hard_links="nottested"
  7486. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7487. # do not overwrite the value of need_locks provided by the user
  7488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7489. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7490. hard_links=yes
  7491. $RM conftest*
  7492. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7493. touch conftest.a
  7494. ln conftest.a conftest.b 2>&5 || hard_links=no
  7495. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7497. $as_echo "$hard_links" >&6; }
  7498. if test "$hard_links" = no; then
  7499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7500. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7501. need_locks=warn
  7502. fi
  7503. else
  7504. need_locks=no
  7505. fi
  7506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7507. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7508. runpath_var=
  7509. allow_undefined_flag=
  7510. always_export_symbols=no
  7511. archive_cmds=
  7512. archive_expsym_cmds=
  7513. compiler_needs_object=no
  7514. enable_shared_with_static_runtimes=no
  7515. export_dynamic_flag_spec=
  7516. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7517. hardcode_automatic=no
  7518. hardcode_direct=no
  7519. hardcode_direct_absolute=no
  7520. hardcode_libdir_flag_spec=
  7521. hardcode_libdir_flag_spec_ld=
  7522. hardcode_libdir_separator=
  7523. hardcode_minus_L=no
  7524. hardcode_shlibpath_var=unsupported
  7525. inherit_rpath=no
  7526. link_all_deplibs=unknown
  7527. module_cmds=
  7528. module_expsym_cmds=
  7529. old_archive_from_new_cmds=
  7530. old_archive_from_expsyms_cmds=
  7531. thread_safe_flag_spec=
  7532. whole_archive_flag_spec=
  7533. # include_expsyms should be a list of space-separated symbols to be *always*
  7534. # included in the symbol list
  7535. include_expsyms=
  7536. # exclude_expsyms can be an extended regexp of symbols to exclude
  7537. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7538. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7539. # as well as any symbol that contains `d'.
  7540. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7541. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7542. # platforms (ab)use it in PIC code, but their linkers get confused if
  7543. # the symbol is explicitly referenced. Since portable code cannot
  7544. # rely on this symbol name, it's probably fine to never include it in
  7545. # preloaded symbol tables.
  7546. # Exclude shared library initialization/finalization symbols.
  7547. extract_expsyms_cmds=
  7548. case $host_os in
  7549. cygwin* | mingw* | pw32* | cegcc*)
  7550. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7551. # When not using gcc, we currently assume that we are using
  7552. # Microsoft Visual C++.
  7553. if test "$GCC" != yes; then
  7554. with_gnu_ld=no
  7555. fi
  7556. ;;
  7557. interix*)
  7558. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7559. with_gnu_ld=yes
  7560. ;;
  7561. openbsd*)
  7562. with_gnu_ld=no
  7563. ;;
  7564. esac
  7565. ld_shlibs=yes
  7566. # On some targets, GNU ld is compatible enough with the native linker
  7567. # that we're better off using the native interface for both.
  7568. lt_use_gnu_ld_interface=no
  7569. if test "$with_gnu_ld" = yes; then
  7570. case $host_os in
  7571. aix*)
  7572. # The AIX port of GNU ld has always aspired to compatibility
  7573. # with the native linker. However, as the warning in the GNU ld
  7574. # block says, versions before 2.19.5* couldn't really create working
  7575. # shared libraries, regardless of the interface used.
  7576. case `$LD -v 2>&1` in
  7577. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7578. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7579. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7580. *)
  7581. lt_use_gnu_ld_interface=yes
  7582. ;;
  7583. esac
  7584. ;;
  7585. *)
  7586. lt_use_gnu_ld_interface=yes
  7587. ;;
  7588. esac
  7589. fi
  7590. if test "$lt_use_gnu_ld_interface" = yes; then
  7591. # If archive_cmds runs LD, not CC, wlarc should be empty
  7592. wlarc='${wl}'
  7593. # Set some defaults for GNU ld with shared library support. These
  7594. # are reset later if shared libraries are not supported. Putting them
  7595. # here allows them to be overridden if necessary.
  7596. runpath_var=LD_RUN_PATH
  7597. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7598. export_dynamic_flag_spec='${wl}--export-dynamic'
  7599. # ancient GNU ld didn't support --whole-archive et. al.
  7600. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7601. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7602. else
  7603. whole_archive_flag_spec=
  7604. fi
  7605. supports_anon_versioning=no
  7606. case `$LD -v 2>&1` in
  7607. *GNU\ gold*) supports_anon_versioning=yes ;;
  7608. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7609. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7610. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7611. *\ 2.11.*) ;; # other 2.11 versions
  7612. *) supports_anon_versioning=yes ;;
  7613. esac
  7614. # See if GNU ld supports shared libraries.
  7615. case $host_os in
  7616. aix[3-9]*)
  7617. # On AIX/PPC, the GNU linker is very broken
  7618. if test "$host_cpu" != ia64; then
  7619. ld_shlibs=no
  7620. cat <<_LT_EOF 1>&2
  7621. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7622. *** to be unable to reliably create shared libraries on AIX.
  7623. *** Therefore, libtool is disabling shared libraries support. If you
  7624. *** really care for shared libraries, you may want to install binutils
  7625. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7626. *** You will then need to restart the configuration process.
  7627. _LT_EOF
  7628. fi
  7629. ;;
  7630. amigaos*)
  7631. case $host_cpu in
  7632. powerpc)
  7633. # see comment about AmigaOS4 .so support
  7634. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7635. archive_expsym_cmds=''
  7636. ;;
  7637. m68k)
  7638. 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)'
  7639. hardcode_libdir_flag_spec='-L$libdir'
  7640. hardcode_minus_L=yes
  7641. ;;
  7642. esac
  7643. ;;
  7644. beos*)
  7645. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7646. allow_undefined_flag=unsupported
  7647. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7648. # support --undefined. This deserves some investigation. FIXME
  7649. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7650. else
  7651. ld_shlibs=no
  7652. fi
  7653. ;;
  7654. cygwin* | mingw* | pw32* | cegcc*)
  7655. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7656. # as there is no search path for DLLs.
  7657. hardcode_libdir_flag_spec='-L$libdir'
  7658. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7659. allow_undefined_flag=unsupported
  7660. always_export_symbols=no
  7661. enable_shared_with_static_runtimes=yes
  7662. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7663. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7664. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7665. # If the export-symbols file already is a .def file (1st line
  7666. # is EXPORTS), use it as is; otherwise, prepend...
  7667. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7668. cp $export_symbols $output_objdir/$soname.def;
  7669. else
  7670. echo EXPORTS > $output_objdir/$soname.def;
  7671. cat $export_symbols >> $output_objdir/$soname.def;
  7672. fi~
  7673. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7674. else
  7675. ld_shlibs=no
  7676. fi
  7677. ;;
  7678. haiku*)
  7679. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7680. link_all_deplibs=yes
  7681. ;;
  7682. interix[3-9]*)
  7683. hardcode_direct=no
  7684. hardcode_shlibpath_var=no
  7685. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7686. export_dynamic_flag_spec='${wl}-E'
  7687. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7688. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7689. # default) and relocated if they conflict, which is a slow very memory
  7690. # consuming and fragmenting process. To avoid this, we pick a random,
  7691. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7692. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7693. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7694. 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'
  7695. ;;
  7696. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7697. tmp_diet=no
  7698. if test "$host_os" = linux-dietlibc; then
  7699. case $cc_basename in
  7700. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7701. esac
  7702. fi
  7703. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7704. && test "$tmp_diet" = no
  7705. then
  7706. tmp_addflag=' $pic_flag'
  7707. tmp_sharedflag='-shared'
  7708. case $cc_basename,$host_cpu in
  7709. pgcc*) # Portland Group C compiler
  7710. 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'
  7711. tmp_addflag=' $pic_flag'
  7712. ;;
  7713. pgf77* | pgf90* | pgf95* | pgfortran*)
  7714. # Portland Group f77 and f90 compilers
  7715. 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'
  7716. tmp_addflag=' $pic_flag -Mnomain' ;;
  7717. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7718. tmp_addflag=' -i_dynamic' ;;
  7719. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7720. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7721. ifc* | ifort*) # Intel Fortran compiler
  7722. tmp_addflag=' -nofor_main' ;;
  7723. lf95*) # Lahey Fortran 8.1
  7724. whole_archive_flag_spec=
  7725. tmp_sharedflag='--shared' ;;
  7726. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7727. tmp_sharedflag='-qmkshrobj'
  7728. tmp_addflag= ;;
  7729. nvcc*) # Cuda Compiler Driver 2.2
  7730. 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'
  7731. compiler_needs_object=yes
  7732. ;;
  7733. esac
  7734. case `$CC -V 2>&1 | sed 5q` in
  7735. *Sun\ C*) # Sun C 5.9
  7736. 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'
  7737. compiler_needs_object=yes
  7738. tmp_sharedflag='-G' ;;
  7739. *Sun\ F*) # Sun Fortran 8.3
  7740. tmp_sharedflag='-G' ;;
  7741. esac
  7742. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7743. if test "x$supports_anon_versioning" = xyes; then
  7744. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7745. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7746. echo "local: *; };" >> $output_objdir/$libname.ver~
  7747. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7748. fi
  7749. case $cc_basename in
  7750. xlf* | bgf* | bgxlf* | mpixlf*)
  7751. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7752. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7753. hardcode_libdir_flag_spec=
  7754. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7755. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7756. if test "x$supports_anon_versioning" = xyes; then
  7757. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7758. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7759. echo "local: *; };" >> $output_objdir/$libname.ver~
  7760. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7761. fi
  7762. ;;
  7763. esac
  7764. else
  7765. ld_shlibs=no
  7766. fi
  7767. ;;
  7768. netbsd*)
  7769. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7770. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7771. wlarc=
  7772. else
  7773. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7774. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7775. fi
  7776. ;;
  7777. solaris*)
  7778. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7779. ld_shlibs=no
  7780. cat <<_LT_EOF 1>&2
  7781. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7782. *** create shared libraries on Solaris systems. Therefore, libtool
  7783. *** is disabling shared libraries support. We urge you to upgrade GNU
  7784. *** binutils to release 2.9.1 or newer. Another option is to modify
  7785. *** your PATH or compiler configuration so that the native linker is
  7786. *** used, and then restart.
  7787. _LT_EOF
  7788. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7789. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7790. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7791. else
  7792. ld_shlibs=no
  7793. fi
  7794. ;;
  7795. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7796. case `$LD -v 2>&1` in
  7797. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7798. ld_shlibs=no
  7799. cat <<_LT_EOF 1>&2
  7800. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7801. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7802. *** is disabling shared libraries support. We urge you to upgrade GNU
  7803. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7804. *** your PATH or compiler configuration so that the native linker is
  7805. *** used, and then restart.
  7806. _LT_EOF
  7807. ;;
  7808. *)
  7809. # For security reasons, it is highly recommended that you always
  7810. # use absolute paths for naming shared libraries, and exclude the
  7811. # DT_RUNPATH tag from executables and libraries. But doing so
  7812. # requires that you compile everything twice, which is a pain.
  7813. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7814. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7815. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7816. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7817. else
  7818. ld_shlibs=no
  7819. fi
  7820. ;;
  7821. esac
  7822. ;;
  7823. sunos4*)
  7824. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7825. wlarc=
  7826. hardcode_direct=yes
  7827. hardcode_shlibpath_var=no
  7828. ;;
  7829. *)
  7830. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7831. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7832. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7833. else
  7834. ld_shlibs=no
  7835. fi
  7836. ;;
  7837. esac
  7838. if test "$ld_shlibs" = no; then
  7839. runpath_var=
  7840. hardcode_libdir_flag_spec=
  7841. export_dynamic_flag_spec=
  7842. whole_archive_flag_spec=
  7843. fi
  7844. else
  7845. # PORTME fill in a description of your system's linker (not GNU ld)
  7846. case $host_os in
  7847. aix3*)
  7848. allow_undefined_flag=unsupported
  7849. always_export_symbols=yes
  7850. 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'
  7851. # Note: this linker hardcodes the directories in LIBPATH if there
  7852. # are no directories specified by -L.
  7853. hardcode_minus_L=yes
  7854. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7855. # Neither direct hardcoding nor static linking is supported with a
  7856. # broken collect2.
  7857. hardcode_direct=unsupported
  7858. fi
  7859. ;;
  7860. aix[4-9]*)
  7861. if test "$host_cpu" = ia64; then
  7862. # On IA64, the linker does run time linking by default, so we don't
  7863. # have to do anything special.
  7864. aix_use_runtimelinking=no
  7865. exp_sym_flag='-Bexport'
  7866. no_entry_flag=""
  7867. else
  7868. # If we're using GNU nm, then we don't want the "-C" option.
  7869. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7870. # Also, AIX nm treats weak defined symbols like other global
  7871. # defined symbols, whereas GNU nm marks them as "W".
  7872. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7873. 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'
  7874. else
  7875. 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'
  7876. fi
  7877. aix_use_runtimelinking=no
  7878. # Test if we are trying to use run time linking or normal
  7879. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7880. # need to do runtime linking.
  7881. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7882. for ld_flag in $LDFLAGS; do
  7883. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7884. aix_use_runtimelinking=yes
  7885. break
  7886. fi
  7887. done
  7888. ;;
  7889. esac
  7890. exp_sym_flag='-bexport'
  7891. no_entry_flag='-bnoentry'
  7892. fi
  7893. # When large executables or shared objects are built, AIX ld can
  7894. # have problems creating the table of contents. If linking a library
  7895. # or program results in "error TOC overflow" add -mminimal-toc to
  7896. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7897. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7898. archive_cmds=''
  7899. hardcode_direct=yes
  7900. hardcode_direct_absolute=yes
  7901. hardcode_libdir_separator=':'
  7902. link_all_deplibs=yes
  7903. file_list_spec='${wl}-f,'
  7904. if test "$GCC" = yes; then
  7905. case $host_os in aix4.[012]|aix4.[012].*)
  7906. # We only want to do this on AIX 4.2 and lower, the check
  7907. # below for broken collect2 doesn't work under 4.3+
  7908. collect2name=`${CC} -print-prog-name=collect2`
  7909. if test -f "$collect2name" &&
  7910. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7911. then
  7912. # We have reworked collect2
  7913. :
  7914. else
  7915. # We have old collect2
  7916. hardcode_direct=unsupported
  7917. # It fails to find uninstalled libraries when the uninstalled
  7918. # path is not listed in the libpath. Setting hardcode_minus_L
  7919. # to unsupported forces relinking
  7920. hardcode_minus_L=yes
  7921. hardcode_libdir_flag_spec='-L$libdir'
  7922. hardcode_libdir_separator=
  7923. fi
  7924. ;;
  7925. esac
  7926. shared_flag='-shared'
  7927. if test "$aix_use_runtimelinking" = yes; then
  7928. shared_flag="$shared_flag "'${wl}-G'
  7929. fi
  7930. else
  7931. # not using gcc
  7932. if test "$host_cpu" = ia64; then
  7933. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7934. # chokes on -Wl,-G. The following line is correct:
  7935. shared_flag='-G'
  7936. else
  7937. if test "$aix_use_runtimelinking" = yes; then
  7938. shared_flag='${wl}-G'
  7939. else
  7940. shared_flag='${wl}-bM:SRE'
  7941. fi
  7942. fi
  7943. fi
  7944. export_dynamic_flag_spec='${wl}-bexpall'
  7945. # It seems that -bexpall does not export symbols beginning with
  7946. # underscore (_), so it is better to generate a list of symbols to export.
  7947. always_export_symbols=yes
  7948. if test "$aix_use_runtimelinking" = yes; then
  7949. # Warning - without using the other runtime loading flags (-brtl),
  7950. # -berok will link without error, but may produce a broken library.
  7951. allow_undefined_flag='-berok'
  7952. # Determine the default libpath from the value encoded in an
  7953. # empty executable.
  7954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7955. /* end confdefs.h. */
  7956. int
  7957. main ()
  7958. {
  7959. ;
  7960. return 0;
  7961. }
  7962. _ACEOF
  7963. if ac_fn_c_try_link "$LINENO"; then :
  7964. lt_aix_libpath_sed='
  7965. /Import File Strings/,/^$/ {
  7966. /^0/ {
  7967. s/^0 *\(.*\)$/\1/
  7968. p
  7969. }
  7970. }'
  7971. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7972. # Check for a 64-bit object if we didn't find anything.
  7973. if test -z "$aix_libpath"; then
  7974. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7975. fi
  7976. fi
  7977. rm -f core conftest.err conftest.$ac_objext \
  7978. conftest$ac_exeext conftest.$ac_ext
  7979. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7980. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7981. 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"
  7982. else
  7983. if test "$host_cpu" = ia64; then
  7984. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7985. allow_undefined_flag="-z nodefs"
  7986. 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"
  7987. else
  7988. # Determine the default libpath from the value encoded in an
  7989. # empty executable.
  7990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7991. /* end confdefs.h. */
  7992. int
  7993. main ()
  7994. {
  7995. ;
  7996. return 0;
  7997. }
  7998. _ACEOF
  7999. if ac_fn_c_try_link "$LINENO"; then :
  8000. lt_aix_libpath_sed='
  8001. /Import File Strings/,/^$/ {
  8002. /^0/ {
  8003. s/^0 *\(.*\)$/\1/
  8004. p
  8005. }
  8006. }'
  8007. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8008. # Check for a 64-bit object if we didn't find anything.
  8009. if test -z "$aix_libpath"; then
  8010. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8011. fi
  8012. fi
  8013. rm -f core conftest.err conftest.$ac_objext \
  8014. conftest$ac_exeext conftest.$ac_ext
  8015. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8016. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8017. # Warning - without using the other run time loading flags,
  8018. # -berok will link without error, but may produce a broken library.
  8019. no_undefined_flag=' ${wl}-bernotok'
  8020. allow_undefined_flag=' ${wl}-berok'
  8021. if test "$with_gnu_ld" = yes; then
  8022. # We only use this code for GNU lds that support --whole-archive.
  8023. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8024. else
  8025. # Exported symbols can be pulled into shared objects from archives
  8026. whole_archive_flag_spec='$convenience'
  8027. fi
  8028. archive_cmds_need_lc=yes
  8029. # This is similar to how AIX traditionally builds its shared libraries.
  8030. 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'
  8031. fi
  8032. fi
  8033. ;;
  8034. amigaos*)
  8035. case $host_cpu in
  8036. powerpc)
  8037. # see comment about AmigaOS4 .so support
  8038. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8039. archive_expsym_cmds=''
  8040. ;;
  8041. m68k)
  8042. 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)'
  8043. hardcode_libdir_flag_spec='-L$libdir'
  8044. hardcode_minus_L=yes
  8045. ;;
  8046. esac
  8047. ;;
  8048. bsdi[45]*)
  8049. export_dynamic_flag_spec=-rdynamic
  8050. ;;
  8051. cygwin* | mingw* | pw32* | cegcc*)
  8052. # When not using gcc, we currently assume that we are using
  8053. # Microsoft Visual C++.
  8054. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8055. # no search path for DLLs.
  8056. hardcode_libdir_flag_spec=' '
  8057. allow_undefined_flag=unsupported
  8058. # Tell ltmain to make .lib files, not .a files.
  8059. libext=lib
  8060. # Tell ltmain to make .dll files, not .so files.
  8061. shrext_cmds=".dll"
  8062. # FIXME: Setting linknames here is a bad hack.
  8063. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8064. # The linker will automatically build a .lib file if we build a DLL.
  8065. old_archive_from_new_cmds='true'
  8066. # FIXME: Should let the user specify the lib program.
  8067. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8068. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8069. enable_shared_with_static_runtimes=yes
  8070. ;;
  8071. darwin* | rhapsody*)
  8072. archive_cmds_need_lc=no
  8073. hardcode_direct=no
  8074. hardcode_automatic=yes
  8075. hardcode_shlibpath_var=unsupported
  8076. if test "$lt_cv_ld_force_load" = "yes"; then
  8077. 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\"`'
  8078. else
  8079. whole_archive_flag_spec=''
  8080. fi
  8081. link_all_deplibs=yes
  8082. allow_undefined_flag="$_lt_dar_allow_undefined"
  8083. case $cc_basename in
  8084. ifort*) _lt_dar_can_shared=yes ;;
  8085. *) _lt_dar_can_shared=$GCC ;;
  8086. esac
  8087. if test "$_lt_dar_can_shared" = "yes"; then
  8088. output_verbose_link_cmd=func_echo_all
  8089. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8090. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8091. 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}"
  8092. 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}"
  8093. else
  8094. ld_shlibs=no
  8095. fi
  8096. ;;
  8097. dgux*)
  8098. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8099. hardcode_libdir_flag_spec='-L$libdir'
  8100. hardcode_shlibpath_var=no
  8101. ;;
  8102. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8103. # support. Future versions do this automatically, but an explicit c++rt0.o
  8104. # does not break anything, and helps significantly (at the cost of a little
  8105. # extra space).
  8106. freebsd2.2*)
  8107. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8108. hardcode_libdir_flag_spec='-R$libdir'
  8109. hardcode_direct=yes
  8110. hardcode_shlibpath_var=no
  8111. ;;
  8112. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8113. freebsd2.*)
  8114. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8115. hardcode_direct=yes
  8116. hardcode_minus_L=yes
  8117. hardcode_shlibpath_var=no
  8118. ;;
  8119. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8120. freebsd* | dragonfly*)
  8121. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8122. hardcode_libdir_flag_spec='-R$libdir'
  8123. hardcode_direct=yes
  8124. hardcode_shlibpath_var=no
  8125. ;;
  8126. hpux9*)
  8127. if test "$GCC" = yes; then
  8128. 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'
  8129. else
  8130. 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'
  8131. fi
  8132. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8133. hardcode_libdir_separator=:
  8134. hardcode_direct=yes
  8135. # hardcode_minus_L: Not really in the search PATH,
  8136. # but as the default location of the library.
  8137. hardcode_minus_L=yes
  8138. export_dynamic_flag_spec='${wl}-E'
  8139. ;;
  8140. hpux10*)
  8141. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8142. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8143. else
  8144. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8145. fi
  8146. if test "$with_gnu_ld" = no; then
  8147. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8148. hardcode_libdir_flag_spec_ld='+b $libdir'
  8149. hardcode_libdir_separator=:
  8150. hardcode_direct=yes
  8151. hardcode_direct_absolute=yes
  8152. export_dynamic_flag_spec='${wl}-E'
  8153. # hardcode_minus_L: Not really in the search PATH,
  8154. # but as the default location of the library.
  8155. hardcode_minus_L=yes
  8156. fi
  8157. ;;
  8158. hpux11*)
  8159. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8160. case $host_cpu in
  8161. hppa*64*)
  8162. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8163. ;;
  8164. ia64*)
  8165. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8166. ;;
  8167. *)
  8168. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8169. ;;
  8170. esac
  8171. else
  8172. case $host_cpu in
  8173. hppa*64*)
  8174. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8175. ;;
  8176. ia64*)
  8177. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8178. ;;
  8179. *)
  8180. # Older versions of the 11.00 compiler do not understand -b yet
  8181. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8183. $as_echo_n "checking if $CC understands -b... " >&6; }
  8184. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8185. $as_echo_n "(cached) " >&6
  8186. else
  8187. lt_cv_prog_compiler__b=no
  8188. save_LDFLAGS="$LDFLAGS"
  8189. LDFLAGS="$LDFLAGS -b"
  8190. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8191. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8192. # The linker can only warn and ignore the option if not recognized
  8193. # So say no if there are warnings
  8194. if test -s conftest.err; then
  8195. # Append any errors to the config.log.
  8196. cat conftest.err 1>&5
  8197. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8198. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8199. if diff conftest.exp conftest.er2 >/dev/null; then
  8200. lt_cv_prog_compiler__b=yes
  8201. fi
  8202. else
  8203. lt_cv_prog_compiler__b=yes
  8204. fi
  8205. fi
  8206. $RM -r conftest*
  8207. LDFLAGS="$save_LDFLAGS"
  8208. fi
  8209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8210. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8211. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8212. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8213. else
  8214. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8215. fi
  8216. ;;
  8217. esac
  8218. fi
  8219. if test "$with_gnu_ld" = no; then
  8220. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8221. hardcode_libdir_separator=:
  8222. case $host_cpu in
  8223. hppa*64*|ia64*)
  8224. hardcode_direct=no
  8225. hardcode_shlibpath_var=no
  8226. ;;
  8227. *)
  8228. hardcode_direct=yes
  8229. hardcode_direct_absolute=yes
  8230. export_dynamic_flag_spec='${wl}-E'
  8231. # hardcode_minus_L: Not really in the search PATH,
  8232. # but as the default location of the library.
  8233. hardcode_minus_L=yes
  8234. ;;
  8235. esac
  8236. fi
  8237. ;;
  8238. irix5* | irix6* | nonstopux*)
  8239. if test "$GCC" = yes; then
  8240. 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'
  8241. # Try to use the -exported_symbol ld option, if it does not
  8242. # work, assume that -exports_file does not work either and
  8243. # implicitly export all symbols.
  8244. save_LDFLAGS="$LDFLAGS"
  8245. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8247. /* end confdefs.h. */
  8248. int foo(void) {}
  8249. _ACEOF
  8250. if ac_fn_c_try_link "$LINENO"; then :
  8251. 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'
  8252. fi
  8253. rm -f core conftest.err conftest.$ac_objext \
  8254. conftest$ac_exeext conftest.$ac_ext
  8255. LDFLAGS="$save_LDFLAGS"
  8256. else
  8257. 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'
  8258. 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'
  8259. fi
  8260. archive_cmds_need_lc='no'
  8261. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8262. hardcode_libdir_separator=:
  8263. inherit_rpath=yes
  8264. link_all_deplibs=yes
  8265. ;;
  8266. netbsd*)
  8267. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8268. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8269. else
  8270. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8271. fi
  8272. hardcode_libdir_flag_spec='-R$libdir'
  8273. hardcode_direct=yes
  8274. hardcode_shlibpath_var=no
  8275. ;;
  8276. newsos6)
  8277. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8278. hardcode_direct=yes
  8279. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8280. hardcode_libdir_separator=:
  8281. hardcode_shlibpath_var=no
  8282. ;;
  8283. *nto* | *qnx*)
  8284. ;;
  8285. openbsd*)
  8286. if test -f /usr/libexec/ld.so; then
  8287. hardcode_direct=yes
  8288. hardcode_shlibpath_var=no
  8289. hardcode_direct_absolute=yes
  8290. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8291. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8292. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8293. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8294. export_dynamic_flag_spec='${wl}-E'
  8295. else
  8296. case $host_os in
  8297. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8298. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8299. hardcode_libdir_flag_spec='-R$libdir'
  8300. ;;
  8301. *)
  8302. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8303. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8304. ;;
  8305. esac
  8306. fi
  8307. else
  8308. ld_shlibs=no
  8309. fi
  8310. ;;
  8311. os2*)
  8312. hardcode_libdir_flag_spec='-L$libdir'
  8313. hardcode_minus_L=yes
  8314. allow_undefined_flag=unsupported
  8315. 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'
  8316. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8317. ;;
  8318. osf3*)
  8319. if test "$GCC" = yes; then
  8320. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8321. 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'
  8322. else
  8323. allow_undefined_flag=' -expect_unresolved \*'
  8324. 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'
  8325. fi
  8326. archive_cmds_need_lc='no'
  8327. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8328. hardcode_libdir_separator=:
  8329. ;;
  8330. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8331. if test "$GCC" = yes; then
  8332. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8333. 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'
  8334. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8335. else
  8336. allow_undefined_flag=' -expect_unresolved \*'
  8337. 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'
  8338. 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~
  8339. $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'
  8340. # Both c and cxx compiler support -rpath directly
  8341. hardcode_libdir_flag_spec='-rpath $libdir'
  8342. fi
  8343. archive_cmds_need_lc='no'
  8344. hardcode_libdir_separator=:
  8345. ;;
  8346. solaris*)
  8347. no_undefined_flag=' -z defs'
  8348. if test "$GCC" = yes; then
  8349. wlarc='${wl}'
  8350. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8351. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8352. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8353. else
  8354. case `$CC -V 2>&1` in
  8355. *"Compilers 5.0"*)
  8356. wlarc=''
  8357. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8358. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8359. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8360. ;;
  8361. *)
  8362. wlarc='${wl}'
  8363. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8364. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8365. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8366. ;;
  8367. esac
  8368. fi
  8369. hardcode_libdir_flag_spec='-R$libdir'
  8370. hardcode_shlibpath_var=no
  8371. case $host_os in
  8372. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8373. *)
  8374. # The compiler driver will combine and reorder linker options,
  8375. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8376. # but is careful enough not to reorder.
  8377. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8378. if test "$GCC" = yes; then
  8379. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8380. else
  8381. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8382. fi
  8383. ;;
  8384. esac
  8385. link_all_deplibs=yes
  8386. ;;
  8387. sunos4*)
  8388. if test "x$host_vendor" = xsequent; then
  8389. # Use $CC to link under sequent, because it throws in some extra .o
  8390. # files that make .init and .fini sections work.
  8391. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8392. else
  8393. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8394. fi
  8395. hardcode_libdir_flag_spec='-L$libdir'
  8396. hardcode_direct=yes
  8397. hardcode_minus_L=yes
  8398. hardcode_shlibpath_var=no
  8399. ;;
  8400. sysv4)
  8401. case $host_vendor in
  8402. sni)
  8403. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8404. hardcode_direct=yes # is this really true???
  8405. ;;
  8406. siemens)
  8407. ## LD is ld it makes a PLAMLIB
  8408. ## CC just makes a GrossModule.
  8409. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8410. reload_cmds='$CC -r -o $output$reload_objs'
  8411. hardcode_direct=no
  8412. ;;
  8413. motorola)
  8414. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8415. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8416. ;;
  8417. esac
  8418. runpath_var='LD_RUN_PATH'
  8419. hardcode_shlibpath_var=no
  8420. ;;
  8421. sysv4.3*)
  8422. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8423. hardcode_shlibpath_var=no
  8424. export_dynamic_flag_spec='-Bexport'
  8425. ;;
  8426. sysv4*MP*)
  8427. if test -d /usr/nec; then
  8428. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8429. hardcode_shlibpath_var=no
  8430. runpath_var=LD_RUN_PATH
  8431. hardcode_runpath_var=yes
  8432. ld_shlibs=yes
  8433. fi
  8434. ;;
  8435. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8436. no_undefined_flag='${wl}-z,text'
  8437. archive_cmds_need_lc=no
  8438. hardcode_shlibpath_var=no
  8439. runpath_var='LD_RUN_PATH'
  8440. if test "$GCC" = yes; then
  8441. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8442. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8443. else
  8444. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8445. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8446. fi
  8447. ;;
  8448. sysv5* | sco3.2v5* | sco5v6*)
  8449. # Note: We can NOT use -z defs as we might desire, because we do not
  8450. # link with -lc, and that would cause any symbols used from libc to
  8451. # always be unresolved, which means just about no library would
  8452. # ever link correctly. If we're not using GNU ld we use -z text
  8453. # though, which does catch some bad symbols but isn't as heavy-handed
  8454. # as -z defs.
  8455. no_undefined_flag='${wl}-z,text'
  8456. allow_undefined_flag='${wl}-z,nodefs'
  8457. archive_cmds_need_lc=no
  8458. hardcode_shlibpath_var=no
  8459. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8460. hardcode_libdir_separator=':'
  8461. link_all_deplibs=yes
  8462. export_dynamic_flag_spec='${wl}-Bexport'
  8463. runpath_var='LD_RUN_PATH'
  8464. if test "$GCC" = yes; then
  8465. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8466. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8467. else
  8468. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8469. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8470. fi
  8471. ;;
  8472. uts4*)
  8473. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8474. hardcode_libdir_flag_spec='-L$libdir'
  8475. hardcode_shlibpath_var=no
  8476. ;;
  8477. *)
  8478. ld_shlibs=no
  8479. ;;
  8480. esac
  8481. if test x$host_vendor = xsni; then
  8482. case $host in
  8483. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8484. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8485. ;;
  8486. esac
  8487. fi
  8488. fi
  8489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8490. $as_echo "$ld_shlibs" >&6; }
  8491. test "$ld_shlibs" = no && can_build_shared=no
  8492. with_gnu_ld=$with_gnu_ld
  8493. #
  8494. # Do we need to explicitly link libc?
  8495. #
  8496. case "x$archive_cmds_need_lc" in
  8497. x|xyes)
  8498. # Assume -lc should be added
  8499. archive_cmds_need_lc=yes
  8500. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8501. case $archive_cmds in
  8502. *'~'*)
  8503. # FIXME: we may have to deal with multi-command sequences.
  8504. ;;
  8505. '$CC '*)
  8506. # Test whether the compiler implicitly links with -lc since on some
  8507. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8508. # to ld, don't add -lc before -lgcc.
  8509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8510. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8511. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8512. $as_echo_n "(cached) " >&6
  8513. else
  8514. $RM conftest*
  8515. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8516. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8517. (eval $ac_compile) 2>&5
  8518. ac_status=$?
  8519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8520. test $ac_status = 0; } 2>conftest.err; then
  8521. soname=conftest
  8522. lib=conftest
  8523. libobjs=conftest.$ac_objext
  8524. deplibs=
  8525. wl=$lt_prog_compiler_wl
  8526. pic_flag=$lt_prog_compiler_pic
  8527. compiler_flags=-v
  8528. linker_flags=-v
  8529. verstring=
  8530. output_objdir=.
  8531. libname=conftest
  8532. lt_save_allow_undefined_flag=$allow_undefined_flag
  8533. allow_undefined_flag=
  8534. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8535. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8536. ac_status=$?
  8537. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8538. test $ac_status = 0; }
  8539. then
  8540. lt_cv_archive_cmds_need_lc=no
  8541. else
  8542. lt_cv_archive_cmds_need_lc=yes
  8543. fi
  8544. allow_undefined_flag=$lt_save_allow_undefined_flag
  8545. else
  8546. cat conftest.err 1>&5
  8547. fi
  8548. $RM conftest*
  8549. fi
  8550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8551. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8552. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8553. ;;
  8554. esac
  8555. fi
  8556. ;;
  8557. esac
  8558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8559. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8560. if test "$GCC" = yes; then
  8561. case $host_os in
  8562. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8563. *) lt_awk_arg="/^libraries:/" ;;
  8564. esac
  8565. case $host_os in
  8566. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8567. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8568. esac
  8569. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8570. case $lt_search_path_spec in
  8571. *\;*)
  8572. # if the path contains ";" then we assume it to be the separator
  8573. # otherwise default to the standard path separator (i.e. ":") - it is
  8574. # assumed that no part of a normal pathname contains ";" but that should
  8575. # okay in the real world where ";" in dirpaths is itself problematic.
  8576. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8577. ;;
  8578. *)
  8579. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8580. ;;
  8581. esac
  8582. # Ok, now we have the path, separated by spaces, we can step through it
  8583. # and add multilib dir if necessary.
  8584. lt_tmp_lt_search_path_spec=
  8585. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8586. for lt_sys_path in $lt_search_path_spec; do
  8587. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8588. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8589. else
  8590. test -d "$lt_sys_path" && \
  8591. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8592. fi
  8593. done
  8594. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8595. BEGIN {RS=" "; FS="/|\n";} {
  8596. lt_foo="";
  8597. lt_count=0;
  8598. for (lt_i = NF; lt_i > 0; lt_i--) {
  8599. if ($lt_i != "" && $lt_i != ".") {
  8600. if ($lt_i == "..") {
  8601. lt_count++;
  8602. } else {
  8603. if (lt_count == 0) {
  8604. lt_foo="/" $lt_i lt_foo;
  8605. } else {
  8606. lt_count--;
  8607. }
  8608. }
  8609. }
  8610. }
  8611. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8612. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8613. }'`
  8614. # AWK program above erroneously prepends '/' to C:/dos/paths
  8615. # for these hosts.
  8616. case $host_os in
  8617. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8618. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8619. esac
  8620. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8621. else
  8622. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8623. fi
  8624. library_names_spec=
  8625. libname_spec='lib$name'
  8626. soname_spec=
  8627. shrext_cmds=".so"
  8628. postinstall_cmds=
  8629. postuninstall_cmds=
  8630. finish_cmds=
  8631. finish_eval=
  8632. shlibpath_var=
  8633. shlibpath_overrides_runpath=unknown
  8634. version_type=none
  8635. dynamic_linker="$host_os ld.so"
  8636. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8637. need_lib_prefix=unknown
  8638. hardcode_into_libs=no
  8639. # when you set need_version to no, make sure it does not cause -set_version
  8640. # flags to be left without arguments
  8641. need_version=unknown
  8642. case $host_os in
  8643. aix3*)
  8644. version_type=linux
  8645. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8646. shlibpath_var=LIBPATH
  8647. # AIX 3 has no versioning support, so we append a major version to the name.
  8648. soname_spec='${libname}${release}${shared_ext}$major'
  8649. ;;
  8650. aix[4-9]*)
  8651. version_type=linux
  8652. need_lib_prefix=no
  8653. need_version=no
  8654. hardcode_into_libs=yes
  8655. if test "$host_cpu" = ia64; then
  8656. # AIX 5 supports IA64
  8657. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8658. shlibpath_var=LD_LIBRARY_PATH
  8659. else
  8660. # With GCC up to 2.95.x, collect2 would create an import file
  8661. # for dependence libraries. The import file would start with
  8662. # the line `#! .'. This would cause the generated library to
  8663. # depend on `.', always an invalid library. This was fixed in
  8664. # development snapshots of GCC prior to 3.0.
  8665. case $host_os in
  8666. aix4 | aix4.[01] | aix4.[01].*)
  8667. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8668. echo ' yes '
  8669. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8670. :
  8671. else
  8672. can_build_shared=no
  8673. fi
  8674. ;;
  8675. esac
  8676. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8677. # soname into executable. Probably we can add versioning support to
  8678. # collect2, so additional links can be useful in future.
  8679. if test "$aix_use_runtimelinking" = yes; then
  8680. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8681. # instead of lib<name>.a to let people know that these are not
  8682. # typical AIX shared libraries.
  8683. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8684. else
  8685. # We preserve .a as extension for shared libraries through AIX4.2
  8686. # and later when we are not doing run time linking.
  8687. library_names_spec='${libname}${release}.a $libname.a'
  8688. soname_spec='${libname}${release}${shared_ext}$major'
  8689. fi
  8690. shlibpath_var=LIBPATH
  8691. fi
  8692. ;;
  8693. amigaos*)
  8694. case $host_cpu in
  8695. powerpc)
  8696. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8697. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8698. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8699. ;;
  8700. m68k)
  8701. library_names_spec='$libname.ixlibrary $libname.a'
  8702. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8703. 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'
  8704. ;;
  8705. esac
  8706. ;;
  8707. beos*)
  8708. library_names_spec='${libname}${shared_ext}'
  8709. dynamic_linker="$host_os ld.so"
  8710. shlibpath_var=LIBRARY_PATH
  8711. ;;
  8712. bsdi[45]*)
  8713. version_type=linux
  8714. need_version=no
  8715. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8716. soname_spec='${libname}${release}${shared_ext}$major'
  8717. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8718. shlibpath_var=LD_LIBRARY_PATH
  8719. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8720. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8721. # the default ld.so.conf also contains /usr/contrib/lib and
  8722. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8723. # libtool to hard-code these into programs
  8724. ;;
  8725. cygwin* | mingw* | pw32* | cegcc*)
  8726. version_type=windows
  8727. shrext_cmds=".dll"
  8728. need_version=no
  8729. need_lib_prefix=no
  8730. case $GCC,$host_os in
  8731. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8732. library_names_spec='$libname.dll.a'
  8733. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8734. postinstall_cmds='base_file=`basename \${file}`~
  8735. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8736. dldir=$destdir/`dirname \$dlpath`~
  8737. test -d \$dldir || mkdir -p \$dldir~
  8738. $install_prog $dir/$dlname \$dldir/$dlname~
  8739. chmod a+x \$dldir/$dlname~
  8740. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8741. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8742. fi'
  8743. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8744. dlpath=$dir/\$dldll~
  8745. $RM \$dlpath'
  8746. shlibpath_overrides_runpath=yes
  8747. case $host_os in
  8748. cygwin*)
  8749. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8750. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8751. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8752. ;;
  8753. mingw* | cegcc*)
  8754. # MinGW DLLs use traditional 'lib' prefix
  8755. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8756. ;;
  8757. pw32*)
  8758. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8759. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8760. ;;
  8761. esac
  8762. ;;
  8763. *)
  8764. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8765. ;;
  8766. esac
  8767. dynamic_linker='Win32 ld.exe'
  8768. # FIXME: first we should search . and the directory the executable is in
  8769. shlibpath_var=PATH
  8770. ;;
  8771. darwin* | rhapsody*)
  8772. dynamic_linker="$host_os dyld"
  8773. version_type=darwin
  8774. need_lib_prefix=no
  8775. need_version=no
  8776. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8777. soname_spec='${libname}${release}${major}$shared_ext'
  8778. shlibpath_overrides_runpath=yes
  8779. shlibpath_var=DYLD_LIBRARY_PATH
  8780. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8781. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8782. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8783. ;;
  8784. dgux*)
  8785. version_type=linux
  8786. need_lib_prefix=no
  8787. need_version=no
  8788. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8789. soname_spec='${libname}${release}${shared_ext}$major'
  8790. shlibpath_var=LD_LIBRARY_PATH
  8791. ;;
  8792. freebsd* | dragonfly*)
  8793. # DragonFly does not have aout. When/if they implement a new
  8794. # versioning mechanism, adjust this.
  8795. if test -x /usr/bin/objformat; then
  8796. objformat=`/usr/bin/objformat`
  8797. else
  8798. case $host_os in
  8799. freebsd[23].*) objformat=aout ;;
  8800. *) objformat=elf ;;
  8801. esac
  8802. fi
  8803. version_type=freebsd-$objformat
  8804. case $version_type in
  8805. freebsd-elf*)
  8806. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8807. need_version=no
  8808. need_lib_prefix=no
  8809. ;;
  8810. freebsd-*)
  8811. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8812. need_version=yes
  8813. ;;
  8814. esac
  8815. shlibpath_var=LD_LIBRARY_PATH
  8816. case $host_os in
  8817. freebsd2.*)
  8818. shlibpath_overrides_runpath=yes
  8819. ;;
  8820. freebsd3.[01]* | freebsdelf3.[01]*)
  8821. shlibpath_overrides_runpath=yes
  8822. hardcode_into_libs=yes
  8823. ;;
  8824. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8825. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8826. shlibpath_overrides_runpath=no
  8827. hardcode_into_libs=yes
  8828. ;;
  8829. *) # from 4.6 on, and DragonFly
  8830. shlibpath_overrides_runpath=yes
  8831. hardcode_into_libs=yes
  8832. ;;
  8833. esac
  8834. ;;
  8835. gnu*)
  8836. version_type=linux
  8837. need_lib_prefix=no
  8838. need_version=no
  8839. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8840. soname_spec='${libname}${release}${shared_ext}$major'
  8841. shlibpath_var=LD_LIBRARY_PATH
  8842. hardcode_into_libs=yes
  8843. ;;
  8844. haiku*)
  8845. version_type=linux
  8846. need_lib_prefix=no
  8847. need_version=no
  8848. dynamic_linker="$host_os runtime_loader"
  8849. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8850. soname_spec='${libname}${release}${shared_ext}$major'
  8851. shlibpath_var=LIBRARY_PATH
  8852. shlibpath_overrides_runpath=yes
  8853. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8854. hardcode_into_libs=yes
  8855. ;;
  8856. hpux9* | hpux10* | hpux11*)
  8857. # Give a soname corresponding to the major version so that dld.sl refuses to
  8858. # link against other versions.
  8859. version_type=sunos
  8860. need_lib_prefix=no
  8861. need_version=no
  8862. case $host_cpu in
  8863. ia64*)
  8864. shrext_cmds='.so'
  8865. hardcode_into_libs=yes
  8866. dynamic_linker="$host_os dld.so"
  8867. shlibpath_var=LD_LIBRARY_PATH
  8868. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8869. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8870. soname_spec='${libname}${release}${shared_ext}$major'
  8871. if test "X$HPUX_IA64_MODE" = X32; then
  8872. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8873. else
  8874. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8875. fi
  8876. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8877. ;;
  8878. hppa*64*)
  8879. shrext_cmds='.sl'
  8880. hardcode_into_libs=yes
  8881. dynamic_linker="$host_os dld.sl"
  8882. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8883. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8884. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8885. soname_spec='${libname}${release}${shared_ext}$major'
  8886. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8887. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8888. ;;
  8889. *)
  8890. shrext_cmds='.sl'
  8891. dynamic_linker="$host_os dld.sl"
  8892. shlibpath_var=SHLIB_PATH
  8893. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8895. soname_spec='${libname}${release}${shared_ext}$major'
  8896. ;;
  8897. esac
  8898. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8899. postinstall_cmds='chmod 555 $lib'
  8900. # or fails outright, so override atomically:
  8901. install_override_mode=555
  8902. ;;
  8903. interix[3-9]*)
  8904. version_type=linux
  8905. need_lib_prefix=no
  8906. need_version=no
  8907. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8908. soname_spec='${libname}${release}${shared_ext}$major'
  8909. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8910. shlibpath_var=LD_LIBRARY_PATH
  8911. shlibpath_overrides_runpath=no
  8912. hardcode_into_libs=yes
  8913. ;;
  8914. irix5* | irix6* | nonstopux*)
  8915. case $host_os in
  8916. nonstopux*) version_type=nonstopux ;;
  8917. *)
  8918. if test "$lt_cv_prog_gnu_ld" = yes; then
  8919. version_type=linux
  8920. else
  8921. version_type=irix
  8922. fi ;;
  8923. esac
  8924. need_lib_prefix=no
  8925. need_version=no
  8926. soname_spec='${libname}${release}${shared_ext}$major'
  8927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8928. case $host_os in
  8929. irix5* | nonstopux*)
  8930. libsuff= shlibsuff=
  8931. ;;
  8932. *)
  8933. case $LD in # libtool.m4 will add one of these switches to LD
  8934. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8935. libsuff= shlibsuff= libmagic=32-bit;;
  8936. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8937. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8938. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8939. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8940. *) libsuff= shlibsuff= libmagic=never-match;;
  8941. esac
  8942. ;;
  8943. esac
  8944. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8945. shlibpath_overrides_runpath=no
  8946. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8947. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8948. hardcode_into_libs=yes
  8949. ;;
  8950. # No shared lib support for Linux oldld, aout, or coff.
  8951. linux*oldld* | linux*aout* | linux*coff*)
  8952. dynamic_linker=no
  8953. ;;
  8954. # This must be Linux ELF.
  8955. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8956. version_type=linux
  8957. need_lib_prefix=no
  8958. need_version=no
  8959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8960. soname_spec='${libname}${release}${shared_ext}$major'
  8961. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8962. shlibpath_var=LD_LIBRARY_PATH
  8963. shlibpath_overrides_runpath=no
  8964. # Some binutils ld are patched to set DT_RUNPATH
  8965. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  8966. $as_echo_n "(cached) " >&6
  8967. else
  8968. lt_cv_shlibpath_overrides_runpath=no
  8969. save_LDFLAGS=$LDFLAGS
  8970. save_libdir=$libdir
  8971. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8972. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8974. /* end confdefs.h. */
  8975. int
  8976. main ()
  8977. {
  8978. ;
  8979. return 0;
  8980. }
  8981. _ACEOF
  8982. if ac_fn_c_try_link "$LINENO"; then :
  8983. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8984. lt_cv_shlibpath_overrides_runpath=yes
  8985. fi
  8986. fi
  8987. rm -f core conftest.err conftest.$ac_objext \
  8988. conftest$ac_exeext conftest.$ac_ext
  8989. LDFLAGS=$save_LDFLAGS
  8990. libdir=$save_libdir
  8991. fi
  8992. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8993. # This implies no fast_install, which is unacceptable.
  8994. # Some rework will be needed to allow for fast_install
  8995. # before this can be enabled.
  8996. hardcode_into_libs=yes
  8997. # Append ld.so.conf contents to the search path
  8998. if test -f /etc/ld.so.conf; then
  8999. 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' ' '`
  9000. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9001. fi
  9002. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9003. # powerpc, because MkLinux only supported shared libraries with the
  9004. # GNU dynamic linker. Since this was broken with cross compilers,
  9005. # most powerpc-linux boxes support dynamic linking these days and
  9006. # people can always --disable-shared, the test was removed, and we
  9007. # assume the GNU/Linux dynamic linker is in use.
  9008. dynamic_linker='GNU/Linux ld.so'
  9009. ;;
  9010. netbsd*)
  9011. version_type=sunos
  9012. need_lib_prefix=no
  9013. need_version=no
  9014. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9015. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9016. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9017. dynamic_linker='NetBSD (a.out) ld.so'
  9018. else
  9019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9020. soname_spec='${libname}${release}${shared_ext}$major'
  9021. dynamic_linker='NetBSD ld.elf_so'
  9022. fi
  9023. shlibpath_var=LD_LIBRARY_PATH
  9024. shlibpath_overrides_runpath=yes
  9025. hardcode_into_libs=yes
  9026. ;;
  9027. newsos6)
  9028. version_type=linux
  9029. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9030. shlibpath_var=LD_LIBRARY_PATH
  9031. shlibpath_overrides_runpath=yes
  9032. ;;
  9033. *nto* | *qnx*)
  9034. version_type=qnx
  9035. need_lib_prefix=no
  9036. need_version=no
  9037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9038. soname_spec='${libname}${release}${shared_ext}$major'
  9039. shlibpath_var=LD_LIBRARY_PATH
  9040. shlibpath_overrides_runpath=no
  9041. hardcode_into_libs=yes
  9042. dynamic_linker='ldqnx.so'
  9043. ;;
  9044. openbsd*)
  9045. version_type=sunos
  9046. sys_lib_dlsearch_path_spec="/usr/lib"
  9047. need_lib_prefix=no
  9048. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9049. case $host_os in
  9050. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9051. *) need_version=no ;;
  9052. esac
  9053. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9054. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9055. shlibpath_var=LD_LIBRARY_PATH
  9056. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9057. case $host_os in
  9058. openbsd2.[89] | openbsd2.[89].*)
  9059. shlibpath_overrides_runpath=no
  9060. ;;
  9061. *)
  9062. shlibpath_overrides_runpath=yes
  9063. ;;
  9064. esac
  9065. else
  9066. shlibpath_overrides_runpath=yes
  9067. fi
  9068. ;;
  9069. os2*)
  9070. libname_spec='$name'
  9071. shrext_cmds=".dll"
  9072. need_lib_prefix=no
  9073. library_names_spec='$libname${shared_ext} $libname.a'
  9074. dynamic_linker='OS/2 ld.exe'
  9075. shlibpath_var=LIBPATH
  9076. ;;
  9077. osf3* | osf4* | osf5*)
  9078. version_type=osf
  9079. need_lib_prefix=no
  9080. need_version=no
  9081. soname_spec='${libname}${release}${shared_ext}$major'
  9082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9083. shlibpath_var=LD_LIBRARY_PATH
  9084. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9085. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9086. ;;
  9087. rdos*)
  9088. dynamic_linker=no
  9089. ;;
  9090. solaris*)
  9091. version_type=linux
  9092. need_lib_prefix=no
  9093. need_version=no
  9094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9095. soname_spec='${libname}${release}${shared_ext}$major'
  9096. shlibpath_var=LD_LIBRARY_PATH
  9097. shlibpath_overrides_runpath=yes
  9098. hardcode_into_libs=yes
  9099. # ldd complains unless libraries are executable
  9100. postinstall_cmds='chmod +x $lib'
  9101. ;;
  9102. sunos4*)
  9103. version_type=sunos
  9104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9105. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9106. shlibpath_var=LD_LIBRARY_PATH
  9107. shlibpath_overrides_runpath=yes
  9108. if test "$with_gnu_ld" = yes; then
  9109. need_lib_prefix=no
  9110. fi
  9111. need_version=yes
  9112. ;;
  9113. sysv4 | sysv4.3*)
  9114. version_type=linux
  9115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9116. soname_spec='${libname}${release}${shared_ext}$major'
  9117. shlibpath_var=LD_LIBRARY_PATH
  9118. case $host_vendor in
  9119. sni)
  9120. shlibpath_overrides_runpath=no
  9121. need_lib_prefix=no
  9122. runpath_var=LD_RUN_PATH
  9123. ;;
  9124. siemens)
  9125. need_lib_prefix=no
  9126. ;;
  9127. motorola)
  9128. need_lib_prefix=no
  9129. need_version=no
  9130. shlibpath_overrides_runpath=no
  9131. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9132. ;;
  9133. esac
  9134. ;;
  9135. sysv4*MP*)
  9136. if test -d /usr/nec ;then
  9137. version_type=linux
  9138. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9139. soname_spec='$libname${shared_ext}.$major'
  9140. shlibpath_var=LD_LIBRARY_PATH
  9141. fi
  9142. ;;
  9143. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9144. version_type=freebsd-elf
  9145. need_lib_prefix=no
  9146. need_version=no
  9147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9148. soname_spec='${libname}${release}${shared_ext}$major'
  9149. shlibpath_var=LD_LIBRARY_PATH
  9150. shlibpath_overrides_runpath=yes
  9151. hardcode_into_libs=yes
  9152. if test "$with_gnu_ld" = yes; then
  9153. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9154. else
  9155. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9156. case $host_os in
  9157. sco3.2v5*)
  9158. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9159. ;;
  9160. esac
  9161. fi
  9162. sys_lib_dlsearch_path_spec='/usr/lib'
  9163. ;;
  9164. tpf*)
  9165. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9166. version_type=linux
  9167. need_lib_prefix=no
  9168. need_version=no
  9169. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9170. shlibpath_var=LD_LIBRARY_PATH
  9171. shlibpath_overrides_runpath=no
  9172. hardcode_into_libs=yes
  9173. ;;
  9174. uts4*)
  9175. version_type=linux
  9176. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9177. soname_spec='${libname}${release}${shared_ext}$major'
  9178. shlibpath_var=LD_LIBRARY_PATH
  9179. ;;
  9180. *)
  9181. dynamic_linker=no
  9182. ;;
  9183. esac
  9184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9185. $as_echo "$dynamic_linker" >&6; }
  9186. test "$dynamic_linker" = no && can_build_shared=no
  9187. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9188. if test "$GCC" = yes; then
  9189. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9190. fi
  9191. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9192. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9193. fi
  9194. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9195. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9196. fi
  9197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9198. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9199. hardcode_action=
  9200. if test -n "$hardcode_libdir_flag_spec" ||
  9201. test -n "$runpath_var" ||
  9202. test "X$hardcode_automatic" = "Xyes" ; then
  9203. # We can hardcode non-existent directories.
  9204. if test "$hardcode_direct" != no &&
  9205. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9206. # have to relink, otherwise we might link with an installed library
  9207. # when we should be linking with a yet-to-be-installed one
  9208. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9209. test "$hardcode_minus_L" != no; then
  9210. # Linking always hardcodes the temporary library directory.
  9211. hardcode_action=relink
  9212. else
  9213. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9214. hardcode_action=immediate
  9215. fi
  9216. else
  9217. # We cannot hardcode anything, or else we can only hardcode existing
  9218. # directories.
  9219. hardcode_action=unsupported
  9220. fi
  9221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9222. $as_echo "$hardcode_action" >&6; }
  9223. if test "$hardcode_action" = relink ||
  9224. test "$inherit_rpath" = yes; then
  9225. # Fast installation is not supported
  9226. enable_fast_install=no
  9227. elif test "$shlibpath_overrides_runpath" = yes ||
  9228. test "$enable_shared" = no; then
  9229. # Fast installation is not necessary
  9230. enable_fast_install=needless
  9231. fi
  9232. if test "x$enable_dlopen" != xyes; then
  9233. enable_dlopen=unknown
  9234. enable_dlopen_self=unknown
  9235. enable_dlopen_self_static=unknown
  9236. else
  9237. lt_cv_dlopen=no
  9238. lt_cv_dlopen_libs=
  9239. case $host_os in
  9240. beos*)
  9241. lt_cv_dlopen="load_add_on"
  9242. lt_cv_dlopen_libs=
  9243. lt_cv_dlopen_self=yes
  9244. ;;
  9245. mingw* | pw32* | cegcc*)
  9246. lt_cv_dlopen="LoadLibrary"
  9247. lt_cv_dlopen_libs=
  9248. ;;
  9249. cygwin*)
  9250. lt_cv_dlopen="dlopen"
  9251. lt_cv_dlopen_libs=
  9252. ;;
  9253. darwin*)
  9254. # if libdl is installed we need to link against it
  9255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9256. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9257. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9258. $as_echo_n "(cached) " >&6
  9259. else
  9260. ac_check_lib_save_LIBS=$LIBS
  9261. LIBS="-ldl $LIBS"
  9262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9263. /* end confdefs.h. */
  9264. /* Override any GCC internal prototype to avoid an error.
  9265. Use char because int might match the return type of a GCC
  9266. builtin and then its argument prototype would still apply. */
  9267. #ifdef __cplusplus
  9268. extern "C"
  9269. #endif
  9270. char dlopen ();
  9271. int
  9272. main ()
  9273. {
  9274. return dlopen ();
  9275. ;
  9276. return 0;
  9277. }
  9278. _ACEOF
  9279. if ac_fn_c_try_link "$LINENO"; then :
  9280. ac_cv_lib_dl_dlopen=yes
  9281. else
  9282. ac_cv_lib_dl_dlopen=no
  9283. fi
  9284. rm -f core conftest.err conftest.$ac_objext \
  9285. conftest$ac_exeext conftest.$ac_ext
  9286. LIBS=$ac_check_lib_save_LIBS
  9287. fi
  9288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9289. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9290. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9291. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9292. else
  9293. lt_cv_dlopen="dyld"
  9294. lt_cv_dlopen_libs=
  9295. lt_cv_dlopen_self=yes
  9296. fi
  9297. ;;
  9298. *)
  9299. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9300. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9301. lt_cv_dlopen="shl_load"
  9302. else
  9303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9304. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9305. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9306. $as_echo_n "(cached) " >&6
  9307. else
  9308. ac_check_lib_save_LIBS=$LIBS
  9309. LIBS="-ldld $LIBS"
  9310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9311. /* end confdefs.h. */
  9312. /* Override any GCC internal prototype to avoid an error.
  9313. Use char because int might match the return type of a GCC
  9314. builtin and then its argument prototype would still apply. */
  9315. #ifdef __cplusplus
  9316. extern "C"
  9317. #endif
  9318. char shl_load ();
  9319. int
  9320. main ()
  9321. {
  9322. return shl_load ();
  9323. ;
  9324. return 0;
  9325. }
  9326. _ACEOF
  9327. if ac_fn_c_try_link "$LINENO"; then :
  9328. ac_cv_lib_dld_shl_load=yes
  9329. else
  9330. ac_cv_lib_dld_shl_load=no
  9331. fi
  9332. rm -f core conftest.err conftest.$ac_objext \
  9333. conftest$ac_exeext conftest.$ac_ext
  9334. LIBS=$ac_check_lib_save_LIBS
  9335. fi
  9336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9337. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9338. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9339. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9340. else
  9341. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9342. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9343. lt_cv_dlopen="dlopen"
  9344. else
  9345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9346. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9347. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9348. $as_echo_n "(cached) " >&6
  9349. else
  9350. ac_check_lib_save_LIBS=$LIBS
  9351. LIBS="-ldl $LIBS"
  9352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9353. /* end confdefs.h. */
  9354. /* Override any GCC internal prototype to avoid an error.
  9355. Use char because int might match the return type of a GCC
  9356. builtin and then its argument prototype would still apply. */
  9357. #ifdef __cplusplus
  9358. extern "C"
  9359. #endif
  9360. char dlopen ();
  9361. int
  9362. main ()
  9363. {
  9364. return dlopen ();
  9365. ;
  9366. return 0;
  9367. }
  9368. _ACEOF
  9369. if ac_fn_c_try_link "$LINENO"; then :
  9370. ac_cv_lib_dl_dlopen=yes
  9371. else
  9372. ac_cv_lib_dl_dlopen=no
  9373. fi
  9374. rm -f core conftest.err conftest.$ac_objext \
  9375. conftest$ac_exeext conftest.$ac_ext
  9376. LIBS=$ac_check_lib_save_LIBS
  9377. fi
  9378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9379. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9380. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9381. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9382. else
  9383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9384. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9385. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9386. $as_echo_n "(cached) " >&6
  9387. else
  9388. ac_check_lib_save_LIBS=$LIBS
  9389. LIBS="-lsvld $LIBS"
  9390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9391. /* end confdefs.h. */
  9392. /* Override any GCC internal prototype to avoid an error.
  9393. Use char because int might match the return type of a GCC
  9394. builtin and then its argument prototype would still apply. */
  9395. #ifdef __cplusplus
  9396. extern "C"
  9397. #endif
  9398. char dlopen ();
  9399. int
  9400. main ()
  9401. {
  9402. return dlopen ();
  9403. ;
  9404. return 0;
  9405. }
  9406. _ACEOF
  9407. if ac_fn_c_try_link "$LINENO"; then :
  9408. ac_cv_lib_svld_dlopen=yes
  9409. else
  9410. ac_cv_lib_svld_dlopen=no
  9411. fi
  9412. rm -f core conftest.err conftest.$ac_objext \
  9413. conftest$ac_exeext conftest.$ac_ext
  9414. LIBS=$ac_check_lib_save_LIBS
  9415. fi
  9416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9417. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9418. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9419. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9420. else
  9421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9422. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9423. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9424. $as_echo_n "(cached) " >&6
  9425. else
  9426. ac_check_lib_save_LIBS=$LIBS
  9427. LIBS="-ldld $LIBS"
  9428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9429. /* end confdefs.h. */
  9430. /* Override any GCC internal prototype to avoid an error.
  9431. Use char because int might match the return type of a GCC
  9432. builtin and then its argument prototype would still apply. */
  9433. #ifdef __cplusplus
  9434. extern "C"
  9435. #endif
  9436. char dld_link ();
  9437. int
  9438. main ()
  9439. {
  9440. return dld_link ();
  9441. ;
  9442. return 0;
  9443. }
  9444. _ACEOF
  9445. if ac_fn_c_try_link "$LINENO"; then :
  9446. ac_cv_lib_dld_dld_link=yes
  9447. else
  9448. ac_cv_lib_dld_dld_link=no
  9449. fi
  9450. rm -f core conftest.err conftest.$ac_objext \
  9451. conftest$ac_exeext conftest.$ac_ext
  9452. LIBS=$ac_check_lib_save_LIBS
  9453. fi
  9454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9455. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9456. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9457. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9458. fi
  9459. fi
  9460. fi
  9461. fi
  9462. fi
  9463. fi
  9464. ;;
  9465. esac
  9466. if test "x$lt_cv_dlopen" != xno; then
  9467. enable_dlopen=yes
  9468. else
  9469. enable_dlopen=no
  9470. fi
  9471. case $lt_cv_dlopen in
  9472. dlopen)
  9473. save_CPPFLAGS="$CPPFLAGS"
  9474. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9475. save_LDFLAGS="$LDFLAGS"
  9476. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9477. save_LIBS="$LIBS"
  9478. LIBS="$lt_cv_dlopen_libs $LIBS"
  9479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9480. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9481. if test "${lt_cv_dlopen_self+set}" = set; then :
  9482. $as_echo_n "(cached) " >&6
  9483. else
  9484. if test "$cross_compiling" = yes; then :
  9485. lt_cv_dlopen_self=cross
  9486. else
  9487. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9488. lt_status=$lt_dlunknown
  9489. cat > conftest.$ac_ext <<_LT_EOF
  9490. #line 11063 "configure"
  9491. #include "confdefs.h"
  9492. #if HAVE_DLFCN_H
  9493. #include <dlfcn.h>
  9494. #endif
  9495. #include <stdio.h>
  9496. #ifdef RTLD_GLOBAL
  9497. # define LT_DLGLOBAL RTLD_GLOBAL
  9498. #else
  9499. # ifdef DL_GLOBAL
  9500. # define LT_DLGLOBAL DL_GLOBAL
  9501. # else
  9502. # define LT_DLGLOBAL 0
  9503. # endif
  9504. #endif
  9505. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9506. find out it does not work in some platform. */
  9507. #ifndef LT_DLLAZY_OR_NOW
  9508. # ifdef RTLD_LAZY
  9509. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9510. # else
  9511. # ifdef DL_LAZY
  9512. # define LT_DLLAZY_OR_NOW DL_LAZY
  9513. # else
  9514. # ifdef RTLD_NOW
  9515. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9516. # else
  9517. # ifdef DL_NOW
  9518. # define LT_DLLAZY_OR_NOW DL_NOW
  9519. # else
  9520. # define LT_DLLAZY_OR_NOW 0
  9521. # endif
  9522. # endif
  9523. # endif
  9524. # endif
  9525. #endif
  9526. /* When -fvisbility=hidden is used, assume the code has been annotated
  9527. correspondingly for the symbols needed. */
  9528. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9529. void fnord () __attribute__((visibility("default")));
  9530. #endif
  9531. void fnord () { int i=42; }
  9532. int main ()
  9533. {
  9534. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9535. int status = $lt_dlunknown;
  9536. if (self)
  9537. {
  9538. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9539. else
  9540. {
  9541. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9542. else puts (dlerror ());
  9543. }
  9544. /* dlclose (self); */
  9545. }
  9546. else
  9547. puts (dlerror ());
  9548. return status;
  9549. }
  9550. _LT_EOF
  9551. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9552. (eval $ac_link) 2>&5
  9553. ac_status=$?
  9554. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9555. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9556. (./conftest; exit; ) >&5 2>/dev/null
  9557. lt_status=$?
  9558. case x$lt_status in
  9559. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9560. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9561. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9562. esac
  9563. else :
  9564. # compilation failed
  9565. lt_cv_dlopen_self=no
  9566. fi
  9567. fi
  9568. rm -fr conftest*
  9569. fi
  9570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9571. $as_echo "$lt_cv_dlopen_self" >&6; }
  9572. if test "x$lt_cv_dlopen_self" = xyes; then
  9573. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9575. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9576. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9577. $as_echo_n "(cached) " >&6
  9578. else
  9579. if test "$cross_compiling" = yes; then :
  9580. lt_cv_dlopen_self_static=cross
  9581. else
  9582. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9583. lt_status=$lt_dlunknown
  9584. cat > conftest.$ac_ext <<_LT_EOF
  9585. #line 11169 "configure"
  9586. #include "confdefs.h"
  9587. #if HAVE_DLFCN_H
  9588. #include <dlfcn.h>
  9589. #endif
  9590. #include <stdio.h>
  9591. #ifdef RTLD_GLOBAL
  9592. # define LT_DLGLOBAL RTLD_GLOBAL
  9593. #else
  9594. # ifdef DL_GLOBAL
  9595. # define LT_DLGLOBAL DL_GLOBAL
  9596. # else
  9597. # define LT_DLGLOBAL 0
  9598. # endif
  9599. #endif
  9600. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9601. find out it does not work in some platform. */
  9602. #ifndef LT_DLLAZY_OR_NOW
  9603. # ifdef RTLD_LAZY
  9604. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9605. # else
  9606. # ifdef DL_LAZY
  9607. # define LT_DLLAZY_OR_NOW DL_LAZY
  9608. # else
  9609. # ifdef RTLD_NOW
  9610. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9611. # else
  9612. # ifdef DL_NOW
  9613. # define LT_DLLAZY_OR_NOW DL_NOW
  9614. # else
  9615. # define LT_DLLAZY_OR_NOW 0
  9616. # endif
  9617. # endif
  9618. # endif
  9619. # endif
  9620. #endif
  9621. /* When -fvisbility=hidden is used, assume the code has been annotated
  9622. correspondingly for the symbols needed. */
  9623. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9624. void fnord () __attribute__((visibility("default")));
  9625. #endif
  9626. void fnord () { int i=42; }
  9627. int main ()
  9628. {
  9629. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9630. int status = $lt_dlunknown;
  9631. if (self)
  9632. {
  9633. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9634. else
  9635. {
  9636. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9637. else puts (dlerror ());
  9638. }
  9639. /* dlclose (self); */
  9640. }
  9641. else
  9642. puts (dlerror ());
  9643. return status;
  9644. }
  9645. _LT_EOF
  9646. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9647. (eval $ac_link) 2>&5
  9648. ac_status=$?
  9649. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9650. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9651. (./conftest; exit; ) >&5 2>/dev/null
  9652. lt_status=$?
  9653. case x$lt_status in
  9654. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9655. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9656. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9657. esac
  9658. else :
  9659. # compilation failed
  9660. lt_cv_dlopen_self_static=no
  9661. fi
  9662. fi
  9663. rm -fr conftest*
  9664. fi
  9665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9666. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9667. fi
  9668. CPPFLAGS="$save_CPPFLAGS"
  9669. LDFLAGS="$save_LDFLAGS"
  9670. LIBS="$save_LIBS"
  9671. ;;
  9672. esac
  9673. case $lt_cv_dlopen_self in
  9674. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9675. *) enable_dlopen_self=unknown ;;
  9676. esac
  9677. case $lt_cv_dlopen_self_static in
  9678. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9679. *) enable_dlopen_self_static=unknown ;;
  9680. esac
  9681. fi
  9682. striplib=
  9683. old_striplib=
  9684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9685. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9686. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9687. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9688. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9690. $as_echo "yes" >&6; }
  9691. else
  9692. # FIXME - insert some real tests, host_os isn't really good enough
  9693. case $host_os in
  9694. darwin*)
  9695. if test -n "$STRIP" ; then
  9696. striplib="$STRIP -x"
  9697. old_striplib="$STRIP -S"
  9698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9699. $as_echo "yes" >&6; }
  9700. else
  9701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9702. $as_echo "no" >&6; }
  9703. fi
  9704. ;;
  9705. *)
  9706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9707. $as_echo "no" >&6; }
  9708. ;;
  9709. esac
  9710. fi
  9711. # Report which library types will actually be built
  9712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9713. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9715. $as_echo "$can_build_shared" >&6; }
  9716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9717. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9718. test "$can_build_shared" = "no" && enable_shared=no
  9719. # On AIX, shared libraries and static libraries use the same namespace, and
  9720. # are all built from PIC.
  9721. case $host_os in
  9722. aix3*)
  9723. test "$enable_shared" = yes && enable_static=no
  9724. if test -n "$RANLIB"; then
  9725. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9726. postinstall_cmds='$RANLIB $lib'
  9727. fi
  9728. ;;
  9729. aix[4-9]*)
  9730. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9731. test "$enable_shared" = yes && enable_static=no
  9732. fi
  9733. ;;
  9734. esac
  9735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9736. $as_echo "$enable_shared" >&6; }
  9737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9738. $as_echo_n "checking whether to build static libraries... " >&6; }
  9739. # Make sure either enable_shared or enable_static is yes.
  9740. test "$enable_shared" = yes || enable_static=yes
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9742. $as_echo "$enable_static" >&6; }
  9743. fi
  9744. ac_ext=c
  9745. ac_cpp='$CPP $CPPFLAGS'
  9746. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9747. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9748. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9749. CC="$lt_save_CC"
  9750. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9751. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9752. (test "X$CXX" != "Xg++"))) ; then
  9753. ac_ext=cpp
  9754. ac_cpp='$CXXCPP $CPPFLAGS'
  9755. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9756. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9757. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  9759. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  9760. if test -z "$CXXCPP"; then
  9761. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  9762. $as_echo_n "(cached) " >&6
  9763. else
  9764. # Double quotes because CXXCPP needs to be expanded
  9765. for CXXCPP in "$CXX -E" "/lib/cpp"
  9766. do
  9767. ac_preproc_ok=false
  9768. for ac_cxx_preproc_warn_flag in '' yes
  9769. do
  9770. # Use a header file that comes with gcc, so configuring glibc
  9771. # with a fresh cross-compiler works.
  9772. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9773. # <limits.h> exists even on freestanding compilers.
  9774. # On the NeXT, cc -E runs the code through the compiler's parser,
  9775. # not just through cpp. "Syntax error" is here to catch this case.
  9776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9777. /* end confdefs.h. */
  9778. #ifdef __STDC__
  9779. # include <limits.h>
  9780. #else
  9781. # include <assert.h>
  9782. #endif
  9783. Syntax error
  9784. _ACEOF
  9785. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9786. else
  9787. # Broken: fails on valid input.
  9788. continue
  9789. fi
  9790. rm -f conftest.err conftest.$ac_ext
  9791. # OK, works on sane cases. Now check whether nonexistent headers
  9792. # can be detected and how.
  9793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9794. /* end confdefs.h. */
  9795. #include <ac_nonexistent.h>
  9796. _ACEOF
  9797. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9798. # Broken: success on invalid input.
  9799. continue
  9800. else
  9801. # Passes both tests.
  9802. ac_preproc_ok=:
  9803. break
  9804. fi
  9805. rm -f conftest.err conftest.$ac_ext
  9806. done
  9807. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9808. rm -f conftest.err conftest.$ac_ext
  9809. if $ac_preproc_ok; then :
  9810. break
  9811. fi
  9812. done
  9813. ac_cv_prog_CXXCPP=$CXXCPP
  9814. fi
  9815. CXXCPP=$ac_cv_prog_CXXCPP
  9816. else
  9817. ac_cv_prog_CXXCPP=$CXXCPP
  9818. fi
  9819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  9820. $as_echo "$CXXCPP" >&6; }
  9821. ac_preproc_ok=false
  9822. for ac_cxx_preproc_warn_flag in '' yes
  9823. do
  9824. # Use a header file that comes with gcc, so configuring glibc
  9825. # with a fresh cross-compiler works.
  9826. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9827. # <limits.h> exists even on freestanding compilers.
  9828. # On the NeXT, cc -E runs the code through the compiler's parser,
  9829. # not just through cpp. "Syntax error" is here to catch this case.
  9830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9831. /* end confdefs.h. */
  9832. #ifdef __STDC__
  9833. # include <limits.h>
  9834. #else
  9835. # include <assert.h>
  9836. #endif
  9837. Syntax error
  9838. _ACEOF
  9839. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9840. else
  9841. # Broken: fails on valid input.
  9842. continue
  9843. fi
  9844. rm -f conftest.err conftest.$ac_ext
  9845. # OK, works on sane cases. Now check whether nonexistent headers
  9846. # can be detected and how.
  9847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9848. /* end confdefs.h. */
  9849. #include <ac_nonexistent.h>
  9850. _ACEOF
  9851. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9852. # Broken: success on invalid input.
  9853. continue
  9854. else
  9855. # Passes both tests.
  9856. ac_preproc_ok=:
  9857. break
  9858. fi
  9859. rm -f conftest.err conftest.$ac_ext
  9860. done
  9861. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9862. rm -f conftest.err conftest.$ac_ext
  9863. if $ac_preproc_ok; then :
  9864. else
  9865. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9866. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9867. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  9868. See \`config.log' for more details." "$LINENO" 5; }
  9869. fi
  9870. ac_ext=c
  9871. ac_cpp='$CPP $CPPFLAGS'
  9872. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9873. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9874. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9875. else
  9876. _lt_caught_CXX_error=yes
  9877. fi
  9878. ac_ext=cpp
  9879. ac_cpp='$CXXCPP $CPPFLAGS'
  9880. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9881. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9882. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9883. archive_cmds_need_lc_CXX=no
  9884. allow_undefined_flag_CXX=
  9885. always_export_symbols_CXX=no
  9886. archive_expsym_cmds_CXX=
  9887. compiler_needs_object_CXX=no
  9888. export_dynamic_flag_spec_CXX=
  9889. hardcode_direct_CXX=no
  9890. hardcode_direct_absolute_CXX=no
  9891. hardcode_libdir_flag_spec_CXX=
  9892. hardcode_libdir_flag_spec_ld_CXX=
  9893. hardcode_libdir_separator_CXX=
  9894. hardcode_minus_L_CXX=no
  9895. hardcode_shlibpath_var_CXX=unsupported
  9896. hardcode_automatic_CXX=no
  9897. inherit_rpath_CXX=no
  9898. module_cmds_CXX=
  9899. module_expsym_cmds_CXX=
  9900. link_all_deplibs_CXX=unknown
  9901. old_archive_cmds_CXX=$old_archive_cmds
  9902. reload_flag_CXX=$reload_flag
  9903. reload_cmds_CXX=$reload_cmds
  9904. no_undefined_flag_CXX=
  9905. whole_archive_flag_spec_CXX=
  9906. enable_shared_with_static_runtimes_CXX=no
  9907. # Source file extension for C++ test sources.
  9908. ac_ext=cpp
  9909. # Object file extension for compiled C++ test sources.
  9910. objext=o
  9911. objext_CXX=$objext
  9912. # No sense in running all these tests if we already determined that
  9913. # the CXX compiler isn't working. Some variables (like enable_shared)
  9914. # are currently assumed to apply to all compilers on this platform,
  9915. # and will be corrupted by setting them based on a non-working compiler.
  9916. if test "$_lt_caught_CXX_error" != yes; then
  9917. # Code to be used in simple compile tests
  9918. lt_simple_compile_test_code="int some_variable = 0;"
  9919. # Code to be used in simple link tests
  9920. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9921. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9922. # If no C compiler was specified, use CC.
  9923. LTCC=${LTCC-"$CC"}
  9924. # If no C compiler flags were specified, use CFLAGS.
  9925. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9926. # Allow CC to be a program name with arguments.
  9927. compiler=$CC
  9928. # save warnings/boilerplate of simple test code
  9929. ac_outfile=conftest.$ac_objext
  9930. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9931. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9932. _lt_compiler_boilerplate=`cat conftest.err`
  9933. $RM conftest*
  9934. ac_outfile=conftest.$ac_objext
  9935. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9936. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9937. _lt_linker_boilerplate=`cat conftest.err`
  9938. $RM -r conftest*
  9939. # Allow CC to be a program name with arguments.
  9940. lt_save_CC=$CC
  9941. lt_save_LD=$LD
  9942. lt_save_GCC=$GCC
  9943. GCC=$GXX
  9944. lt_save_with_gnu_ld=$with_gnu_ld
  9945. lt_save_path_LD=$lt_cv_path_LD
  9946. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9947. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9948. else
  9949. $as_unset lt_cv_prog_gnu_ld
  9950. fi
  9951. if test -n "${lt_cv_path_LDCXX+set}"; then
  9952. lt_cv_path_LD=$lt_cv_path_LDCXX
  9953. else
  9954. $as_unset lt_cv_path_LD
  9955. fi
  9956. test -z "${LDCXX+set}" || LD=$LDCXX
  9957. CC=${CXX-"c++"}
  9958. compiler=$CC
  9959. compiler_CXX=$CC
  9960. for cc_temp in $compiler""; do
  9961. case $cc_temp in
  9962. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9963. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9964. \-*) ;;
  9965. *) break;;
  9966. esac
  9967. done
  9968. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  9969. if test -n "$compiler"; then
  9970. # We don't want -fno-exception when compiling C++ code, so set the
  9971. # no_builtin_flag separately
  9972. if test "$GXX" = yes; then
  9973. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9974. else
  9975. lt_prog_compiler_no_builtin_flag_CXX=
  9976. fi
  9977. if test "$GXX" = yes; then
  9978. # Set up default GNU C++ configuration
  9979. # Check whether --with-gnu-ld was given.
  9980. if test "${with_gnu_ld+set}" = set; then :
  9981. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9982. else
  9983. with_gnu_ld=no
  9984. fi
  9985. ac_prog=ld
  9986. if test "$GCC" = yes; then
  9987. # Check if gcc -print-prog-name=ld gives a path.
  9988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  9989. $as_echo_n "checking for ld used by $CC... " >&6; }
  9990. case $host in
  9991. *-*-mingw*)
  9992. # gcc leaves a trailing carriage return which upsets mingw
  9993. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9994. *)
  9995. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9996. esac
  9997. case $ac_prog in
  9998. # Accept absolute paths.
  9999. [\\/]* | ?:[\\/]*)
  10000. re_direlt='/[^/][^/]*/\.\./'
  10001. # Canonicalize the pathname of ld
  10002. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10003. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10004. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10005. done
  10006. test -z "$LD" && LD="$ac_prog"
  10007. ;;
  10008. "")
  10009. # If it fails, then pretend we aren't using GCC.
  10010. ac_prog=ld
  10011. ;;
  10012. *)
  10013. # If it is relative, then search for the first ld in PATH.
  10014. with_gnu_ld=unknown
  10015. ;;
  10016. esac
  10017. elif test "$with_gnu_ld" = yes; then
  10018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10019. $as_echo_n "checking for GNU ld... " >&6; }
  10020. else
  10021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10022. $as_echo_n "checking for non-GNU ld... " >&6; }
  10023. fi
  10024. if test "${lt_cv_path_LD+set}" = set; then :
  10025. $as_echo_n "(cached) " >&6
  10026. else
  10027. if test -z "$LD"; then
  10028. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10029. for ac_dir in $PATH; do
  10030. IFS="$lt_save_ifs"
  10031. test -z "$ac_dir" && ac_dir=.
  10032. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10033. lt_cv_path_LD="$ac_dir/$ac_prog"
  10034. # Check to see if the program is GNU ld. I'd rather use --version,
  10035. # but apparently some variants of GNU ld only accept -v.
  10036. # Break only if it was the GNU/non-GNU ld that we prefer.
  10037. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10038. *GNU* | *'with BFD'*)
  10039. test "$with_gnu_ld" != no && break
  10040. ;;
  10041. *)
  10042. test "$with_gnu_ld" != yes && break
  10043. ;;
  10044. esac
  10045. fi
  10046. done
  10047. IFS="$lt_save_ifs"
  10048. else
  10049. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10050. fi
  10051. fi
  10052. LD="$lt_cv_path_LD"
  10053. if test -n "$LD"; then
  10054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10055. $as_echo "$LD" >&6; }
  10056. else
  10057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10058. $as_echo "no" >&6; }
  10059. fi
  10060. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10062. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10063. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10064. $as_echo_n "(cached) " >&6
  10065. else
  10066. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10067. case `$LD -v 2>&1 </dev/null` in
  10068. *GNU* | *'with BFD'*)
  10069. lt_cv_prog_gnu_ld=yes
  10070. ;;
  10071. *)
  10072. lt_cv_prog_gnu_ld=no
  10073. ;;
  10074. esac
  10075. fi
  10076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10077. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10078. with_gnu_ld=$lt_cv_prog_gnu_ld
  10079. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10080. # archiving commands below assume that GNU ld is being used.
  10081. if test "$with_gnu_ld" = yes; then
  10082. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10083. 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'
  10084. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10085. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10086. # If archive_cmds runs LD, not CC, wlarc should be empty
  10087. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10088. # investigate it a little bit more. (MM)
  10089. wlarc='${wl}'
  10090. # ancient GNU ld didn't support --whole-archive et. al.
  10091. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10092. $GREP 'no-whole-archive' > /dev/null; then
  10093. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10094. else
  10095. whole_archive_flag_spec_CXX=
  10096. fi
  10097. else
  10098. with_gnu_ld=no
  10099. wlarc=
  10100. # A generic and very simple default shared library creation
  10101. # command for GNU C++ for the case where it uses the native
  10102. # linker, instead of GNU ld. If possible, this setting should
  10103. # overridden to take advantage of the native linker features on
  10104. # the platform it is being used on.
  10105. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10106. fi
  10107. # Commands to make compiler produce verbose output that lists
  10108. # what "hidden" libraries, object files and flags are used when
  10109. # linking a shared library.
  10110. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10111. else
  10112. GXX=no
  10113. with_gnu_ld=no
  10114. wlarc=
  10115. fi
  10116. # PORTME: fill in a description of your system's C++ link characteristics
  10117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10118. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10119. ld_shlibs_CXX=yes
  10120. case $host_os in
  10121. aix3*)
  10122. # FIXME: insert proper C++ library support
  10123. ld_shlibs_CXX=no
  10124. ;;
  10125. aix[4-9]*)
  10126. if test "$host_cpu" = ia64; then
  10127. # On IA64, the linker does run time linking by default, so we don't
  10128. # have to do anything special.
  10129. aix_use_runtimelinking=no
  10130. exp_sym_flag='-Bexport'
  10131. no_entry_flag=""
  10132. else
  10133. aix_use_runtimelinking=no
  10134. # Test if we are trying to use run time linking or normal
  10135. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10136. # need to do runtime linking.
  10137. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10138. for ld_flag in $LDFLAGS; do
  10139. case $ld_flag in
  10140. *-brtl*)
  10141. aix_use_runtimelinking=yes
  10142. break
  10143. ;;
  10144. esac
  10145. done
  10146. ;;
  10147. esac
  10148. exp_sym_flag='-bexport'
  10149. no_entry_flag='-bnoentry'
  10150. fi
  10151. # When large executables or shared objects are built, AIX ld can
  10152. # have problems creating the table of contents. If linking a library
  10153. # or program results in "error TOC overflow" add -mminimal-toc to
  10154. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10155. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10156. archive_cmds_CXX=''
  10157. hardcode_direct_CXX=yes
  10158. hardcode_direct_absolute_CXX=yes
  10159. hardcode_libdir_separator_CXX=':'
  10160. link_all_deplibs_CXX=yes
  10161. file_list_spec_CXX='${wl}-f,'
  10162. if test "$GXX" = yes; then
  10163. case $host_os in aix4.[012]|aix4.[012].*)
  10164. # We only want to do this on AIX 4.2 and lower, the check
  10165. # below for broken collect2 doesn't work under 4.3+
  10166. collect2name=`${CC} -print-prog-name=collect2`
  10167. if test -f "$collect2name" &&
  10168. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10169. then
  10170. # We have reworked collect2
  10171. :
  10172. else
  10173. # We have old collect2
  10174. hardcode_direct_CXX=unsupported
  10175. # It fails to find uninstalled libraries when the uninstalled
  10176. # path is not listed in the libpath. Setting hardcode_minus_L
  10177. # to unsupported forces relinking
  10178. hardcode_minus_L_CXX=yes
  10179. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10180. hardcode_libdir_separator_CXX=
  10181. fi
  10182. esac
  10183. shared_flag='-shared'
  10184. if test "$aix_use_runtimelinking" = yes; then
  10185. shared_flag="$shared_flag "'${wl}-G'
  10186. fi
  10187. else
  10188. # not using gcc
  10189. if test "$host_cpu" = ia64; then
  10190. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10191. # chokes on -Wl,-G. The following line is correct:
  10192. shared_flag='-G'
  10193. else
  10194. if test "$aix_use_runtimelinking" = yes; then
  10195. shared_flag='${wl}-G'
  10196. else
  10197. shared_flag='${wl}-bM:SRE'
  10198. fi
  10199. fi
  10200. fi
  10201. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10202. # It seems that -bexpall does not export symbols beginning with
  10203. # underscore (_), so it is better to generate a list of symbols to
  10204. # export.
  10205. always_export_symbols_CXX=yes
  10206. if test "$aix_use_runtimelinking" = yes; then
  10207. # Warning - without using the other runtime loading flags (-brtl),
  10208. # -berok will link without error, but may produce a broken library.
  10209. allow_undefined_flag_CXX='-berok'
  10210. # Determine the default libpath from the value encoded in an empty
  10211. # executable.
  10212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10213. /* end confdefs.h. */
  10214. int
  10215. main ()
  10216. {
  10217. ;
  10218. return 0;
  10219. }
  10220. _ACEOF
  10221. if ac_fn_cxx_try_link "$LINENO"; then :
  10222. lt_aix_libpath_sed='
  10223. /Import File Strings/,/^$/ {
  10224. /^0/ {
  10225. s/^0 *\(.*\)$/\1/
  10226. p
  10227. }
  10228. }'
  10229. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10230. # Check for a 64-bit object if we didn't find anything.
  10231. if test -z "$aix_libpath"; then
  10232. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10233. fi
  10234. fi
  10235. rm -f core conftest.err conftest.$ac_objext \
  10236. conftest$ac_exeext conftest.$ac_ext
  10237. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10238. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10239. 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"
  10240. else
  10241. if test "$host_cpu" = ia64; then
  10242. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10243. allow_undefined_flag_CXX="-z nodefs"
  10244. 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"
  10245. else
  10246. # Determine the default libpath from the value encoded in an
  10247. # empty executable.
  10248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10249. /* end confdefs.h. */
  10250. int
  10251. main ()
  10252. {
  10253. ;
  10254. return 0;
  10255. }
  10256. _ACEOF
  10257. if ac_fn_cxx_try_link "$LINENO"; then :
  10258. lt_aix_libpath_sed='
  10259. /Import File Strings/,/^$/ {
  10260. /^0/ {
  10261. s/^0 *\(.*\)$/\1/
  10262. p
  10263. }
  10264. }'
  10265. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10266. # Check for a 64-bit object if we didn't find anything.
  10267. if test -z "$aix_libpath"; then
  10268. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10269. fi
  10270. fi
  10271. rm -f core conftest.err conftest.$ac_objext \
  10272. conftest$ac_exeext conftest.$ac_ext
  10273. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10274. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10275. # Warning - without using the other run time loading flags,
  10276. # -berok will link without error, but may produce a broken library.
  10277. no_undefined_flag_CXX=' ${wl}-bernotok'
  10278. allow_undefined_flag_CXX=' ${wl}-berok'
  10279. if test "$with_gnu_ld" = yes; then
  10280. # We only use this code for GNU lds that support --whole-archive.
  10281. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10282. else
  10283. # Exported symbols can be pulled into shared objects from archives
  10284. whole_archive_flag_spec_CXX='$convenience'
  10285. fi
  10286. archive_cmds_need_lc_CXX=yes
  10287. # This is similar to how AIX traditionally builds its shared
  10288. # libraries.
  10289. 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'
  10290. fi
  10291. fi
  10292. ;;
  10293. beos*)
  10294. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10295. allow_undefined_flag_CXX=unsupported
  10296. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10297. # support --undefined. This deserves some investigation. FIXME
  10298. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10299. else
  10300. ld_shlibs_CXX=no
  10301. fi
  10302. ;;
  10303. chorus*)
  10304. case $cc_basename in
  10305. *)
  10306. # FIXME: insert proper C++ library support
  10307. ld_shlibs_CXX=no
  10308. ;;
  10309. esac
  10310. ;;
  10311. cygwin* | mingw* | pw32* | cegcc*)
  10312. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10313. # as there is no search path for DLLs.
  10314. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10315. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10316. allow_undefined_flag_CXX=unsupported
  10317. always_export_symbols_CXX=no
  10318. enable_shared_with_static_runtimes_CXX=yes
  10319. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10320. 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'
  10321. # If the export-symbols file already is a .def file (1st line
  10322. # is EXPORTS), use it as is; otherwise, prepend...
  10323. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10324. cp $export_symbols $output_objdir/$soname.def;
  10325. else
  10326. echo EXPORTS > $output_objdir/$soname.def;
  10327. cat $export_symbols >> $output_objdir/$soname.def;
  10328. fi~
  10329. $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'
  10330. else
  10331. ld_shlibs_CXX=no
  10332. fi
  10333. ;;
  10334. darwin* | rhapsody*)
  10335. archive_cmds_need_lc_CXX=no
  10336. hardcode_direct_CXX=no
  10337. hardcode_automatic_CXX=yes
  10338. hardcode_shlibpath_var_CXX=unsupported
  10339. if test "$lt_cv_ld_force_load" = "yes"; then
  10340. 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\"`'
  10341. else
  10342. whole_archive_flag_spec_CXX=''
  10343. fi
  10344. link_all_deplibs_CXX=yes
  10345. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10346. case $cc_basename in
  10347. ifort*) _lt_dar_can_shared=yes ;;
  10348. *) _lt_dar_can_shared=$GCC ;;
  10349. esac
  10350. if test "$_lt_dar_can_shared" = "yes"; then
  10351. output_verbose_link_cmd=func_echo_all
  10352. 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}"
  10353. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10354. 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}"
  10355. 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}"
  10356. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10357. 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}"
  10358. 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}"
  10359. fi
  10360. else
  10361. ld_shlibs_CXX=no
  10362. fi
  10363. ;;
  10364. dgux*)
  10365. case $cc_basename in
  10366. ec++*)
  10367. # FIXME: insert proper C++ library support
  10368. ld_shlibs_CXX=no
  10369. ;;
  10370. ghcx*)
  10371. # Green Hills C++ Compiler
  10372. # FIXME: insert proper C++ library support
  10373. ld_shlibs_CXX=no
  10374. ;;
  10375. *)
  10376. # FIXME: insert proper C++ library support
  10377. ld_shlibs_CXX=no
  10378. ;;
  10379. esac
  10380. ;;
  10381. freebsd2.*)
  10382. # C++ shared libraries reported to be fairly broken before
  10383. # switch to ELF
  10384. ld_shlibs_CXX=no
  10385. ;;
  10386. freebsd-elf*)
  10387. archive_cmds_need_lc_CXX=no
  10388. ;;
  10389. freebsd* | dragonfly*)
  10390. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10391. # conventions
  10392. ld_shlibs_CXX=yes
  10393. ;;
  10394. gnu*)
  10395. ;;
  10396. haiku*)
  10397. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10398. link_all_deplibs_CXX=yes
  10399. ;;
  10400. hpux9*)
  10401. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10402. hardcode_libdir_separator_CXX=:
  10403. export_dynamic_flag_spec_CXX='${wl}-E'
  10404. hardcode_direct_CXX=yes
  10405. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10406. # but as the default
  10407. # location of the library.
  10408. case $cc_basename in
  10409. CC*)
  10410. # FIXME: insert proper C++ library support
  10411. ld_shlibs_CXX=no
  10412. ;;
  10413. aCC*)
  10414. 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'
  10415. # Commands to make compiler produce verbose output that lists
  10416. # what "hidden" libraries, object files and flags are used when
  10417. # linking a shared library.
  10418. #
  10419. # There doesn't appear to be a way to prevent this compiler from
  10420. # explicitly linking system object files so we need to strip them
  10421. # from the output so that they don't get included in the library
  10422. # dependencies.
  10423. 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"'
  10424. ;;
  10425. *)
  10426. if test "$GXX" = yes; then
  10427. 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'
  10428. else
  10429. # FIXME: insert proper C++ library support
  10430. ld_shlibs_CXX=no
  10431. fi
  10432. ;;
  10433. esac
  10434. ;;
  10435. hpux10*|hpux11*)
  10436. if test $with_gnu_ld = no; then
  10437. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10438. hardcode_libdir_separator_CXX=:
  10439. case $host_cpu in
  10440. hppa*64*|ia64*)
  10441. ;;
  10442. *)
  10443. export_dynamic_flag_spec_CXX='${wl}-E'
  10444. ;;
  10445. esac
  10446. fi
  10447. case $host_cpu in
  10448. hppa*64*|ia64*)
  10449. hardcode_direct_CXX=no
  10450. hardcode_shlibpath_var_CXX=no
  10451. ;;
  10452. *)
  10453. hardcode_direct_CXX=yes
  10454. hardcode_direct_absolute_CXX=yes
  10455. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10456. # but as the default
  10457. # location of the library.
  10458. ;;
  10459. esac
  10460. case $cc_basename in
  10461. CC*)
  10462. # FIXME: insert proper C++ library support
  10463. ld_shlibs_CXX=no
  10464. ;;
  10465. aCC*)
  10466. case $host_cpu in
  10467. hppa*64*)
  10468. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10469. ;;
  10470. ia64*)
  10471. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10472. ;;
  10473. *)
  10474. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10475. ;;
  10476. esac
  10477. # Commands to make compiler produce verbose output that lists
  10478. # what "hidden" libraries, object files and flags are used when
  10479. # linking a shared library.
  10480. #
  10481. # There doesn't appear to be a way to prevent this compiler from
  10482. # explicitly linking system object files so we need to strip them
  10483. # from the output so that they don't get included in the library
  10484. # dependencies.
  10485. 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"'
  10486. ;;
  10487. *)
  10488. if test "$GXX" = yes; then
  10489. if test $with_gnu_ld = no; then
  10490. case $host_cpu in
  10491. hppa*64*)
  10492. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10493. ;;
  10494. ia64*)
  10495. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10496. ;;
  10497. *)
  10498. 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'
  10499. ;;
  10500. esac
  10501. fi
  10502. else
  10503. # FIXME: insert proper C++ library support
  10504. ld_shlibs_CXX=no
  10505. fi
  10506. ;;
  10507. esac
  10508. ;;
  10509. interix[3-9]*)
  10510. hardcode_direct_CXX=no
  10511. hardcode_shlibpath_var_CXX=no
  10512. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10513. export_dynamic_flag_spec_CXX='${wl}-E'
  10514. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10515. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10516. # default) and relocated if they conflict, which is a slow very memory
  10517. # consuming and fragmenting process. To avoid this, we pick a random,
  10518. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10519. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10520. 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'
  10521. 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'
  10522. ;;
  10523. irix5* | irix6*)
  10524. case $cc_basename in
  10525. CC*)
  10526. # SGI C++
  10527. 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'
  10528. # Archives containing C++ object files must be created using
  10529. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10530. # necessary to make sure instantiated templates are included
  10531. # in the archive.
  10532. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10533. ;;
  10534. *)
  10535. if test "$GXX" = yes; then
  10536. if test "$with_gnu_ld" = no; then
  10537. 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'
  10538. else
  10539. 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'
  10540. fi
  10541. fi
  10542. link_all_deplibs_CXX=yes
  10543. ;;
  10544. esac
  10545. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10546. hardcode_libdir_separator_CXX=:
  10547. inherit_rpath_CXX=yes
  10548. ;;
  10549. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10550. case $cc_basename in
  10551. KCC*)
  10552. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10553. # KCC will only create a shared library if the output file
  10554. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10555. # to its proper name (with version) after linking.
  10556. 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'
  10557. 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'
  10558. # Commands to make compiler produce verbose output that lists
  10559. # what "hidden" libraries, object files and flags are used when
  10560. # linking a shared library.
  10561. #
  10562. # There doesn't appear to be a way to prevent this compiler from
  10563. # explicitly linking system object files so we need to strip them
  10564. # from the output so that they don't get included in the library
  10565. # dependencies.
  10566. 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"'
  10567. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10568. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10569. # Archives containing C++ object files must be created using
  10570. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10571. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10572. ;;
  10573. icpc* | ecpc* )
  10574. # Intel C++
  10575. with_gnu_ld=yes
  10576. # version 8.0 and above of icpc choke on multiply defined symbols
  10577. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10578. # earlier do not add the objects themselves.
  10579. case `$CC -V 2>&1` in
  10580. *"Version 7."*)
  10581. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10582. 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'
  10583. ;;
  10584. *) # Version 8.0 or newer
  10585. tmp_idyn=
  10586. case $host_cpu in
  10587. ia64*) tmp_idyn=' -i_dynamic';;
  10588. esac
  10589. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10590. 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'
  10591. ;;
  10592. esac
  10593. archive_cmds_need_lc_CXX=no
  10594. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10595. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10596. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10597. ;;
  10598. pgCC* | pgcpp*)
  10599. # Portland Group C++ compiler
  10600. case `$CC -V` in
  10601. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  10602. prelink_cmds_CXX='tpldir=Template.dir~
  10603. rm -rf $tpldir~
  10604. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10605. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10606. old_archive_cmds_CXX='tpldir=Template.dir~
  10607. rm -rf $tpldir~
  10608. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10609. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10610. $RANLIB $oldlib'
  10611. archive_cmds_CXX='tpldir=Template.dir~
  10612. rm -rf $tpldir~
  10613. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10614. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10615. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10616. rm -rf $tpldir~
  10617. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10618. $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'
  10619. ;;
  10620. *) # Version 6 and above use weak symbols
  10621. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10622. 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'
  10623. ;;
  10624. esac
  10625. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10626. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10627. 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'
  10628. ;;
  10629. cxx*)
  10630. # Compaq C++
  10631. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10632. 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'
  10633. runpath_var=LD_RUN_PATH
  10634. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10635. hardcode_libdir_separator_CXX=:
  10636. # Commands to make compiler produce verbose output that lists
  10637. # what "hidden" libraries, object files and flags are used when
  10638. # linking a shared library.
  10639. #
  10640. # There doesn't appear to be a way to prevent this compiler from
  10641. # explicitly linking system object files so we need to strip them
  10642. # from the output so that they don't get included in the library
  10643. # dependencies.
  10644. 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'
  10645. ;;
  10646. xl* | mpixl* | bgxl*)
  10647. # IBM XL 8.0 on PPC, with GNU ld
  10648. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10649. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10650. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10651. if test "x$supports_anon_versioning" = xyes; then
  10652. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10653. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10654. echo "local: *; };" >> $output_objdir/$libname.ver~
  10655. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10656. fi
  10657. ;;
  10658. *)
  10659. case `$CC -V 2>&1 | sed 5q` in
  10660. *Sun\ C*)
  10661. # Sun C++ 5.9
  10662. no_undefined_flag_CXX=' -zdefs'
  10663. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10664. 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'
  10665. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10666. 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'
  10667. compiler_needs_object_CXX=yes
  10668. # Not sure whether something based on
  10669. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10670. # would be better.
  10671. output_verbose_link_cmd='func_echo_all'
  10672. # Archives containing C++ object files must be created using
  10673. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10674. # necessary to make sure instantiated templates are included
  10675. # in the archive.
  10676. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10677. ;;
  10678. esac
  10679. ;;
  10680. esac
  10681. ;;
  10682. lynxos*)
  10683. # FIXME: insert proper C++ library support
  10684. ld_shlibs_CXX=no
  10685. ;;
  10686. m88k*)
  10687. # FIXME: insert proper C++ library support
  10688. ld_shlibs_CXX=no
  10689. ;;
  10690. mvs*)
  10691. case $cc_basename in
  10692. cxx*)
  10693. # FIXME: insert proper C++ library support
  10694. ld_shlibs_CXX=no
  10695. ;;
  10696. *)
  10697. # FIXME: insert proper C++ library support
  10698. ld_shlibs_CXX=no
  10699. ;;
  10700. esac
  10701. ;;
  10702. netbsd*)
  10703. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10704. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10705. wlarc=
  10706. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10707. hardcode_direct_CXX=yes
  10708. hardcode_shlibpath_var_CXX=no
  10709. fi
  10710. # Workaround some broken pre-1.5 toolchains
  10711. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10712. ;;
  10713. *nto* | *qnx*)
  10714. ld_shlibs_CXX=yes
  10715. ;;
  10716. openbsd2*)
  10717. # C++ shared libraries are fairly broken
  10718. ld_shlibs_CXX=no
  10719. ;;
  10720. openbsd*)
  10721. if test -f /usr/libexec/ld.so; then
  10722. hardcode_direct_CXX=yes
  10723. hardcode_shlibpath_var_CXX=no
  10724. hardcode_direct_absolute_CXX=yes
  10725. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10726. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10727. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10728. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10729. export_dynamic_flag_spec_CXX='${wl}-E'
  10730. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10731. fi
  10732. output_verbose_link_cmd=func_echo_all
  10733. else
  10734. ld_shlibs_CXX=no
  10735. fi
  10736. ;;
  10737. osf3* | osf4* | osf5*)
  10738. case $cc_basename in
  10739. KCC*)
  10740. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10741. # KCC will only create a shared library if the output file
  10742. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10743. # to its proper name (with version) after linking.
  10744. 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'
  10745. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10746. hardcode_libdir_separator_CXX=:
  10747. # Archives containing C++ object files must be created using
  10748. # the KAI C++ compiler.
  10749. case $host in
  10750. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10751. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10752. esac
  10753. ;;
  10754. RCC*)
  10755. # Rational C++ 2.4.1
  10756. # FIXME: insert proper C++ library support
  10757. ld_shlibs_CXX=no
  10758. ;;
  10759. cxx*)
  10760. case $host in
  10761. osf3*)
  10762. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10763. 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'
  10764. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10765. ;;
  10766. *)
  10767. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10768. 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'
  10769. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10770. echo "-hidden">> $lib.exp~
  10771. $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~
  10772. $RM $lib.exp'
  10773. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10774. ;;
  10775. esac
  10776. hardcode_libdir_separator_CXX=:
  10777. # Commands to make compiler produce verbose output that lists
  10778. # what "hidden" libraries, object files and flags are used when
  10779. # linking a shared library.
  10780. #
  10781. # There doesn't appear to be a way to prevent this compiler from
  10782. # explicitly linking system object files so we need to strip them
  10783. # from the output so that they don't get included in the library
  10784. # dependencies.
  10785. 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"'
  10786. ;;
  10787. *)
  10788. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10789. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10790. case $host in
  10791. osf3*)
  10792. 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'
  10793. ;;
  10794. *)
  10795. 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'
  10796. ;;
  10797. esac
  10798. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10799. hardcode_libdir_separator_CXX=:
  10800. # Commands to make compiler produce verbose output that lists
  10801. # what "hidden" libraries, object files and flags are used when
  10802. # linking a shared library.
  10803. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10804. else
  10805. # FIXME: insert proper C++ library support
  10806. ld_shlibs_CXX=no
  10807. fi
  10808. ;;
  10809. esac
  10810. ;;
  10811. psos*)
  10812. # FIXME: insert proper C++ library support
  10813. ld_shlibs_CXX=no
  10814. ;;
  10815. sunos4*)
  10816. case $cc_basename in
  10817. CC*)
  10818. # Sun C++ 4.x
  10819. # FIXME: insert proper C++ library support
  10820. ld_shlibs_CXX=no
  10821. ;;
  10822. lcc*)
  10823. # Lucid
  10824. # FIXME: insert proper C++ library support
  10825. ld_shlibs_CXX=no
  10826. ;;
  10827. *)
  10828. # FIXME: insert proper C++ library support
  10829. ld_shlibs_CXX=no
  10830. ;;
  10831. esac
  10832. ;;
  10833. solaris*)
  10834. case $cc_basename in
  10835. CC*)
  10836. # Sun C++ 4.2, 5.x and Centerline C++
  10837. archive_cmds_need_lc_CXX=yes
  10838. no_undefined_flag_CXX=' -zdefs'
  10839. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10840. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10841. $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'
  10842. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10843. hardcode_shlibpath_var_CXX=no
  10844. case $host_os in
  10845. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10846. *)
  10847. # The compiler driver will combine and reorder linker options,
  10848. # but understands `-z linker_flag'.
  10849. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10850. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10851. ;;
  10852. esac
  10853. link_all_deplibs_CXX=yes
  10854. output_verbose_link_cmd='func_echo_all'
  10855. # Archives containing C++ object files must be created using
  10856. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10857. # necessary to make sure instantiated templates are included
  10858. # in the archive.
  10859. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10860. ;;
  10861. gcx*)
  10862. # Green Hills C++ Compiler
  10863. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10864. # The C++ compiler must be used to create the archive.
  10865. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10866. ;;
  10867. *)
  10868. # GNU C++ compiler with Solaris linker
  10869. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10870. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10871. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10872. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10873. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10874. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10875. # Commands to make compiler produce verbose output that lists
  10876. # what "hidden" libraries, object files and flags are used when
  10877. # linking a shared library.
  10878. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10879. else
  10880. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10881. # platform.
  10882. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10883. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10884. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10885. # Commands to make compiler produce verbose output that lists
  10886. # what "hidden" libraries, object files and flags are used when
  10887. # linking a shared library.
  10888. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10889. fi
  10890. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10891. case $host_os in
  10892. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10893. *)
  10894. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10895. ;;
  10896. esac
  10897. fi
  10898. ;;
  10899. esac
  10900. ;;
  10901. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10902. no_undefined_flag_CXX='${wl}-z,text'
  10903. archive_cmds_need_lc_CXX=no
  10904. hardcode_shlibpath_var_CXX=no
  10905. runpath_var='LD_RUN_PATH'
  10906. case $cc_basename in
  10907. CC*)
  10908. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10909. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10910. ;;
  10911. *)
  10912. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10913. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10914. ;;
  10915. esac
  10916. ;;
  10917. sysv5* | sco3.2v5* | sco5v6*)
  10918. # Note: We can NOT use -z defs as we might desire, because we do not
  10919. # link with -lc, and that would cause any symbols used from libc to
  10920. # always be unresolved, which means just about no library would
  10921. # ever link correctly. If we're not using GNU ld we use -z text
  10922. # though, which does catch some bad symbols but isn't as heavy-handed
  10923. # as -z defs.
  10924. no_undefined_flag_CXX='${wl}-z,text'
  10925. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10926. archive_cmds_need_lc_CXX=no
  10927. hardcode_shlibpath_var_CXX=no
  10928. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  10929. hardcode_libdir_separator_CXX=':'
  10930. link_all_deplibs_CXX=yes
  10931. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10932. runpath_var='LD_RUN_PATH'
  10933. case $cc_basename in
  10934. CC*)
  10935. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10936. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10937. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  10938. '"$old_archive_cmds_CXX"
  10939. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  10940. '"$reload_cmds_CXX"
  10941. ;;
  10942. *)
  10943. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10944. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10945. ;;
  10946. esac
  10947. ;;
  10948. tandem*)
  10949. case $cc_basename in
  10950. NCC*)
  10951. # NonStop-UX NCC 3.20
  10952. # FIXME: insert proper C++ library support
  10953. ld_shlibs_CXX=no
  10954. ;;
  10955. *)
  10956. # FIXME: insert proper C++ library support
  10957. ld_shlibs_CXX=no
  10958. ;;
  10959. esac
  10960. ;;
  10961. vxworks*)
  10962. # FIXME: insert proper C++ library support
  10963. ld_shlibs_CXX=no
  10964. ;;
  10965. *)
  10966. # FIXME: insert proper C++ library support
  10967. ld_shlibs_CXX=no
  10968. ;;
  10969. esac
  10970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  10971. $as_echo "$ld_shlibs_CXX" >&6; }
  10972. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10973. GCC_CXX="$GXX"
  10974. LD_CXX="$LD"
  10975. ## CAVEAT EMPTOR:
  10976. ## There is no encapsulation within the following macros, do not change
  10977. ## the running order or otherwise move them around unless you know exactly
  10978. ## what you are doing...
  10979. # Dependencies to place before and after the object being linked:
  10980. predep_objects_CXX=
  10981. postdep_objects_CXX=
  10982. predeps_CXX=
  10983. postdeps_CXX=
  10984. compiler_lib_search_path_CXX=
  10985. cat > conftest.$ac_ext <<_LT_EOF
  10986. class Foo
  10987. {
  10988. public:
  10989. Foo (void) { a = 0; }
  10990. private:
  10991. int a;
  10992. };
  10993. _LT_EOF
  10994. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10995. (eval $ac_compile) 2>&5
  10996. ac_status=$?
  10997. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10998. test $ac_status = 0; }; then
  10999. # Parse the compiler output and extract the necessary
  11000. # objects, libraries and library flags.
  11001. # Sentinel used to keep track of whether or not we are before
  11002. # the conftest object file.
  11003. pre_test_object_deps_done=no
  11004. for p in `eval "$output_verbose_link_cmd"`; do
  11005. case $p in
  11006. -L* | -R* | -l*)
  11007. # Some compilers place space between "-{L,R}" and the path.
  11008. # Remove the space.
  11009. if test $p = "-L" ||
  11010. test $p = "-R"; then
  11011. prev=$p
  11012. continue
  11013. else
  11014. prev=
  11015. fi
  11016. if test "$pre_test_object_deps_done" = no; then
  11017. case $p in
  11018. -L* | -R*)
  11019. # Internal compiler library paths should come after those
  11020. # provided the user. The postdeps already come after the
  11021. # user supplied libs so there is no need to process them.
  11022. if test -z "$compiler_lib_search_path_CXX"; then
  11023. compiler_lib_search_path_CXX="${prev}${p}"
  11024. else
  11025. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11026. fi
  11027. ;;
  11028. # The "-l" case would never come before the object being
  11029. # linked, so don't bother handling this case.
  11030. esac
  11031. else
  11032. if test -z "$postdeps_CXX"; then
  11033. postdeps_CXX="${prev}${p}"
  11034. else
  11035. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11036. fi
  11037. fi
  11038. ;;
  11039. *.$objext)
  11040. # This assumes that the test object file only shows up
  11041. # once in the compiler output.
  11042. if test "$p" = "conftest.$objext"; then
  11043. pre_test_object_deps_done=yes
  11044. continue
  11045. fi
  11046. if test "$pre_test_object_deps_done" = no; then
  11047. if test -z "$predep_objects_CXX"; then
  11048. predep_objects_CXX="$p"
  11049. else
  11050. predep_objects_CXX="$predep_objects_CXX $p"
  11051. fi
  11052. else
  11053. if test -z "$postdep_objects_CXX"; then
  11054. postdep_objects_CXX="$p"
  11055. else
  11056. postdep_objects_CXX="$postdep_objects_CXX $p"
  11057. fi
  11058. fi
  11059. ;;
  11060. *) ;; # Ignore the rest.
  11061. esac
  11062. done
  11063. # Clean up.
  11064. rm -f a.out a.exe
  11065. else
  11066. echo "libtool.m4: error: problem compiling CXX test program"
  11067. fi
  11068. $RM -f confest.$objext
  11069. # PORTME: override above test on systems where it is broken
  11070. case $host_os in
  11071. interix[3-9]*)
  11072. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11073. # hack all around it, let's just trust "g++" to DTRT.
  11074. predep_objects_CXX=
  11075. postdep_objects_CXX=
  11076. postdeps_CXX=
  11077. ;;
  11078. linux*)
  11079. case `$CC -V 2>&1 | sed 5q` in
  11080. *Sun\ C*)
  11081. # Sun C++ 5.9
  11082. # The more standards-conforming stlport4 library is
  11083. # incompatible with the Cstd library. Avoid specifying
  11084. # it if it's in CXXFLAGS. Ignore libCrun as
  11085. # -library=stlport4 depends on it.
  11086. case " $CXX $CXXFLAGS " in
  11087. *" -library=stlport4 "*)
  11088. solaris_use_stlport4=yes
  11089. ;;
  11090. esac
  11091. if test "$solaris_use_stlport4" != yes; then
  11092. postdeps_CXX='-library=Cstd -library=Crun'
  11093. fi
  11094. ;;
  11095. esac
  11096. ;;
  11097. solaris*)
  11098. case $cc_basename in
  11099. CC*)
  11100. # The more standards-conforming stlport4 library is
  11101. # incompatible with the Cstd library. Avoid specifying
  11102. # it if it's in CXXFLAGS. Ignore libCrun as
  11103. # -library=stlport4 depends on it.
  11104. case " $CXX $CXXFLAGS " in
  11105. *" -library=stlport4 "*)
  11106. solaris_use_stlport4=yes
  11107. ;;
  11108. esac
  11109. # Adding this requires a known-good setup of shared libraries for
  11110. # Sun compiler versions before 5.6, else PIC objects from an old
  11111. # archive will be linked into the output, leading to subtle bugs.
  11112. if test "$solaris_use_stlport4" != yes; then
  11113. postdeps_CXX='-library=Cstd -library=Crun'
  11114. fi
  11115. ;;
  11116. esac
  11117. ;;
  11118. esac
  11119. case " $postdeps_CXX " in
  11120. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11121. esac
  11122. compiler_lib_search_dirs_CXX=
  11123. if test -n "${compiler_lib_search_path_CXX}"; then
  11124. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11125. fi
  11126. lt_prog_compiler_wl_CXX=
  11127. lt_prog_compiler_pic_CXX=
  11128. lt_prog_compiler_static_CXX=
  11129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11130. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11131. # C++ specific cases for pic, static, wl, etc.
  11132. if test "$GXX" = yes; then
  11133. lt_prog_compiler_wl_CXX='-Wl,'
  11134. lt_prog_compiler_static_CXX='-static'
  11135. case $host_os in
  11136. aix*)
  11137. # All AIX code is PIC.
  11138. if test "$host_cpu" = ia64; then
  11139. # AIX 5 now supports IA64 processor
  11140. lt_prog_compiler_static_CXX='-Bstatic'
  11141. fi
  11142. lt_prog_compiler_pic_CXX='-fPIC'
  11143. ;;
  11144. amigaos*)
  11145. case $host_cpu in
  11146. powerpc)
  11147. # see comment about AmigaOS4 .so support
  11148. lt_prog_compiler_pic_CXX='-fPIC'
  11149. ;;
  11150. m68k)
  11151. # FIXME: we need at least 68020 code to build shared libraries, but
  11152. # adding the `-m68020' flag to GCC prevents building anything better,
  11153. # like `-m68040'.
  11154. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11155. ;;
  11156. esac
  11157. ;;
  11158. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11159. # PIC is the default for these OSes.
  11160. ;;
  11161. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11162. # This hack is so that the source file can tell whether it is being
  11163. # built for inclusion in a dll (and should export symbols for example).
  11164. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11165. # (--disable-auto-import) libraries
  11166. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11167. ;;
  11168. darwin* | rhapsody*)
  11169. # PIC is the default on this platform
  11170. # Common symbols not allowed in MH_DYLIB files
  11171. lt_prog_compiler_pic_CXX='-fno-common'
  11172. ;;
  11173. *djgpp*)
  11174. # DJGPP does not support shared libraries at all
  11175. lt_prog_compiler_pic_CXX=
  11176. ;;
  11177. haiku*)
  11178. # PIC is the default for Haiku.
  11179. # The "-static" flag exists, but is broken.
  11180. lt_prog_compiler_static_CXX=
  11181. ;;
  11182. interix[3-9]*)
  11183. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11184. # Instead, we relocate shared libraries at runtime.
  11185. ;;
  11186. sysv4*MP*)
  11187. if test -d /usr/nec; then
  11188. lt_prog_compiler_pic_CXX=-Kconform_pic
  11189. fi
  11190. ;;
  11191. hpux*)
  11192. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11193. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11194. # sets the default TLS model and affects inlining.
  11195. case $host_cpu in
  11196. hppa*64*)
  11197. ;;
  11198. *)
  11199. lt_prog_compiler_pic_CXX='-fPIC'
  11200. ;;
  11201. esac
  11202. ;;
  11203. *qnx* | *nto*)
  11204. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11205. # it will coredump.
  11206. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11207. ;;
  11208. *)
  11209. lt_prog_compiler_pic_CXX='-fPIC'
  11210. ;;
  11211. esac
  11212. else
  11213. case $host_os in
  11214. aix[4-9]*)
  11215. # All AIX code is PIC.
  11216. if test "$host_cpu" = ia64; then
  11217. # AIX 5 now supports IA64 processor
  11218. lt_prog_compiler_static_CXX='-Bstatic'
  11219. else
  11220. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11221. fi
  11222. ;;
  11223. chorus*)
  11224. case $cc_basename in
  11225. cxch68*)
  11226. # Green Hills C++ Compiler
  11227. # _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"
  11228. ;;
  11229. esac
  11230. ;;
  11231. dgux*)
  11232. case $cc_basename in
  11233. ec++*)
  11234. lt_prog_compiler_pic_CXX='-KPIC'
  11235. ;;
  11236. ghcx*)
  11237. # Green Hills C++ Compiler
  11238. lt_prog_compiler_pic_CXX='-pic'
  11239. ;;
  11240. *)
  11241. ;;
  11242. esac
  11243. ;;
  11244. freebsd* | dragonfly*)
  11245. # FreeBSD uses GNU C++
  11246. ;;
  11247. hpux9* | hpux10* | hpux11*)
  11248. case $cc_basename in
  11249. CC*)
  11250. lt_prog_compiler_wl_CXX='-Wl,'
  11251. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11252. if test "$host_cpu" != ia64; then
  11253. lt_prog_compiler_pic_CXX='+Z'
  11254. fi
  11255. ;;
  11256. aCC*)
  11257. lt_prog_compiler_wl_CXX='-Wl,'
  11258. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11259. case $host_cpu in
  11260. hppa*64*|ia64*)
  11261. # +Z the default
  11262. ;;
  11263. *)
  11264. lt_prog_compiler_pic_CXX='+Z'
  11265. ;;
  11266. esac
  11267. ;;
  11268. *)
  11269. ;;
  11270. esac
  11271. ;;
  11272. interix*)
  11273. # This is c89, which is MS Visual C++ (no shared libs)
  11274. # Anyone wants to do a port?
  11275. ;;
  11276. irix5* | irix6* | nonstopux*)
  11277. case $cc_basename in
  11278. CC*)
  11279. lt_prog_compiler_wl_CXX='-Wl,'
  11280. lt_prog_compiler_static_CXX='-non_shared'
  11281. # CC pic flag -KPIC is the default.
  11282. ;;
  11283. *)
  11284. ;;
  11285. esac
  11286. ;;
  11287. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11288. case $cc_basename in
  11289. KCC*)
  11290. # KAI C++ Compiler
  11291. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11292. lt_prog_compiler_pic_CXX='-fPIC'
  11293. ;;
  11294. ecpc* )
  11295. # old Intel C++ for x86_64 which still supported -KPIC.
  11296. lt_prog_compiler_wl_CXX='-Wl,'
  11297. lt_prog_compiler_pic_CXX='-KPIC'
  11298. lt_prog_compiler_static_CXX='-static'
  11299. ;;
  11300. icpc* )
  11301. # Intel C++, used to be incompatible with GCC.
  11302. # ICC 10 doesn't accept -KPIC any more.
  11303. lt_prog_compiler_wl_CXX='-Wl,'
  11304. lt_prog_compiler_pic_CXX='-fPIC'
  11305. lt_prog_compiler_static_CXX='-static'
  11306. ;;
  11307. pgCC* | pgcpp*)
  11308. # Portland Group C++ compiler
  11309. lt_prog_compiler_wl_CXX='-Wl,'
  11310. lt_prog_compiler_pic_CXX='-fpic'
  11311. lt_prog_compiler_static_CXX='-Bstatic'
  11312. ;;
  11313. cxx*)
  11314. # Compaq C++
  11315. # Make sure the PIC flag is empty. It appears that all Alpha
  11316. # Linux and Compaq Tru64 Unix objects are PIC.
  11317. lt_prog_compiler_pic_CXX=
  11318. lt_prog_compiler_static_CXX='-non_shared'
  11319. ;;
  11320. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11321. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11322. lt_prog_compiler_wl_CXX='-Wl,'
  11323. lt_prog_compiler_pic_CXX='-qpic'
  11324. lt_prog_compiler_static_CXX='-qstaticlink'
  11325. ;;
  11326. *)
  11327. case `$CC -V 2>&1 | sed 5q` in
  11328. *Sun\ C*)
  11329. # Sun C++ 5.9
  11330. lt_prog_compiler_pic_CXX='-KPIC'
  11331. lt_prog_compiler_static_CXX='-Bstatic'
  11332. lt_prog_compiler_wl_CXX='-Qoption ld '
  11333. ;;
  11334. esac
  11335. ;;
  11336. esac
  11337. ;;
  11338. lynxos*)
  11339. ;;
  11340. m88k*)
  11341. ;;
  11342. mvs*)
  11343. case $cc_basename in
  11344. cxx*)
  11345. lt_prog_compiler_pic_CXX='-W c,exportall'
  11346. ;;
  11347. *)
  11348. ;;
  11349. esac
  11350. ;;
  11351. netbsd*)
  11352. ;;
  11353. *qnx* | *nto*)
  11354. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11355. # it will coredump.
  11356. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11357. ;;
  11358. osf3* | osf4* | osf5*)
  11359. case $cc_basename in
  11360. KCC*)
  11361. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11362. ;;
  11363. RCC*)
  11364. # Rational C++ 2.4.1
  11365. lt_prog_compiler_pic_CXX='-pic'
  11366. ;;
  11367. cxx*)
  11368. # Digital/Compaq C++
  11369. lt_prog_compiler_wl_CXX='-Wl,'
  11370. # Make sure the PIC flag is empty. It appears that all Alpha
  11371. # Linux and Compaq Tru64 Unix objects are PIC.
  11372. lt_prog_compiler_pic_CXX=
  11373. lt_prog_compiler_static_CXX='-non_shared'
  11374. ;;
  11375. *)
  11376. ;;
  11377. esac
  11378. ;;
  11379. psos*)
  11380. ;;
  11381. solaris*)
  11382. case $cc_basename in
  11383. CC*)
  11384. # Sun C++ 4.2, 5.x and Centerline C++
  11385. lt_prog_compiler_pic_CXX='-KPIC'
  11386. lt_prog_compiler_static_CXX='-Bstatic'
  11387. lt_prog_compiler_wl_CXX='-Qoption ld '
  11388. ;;
  11389. gcx*)
  11390. # Green Hills C++ Compiler
  11391. lt_prog_compiler_pic_CXX='-PIC'
  11392. ;;
  11393. *)
  11394. ;;
  11395. esac
  11396. ;;
  11397. sunos4*)
  11398. case $cc_basename in
  11399. CC*)
  11400. # Sun C++ 4.x
  11401. lt_prog_compiler_pic_CXX='-pic'
  11402. lt_prog_compiler_static_CXX='-Bstatic'
  11403. ;;
  11404. lcc*)
  11405. # Lucid
  11406. lt_prog_compiler_pic_CXX='-pic'
  11407. ;;
  11408. *)
  11409. ;;
  11410. esac
  11411. ;;
  11412. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11413. case $cc_basename in
  11414. CC*)
  11415. lt_prog_compiler_wl_CXX='-Wl,'
  11416. lt_prog_compiler_pic_CXX='-KPIC'
  11417. lt_prog_compiler_static_CXX='-Bstatic'
  11418. ;;
  11419. esac
  11420. ;;
  11421. tandem*)
  11422. case $cc_basename in
  11423. NCC*)
  11424. # NonStop-UX NCC 3.20
  11425. lt_prog_compiler_pic_CXX='-KPIC'
  11426. ;;
  11427. *)
  11428. ;;
  11429. esac
  11430. ;;
  11431. vxworks*)
  11432. ;;
  11433. *)
  11434. lt_prog_compiler_can_build_shared_CXX=no
  11435. ;;
  11436. esac
  11437. fi
  11438. case $host_os in
  11439. # For platforms which do not support PIC, -DPIC is meaningless:
  11440. *djgpp*)
  11441. lt_prog_compiler_pic_CXX=
  11442. ;;
  11443. *)
  11444. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11445. ;;
  11446. esac
  11447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11448. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11449. #
  11450. # Check to make sure the PIC flag actually works.
  11451. #
  11452. if test -n "$lt_prog_compiler_pic_CXX"; then
  11453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11454. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11455. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11456. $as_echo_n "(cached) " >&6
  11457. else
  11458. lt_cv_prog_compiler_pic_works_CXX=no
  11459. ac_outfile=conftest.$ac_objext
  11460. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11461. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11462. # Insert the option either (1) after the last *FLAGS variable, or
  11463. # (2) before a word containing "conftest.", or (3) at the end.
  11464. # Note that $ac_compile itself does not contain backslashes and begins
  11465. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11466. # The option is referenced via a variable to avoid confusing sed.
  11467. lt_compile=`echo "$ac_compile" | $SED \
  11468. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11469. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11470. -e 's:$: $lt_compiler_flag:'`
  11471. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11472. (eval "$lt_compile" 2>conftest.err)
  11473. ac_status=$?
  11474. cat conftest.err >&5
  11475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11476. if (exit $ac_status) && test -s "$ac_outfile"; then
  11477. # The compiler can only warn and ignore the option if not recognized
  11478. # So say no if there are warnings other than the usual output.
  11479. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11480. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11481. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11482. lt_cv_prog_compiler_pic_works_CXX=yes
  11483. fi
  11484. fi
  11485. $RM conftest*
  11486. fi
  11487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11488. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11489. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11490. case $lt_prog_compiler_pic_CXX in
  11491. "" | " "*) ;;
  11492. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11493. esac
  11494. else
  11495. lt_prog_compiler_pic_CXX=
  11496. lt_prog_compiler_can_build_shared_CXX=no
  11497. fi
  11498. fi
  11499. #
  11500. # Check to make sure the static flag actually works.
  11501. #
  11502. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11504. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11505. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11506. $as_echo_n "(cached) " >&6
  11507. else
  11508. lt_cv_prog_compiler_static_works_CXX=no
  11509. save_LDFLAGS="$LDFLAGS"
  11510. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11511. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11512. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11513. # The linker can only warn and ignore the option if not recognized
  11514. # So say no if there are warnings
  11515. if test -s conftest.err; then
  11516. # Append any errors to the config.log.
  11517. cat conftest.err 1>&5
  11518. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11519. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11520. if diff conftest.exp conftest.er2 >/dev/null; then
  11521. lt_cv_prog_compiler_static_works_CXX=yes
  11522. fi
  11523. else
  11524. lt_cv_prog_compiler_static_works_CXX=yes
  11525. fi
  11526. fi
  11527. $RM -r conftest*
  11528. LDFLAGS="$save_LDFLAGS"
  11529. fi
  11530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11531. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11532. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11533. :
  11534. else
  11535. lt_prog_compiler_static_CXX=
  11536. fi
  11537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11538. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11539. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11540. $as_echo_n "(cached) " >&6
  11541. else
  11542. lt_cv_prog_compiler_c_o_CXX=no
  11543. $RM -r conftest 2>/dev/null
  11544. mkdir conftest
  11545. cd conftest
  11546. mkdir out
  11547. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11548. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11549. # Insert the option either (1) after the last *FLAGS variable, or
  11550. # (2) before a word containing "conftest.", or (3) at the end.
  11551. # Note that $ac_compile itself does not contain backslashes and begins
  11552. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11553. lt_compile=`echo "$ac_compile" | $SED \
  11554. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11555. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11556. -e 's:$: $lt_compiler_flag:'`
  11557. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11558. (eval "$lt_compile" 2>out/conftest.err)
  11559. ac_status=$?
  11560. cat out/conftest.err >&5
  11561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11562. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11563. then
  11564. # The compiler can only warn and ignore the option if not recognized
  11565. # So say no if there are warnings
  11566. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11567. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11568. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11569. lt_cv_prog_compiler_c_o_CXX=yes
  11570. fi
  11571. fi
  11572. chmod u+w . 2>&5
  11573. $RM conftest*
  11574. # SGI C++ compiler will create directory out/ii_files/ for
  11575. # template instantiation
  11576. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11577. $RM out/* && rmdir out
  11578. cd ..
  11579. $RM -r conftest
  11580. $RM conftest*
  11581. fi
  11582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11583. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11585. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11586. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11587. $as_echo_n "(cached) " >&6
  11588. else
  11589. lt_cv_prog_compiler_c_o_CXX=no
  11590. $RM -r conftest 2>/dev/null
  11591. mkdir conftest
  11592. cd conftest
  11593. mkdir out
  11594. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11595. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11596. # Insert the option either (1) after the last *FLAGS variable, or
  11597. # (2) before a word containing "conftest.", or (3) at the end.
  11598. # Note that $ac_compile itself does not contain backslashes and begins
  11599. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11600. lt_compile=`echo "$ac_compile" | $SED \
  11601. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11602. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11603. -e 's:$: $lt_compiler_flag:'`
  11604. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11605. (eval "$lt_compile" 2>out/conftest.err)
  11606. ac_status=$?
  11607. cat out/conftest.err >&5
  11608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11609. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11610. then
  11611. # The compiler can only warn and ignore the option if not recognized
  11612. # So say no if there are warnings
  11613. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11614. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11615. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11616. lt_cv_prog_compiler_c_o_CXX=yes
  11617. fi
  11618. fi
  11619. chmod u+w . 2>&5
  11620. $RM conftest*
  11621. # SGI C++ compiler will create directory out/ii_files/ for
  11622. # template instantiation
  11623. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11624. $RM out/* && rmdir out
  11625. cd ..
  11626. $RM -r conftest
  11627. $RM conftest*
  11628. fi
  11629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11630. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11631. hard_links="nottested"
  11632. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11633. # do not overwrite the value of need_locks provided by the user
  11634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11635. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11636. hard_links=yes
  11637. $RM conftest*
  11638. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11639. touch conftest.a
  11640. ln conftest.a conftest.b 2>&5 || hard_links=no
  11641. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11643. $as_echo "$hard_links" >&6; }
  11644. if test "$hard_links" = no; then
  11645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11646. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11647. need_locks=warn
  11648. fi
  11649. else
  11650. need_locks=no
  11651. fi
  11652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11653. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11654. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11655. case $host_os in
  11656. aix[4-9]*)
  11657. # If we're using GNU nm, then we don't want the "-C" option.
  11658. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11659. # Also, AIX nm treats weak defined symbols like other global defined
  11660. # symbols, whereas GNU nm marks them as "W".
  11661. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11662. 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'
  11663. else
  11664. 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'
  11665. fi
  11666. ;;
  11667. pw32*)
  11668. export_symbols_cmds_CXX="$ltdll_cmds"
  11669. ;;
  11670. cygwin* | mingw* | cegcc*)
  11671. 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'
  11672. ;;
  11673. *)
  11674. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11675. ;;
  11676. esac
  11677. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11679. $as_echo "$ld_shlibs_CXX" >&6; }
  11680. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11681. with_gnu_ld_CXX=$with_gnu_ld
  11682. #
  11683. # Do we need to explicitly link libc?
  11684. #
  11685. case "x$archive_cmds_need_lc_CXX" in
  11686. x|xyes)
  11687. # Assume -lc should be added
  11688. archive_cmds_need_lc_CXX=yes
  11689. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11690. case $archive_cmds_CXX in
  11691. *'~'*)
  11692. # FIXME: we may have to deal with multi-command sequences.
  11693. ;;
  11694. '$CC '*)
  11695. # Test whether the compiler implicitly links with -lc since on some
  11696. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11697. # to ld, don't add -lc before -lgcc.
  11698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11699. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11700. if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
  11701. $as_echo_n "(cached) " >&6
  11702. else
  11703. $RM conftest*
  11704. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11705. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11706. (eval $ac_compile) 2>&5
  11707. ac_status=$?
  11708. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11709. test $ac_status = 0; } 2>conftest.err; then
  11710. soname=conftest
  11711. lib=conftest
  11712. libobjs=conftest.$ac_objext
  11713. deplibs=
  11714. wl=$lt_prog_compiler_wl_CXX
  11715. pic_flag=$lt_prog_compiler_pic_CXX
  11716. compiler_flags=-v
  11717. linker_flags=-v
  11718. verstring=
  11719. output_objdir=.
  11720. libname=conftest
  11721. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11722. allow_undefined_flag_CXX=
  11723. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11724. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11725. ac_status=$?
  11726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11727. test $ac_status = 0; }
  11728. then
  11729. lt_cv_archive_cmds_need_lc_CXX=no
  11730. else
  11731. lt_cv_archive_cmds_need_lc_CXX=yes
  11732. fi
  11733. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11734. else
  11735. cat conftest.err 1>&5
  11736. fi
  11737. $RM conftest*
  11738. fi
  11739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  11740. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  11741. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  11742. ;;
  11743. esac
  11744. fi
  11745. ;;
  11746. esac
  11747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11748. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11749. library_names_spec=
  11750. libname_spec='lib$name'
  11751. soname_spec=
  11752. shrext_cmds=".so"
  11753. postinstall_cmds=
  11754. postuninstall_cmds=
  11755. finish_cmds=
  11756. finish_eval=
  11757. shlibpath_var=
  11758. shlibpath_overrides_runpath=unknown
  11759. version_type=none
  11760. dynamic_linker="$host_os ld.so"
  11761. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11762. need_lib_prefix=unknown
  11763. hardcode_into_libs=no
  11764. # when you set need_version to no, make sure it does not cause -set_version
  11765. # flags to be left without arguments
  11766. need_version=unknown
  11767. case $host_os in
  11768. aix3*)
  11769. version_type=linux
  11770. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11771. shlibpath_var=LIBPATH
  11772. # AIX 3 has no versioning support, so we append a major version to the name.
  11773. soname_spec='${libname}${release}${shared_ext}$major'
  11774. ;;
  11775. aix[4-9]*)
  11776. version_type=linux
  11777. need_lib_prefix=no
  11778. need_version=no
  11779. hardcode_into_libs=yes
  11780. if test "$host_cpu" = ia64; then
  11781. # AIX 5 supports IA64
  11782. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11783. shlibpath_var=LD_LIBRARY_PATH
  11784. else
  11785. # With GCC up to 2.95.x, collect2 would create an import file
  11786. # for dependence libraries. The import file would start with
  11787. # the line `#! .'. This would cause the generated library to
  11788. # depend on `.', always an invalid library. This was fixed in
  11789. # development snapshots of GCC prior to 3.0.
  11790. case $host_os in
  11791. aix4 | aix4.[01] | aix4.[01].*)
  11792. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11793. echo ' yes '
  11794. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11795. :
  11796. else
  11797. can_build_shared=no
  11798. fi
  11799. ;;
  11800. esac
  11801. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11802. # soname into executable. Probably we can add versioning support to
  11803. # collect2, so additional links can be useful in future.
  11804. if test "$aix_use_runtimelinking" = yes; then
  11805. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11806. # instead of lib<name>.a to let people know that these are not
  11807. # typical AIX shared libraries.
  11808. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11809. else
  11810. # We preserve .a as extension for shared libraries through AIX4.2
  11811. # and later when we are not doing run time linking.
  11812. library_names_spec='${libname}${release}.a $libname.a'
  11813. soname_spec='${libname}${release}${shared_ext}$major'
  11814. fi
  11815. shlibpath_var=LIBPATH
  11816. fi
  11817. ;;
  11818. amigaos*)
  11819. case $host_cpu in
  11820. powerpc)
  11821. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11822. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11823. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11824. ;;
  11825. m68k)
  11826. library_names_spec='$libname.ixlibrary $libname.a'
  11827. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11828. 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'
  11829. ;;
  11830. esac
  11831. ;;
  11832. beos*)
  11833. library_names_spec='${libname}${shared_ext}'
  11834. dynamic_linker="$host_os ld.so"
  11835. shlibpath_var=LIBRARY_PATH
  11836. ;;
  11837. bsdi[45]*)
  11838. version_type=linux
  11839. need_version=no
  11840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11841. soname_spec='${libname}${release}${shared_ext}$major'
  11842. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11843. shlibpath_var=LD_LIBRARY_PATH
  11844. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11845. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11846. # the default ld.so.conf also contains /usr/contrib/lib and
  11847. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11848. # libtool to hard-code these into programs
  11849. ;;
  11850. cygwin* | mingw* | pw32* | cegcc*)
  11851. version_type=windows
  11852. shrext_cmds=".dll"
  11853. need_version=no
  11854. need_lib_prefix=no
  11855. case $GCC,$host_os in
  11856. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11857. library_names_spec='$libname.dll.a'
  11858. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11859. postinstall_cmds='base_file=`basename \${file}`~
  11860. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11861. dldir=$destdir/`dirname \$dlpath`~
  11862. test -d \$dldir || mkdir -p \$dldir~
  11863. $install_prog $dir/$dlname \$dldir/$dlname~
  11864. chmod a+x \$dldir/$dlname~
  11865. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11866. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11867. fi'
  11868. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11869. dlpath=$dir/\$dldll~
  11870. $RM \$dlpath'
  11871. shlibpath_overrides_runpath=yes
  11872. case $host_os in
  11873. cygwin*)
  11874. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11875. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11876. ;;
  11877. mingw* | cegcc*)
  11878. # MinGW DLLs use traditional 'lib' prefix
  11879. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11880. ;;
  11881. pw32*)
  11882. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11883. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11884. ;;
  11885. esac
  11886. ;;
  11887. *)
  11888. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11889. ;;
  11890. esac
  11891. dynamic_linker='Win32 ld.exe'
  11892. # FIXME: first we should search . and the directory the executable is in
  11893. shlibpath_var=PATH
  11894. ;;
  11895. darwin* | rhapsody*)
  11896. dynamic_linker="$host_os dyld"
  11897. version_type=darwin
  11898. need_lib_prefix=no
  11899. need_version=no
  11900. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11901. soname_spec='${libname}${release}${major}$shared_ext'
  11902. shlibpath_overrides_runpath=yes
  11903. shlibpath_var=DYLD_LIBRARY_PATH
  11904. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11905. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11906. ;;
  11907. dgux*)
  11908. version_type=linux
  11909. need_lib_prefix=no
  11910. need_version=no
  11911. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11912. soname_spec='${libname}${release}${shared_ext}$major'
  11913. shlibpath_var=LD_LIBRARY_PATH
  11914. ;;
  11915. freebsd* | dragonfly*)
  11916. # DragonFly does not have aout. When/if they implement a new
  11917. # versioning mechanism, adjust this.
  11918. if test -x /usr/bin/objformat; then
  11919. objformat=`/usr/bin/objformat`
  11920. else
  11921. case $host_os in
  11922. freebsd[23].*) objformat=aout ;;
  11923. *) objformat=elf ;;
  11924. esac
  11925. fi
  11926. version_type=freebsd-$objformat
  11927. case $version_type in
  11928. freebsd-elf*)
  11929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11930. need_version=no
  11931. need_lib_prefix=no
  11932. ;;
  11933. freebsd-*)
  11934. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11935. need_version=yes
  11936. ;;
  11937. esac
  11938. shlibpath_var=LD_LIBRARY_PATH
  11939. case $host_os in
  11940. freebsd2.*)
  11941. shlibpath_overrides_runpath=yes
  11942. ;;
  11943. freebsd3.[01]* | freebsdelf3.[01]*)
  11944. shlibpath_overrides_runpath=yes
  11945. hardcode_into_libs=yes
  11946. ;;
  11947. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11948. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11949. shlibpath_overrides_runpath=no
  11950. hardcode_into_libs=yes
  11951. ;;
  11952. *) # from 4.6 on, and DragonFly
  11953. shlibpath_overrides_runpath=yes
  11954. hardcode_into_libs=yes
  11955. ;;
  11956. esac
  11957. ;;
  11958. gnu*)
  11959. version_type=linux
  11960. need_lib_prefix=no
  11961. need_version=no
  11962. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11963. soname_spec='${libname}${release}${shared_ext}$major'
  11964. shlibpath_var=LD_LIBRARY_PATH
  11965. hardcode_into_libs=yes
  11966. ;;
  11967. haiku*)
  11968. version_type=linux
  11969. need_lib_prefix=no
  11970. need_version=no
  11971. dynamic_linker="$host_os runtime_loader"
  11972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11973. soname_spec='${libname}${release}${shared_ext}$major'
  11974. shlibpath_var=LIBRARY_PATH
  11975. shlibpath_overrides_runpath=yes
  11976. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  11977. hardcode_into_libs=yes
  11978. ;;
  11979. hpux9* | hpux10* | hpux11*)
  11980. # Give a soname corresponding to the major version so that dld.sl refuses to
  11981. # link against other versions.
  11982. version_type=sunos
  11983. need_lib_prefix=no
  11984. need_version=no
  11985. case $host_cpu in
  11986. ia64*)
  11987. shrext_cmds='.so'
  11988. hardcode_into_libs=yes
  11989. dynamic_linker="$host_os dld.so"
  11990. shlibpath_var=LD_LIBRARY_PATH
  11991. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11992. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11993. soname_spec='${libname}${release}${shared_ext}$major'
  11994. if test "X$HPUX_IA64_MODE" = X32; then
  11995. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11996. else
  11997. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11998. fi
  11999. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12000. ;;
  12001. hppa*64*)
  12002. shrext_cmds='.sl'
  12003. hardcode_into_libs=yes
  12004. dynamic_linker="$host_os dld.sl"
  12005. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12006. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12007. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12008. soname_spec='${libname}${release}${shared_ext}$major'
  12009. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12010. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12011. ;;
  12012. *)
  12013. shrext_cmds='.sl'
  12014. dynamic_linker="$host_os dld.sl"
  12015. shlibpath_var=SHLIB_PATH
  12016. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12017. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12018. soname_spec='${libname}${release}${shared_ext}$major'
  12019. ;;
  12020. esac
  12021. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12022. postinstall_cmds='chmod 555 $lib'
  12023. # or fails outright, so override atomically:
  12024. install_override_mode=555
  12025. ;;
  12026. interix[3-9]*)
  12027. version_type=linux
  12028. need_lib_prefix=no
  12029. need_version=no
  12030. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12031. soname_spec='${libname}${release}${shared_ext}$major'
  12032. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12033. shlibpath_var=LD_LIBRARY_PATH
  12034. shlibpath_overrides_runpath=no
  12035. hardcode_into_libs=yes
  12036. ;;
  12037. irix5* | irix6* | nonstopux*)
  12038. case $host_os in
  12039. nonstopux*) version_type=nonstopux ;;
  12040. *)
  12041. if test "$lt_cv_prog_gnu_ld" = yes; then
  12042. version_type=linux
  12043. else
  12044. version_type=irix
  12045. fi ;;
  12046. esac
  12047. need_lib_prefix=no
  12048. need_version=no
  12049. soname_spec='${libname}${release}${shared_ext}$major'
  12050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12051. case $host_os in
  12052. irix5* | nonstopux*)
  12053. libsuff= shlibsuff=
  12054. ;;
  12055. *)
  12056. case $LD in # libtool.m4 will add one of these switches to LD
  12057. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12058. libsuff= shlibsuff= libmagic=32-bit;;
  12059. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12060. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12061. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12062. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12063. *) libsuff= shlibsuff= libmagic=never-match;;
  12064. esac
  12065. ;;
  12066. esac
  12067. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12068. shlibpath_overrides_runpath=no
  12069. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12070. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12071. hardcode_into_libs=yes
  12072. ;;
  12073. # No shared lib support for Linux oldld, aout, or coff.
  12074. linux*oldld* | linux*aout* | linux*coff*)
  12075. dynamic_linker=no
  12076. ;;
  12077. # This must be Linux ELF.
  12078. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12079. version_type=linux
  12080. need_lib_prefix=no
  12081. need_version=no
  12082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12083. soname_spec='${libname}${release}${shared_ext}$major'
  12084. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12085. shlibpath_var=LD_LIBRARY_PATH
  12086. shlibpath_overrides_runpath=no
  12087. # Some binutils ld are patched to set DT_RUNPATH
  12088. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  12089. $as_echo_n "(cached) " >&6
  12090. else
  12091. lt_cv_shlibpath_overrides_runpath=no
  12092. save_LDFLAGS=$LDFLAGS
  12093. save_libdir=$libdir
  12094. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12095. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12097. /* end confdefs.h. */
  12098. int
  12099. main ()
  12100. {
  12101. ;
  12102. return 0;
  12103. }
  12104. _ACEOF
  12105. if ac_fn_cxx_try_link "$LINENO"; then :
  12106. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12107. lt_cv_shlibpath_overrides_runpath=yes
  12108. fi
  12109. fi
  12110. rm -f core conftest.err conftest.$ac_objext \
  12111. conftest$ac_exeext conftest.$ac_ext
  12112. LDFLAGS=$save_LDFLAGS
  12113. libdir=$save_libdir
  12114. fi
  12115. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12116. # This implies no fast_install, which is unacceptable.
  12117. # Some rework will be needed to allow for fast_install
  12118. # before this can be enabled.
  12119. hardcode_into_libs=yes
  12120. # Append ld.so.conf contents to the search path
  12121. if test -f /etc/ld.so.conf; then
  12122. 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' ' '`
  12123. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12124. fi
  12125. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12126. # powerpc, because MkLinux only supported shared libraries with the
  12127. # GNU dynamic linker. Since this was broken with cross compilers,
  12128. # most powerpc-linux boxes support dynamic linking these days and
  12129. # people can always --disable-shared, the test was removed, and we
  12130. # assume the GNU/Linux dynamic linker is in use.
  12131. dynamic_linker='GNU/Linux ld.so'
  12132. ;;
  12133. netbsd*)
  12134. version_type=sunos
  12135. need_lib_prefix=no
  12136. need_version=no
  12137. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12138. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12139. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12140. dynamic_linker='NetBSD (a.out) ld.so'
  12141. else
  12142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12143. soname_spec='${libname}${release}${shared_ext}$major'
  12144. dynamic_linker='NetBSD ld.elf_so'
  12145. fi
  12146. shlibpath_var=LD_LIBRARY_PATH
  12147. shlibpath_overrides_runpath=yes
  12148. hardcode_into_libs=yes
  12149. ;;
  12150. newsos6)
  12151. version_type=linux
  12152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12153. shlibpath_var=LD_LIBRARY_PATH
  12154. shlibpath_overrides_runpath=yes
  12155. ;;
  12156. *nto* | *qnx*)
  12157. version_type=qnx
  12158. need_lib_prefix=no
  12159. need_version=no
  12160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12161. soname_spec='${libname}${release}${shared_ext}$major'
  12162. shlibpath_var=LD_LIBRARY_PATH
  12163. shlibpath_overrides_runpath=no
  12164. hardcode_into_libs=yes
  12165. dynamic_linker='ldqnx.so'
  12166. ;;
  12167. openbsd*)
  12168. version_type=sunos
  12169. sys_lib_dlsearch_path_spec="/usr/lib"
  12170. need_lib_prefix=no
  12171. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12172. case $host_os in
  12173. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12174. *) need_version=no ;;
  12175. esac
  12176. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12177. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12178. shlibpath_var=LD_LIBRARY_PATH
  12179. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12180. case $host_os in
  12181. openbsd2.[89] | openbsd2.[89].*)
  12182. shlibpath_overrides_runpath=no
  12183. ;;
  12184. *)
  12185. shlibpath_overrides_runpath=yes
  12186. ;;
  12187. esac
  12188. else
  12189. shlibpath_overrides_runpath=yes
  12190. fi
  12191. ;;
  12192. os2*)
  12193. libname_spec='$name'
  12194. shrext_cmds=".dll"
  12195. need_lib_prefix=no
  12196. library_names_spec='$libname${shared_ext} $libname.a'
  12197. dynamic_linker='OS/2 ld.exe'
  12198. shlibpath_var=LIBPATH
  12199. ;;
  12200. osf3* | osf4* | osf5*)
  12201. version_type=osf
  12202. need_lib_prefix=no
  12203. need_version=no
  12204. soname_spec='${libname}${release}${shared_ext}$major'
  12205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12206. shlibpath_var=LD_LIBRARY_PATH
  12207. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12208. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12209. ;;
  12210. rdos*)
  12211. dynamic_linker=no
  12212. ;;
  12213. solaris*)
  12214. version_type=linux
  12215. need_lib_prefix=no
  12216. need_version=no
  12217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12218. soname_spec='${libname}${release}${shared_ext}$major'
  12219. shlibpath_var=LD_LIBRARY_PATH
  12220. shlibpath_overrides_runpath=yes
  12221. hardcode_into_libs=yes
  12222. # ldd complains unless libraries are executable
  12223. postinstall_cmds='chmod +x $lib'
  12224. ;;
  12225. sunos4*)
  12226. version_type=sunos
  12227. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12228. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12229. shlibpath_var=LD_LIBRARY_PATH
  12230. shlibpath_overrides_runpath=yes
  12231. if test "$with_gnu_ld" = yes; then
  12232. need_lib_prefix=no
  12233. fi
  12234. need_version=yes
  12235. ;;
  12236. sysv4 | sysv4.3*)
  12237. version_type=linux
  12238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12239. soname_spec='${libname}${release}${shared_ext}$major'
  12240. shlibpath_var=LD_LIBRARY_PATH
  12241. case $host_vendor in
  12242. sni)
  12243. shlibpath_overrides_runpath=no
  12244. need_lib_prefix=no
  12245. runpath_var=LD_RUN_PATH
  12246. ;;
  12247. siemens)
  12248. need_lib_prefix=no
  12249. ;;
  12250. motorola)
  12251. need_lib_prefix=no
  12252. need_version=no
  12253. shlibpath_overrides_runpath=no
  12254. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12255. ;;
  12256. esac
  12257. ;;
  12258. sysv4*MP*)
  12259. if test -d /usr/nec ;then
  12260. version_type=linux
  12261. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12262. soname_spec='$libname${shared_ext}.$major'
  12263. shlibpath_var=LD_LIBRARY_PATH
  12264. fi
  12265. ;;
  12266. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12267. version_type=freebsd-elf
  12268. need_lib_prefix=no
  12269. need_version=no
  12270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12271. soname_spec='${libname}${release}${shared_ext}$major'
  12272. shlibpath_var=LD_LIBRARY_PATH
  12273. shlibpath_overrides_runpath=yes
  12274. hardcode_into_libs=yes
  12275. if test "$with_gnu_ld" = yes; then
  12276. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12277. else
  12278. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12279. case $host_os in
  12280. sco3.2v5*)
  12281. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12282. ;;
  12283. esac
  12284. fi
  12285. sys_lib_dlsearch_path_spec='/usr/lib'
  12286. ;;
  12287. tpf*)
  12288. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12289. version_type=linux
  12290. need_lib_prefix=no
  12291. need_version=no
  12292. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12293. shlibpath_var=LD_LIBRARY_PATH
  12294. shlibpath_overrides_runpath=no
  12295. hardcode_into_libs=yes
  12296. ;;
  12297. uts4*)
  12298. version_type=linux
  12299. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12300. soname_spec='${libname}${release}${shared_ext}$major'
  12301. shlibpath_var=LD_LIBRARY_PATH
  12302. ;;
  12303. *)
  12304. dynamic_linker=no
  12305. ;;
  12306. esac
  12307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12308. $as_echo "$dynamic_linker" >&6; }
  12309. test "$dynamic_linker" = no && can_build_shared=no
  12310. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12311. if test "$GCC" = yes; then
  12312. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12313. fi
  12314. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12315. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12316. fi
  12317. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12318. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12319. fi
  12320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12321. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12322. hardcode_action_CXX=
  12323. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12324. test -n "$runpath_var_CXX" ||
  12325. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12326. # We can hardcode non-existent directories.
  12327. if test "$hardcode_direct_CXX" != no &&
  12328. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12329. # have to relink, otherwise we might link with an installed library
  12330. # when we should be linking with a yet-to-be-installed one
  12331. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12332. test "$hardcode_minus_L_CXX" != no; then
  12333. # Linking always hardcodes the temporary library directory.
  12334. hardcode_action_CXX=relink
  12335. else
  12336. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12337. hardcode_action_CXX=immediate
  12338. fi
  12339. else
  12340. # We cannot hardcode anything, or else we can only hardcode existing
  12341. # directories.
  12342. hardcode_action_CXX=unsupported
  12343. fi
  12344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12345. $as_echo "$hardcode_action_CXX" >&6; }
  12346. if test "$hardcode_action_CXX" = relink ||
  12347. test "$inherit_rpath_CXX" = yes; then
  12348. # Fast installation is not supported
  12349. enable_fast_install=no
  12350. elif test "$shlibpath_overrides_runpath" = yes ||
  12351. test "$enable_shared" = no; then
  12352. # Fast installation is not necessary
  12353. enable_fast_install=needless
  12354. fi
  12355. fi # test -n "$compiler"
  12356. CC=$lt_save_CC
  12357. LDCXX=$LD
  12358. LD=$lt_save_LD
  12359. GCC=$lt_save_GCC
  12360. with_gnu_ld=$lt_save_with_gnu_ld
  12361. lt_cv_path_LDCXX=$lt_cv_path_LD
  12362. lt_cv_path_LD=$lt_save_path_LD
  12363. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12364. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12365. fi # test "$_lt_caught_CXX_error" != yes
  12366. ac_ext=c
  12367. ac_cpp='$CPP $CPPFLAGS'
  12368. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12369. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12370. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12371. ac_config_commands="$ac_config_commands libtool"
  12372. # Only expand once:
  12373. # Check to see if -pthread or -lpthread is needed. Prefer the former.
  12374. # Note that the CILK_SELF_SPEC in gcc.c may force -pthread.
  12375. # In case the pthread.h system header is not found, this test will fail.
  12376. XCFLAGS=""
  12377. XLDFLAGS=""
  12378. CFLAGS="$CFLAGS -pthread"
  12379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12380. /* end confdefs.h. */
  12381. #include <pthread.h>
  12382. void *g(void *d) { return NULL; }
  12383. int
  12384. main ()
  12385. {
  12386. pthread_t t; pthread_create(&t,NULL,g,NULL);
  12387. ;
  12388. return 0;
  12389. }
  12390. _ACEOF
  12391. if ac_fn_c_try_link "$LINENO"; then :
  12392. XCFLAGS=" -Wc,-pthread"
  12393. else
  12394. CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
  12395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12396. /* end confdefs.h. */
  12397. #include <pthread.h>
  12398. void *g(void *d) { return NULL; }
  12399. int
  12400. main ()
  12401. {
  12402. pthread_t t; pthread_create(&t,NULL,g,NULL);
  12403. ;
  12404. return 0;
  12405. }
  12406. _ACEOF
  12407. if ac_fn_c_try_link "$LINENO"; then :
  12408. else
  12409. as_fn_error "Pthreads are required to build libcilkrts" "$LINENO" 5
  12410. fi
  12411. rm -f core conftest.err conftest.$ac_objext \
  12412. conftest$ac_exeext conftest.$ac_ext
  12413. fi
  12414. rm -f core conftest.err conftest.$ac_objext \
  12415. conftest$ac_exeext conftest.$ac_ext
  12416. # Check for pthread_{,attr_}[sg]etaffinity_np.
  12417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12418. /* end confdefs.h. */
  12419. #define _GNU_SOURCE
  12420. #include <pthread.h>
  12421. int
  12422. main ()
  12423. {
  12424. cpu_set_t cpuset;
  12425. pthread_attr_t attr;
  12426. pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
  12427. if (CPU_ISSET (0, &cpuset))
  12428. CPU_SET (1, &cpuset);
  12429. else
  12430. CPU_ZERO (&cpuset);
  12431. pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
  12432. pthread_attr_init (&attr);
  12433. pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
  12434. pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
  12435. ;
  12436. return 0;
  12437. }
  12438. _ACEOF
  12439. if ac_fn_c_try_link "$LINENO"; then :
  12440. $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
  12441. fi
  12442. rm -f core conftest.err conftest.$ac_objext \
  12443. conftest$ac_exeext conftest.$ac_ext
  12444. # Every c++ lib is linking by default with -nostdlib, which leads to the
  12445. # fact, that proper pthread library will not be given at link time. We have
  12446. # to hard-code that.
  12447. case "${target}" in
  12448. *android*)
  12449. XLDFLAGS="$XLDFLAGS -lc"
  12450. ;;
  12451. *)
  12452. XLDFLAGS="$XLDFLAGS -lpthread"
  12453. ;;
  12454. esac
  12455. CFLAGS="$save_CFLAGS"
  12456. if test $enable_shared = yes; then
  12457. link_cilkrts="-lcilkrts %{static: $LIBS}"
  12458. else
  12459. link_cilkrts="-lcilkrts $LIBS"
  12460. fi
  12461. # Must be last
  12462. cat >confcache <<\_ACEOF
  12463. # This file is a shell script that caches the results of configure
  12464. # tests run on this system so they can be shared between configure
  12465. # scripts and configure runs, see configure's option --config-cache.
  12466. # It is not useful on other systems. If it contains results you don't
  12467. # want to keep, you may remove or edit it.
  12468. #
  12469. # config.status only pays attention to the cache file if you give it
  12470. # the --recheck option to rerun configure.
  12471. #
  12472. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12473. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12474. # following values.
  12475. _ACEOF
  12476. # The following way of writing the cache mishandles newlines in values,
  12477. # but we know of no workaround that is simple, portable, and efficient.
  12478. # So, we kill variables containing newlines.
  12479. # Ultrix sh set writes to stderr and can't be redirected directly,
  12480. # and sets the high bit in the cache file unless we assign to the vars.
  12481. (
  12482. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12483. eval ac_val=\$$ac_var
  12484. case $ac_val in #(
  12485. *${as_nl}*)
  12486. case $ac_var in #(
  12487. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12488. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12489. esac
  12490. case $ac_var in #(
  12491. _ | IFS | as_nl) ;; #(
  12492. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12493. *) { eval $ac_var=; unset $ac_var;} ;;
  12494. esac ;;
  12495. esac
  12496. done
  12497. (set) 2>&1 |
  12498. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12499. *${as_nl}ac_space=\ *)
  12500. # `set' does not quote correctly, so add quotes: double-quote
  12501. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12502. sed -n \
  12503. "s/'/'\\\\''/g;
  12504. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12505. ;; #(
  12506. *)
  12507. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12508. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12509. ;;
  12510. esac |
  12511. sort
  12512. ) |
  12513. sed '
  12514. /^ac_cv_env_/b end
  12515. t clear
  12516. :clear
  12517. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12518. t end
  12519. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12520. :end' >>confcache
  12521. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12522. if test -w "$cache_file"; then
  12523. test "x$cache_file" != "x/dev/null" &&
  12524. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12525. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12526. cat confcache >$cache_file
  12527. else
  12528. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12529. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12530. fi
  12531. fi
  12532. rm -f confcache
  12533. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12534. # Let make expand exec_prefix.
  12535. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12536. # Transform confdefs.h into DEFS.
  12537. # Protect against shell expansion while executing Makefile rules.
  12538. # Protect against Makefile macro expansion.
  12539. #
  12540. # If the first sed substitution is executed (which looks for macros that
  12541. # take arguments), then branch to the quote section. Otherwise,
  12542. # look for a macro that doesn't take arguments.
  12543. ac_script='
  12544. :mline
  12545. /\\$/{
  12546. N
  12547. s,\\\n,,
  12548. b mline
  12549. }
  12550. t clear
  12551. :clear
  12552. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  12553. t quote
  12554. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  12555. t quote
  12556. b any
  12557. :quote
  12558. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  12559. s/\[/\\&/g
  12560. s/\]/\\&/g
  12561. s/\$/$$/g
  12562. H
  12563. :any
  12564. ${
  12565. g
  12566. s/^\n//
  12567. s/\n/ /g
  12568. p
  12569. }
  12570. '
  12571. DEFS=`sed -n "$ac_script" confdefs.h`
  12572. ac_libobjs=
  12573. ac_ltlibobjs=
  12574. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12575. # 1. Remove the extension, and $U if already installed.
  12576. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12577. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12578. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12579. # will be set to the directory where LIBOBJS objects are built.
  12580. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12581. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12582. done
  12583. LIBOBJS=$ac_libobjs
  12584. LTLIBOBJS=$ac_ltlibobjs
  12585. if test -n "$EXEEXT"; then
  12586. am__EXEEXT_TRUE=
  12587. am__EXEEXT_FALSE='#'
  12588. else
  12589. am__EXEEXT_TRUE='#'
  12590. am__EXEEXT_FALSE=
  12591. fi
  12592. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  12593. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  12594. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12595. fi
  12596. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12597. as_fn_error "conditional \"AMDEP\" was never defined.
  12598. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12599. fi
  12600. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12601. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  12602. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12603. fi
  12604. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12605. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  12606. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12607. fi
  12608. if test -z "${LINUX_LINKER_SCRIPT_TRUE}" && test -z "${LINUX_LINKER_SCRIPT_FALSE}"; then
  12609. as_fn_error "conditional \"LINUX_LINKER_SCRIPT\" was never defined.
  12610. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12611. fi
  12612. if test -z "${MAC_LINKER_SCRIPT_TRUE}" && test -z "${MAC_LINKER_SCRIPT_FALSE}"; then
  12613. as_fn_error "conditional \"MAC_LINKER_SCRIPT\" was never defined.
  12614. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12615. fi
  12616. : ${CONFIG_STATUS=./config.status}
  12617. ac_write_fail=0
  12618. ac_clean_files_save=$ac_clean_files
  12619. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12620. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12621. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12622. as_write_fail=0
  12623. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12624. #! $SHELL
  12625. # Generated by $as_me.
  12626. # Run this file to recreate the current configuration.
  12627. # Compiler output produced by configure, useful for debugging
  12628. # configure, is in config.log if it exists.
  12629. debug=false
  12630. ac_cs_recheck=false
  12631. ac_cs_silent=false
  12632. SHELL=\${CONFIG_SHELL-$SHELL}
  12633. export SHELL
  12634. _ASEOF
  12635. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12636. ## -------------------- ##
  12637. ## M4sh Initialization. ##
  12638. ## -------------------- ##
  12639. # Be more Bourne compatible
  12640. DUALCASE=1; export DUALCASE # for MKS sh
  12641. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12642. emulate sh
  12643. NULLCMD=:
  12644. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12645. # is contrary to our usage. Disable this feature.
  12646. alias -g '${1+"$@"}'='"$@"'
  12647. setopt NO_GLOB_SUBST
  12648. else
  12649. case `(set -o) 2>/dev/null` in #(
  12650. *posix*) :
  12651. set -o posix ;; #(
  12652. *) :
  12653. ;;
  12654. esac
  12655. fi
  12656. as_nl='
  12657. '
  12658. export as_nl
  12659. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12660. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12661. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12662. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12663. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12664. # but without wasting forks for bash or zsh.
  12665. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12666. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12667. as_echo='print -r --'
  12668. as_echo_n='print -rn --'
  12669. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12670. as_echo='printf %s\n'
  12671. as_echo_n='printf %s'
  12672. else
  12673. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12674. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12675. as_echo_n='/usr/ucb/echo -n'
  12676. else
  12677. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12678. as_echo_n_body='eval
  12679. arg=$1;
  12680. case $arg in #(
  12681. *"$as_nl"*)
  12682. expr "X$arg" : "X\\(.*\\)$as_nl";
  12683. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12684. esac;
  12685. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12686. '
  12687. export as_echo_n_body
  12688. as_echo_n='sh -c $as_echo_n_body as_echo'
  12689. fi
  12690. export as_echo_body
  12691. as_echo='sh -c $as_echo_body as_echo'
  12692. fi
  12693. # The user is always right.
  12694. if test "${PATH_SEPARATOR+set}" != set; then
  12695. PATH_SEPARATOR=:
  12696. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12697. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12698. PATH_SEPARATOR=';'
  12699. }
  12700. fi
  12701. # IFS
  12702. # We need space, tab and new line, in precisely that order. Quoting is
  12703. # there to prevent editors from complaining about space-tab.
  12704. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12705. # splitting by setting IFS to empty value.)
  12706. IFS=" "" $as_nl"
  12707. # Find who we are. Look in the path if we contain no directory separator.
  12708. case $0 in #((
  12709. *[\\/]* ) as_myself=$0 ;;
  12710. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12711. for as_dir in $PATH
  12712. do
  12713. IFS=$as_save_IFS
  12714. test -z "$as_dir" && as_dir=.
  12715. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12716. done
  12717. IFS=$as_save_IFS
  12718. ;;
  12719. esac
  12720. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12721. # in which case we are not to be found in the path.
  12722. if test "x$as_myself" = x; then
  12723. as_myself=$0
  12724. fi
  12725. if test ! -f "$as_myself"; then
  12726. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12727. exit 1
  12728. fi
  12729. # Unset variables that we do not need and which cause bugs (e.g. in
  12730. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12731. # suppresses any "Segmentation fault" message there. '((' could
  12732. # trigger a bug in pdksh 5.2.14.
  12733. for as_var in BASH_ENV ENV MAIL MAILPATH
  12734. do eval test x\${$as_var+set} = xset \
  12735. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12736. done
  12737. PS1='$ '
  12738. PS2='> '
  12739. PS4='+ '
  12740. # NLS nuisances.
  12741. LC_ALL=C
  12742. export LC_ALL
  12743. LANGUAGE=C
  12744. export LANGUAGE
  12745. # CDPATH.
  12746. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12747. # as_fn_error ERROR [LINENO LOG_FD]
  12748. # ---------------------------------
  12749. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12750. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12751. # script with status $?, using 1 if that was 0.
  12752. as_fn_error ()
  12753. {
  12754. as_status=$?; test $as_status -eq 0 && as_status=1
  12755. if test "$3"; then
  12756. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12757. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  12758. fi
  12759. $as_echo "$as_me: error: $1" >&2
  12760. as_fn_exit $as_status
  12761. } # as_fn_error
  12762. # as_fn_set_status STATUS
  12763. # -----------------------
  12764. # Set $? to STATUS, without forking.
  12765. as_fn_set_status ()
  12766. {
  12767. return $1
  12768. } # as_fn_set_status
  12769. # as_fn_exit STATUS
  12770. # -----------------
  12771. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12772. as_fn_exit ()
  12773. {
  12774. set +e
  12775. as_fn_set_status $1
  12776. exit $1
  12777. } # as_fn_exit
  12778. # as_fn_unset VAR
  12779. # ---------------
  12780. # Portably unset VAR.
  12781. as_fn_unset ()
  12782. {
  12783. { eval $1=; unset $1;}
  12784. }
  12785. as_unset=as_fn_unset
  12786. # as_fn_append VAR VALUE
  12787. # ----------------------
  12788. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12789. # advantage of any shell optimizations that allow amortized linear growth over
  12790. # repeated appends, instead of the typical quadratic growth present in naive
  12791. # implementations.
  12792. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12793. eval 'as_fn_append ()
  12794. {
  12795. eval $1+=\$2
  12796. }'
  12797. else
  12798. as_fn_append ()
  12799. {
  12800. eval $1=\$$1\$2
  12801. }
  12802. fi # as_fn_append
  12803. # as_fn_arith ARG...
  12804. # ------------------
  12805. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12806. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12807. # must be portable across $(()) and expr.
  12808. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12809. eval 'as_fn_arith ()
  12810. {
  12811. as_val=$(( $* ))
  12812. }'
  12813. else
  12814. as_fn_arith ()
  12815. {
  12816. as_val=`expr "$@" || test $? -eq 1`
  12817. }
  12818. fi # as_fn_arith
  12819. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12820. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12821. as_expr=expr
  12822. else
  12823. as_expr=false
  12824. fi
  12825. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12826. as_basename=basename
  12827. else
  12828. as_basename=false
  12829. fi
  12830. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12831. as_dirname=dirname
  12832. else
  12833. as_dirname=false
  12834. fi
  12835. as_me=`$as_basename -- "$0" ||
  12836. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12837. X"$0" : 'X\(//\)$' \| \
  12838. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12839. $as_echo X/"$0" |
  12840. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12841. s//\1/
  12842. q
  12843. }
  12844. /^X\/\(\/\/\)$/{
  12845. s//\1/
  12846. q
  12847. }
  12848. /^X\/\(\/\).*/{
  12849. s//\1/
  12850. q
  12851. }
  12852. s/.*/./; q'`
  12853. # Avoid depending upon Character Ranges.
  12854. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12855. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12856. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12857. as_cr_digits='0123456789'
  12858. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12859. ECHO_C= ECHO_N= ECHO_T=
  12860. case `echo -n x` in #(((((
  12861. -n*)
  12862. case `echo 'xy\c'` in
  12863. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12864. xy) ECHO_C='\c';;
  12865. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12866. ECHO_T=' ';;
  12867. esac;;
  12868. *)
  12869. ECHO_N='-n';;
  12870. esac
  12871. rm -f conf$$ conf$$.exe conf$$.file
  12872. if test -d conf$$.dir; then
  12873. rm -f conf$$.dir/conf$$.file
  12874. else
  12875. rm -f conf$$.dir
  12876. mkdir conf$$.dir 2>/dev/null
  12877. fi
  12878. if (echo >conf$$.file) 2>/dev/null; then
  12879. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12880. as_ln_s='ln -s'
  12881. # ... but there are two gotchas:
  12882. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12883. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12884. # In both cases, we have to default to `cp -p'.
  12885. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12886. as_ln_s='cp -p'
  12887. elif ln conf$$.file conf$$ 2>/dev/null; then
  12888. as_ln_s=ln
  12889. else
  12890. as_ln_s='cp -p'
  12891. fi
  12892. else
  12893. as_ln_s='cp -p'
  12894. fi
  12895. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12896. rmdir conf$$.dir 2>/dev/null
  12897. # as_fn_mkdir_p
  12898. # -------------
  12899. # Create "$as_dir" as a directory, including parents if necessary.
  12900. as_fn_mkdir_p ()
  12901. {
  12902. case $as_dir in #(
  12903. -*) as_dir=./$as_dir;;
  12904. esac
  12905. test -d "$as_dir" || eval $as_mkdir_p || {
  12906. as_dirs=
  12907. while :; do
  12908. case $as_dir in #(
  12909. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12910. *) as_qdir=$as_dir;;
  12911. esac
  12912. as_dirs="'$as_qdir' $as_dirs"
  12913. as_dir=`$as_dirname -- "$as_dir" ||
  12914. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12915. X"$as_dir" : 'X\(//\)[^/]' \| \
  12916. X"$as_dir" : 'X\(//\)$' \| \
  12917. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12918. $as_echo X"$as_dir" |
  12919. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12920. s//\1/
  12921. q
  12922. }
  12923. /^X\(\/\/\)[^/].*/{
  12924. s//\1/
  12925. q
  12926. }
  12927. /^X\(\/\/\)$/{
  12928. s//\1/
  12929. q
  12930. }
  12931. /^X\(\/\).*/{
  12932. s//\1/
  12933. q
  12934. }
  12935. s/.*/./; q'`
  12936. test -d "$as_dir" && break
  12937. done
  12938. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12939. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  12940. } # as_fn_mkdir_p
  12941. if mkdir -p . 2>/dev/null; then
  12942. as_mkdir_p='mkdir -p "$as_dir"'
  12943. else
  12944. test -d ./-p && rmdir ./-p
  12945. as_mkdir_p=false
  12946. fi
  12947. if test -x / >/dev/null 2>&1; then
  12948. as_test_x='test -x'
  12949. else
  12950. if ls -dL / >/dev/null 2>&1; then
  12951. as_ls_L_option=L
  12952. else
  12953. as_ls_L_option=
  12954. fi
  12955. as_test_x='
  12956. eval sh -c '\''
  12957. if test -d "$1"; then
  12958. test -d "$1/.";
  12959. else
  12960. case $1 in #(
  12961. -*)set "./$1";;
  12962. esac;
  12963. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  12964. ???[sx]*):;;*)false;;esac;fi
  12965. '\'' sh
  12966. '
  12967. fi
  12968. as_executable_p=$as_test_x
  12969. # Sed expression to map a string onto a valid CPP name.
  12970. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12971. # Sed expression to map a string onto a valid variable name.
  12972. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12973. exec 6>&1
  12974. ## ----------------------------------- ##
  12975. ## Main body of $CONFIG_STATUS script. ##
  12976. ## ----------------------------------- ##
  12977. _ASEOF
  12978. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12979. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12980. # Save the log message, to keep $0 and so on meaningful, and to
  12981. # report actual input values of CONFIG_FILES etc. instead of their
  12982. # values after options handling.
  12983. ac_log="
  12984. This file was extended by Cilk Runtime Library $as_me 2.0, which was
  12985. generated by GNU Autoconf 2.64. Invocation command line was
  12986. CONFIG_FILES = $CONFIG_FILES
  12987. CONFIG_HEADERS = $CONFIG_HEADERS
  12988. CONFIG_LINKS = $CONFIG_LINKS
  12989. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12990. $ $0 $@
  12991. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12992. "
  12993. _ACEOF
  12994. case $ac_config_files in *"
  12995. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12996. esac
  12997. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12998. # Files that config.status was made for.
  12999. config_files="$ac_config_files"
  13000. config_commands="$ac_config_commands"
  13001. _ACEOF
  13002. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13003. ac_cs_usage="\
  13004. \`$as_me' instantiates files and other configuration actions
  13005. from templates according to the current configuration. Unless the files
  13006. and actions are specified as TAGs, all are instantiated by default.
  13007. Usage: $0 [OPTION]... [TAG]...
  13008. -h, --help print this help, then exit
  13009. -V, --version print version number and configuration settings, then exit
  13010. -q, --quiet, --silent
  13011. do not print progress messages
  13012. -d, --debug don't remove temporary files
  13013. --recheck update $as_me by reconfiguring in the same conditions
  13014. --file=FILE[:TEMPLATE]
  13015. instantiate the configuration file FILE
  13016. Configuration files:
  13017. $config_files
  13018. Configuration commands:
  13019. $config_commands
  13020. Report bugs to <cilk@intel.com>."
  13021. _ACEOF
  13022. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13023. ac_cs_version="\\
  13024. Cilk Runtime Library config.status 2.0
  13025. configured by $0, generated by GNU Autoconf 2.64,
  13026. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13027. Copyright (C) 2009 Free Software Foundation, Inc.
  13028. This config.status script is free software; the Free Software Foundation
  13029. gives unlimited permission to copy, distribute and modify it."
  13030. ac_pwd='$ac_pwd'
  13031. srcdir='$srcdir'
  13032. INSTALL='$INSTALL'
  13033. MKDIR_P='$MKDIR_P'
  13034. AWK='$AWK'
  13035. test -n "\$AWK" || AWK=awk
  13036. _ACEOF
  13037. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13038. # The default lists apply if the user does not specify any file.
  13039. ac_need_defaults=:
  13040. while test $# != 0
  13041. do
  13042. case $1 in
  13043. --*=*)
  13044. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13045. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13046. ac_shift=:
  13047. ;;
  13048. *)
  13049. ac_option=$1
  13050. ac_optarg=$2
  13051. ac_shift=shift
  13052. ;;
  13053. esac
  13054. case $ac_option in
  13055. # Handling of the options.
  13056. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13057. ac_cs_recheck=: ;;
  13058. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13059. $as_echo "$ac_cs_version"; exit ;;
  13060. --debug | --debu | --deb | --de | --d | -d )
  13061. debug=: ;;
  13062. --file | --fil | --fi | --f )
  13063. $ac_shift
  13064. case $ac_optarg in
  13065. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13066. esac
  13067. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13068. ac_need_defaults=false;;
  13069. --he | --h | --help | --hel | -h )
  13070. $as_echo "$ac_cs_usage"; exit ;;
  13071. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13072. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13073. ac_cs_silent=: ;;
  13074. # This is an error.
  13075. -*) as_fn_error "unrecognized option: \`$1'
  13076. Try \`$0 --help' for more information." ;;
  13077. *) as_fn_append ac_config_targets " $1"
  13078. ac_need_defaults=false ;;
  13079. esac
  13080. shift
  13081. done
  13082. ac_configure_extra_args=
  13083. if $ac_cs_silent; then
  13084. exec 6>/dev/null
  13085. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13086. fi
  13087. _ACEOF
  13088. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13089. if \$ac_cs_recheck; then
  13090. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13091. shift
  13092. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13093. CONFIG_SHELL='$SHELL'
  13094. export CONFIG_SHELL
  13095. exec "\$@"
  13096. fi
  13097. _ACEOF
  13098. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13099. exec 5>>config.log
  13100. {
  13101. echo
  13102. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13103. ## Running $as_me. ##
  13104. _ASBOX
  13105. $as_echo "$ac_log"
  13106. } >&5
  13107. _ACEOF
  13108. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13109. #
  13110. # INIT-COMMANDS
  13111. #
  13112. srcdir="$srcdir"
  13113. host="$host"
  13114. target="$target"
  13115. with_multisubdir="$with_multisubdir"
  13116. with_multisrctop="$with_multisrctop"
  13117. with_target_subdir="$with_target_subdir"
  13118. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  13119. multi_basedir="$multi_basedir"
  13120. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  13121. CC="$CC"
  13122. CXX="$CXX"
  13123. GFORTRAN="$GFORTRAN"
  13124. GCJ="$GCJ"
  13125. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13126. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13127. # if CDPATH is set.
  13128. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13129. sed_quote_subst='$sed_quote_subst'
  13130. double_quote_subst='$double_quote_subst'
  13131. delay_variable_subst='$delay_variable_subst'
  13132. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13133. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13134. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13135. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13136. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13137. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13138. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13139. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13140. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13141. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13142. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13143. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13144. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13145. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13146. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13147. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13148. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13149. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13150. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13151. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13152. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13153. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13154. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13155. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13156. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13157. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13158. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13159. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13160. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13161. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13162. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13163. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13164. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13165. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13166. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13167. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13168. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13169. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13170. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13171. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13172. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13173. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13174. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13175. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13176. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13177. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13178. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13179. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13180. 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"`'
  13181. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13182. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13183. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13184. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13185. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13186. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13187. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13188. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13189. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13190. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13191. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13192. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13193. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13194. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13195. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13196. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13197. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13198. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13199. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13200. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13201. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13202. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13203. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13204. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13205. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13206. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13207. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13208. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13209. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13210. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13211. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13212. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  13213. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13214. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13215. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13216. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13217. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13218. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13219. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13220. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13221. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  13222. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13223. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13224. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13225. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13226. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13227. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13228. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13229. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13230. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13231. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13232. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13233. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13234. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13235. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13236. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13237. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13238. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13239. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13240. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13241. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13242. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13243. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13244. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13245. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13246. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13247. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13248. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13249. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13250. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13251. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13252. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  13253. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  13254. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  13255. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  13256. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  13257. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  13258. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  13259. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13260. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13261. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13262. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  13263. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  13264. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13265. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  13266. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  13267. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  13268. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  13269. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  13270. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  13271. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13272. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13273. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  13274. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13275. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13276. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13277. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13278. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13279. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13280. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  13281. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13282. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13283. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13284. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  13285. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  13286. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  13287. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  13288. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  13289. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  13290. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  13291. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  13292. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  13293. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  13294. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  13295. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13296. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  13297. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  13298. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13299. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13300. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  13301. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  13302. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  13303. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  13304. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  13305. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  13306. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  13307. LTCC='$LTCC'
  13308. LTCFLAGS='$LTCFLAGS'
  13309. compiler='$compiler_DEFAULT'
  13310. # A function that is used when there is no print builtin or printf.
  13311. func_fallback_echo ()
  13312. {
  13313. eval 'cat <<_LTECHO_EOF
  13314. \$1
  13315. _LTECHO_EOF'
  13316. }
  13317. # Quote evaled strings.
  13318. for var in SHELL \
  13319. ECHO \
  13320. SED \
  13321. GREP \
  13322. EGREP \
  13323. FGREP \
  13324. LD \
  13325. NM \
  13326. LN_S \
  13327. lt_SP2NL \
  13328. lt_NL2SP \
  13329. reload_flag \
  13330. OBJDUMP \
  13331. deplibs_check_method \
  13332. file_magic_cmd \
  13333. AR \
  13334. AR_FLAGS \
  13335. STRIP \
  13336. RANLIB \
  13337. CC \
  13338. CFLAGS \
  13339. compiler \
  13340. lt_cv_sys_global_symbol_pipe \
  13341. lt_cv_sys_global_symbol_to_cdecl \
  13342. lt_cv_sys_global_symbol_to_c_name_address \
  13343. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13344. lt_prog_compiler_no_builtin_flag \
  13345. lt_prog_compiler_wl \
  13346. lt_prog_compiler_pic \
  13347. lt_prog_compiler_static \
  13348. lt_cv_prog_compiler_c_o \
  13349. need_locks \
  13350. DSYMUTIL \
  13351. NMEDIT \
  13352. LIPO \
  13353. OTOOL \
  13354. OTOOL64 \
  13355. shrext_cmds \
  13356. export_dynamic_flag_spec \
  13357. whole_archive_flag_spec \
  13358. compiler_needs_object \
  13359. with_gnu_ld \
  13360. allow_undefined_flag \
  13361. no_undefined_flag \
  13362. hardcode_libdir_flag_spec \
  13363. hardcode_libdir_flag_spec_ld \
  13364. hardcode_libdir_separator \
  13365. fix_srcfile_path \
  13366. exclude_expsyms \
  13367. include_expsyms \
  13368. file_list_spec \
  13369. variables_saved_for_relink \
  13370. libname_spec \
  13371. library_names_spec \
  13372. soname_spec \
  13373. install_override_mode \
  13374. finish_eval \
  13375. old_striplib \
  13376. striplib \
  13377. compiler_lib_search_dirs \
  13378. predep_objects \
  13379. postdep_objects \
  13380. predeps \
  13381. postdeps \
  13382. compiler_lib_search_path \
  13383. LD_CXX \
  13384. reload_flag_CXX \
  13385. compiler_CXX \
  13386. lt_prog_compiler_no_builtin_flag_CXX \
  13387. lt_prog_compiler_wl_CXX \
  13388. lt_prog_compiler_pic_CXX \
  13389. lt_prog_compiler_static_CXX \
  13390. lt_cv_prog_compiler_c_o_CXX \
  13391. export_dynamic_flag_spec_CXX \
  13392. whole_archive_flag_spec_CXX \
  13393. compiler_needs_object_CXX \
  13394. with_gnu_ld_CXX \
  13395. allow_undefined_flag_CXX \
  13396. no_undefined_flag_CXX \
  13397. hardcode_libdir_flag_spec_CXX \
  13398. hardcode_libdir_flag_spec_ld_CXX \
  13399. hardcode_libdir_separator_CXX \
  13400. fix_srcfile_path_CXX \
  13401. exclude_expsyms_CXX \
  13402. include_expsyms_CXX \
  13403. file_list_spec_CXX \
  13404. compiler_lib_search_dirs_CXX \
  13405. predep_objects_CXX \
  13406. postdep_objects_CXX \
  13407. predeps_CXX \
  13408. postdeps_CXX \
  13409. compiler_lib_search_path_CXX; do
  13410. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13411. *[\\\\\\\`\\"\\\$]*)
  13412. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13413. ;;
  13414. *)
  13415. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13416. ;;
  13417. esac
  13418. done
  13419. # Double-quote double-evaled strings.
  13420. for var in reload_cmds \
  13421. old_postinstall_cmds \
  13422. old_postuninstall_cmds \
  13423. old_archive_cmds \
  13424. extract_expsyms_cmds \
  13425. old_archive_from_new_cmds \
  13426. old_archive_from_expsyms_cmds \
  13427. archive_cmds \
  13428. archive_expsym_cmds \
  13429. module_cmds \
  13430. module_expsym_cmds \
  13431. export_symbols_cmds \
  13432. prelink_cmds \
  13433. postinstall_cmds \
  13434. postuninstall_cmds \
  13435. finish_cmds \
  13436. sys_lib_search_path_spec \
  13437. sys_lib_dlsearch_path_spec \
  13438. reload_cmds_CXX \
  13439. old_archive_cmds_CXX \
  13440. old_archive_from_new_cmds_CXX \
  13441. old_archive_from_expsyms_cmds_CXX \
  13442. archive_cmds_CXX \
  13443. archive_expsym_cmds_CXX \
  13444. module_cmds_CXX \
  13445. module_expsym_cmds_CXX \
  13446. export_symbols_cmds_CXX \
  13447. prelink_cmds_CXX; do
  13448. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13449. *[\\\\\\\`\\"\\\$]*)
  13450. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13451. ;;
  13452. *)
  13453. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13454. ;;
  13455. esac
  13456. done
  13457. ac_aux_dir='$ac_aux_dir'
  13458. xsi_shell='$xsi_shell'
  13459. lt_shell_append='$lt_shell_append'
  13460. # See if we are running on zsh, and set the options which allow our
  13461. # commands through without removal of \ escapes INIT.
  13462. if test -n "\${ZSH_VERSION+set}" ; then
  13463. setopt NO_GLOB_SUBST
  13464. fi
  13465. PACKAGE='$PACKAGE'
  13466. VERSION='$VERSION'
  13467. TIMESTAMP='$TIMESTAMP'
  13468. RM='$RM'
  13469. ofile='$ofile'
  13470. _ACEOF
  13471. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13472. # Handling of arguments.
  13473. for ac_config_target in $ac_config_targets
  13474. do
  13475. case $ac_config_target in
  13476. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  13477. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13478. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13479. "libcilkrts.spec") CONFIG_FILES="$CONFIG_FILES libcilkrts.spec" ;;
  13480. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13481. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13482. esac
  13483. done
  13484. # If the user did not use the arguments to specify the items to instantiate,
  13485. # then the envvar interface is used. Set only those that are not.
  13486. # We use the long form for the default assignment because of an extremely
  13487. # bizarre bug on SunOS 4.1.3.
  13488. if $ac_need_defaults; then
  13489. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13490. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13491. fi
  13492. # Have a temporary directory for convenience. Make it in the build tree
  13493. # simply because there is no reason against having it here, and in addition,
  13494. # creating and moving files from /tmp can sometimes cause problems.
  13495. # Hook for its removal unless debugging.
  13496. # Note that there is a small window in which the directory will not be cleaned:
  13497. # after its creation but before its name has been assigned to `$tmp'.
  13498. $debug ||
  13499. {
  13500. tmp=
  13501. trap 'exit_status=$?
  13502. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13503. ' 0
  13504. trap 'as_fn_exit 1' 1 2 13 15
  13505. }
  13506. # Create a (secure) tmp directory for tmp files.
  13507. {
  13508. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13509. test -n "$tmp" && test -d "$tmp"
  13510. } ||
  13511. {
  13512. tmp=./conf$$-$RANDOM
  13513. (umask 077 && mkdir "$tmp")
  13514. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13515. # Set up the scripts for CONFIG_FILES section.
  13516. # No need to generate them if there are no CONFIG_FILES.
  13517. # This happens for instance with `./config.status config.h'.
  13518. if test -n "$CONFIG_FILES"; then
  13519. ac_cr=`echo X | tr X '\015'`
  13520. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13521. # But we know of no other shell where ac_cr would be empty at this
  13522. # point, so we can use a bashism as a fallback.
  13523. if test "x$ac_cr" = x; then
  13524. eval ac_cr=\$\'\\r\'
  13525. fi
  13526. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13527. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13528. ac_cs_awk_cr='\r'
  13529. else
  13530. ac_cs_awk_cr=$ac_cr
  13531. fi
  13532. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13533. _ACEOF
  13534. {
  13535. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13536. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13537. echo "_ACEOF"
  13538. } >conf$$subs.sh ||
  13539. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13540. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13541. ac_delim='%!_!# '
  13542. for ac_last_try in false false false false false :; do
  13543. . ./conf$$subs.sh ||
  13544. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13545. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13546. if test $ac_delim_n = $ac_delim_num; then
  13547. break
  13548. elif $ac_last_try; then
  13549. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13550. else
  13551. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13552. fi
  13553. done
  13554. rm -f conf$$subs.sh
  13555. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13556. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13557. _ACEOF
  13558. sed -n '
  13559. h
  13560. s/^/S["/; s/!.*/"]=/
  13561. p
  13562. g
  13563. s/^[^!]*!//
  13564. :repl
  13565. t repl
  13566. s/'"$ac_delim"'$//
  13567. t delim
  13568. :nl
  13569. h
  13570. s/\(.\{148\}\).*/\1/
  13571. t more1
  13572. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13573. p
  13574. n
  13575. b repl
  13576. :more1
  13577. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13578. p
  13579. g
  13580. s/.\{148\}//
  13581. t nl
  13582. :delim
  13583. h
  13584. s/\(.\{148\}\).*/\1/
  13585. t more2
  13586. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13587. p
  13588. b
  13589. :more2
  13590. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13591. p
  13592. g
  13593. s/.\{148\}//
  13594. t delim
  13595. ' <conf$$subs.awk | sed '
  13596. /^[^""]/{
  13597. N
  13598. s/\n//
  13599. }
  13600. ' >>$CONFIG_STATUS || ac_write_fail=1
  13601. rm -f conf$$subs.awk
  13602. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13603. _ACAWK
  13604. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13605. for (key in S) S_is_set[key] = 1
  13606. FS = ""
  13607. }
  13608. {
  13609. line = $ 0
  13610. nfields = split(line, field, "@")
  13611. substed = 0
  13612. len = length(field[1])
  13613. for (i = 2; i < nfields; i++) {
  13614. key = field[i]
  13615. keylen = length(key)
  13616. if (S_is_set[key]) {
  13617. value = S[key]
  13618. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13619. len += length(value) + length(field[++i])
  13620. substed = 1
  13621. } else
  13622. len += 1 + keylen
  13623. }
  13624. print line
  13625. }
  13626. _ACAWK
  13627. _ACEOF
  13628. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13629. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13630. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13631. else
  13632. cat
  13633. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13634. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  13635. _ACEOF
  13636. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13637. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13638. # trailing colons and then remove the whole line if VPATH becomes empty
  13639. # (actually we leave an empty line to preserve line numbers).
  13640. if test "x$srcdir" = x.; then
  13641. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13642. s/:*\$(srcdir):*/:/
  13643. s/:*\${srcdir}:*/:/
  13644. s/:*@srcdir@:*/:/
  13645. s/^\([^=]*=[ ]*\):*/\1/
  13646. s/:*$//
  13647. s/^[^=]*=[ ]*$//
  13648. }'
  13649. fi
  13650. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13651. fi # test -n "$CONFIG_FILES"
  13652. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  13653. shift
  13654. for ac_tag
  13655. do
  13656. case $ac_tag in
  13657. :[FHLC]) ac_mode=$ac_tag; continue;;
  13658. esac
  13659. case $ac_mode$ac_tag in
  13660. :[FHL]*:*);;
  13661. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13662. :[FH]-) ac_tag=-:-;;
  13663. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13664. esac
  13665. ac_save_IFS=$IFS
  13666. IFS=:
  13667. set x $ac_tag
  13668. IFS=$ac_save_IFS
  13669. shift
  13670. ac_file=$1
  13671. shift
  13672. case $ac_mode in
  13673. :L) ac_source=$1;;
  13674. :[FH])
  13675. ac_file_inputs=
  13676. for ac_f
  13677. do
  13678. case $ac_f in
  13679. -) ac_f="$tmp/stdin";;
  13680. *) # Look for the file first in the build tree, then in the source tree
  13681. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13682. # because $ac_f cannot contain `:'.
  13683. test -f "$ac_f" ||
  13684. case $ac_f in
  13685. [\\/$]*) false;;
  13686. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13687. esac ||
  13688. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13689. esac
  13690. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13691. as_fn_append ac_file_inputs " '$ac_f'"
  13692. done
  13693. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13694. # use $as_me), people would be surprised to read:
  13695. # /* config.h. Generated by config.status. */
  13696. configure_input='Generated from '`
  13697. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13698. `' by configure.'
  13699. if test x"$ac_file" != x-; then
  13700. configure_input="$ac_file. $configure_input"
  13701. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13702. $as_echo "$as_me: creating $ac_file" >&6;}
  13703. fi
  13704. # Neutralize special characters interpreted by sed in replacement strings.
  13705. case $configure_input in #(
  13706. *\&* | *\|* | *\\* )
  13707. ac_sed_conf_input=`$as_echo "$configure_input" |
  13708. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13709. *) ac_sed_conf_input=$configure_input;;
  13710. esac
  13711. case $ac_tag in
  13712. *:-:* | *:-) cat >"$tmp/stdin" \
  13713. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  13714. esac
  13715. ;;
  13716. esac
  13717. ac_dir=`$as_dirname -- "$ac_file" ||
  13718. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13719. X"$ac_file" : 'X\(//\)[^/]' \| \
  13720. X"$ac_file" : 'X\(//\)$' \| \
  13721. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13722. $as_echo X"$ac_file" |
  13723. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13724. s//\1/
  13725. q
  13726. }
  13727. /^X\(\/\/\)[^/].*/{
  13728. s//\1/
  13729. q
  13730. }
  13731. /^X\(\/\/\)$/{
  13732. s//\1/
  13733. q
  13734. }
  13735. /^X\(\/\).*/{
  13736. s//\1/
  13737. q
  13738. }
  13739. s/.*/./; q'`
  13740. as_dir="$ac_dir"; as_fn_mkdir_p
  13741. ac_builddir=.
  13742. case "$ac_dir" in
  13743. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13744. *)
  13745. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13746. # A ".." for each directory in $ac_dir_suffix.
  13747. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13748. case $ac_top_builddir_sub in
  13749. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13750. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13751. esac ;;
  13752. esac
  13753. ac_abs_top_builddir=$ac_pwd
  13754. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13755. # for backward compatibility:
  13756. ac_top_builddir=$ac_top_build_prefix
  13757. case $srcdir in
  13758. .) # We are building in place.
  13759. ac_srcdir=.
  13760. ac_top_srcdir=$ac_top_builddir_sub
  13761. ac_abs_top_srcdir=$ac_pwd ;;
  13762. [\\/]* | ?:[\\/]* ) # Absolute name.
  13763. ac_srcdir=$srcdir$ac_dir_suffix;
  13764. ac_top_srcdir=$srcdir
  13765. ac_abs_top_srcdir=$srcdir ;;
  13766. *) # Relative name.
  13767. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13768. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13769. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13770. esac
  13771. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13772. case $ac_mode in
  13773. :F)
  13774. #
  13775. # CONFIG_FILE
  13776. #
  13777. case $INSTALL in
  13778. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13779. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13780. esac
  13781. ac_MKDIR_P=$MKDIR_P
  13782. case $MKDIR_P in
  13783. [\\/$]* | ?:[\\/]* ) ;;
  13784. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13785. esac
  13786. _ACEOF
  13787. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13788. # If the template does not know about datarootdir, expand it.
  13789. # FIXME: This hack should be removed a few years after 2.60.
  13790. ac_datarootdir_hack=; ac_datarootdir_seen=
  13791. ac_sed_dataroot='
  13792. /datarootdir/ {
  13793. p
  13794. q
  13795. }
  13796. /@datadir@/p
  13797. /@docdir@/p
  13798. /@infodir@/p
  13799. /@localedir@/p
  13800. /@mandir@/p'
  13801. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13802. *datarootdir*) ac_datarootdir_seen=yes;;
  13803. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13805. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13806. _ACEOF
  13807. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13808. ac_datarootdir_hack='
  13809. s&@datadir@&$datadir&g
  13810. s&@docdir@&$docdir&g
  13811. s&@infodir@&$infodir&g
  13812. s&@localedir@&$localedir&g
  13813. s&@mandir@&$mandir&g
  13814. s&\\\${datarootdir}&$datarootdir&g' ;;
  13815. esac
  13816. _ACEOF
  13817. # Neutralize VPATH when `$srcdir' = `.'.
  13818. # Shell code in configure.ac might set extrasub.
  13819. # FIXME: do we really want to maintain this feature?
  13820. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13821. ac_sed_extra="$ac_vpsub
  13822. $extrasub
  13823. _ACEOF
  13824. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13825. :t
  13826. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13827. s|@configure_input@|$ac_sed_conf_input|;t t
  13828. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13829. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13830. s&@srcdir@&$ac_srcdir&;t t
  13831. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13832. s&@top_srcdir@&$ac_top_srcdir&;t t
  13833. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13834. s&@builddir@&$ac_builddir&;t t
  13835. s&@abs_builddir@&$ac_abs_builddir&;t t
  13836. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13837. s&@INSTALL@&$ac_INSTALL&;t t
  13838. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13839. $ac_datarootdir_hack
  13840. "
  13841. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  13842. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13843. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13844. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13845. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13846. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13847. which seems to be undefined. Please make sure it is defined." >&5
  13848. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13849. which seems to be undefined. Please make sure it is defined." >&2;}
  13850. rm -f "$tmp/stdin"
  13851. case $ac_file in
  13852. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13853. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13854. esac \
  13855. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13856. ;;
  13857. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13858. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13859. ;;
  13860. esac
  13861. case $ac_file$ac_mode in
  13862. "default-1":C)
  13863. # Only add multilib support code if we just rebuilt the top-level
  13864. # Makefile.
  13865. case " $CONFIG_FILES " in
  13866. *" Makefile "*)
  13867. ac_file=Makefile . ${multi_basedir}/config-ml.in
  13868. ;;
  13869. esac ;;
  13870. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13871. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13872. # are listed without --file. Let's play safe and only enable the eval
  13873. # if we detect the quoting.
  13874. case $CONFIG_FILES in
  13875. *\'*) eval set x "$CONFIG_FILES" ;;
  13876. *) set x $CONFIG_FILES ;;
  13877. esac
  13878. shift
  13879. for mf
  13880. do
  13881. # Strip MF so we end up with the name of the file.
  13882. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13883. # Check whether this is an Automake generated Makefile or not.
  13884. # We used to match only the files named `Makefile.in', but
  13885. # some people rename them; so instead we look at the file content.
  13886. # Grep'ing the first line is not enough: some people post-process
  13887. # each Makefile.in and add a new line on top of each file to say so.
  13888. # Grep'ing the whole file is not good either: AIX grep has a line
  13889. # limit of 2048, but all sed's we know have understand at least 4000.
  13890. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13891. dirpart=`$as_dirname -- "$mf" ||
  13892. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13893. X"$mf" : 'X\(//\)[^/]' \| \
  13894. X"$mf" : 'X\(//\)$' \| \
  13895. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13896. $as_echo X"$mf" |
  13897. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13898. s//\1/
  13899. q
  13900. }
  13901. /^X\(\/\/\)[^/].*/{
  13902. s//\1/
  13903. q
  13904. }
  13905. /^X\(\/\/\)$/{
  13906. s//\1/
  13907. q
  13908. }
  13909. /^X\(\/\).*/{
  13910. s//\1/
  13911. q
  13912. }
  13913. s/.*/./; q'`
  13914. else
  13915. continue
  13916. fi
  13917. # Extract the definition of DEPDIR, am__include, and am__quote
  13918. # from the Makefile without running `make'.
  13919. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13920. test -z "$DEPDIR" && continue
  13921. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13922. test -z "am__include" && continue
  13923. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13924. # When using ansi2knr, U may be empty or an underscore; expand it
  13925. U=`sed -n 's/^U = //p' < "$mf"`
  13926. # Find all dependency output files, they are included files with
  13927. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13928. # simplest approach to changing $(DEPDIR) to its actual value in the
  13929. # expansion.
  13930. for file in `sed -n "
  13931. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13932. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13933. # Make sure the directory exists.
  13934. test -f "$dirpart/$file" && continue
  13935. fdir=`$as_dirname -- "$file" ||
  13936. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13937. X"$file" : 'X\(//\)[^/]' \| \
  13938. X"$file" : 'X\(//\)$' \| \
  13939. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13940. $as_echo X"$file" |
  13941. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13942. s//\1/
  13943. q
  13944. }
  13945. /^X\(\/\/\)[^/].*/{
  13946. s//\1/
  13947. q
  13948. }
  13949. /^X\(\/\/\)$/{
  13950. s//\1/
  13951. q
  13952. }
  13953. /^X\(\/\).*/{
  13954. s//\1/
  13955. q
  13956. }
  13957. s/.*/./; q'`
  13958. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  13959. # echo "creating $dirpart/$file"
  13960. echo '# dummy' > "$dirpart/$file"
  13961. done
  13962. done
  13963. }
  13964. ;;
  13965. "libtool":C)
  13966. # See if we are running on zsh, and set the options which allow our
  13967. # commands through without removal of \ escapes.
  13968. if test -n "${ZSH_VERSION+set}" ; then
  13969. setopt NO_GLOB_SUBST
  13970. fi
  13971. cfgfile="${ofile}T"
  13972. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13973. $RM "$cfgfile"
  13974. cat <<_LT_EOF >> "$cfgfile"
  13975. #! $SHELL
  13976. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13977. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13978. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13979. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13980. #
  13981. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13982. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  13983. # Written by Gordon Matzigkeit, 1996
  13984. #
  13985. # This file is part of GNU Libtool.
  13986. #
  13987. # GNU Libtool is free software; you can redistribute it and/or
  13988. # modify it under the terms of the GNU General Public License as
  13989. # published by the Free Software Foundation; either version 2 of
  13990. # the License, or (at your option) any later version.
  13991. #
  13992. # As a special exception to the GNU General Public License,
  13993. # if you distribute this file as part of a program or library that
  13994. # is built using GNU Libtool, you may include this file under the
  13995. # same distribution terms that you use for the rest of that program.
  13996. #
  13997. # GNU Libtool is distributed in the hope that it will be useful,
  13998. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13999. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14000. # GNU General Public License for more details.
  14001. #
  14002. # You should have received a copy of the GNU General Public License
  14003. # along with GNU Libtool; see the file COPYING. If not, a copy
  14004. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14005. # obtained by writing to the Free Software Foundation, Inc.,
  14006. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14007. # The names of the tagged configurations supported by this script.
  14008. available_tags="CXX "
  14009. # ### BEGIN LIBTOOL CONFIG
  14010. # Which release of libtool.m4 was used?
  14011. macro_version=$macro_version
  14012. macro_revision=$macro_revision
  14013. # Whether or not to build shared libraries.
  14014. build_libtool_libs=$enable_shared
  14015. # Whether or not to build static libraries.
  14016. build_old_libs=$enable_static
  14017. # What type of objects to build.
  14018. pic_mode=$pic_mode
  14019. # Whether or not to optimize for fast installation.
  14020. fast_install=$enable_fast_install
  14021. # Shell to use when invoking shell scripts.
  14022. SHELL=$lt_SHELL
  14023. # An echo program that protects backslashes.
  14024. ECHO=$lt_ECHO
  14025. # The host system.
  14026. host_alias=$host_alias
  14027. host=$host
  14028. host_os=$host_os
  14029. # The build system.
  14030. build_alias=$build_alias
  14031. build=$build
  14032. build_os=$build_os
  14033. # A sed program that does not truncate output.
  14034. SED=$lt_SED
  14035. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14036. Xsed="\$SED -e 1s/^X//"
  14037. # A grep program that handles long lines.
  14038. GREP=$lt_GREP
  14039. # An ERE matcher.
  14040. EGREP=$lt_EGREP
  14041. # A literal string matcher.
  14042. FGREP=$lt_FGREP
  14043. # A BSD- or MS-compatible name lister.
  14044. NM=$lt_NM
  14045. # Whether we need soft or hard links.
  14046. LN_S=$lt_LN_S
  14047. # What is the maximum length of a command?
  14048. max_cmd_len=$max_cmd_len
  14049. # Object file suffix (normally "o").
  14050. objext=$ac_objext
  14051. # Executable file suffix (normally "").
  14052. exeext=$exeext
  14053. # whether the shell understands "unset".
  14054. lt_unset=$lt_unset
  14055. # turn spaces into newlines.
  14056. SP2NL=$lt_lt_SP2NL
  14057. # turn newlines into spaces.
  14058. NL2SP=$lt_lt_NL2SP
  14059. # An object symbol dumper.
  14060. OBJDUMP=$lt_OBJDUMP
  14061. # Method to check whether dependent libraries are shared objects.
  14062. deplibs_check_method=$lt_deplibs_check_method
  14063. # Command to use when deplibs_check_method == "file_magic".
  14064. file_magic_cmd=$lt_file_magic_cmd
  14065. # The archiver.
  14066. AR=$lt_AR
  14067. AR_FLAGS=$lt_AR_FLAGS
  14068. # A symbol stripping program.
  14069. STRIP=$lt_STRIP
  14070. # Commands used to install an old-style archive.
  14071. RANLIB=$lt_RANLIB
  14072. old_postinstall_cmds=$lt_old_postinstall_cmds
  14073. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14074. # Whether to use a lock for old archive extraction.
  14075. lock_old_archive_extraction=$lock_old_archive_extraction
  14076. # A C compiler.
  14077. LTCC=$lt_CC
  14078. # LTCC compiler flags.
  14079. LTCFLAGS=$lt_CFLAGS
  14080. # Take the output of nm and produce a listing of raw symbols and C names.
  14081. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14082. # Transform the output of nm in a proper C declaration.
  14083. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14084. # Transform the output of nm in a C name address pair.
  14085. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14086. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14087. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14088. # The name of the directory that contains temporary libtool files.
  14089. objdir=$objdir
  14090. # Used to examine libraries when file_magic_cmd begins with "file".
  14091. MAGIC_CMD=$MAGIC_CMD
  14092. # Must we lock files when doing compilation?
  14093. need_locks=$lt_need_locks
  14094. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14095. DSYMUTIL=$lt_DSYMUTIL
  14096. # Tool to change global to local symbols on Mac OS X.
  14097. NMEDIT=$lt_NMEDIT
  14098. # Tool to manipulate fat objects and archives on Mac OS X.
  14099. LIPO=$lt_LIPO
  14100. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14101. OTOOL=$lt_OTOOL
  14102. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14103. OTOOL64=$lt_OTOOL64
  14104. # Old archive suffix (normally "a").
  14105. libext=$libext
  14106. # Shared library suffix (normally ".so").
  14107. shrext_cmds=$lt_shrext_cmds
  14108. # The commands to extract the exported symbol list from a shared archive.
  14109. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14110. # Variables whose values should be saved in libtool wrapper scripts and
  14111. # restored at link time.
  14112. variables_saved_for_relink=$lt_variables_saved_for_relink
  14113. # Do we need the "lib" prefix for modules?
  14114. need_lib_prefix=$need_lib_prefix
  14115. # Do we need a version for libraries?
  14116. need_version=$need_version
  14117. # Library versioning type.
  14118. version_type=$version_type
  14119. # Shared library runtime path variable.
  14120. runpath_var=$runpath_var
  14121. # Shared library path variable.
  14122. shlibpath_var=$shlibpath_var
  14123. # Is shlibpath searched before the hard-coded library search path?
  14124. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14125. # Format of library name prefix.
  14126. libname_spec=$lt_libname_spec
  14127. # List of archive names. First name is the real one, the rest are links.
  14128. # The last name is the one that the linker finds with -lNAME
  14129. library_names_spec=$lt_library_names_spec
  14130. # The coded name of the library, if different from the real name.
  14131. soname_spec=$lt_soname_spec
  14132. # Permission mode override for installation of shared libraries.
  14133. install_override_mode=$lt_install_override_mode
  14134. # Command to use after installation of a shared archive.
  14135. postinstall_cmds=$lt_postinstall_cmds
  14136. # Command to use after uninstallation of a shared archive.
  14137. postuninstall_cmds=$lt_postuninstall_cmds
  14138. # Commands used to finish a libtool library installation in a directory.
  14139. finish_cmds=$lt_finish_cmds
  14140. # As "finish_cmds", except a single script fragment to be evaled but
  14141. # not shown.
  14142. finish_eval=$lt_finish_eval
  14143. # Whether we should hardcode library paths into libraries.
  14144. hardcode_into_libs=$hardcode_into_libs
  14145. # Compile-time system search path for libraries.
  14146. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14147. # Run-time system search path for libraries.
  14148. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14149. # Whether dlopen is supported.
  14150. dlopen_support=$enable_dlopen
  14151. # Whether dlopen of programs is supported.
  14152. dlopen_self=$enable_dlopen_self
  14153. # Whether dlopen of statically linked programs is supported.
  14154. dlopen_self_static=$enable_dlopen_self_static
  14155. # Commands to strip libraries.
  14156. old_striplib=$lt_old_striplib
  14157. striplib=$lt_striplib
  14158. # The linker used to build libraries.
  14159. LD=$lt_LD
  14160. # How to create reloadable object files.
  14161. reload_flag=$lt_reload_flag
  14162. reload_cmds=$lt_reload_cmds
  14163. # Commands used to build an old-style archive.
  14164. old_archive_cmds=$lt_old_archive_cmds
  14165. # A language specific compiler.
  14166. CC=$lt_compiler
  14167. # Is the compiler the GNU compiler?
  14168. with_gcc=$GCC
  14169. # Compiler flag to turn off builtin functions.
  14170. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14171. # How to pass a linker flag through the compiler.
  14172. wl=$lt_lt_prog_compiler_wl
  14173. # Additional compiler flags for building library objects.
  14174. pic_flag=$lt_lt_prog_compiler_pic
  14175. # Compiler flag to prevent dynamic linking.
  14176. link_static_flag=$lt_lt_prog_compiler_static
  14177. # Does compiler simultaneously support -c and -o options?
  14178. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14179. # Whether or not to add -lc for building shared libraries.
  14180. build_libtool_need_lc=$archive_cmds_need_lc
  14181. # Whether or not to disallow shared libs when runtime libs are static.
  14182. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14183. # Compiler flag to allow reflexive dlopens.
  14184. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14185. # Compiler flag to generate shared objects directly from archives.
  14186. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14187. # Whether the compiler copes with passing no objects directly.
  14188. compiler_needs_object=$lt_compiler_needs_object
  14189. # Create an old-style archive from a shared archive.
  14190. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14191. # Create a temporary old-style archive to link instead of a shared archive.
  14192. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14193. # Commands used to build a shared archive.
  14194. archive_cmds=$lt_archive_cmds
  14195. archive_expsym_cmds=$lt_archive_expsym_cmds
  14196. # Commands used to build a loadable module if different from building
  14197. # a shared archive.
  14198. module_cmds=$lt_module_cmds
  14199. module_expsym_cmds=$lt_module_expsym_cmds
  14200. # Whether we are building with GNU ld or not.
  14201. with_gnu_ld=$lt_with_gnu_ld
  14202. # Flag that allows shared libraries with undefined symbols to be built.
  14203. allow_undefined_flag=$lt_allow_undefined_flag
  14204. # Flag that enforces no undefined symbols.
  14205. no_undefined_flag=$lt_no_undefined_flag
  14206. # Flag to hardcode \$libdir into a binary during linking.
  14207. # This must work even if \$libdir does not exist
  14208. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14209. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14210. # during linking. This must work even if \$libdir does not exist.
  14211. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14212. # Whether we need a single "-rpath" flag with a separated argument.
  14213. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14214. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14215. # DIR into the resulting binary.
  14216. hardcode_direct=$hardcode_direct
  14217. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14218. # DIR into the resulting binary and the resulting library dependency is
  14219. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14220. # library is relocated.
  14221. hardcode_direct_absolute=$hardcode_direct_absolute
  14222. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14223. # into the resulting binary.
  14224. hardcode_minus_L=$hardcode_minus_L
  14225. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14226. # into the resulting binary.
  14227. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14228. # Set to "yes" if building a shared library automatically hardcodes DIR
  14229. # into the library and all subsequent libraries and executables linked
  14230. # against it.
  14231. hardcode_automatic=$hardcode_automatic
  14232. # Set to yes if linker adds runtime paths of dependent libraries
  14233. # to runtime path list.
  14234. inherit_rpath=$inherit_rpath
  14235. # Whether libtool must link a program against all its dependency libraries.
  14236. link_all_deplibs=$link_all_deplibs
  14237. # Fix the shell variable \$srcfile for the compiler.
  14238. fix_srcfile_path=$lt_fix_srcfile_path
  14239. # Set to "yes" if exported symbols are required.
  14240. always_export_symbols=$always_export_symbols
  14241. # The commands to list exported symbols.
  14242. export_symbols_cmds=$lt_export_symbols_cmds
  14243. # Symbols that should not be listed in the preloaded symbols.
  14244. exclude_expsyms=$lt_exclude_expsyms
  14245. # Symbols that must always be exported.
  14246. include_expsyms=$lt_include_expsyms
  14247. # Commands necessary for linking programs (against libraries) with templates.
  14248. prelink_cmds=$lt_prelink_cmds
  14249. # Specify filename containing input files.
  14250. file_list_spec=$lt_file_list_spec
  14251. # How to hardcode a shared library path into an executable.
  14252. hardcode_action=$hardcode_action
  14253. # The directories searched by this compiler when creating a shared library.
  14254. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  14255. # Dependencies to place before and after the objects being linked to
  14256. # create a shared library.
  14257. predep_objects=$lt_predep_objects
  14258. postdep_objects=$lt_postdep_objects
  14259. predeps=$lt_predeps
  14260. postdeps=$lt_postdeps
  14261. # The library search path used internally by the compiler when linking
  14262. # a shared library.
  14263. compiler_lib_search_path=$lt_compiler_lib_search_path
  14264. # ### END LIBTOOL CONFIG
  14265. _LT_EOF
  14266. case $host_os in
  14267. aix3*)
  14268. cat <<\_LT_EOF >> "$cfgfile"
  14269. # AIX sometimes has problems with the GCC collect2 program. For some
  14270. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14271. # vanish in a puff of smoke.
  14272. if test "X${COLLECT_NAMES+set}" != Xset; then
  14273. COLLECT_NAMES=
  14274. export COLLECT_NAMES
  14275. fi
  14276. _LT_EOF
  14277. ;;
  14278. esac
  14279. ltmain="$ac_aux_dir/ltmain.sh"
  14280. # We use sed instead of cat because bash on DJGPP gets confused if
  14281. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14282. # text mode, it properly converts lines to CR/LF. This bash problem
  14283. # is reportedly fixed, but why not run on old versions too?
  14284. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14285. || (rm -f "$cfgfile"; exit 1)
  14286. case $xsi_shell in
  14287. yes)
  14288. cat << \_LT_EOF >> "$cfgfile"
  14289. # func_dirname file append nondir_replacement
  14290. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14291. # otherwise set result to NONDIR_REPLACEMENT.
  14292. func_dirname ()
  14293. {
  14294. case ${1} in
  14295. */*) func_dirname_result="${1%/*}${2}" ;;
  14296. * ) func_dirname_result="${3}" ;;
  14297. esac
  14298. }
  14299. # func_basename file
  14300. func_basename ()
  14301. {
  14302. func_basename_result="${1##*/}"
  14303. }
  14304. # func_dirname_and_basename file append nondir_replacement
  14305. # perform func_basename and func_dirname in a single function
  14306. # call:
  14307. # dirname: Compute the dirname of FILE. If nonempty,
  14308. # add APPEND to the result, otherwise set result
  14309. # to NONDIR_REPLACEMENT.
  14310. # value returned in "$func_dirname_result"
  14311. # basename: Compute filename of FILE.
  14312. # value retuned in "$func_basename_result"
  14313. # Implementation must be kept synchronized with func_dirname
  14314. # and func_basename. For efficiency, we do not delegate to
  14315. # those functions but instead duplicate the functionality here.
  14316. func_dirname_and_basename ()
  14317. {
  14318. case ${1} in
  14319. */*) func_dirname_result="${1%/*}${2}" ;;
  14320. * ) func_dirname_result="${3}" ;;
  14321. esac
  14322. func_basename_result="${1##*/}"
  14323. }
  14324. # func_stripname prefix suffix name
  14325. # strip PREFIX and SUFFIX off of NAME.
  14326. # PREFIX and SUFFIX must not contain globbing or regex special
  14327. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14328. # dot (in which case that matches only a dot).
  14329. func_stripname ()
  14330. {
  14331. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14332. # positional parameters, so assign one to ordinary parameter first.
  14333. func_stripname_result=${3}
  14334. func_stripname_result=${func_stripname_result#"${1}"}
  14335. func_stripname_result=${func_stripname_result%"${2}"}
  14336. }
  14337. # func_opt_split
  14338. func_opt_split ()
  14339. {
  14340. func_opt_split_opt=${1%%=*}
  14341. func_opt_split_arg=${1#*=}
  14342. }
  14343. # func_lo2o object
  14344. func_lo2o ()
  14345. {
  14346. case ${1} in
  14347. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14348. *) func_lo2o_result=${1} ;;
  14349. esac
  14350. }
  14351. # func_xform libobj-or-source
  14352. func_xform ()
  14353. {
  14354. func_xform_result=${1%.*}.lo
  14355. }
  14356. # func_arith arithmetic-term...
  14357. func_arith ()
  14358. {
  14359. func_arith_result=$(( $* ))
  14360. }
  14361. # func_len string
  14362. # STRING may not start with a hyphen.
  14363. func_len ()
  14364. {
  14365. func_len_result=${#1}
  14366. }
  14367. _LT_EOF
  14368. ;;
  14369. *) # Bourne compatible functions.
  14370. cat << \_LT_EOF >> "$cfgfile"
  14371. # func_dirname file append nondir_replacement
  14372. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14373. # otherwise set result to NONDIR_REPLACEMENT.
  14374. func_dirname ()
  14375. {
  14376. # Extract subdirectory from the argument.
  14377. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  14378. if test "X$func_dirname_result" = "X${1}"; then
  14379. func_dirname_result="${3}"
  14380. else
  14381. func_dirname_result="$func_dirname_result${2}"
  14382. fi
  14383. }
  14384. # func_basename file
  14385. func_basename ()
  14386. {
  14387. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  14388. }
  14389. # func_stripname prefix suffix name
  14390. # strip PREFIX and SUFFIX off of NAME.
  14391. # PREFIX and SUFFIX must not contain globbing or regex special
  14392. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14393. # dot (in which case that matches only a dot).
  14394. # func_strip_suffix prefix name
  14395. func_stripname ()
  14396. {
  14397. case ${2} in
  14398. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  14399. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  14400. esac
  14401. }
  14402. # sed scripts:
  14403. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14404. my_sed_long_arg='1s/^-[^=]*=//'
  14405. # func_opt_split
  14406. func_opt_split ()
  14407. {
  14408. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  14409. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  14410. }
  14411. # func_lo2o object
  14412. func_lo2o ()
  14413. {
  14414. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  14415. }
  14416. # func_xform libobj-or-source
  14417. func_xform ()
  14418. {
  14419. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  14420. }
  14421. # func_arith arithmetic-term...
  14422. func_arith ()
  14423. {
  14424. func_arith_result=`expr "$@"`
  14425. }
  14426. # func_len string
  14427. # STRING may not start with a hyphen.
  14428. func_len ()
  14429. {
  14430. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14431. }
  14432. _LT_EOF
  14433. esac
  14434. case $lt_shell_append in
  14435. yes)
  14436. cat << \_LT_EOF >> "$cfgfile"
  14437. # func_append var value
  14438. # Append VALUE to the end of shell variable VAR.
  14439. func_append ()
  14440. {
  14441. eval "$1+=\$2"
  14442. }
  14443. _LT_EOF
  14444. ;;
  14445. *)
  14446. cat << \_LT_EOF >> "$cfgfile"
  14447. # func_append var value
  14448. # Append VALUE to the end of shell variable VAR.
  14449. func_append ()
  14450. {
  14451. eval "$1=\$$1\$2"
  14452. }
  14453. _LT_EOF
  14454. ;;
  14455. esac
  14456. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14457. || (rm -f "$cfgfile"; exit 1)
  14458. mv -f "$cfgfile" "$ofile" ||
  14459. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14460. chmod +x "$ofile"
  14461. cat <<_LT_EOF >> "$ofile"
  14462. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  14463. # The linker used to build libraries.
  14464. LD=$lt_LD_CXX
  14465. # How to create reloadable object files.
  14466. reload_flag=$lt_reload_flag_CXX
  14467. reload_cmds=$lt_reload_cmds_CXX
  14468. # Commands used to build an old-style archive.
  14469. old_archive_cmds=$lt_old_archive_cmds_CXX
  14470. # A language specific compiler.
  14471. CC=$lt_compiler_CXX
  14472. # Is the compiler the GNU compiler?
  14473. with_gcc=$GCC_CXX
  14474. # Compiler flag to turn off builtin functions.
  14475. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  14476. # How to pass a linker flag through the compiler.
  14477. wl=$lt_lt_prog_compiler_wl_CXX
  14478. # Additional compiler flags for building library objects.
  14479. pic_flag=$lt_lt_prog_compiler_pic_CXX
  14480. # Compiler flag to prevent dynamic linking.
  14481. link_static_flag=$lt_lt_prog_compiler_static_CXX
  14482. # Does compiler simultaneously support -c and -o options?
  14483. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  14484. # Whether or not to add -lc for building shared libraries.
  14485. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  14486. # Whether or not to disallow shared libs when runtime libs are static.
  14487. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  14488. # Compiler flag to allow reflexive dlopens.
  14489. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  14490. # Compiler flag to generate shared objects directly from archives.
  14491. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  14492. # Whether the compiler copes with passing no objects directly.
  14493. compiler_needs_object=$lt_compiler_needs_object_CXX
  14494. # Create an old-style archive from a shared archive.
  14495. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  14496. # Create a temporary old-style archive to link instead of a shared archive.
  14497. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  14498. # Commands used to build a shared archive.
  14499. archive_cmds=$lt_archive_cmds_CXX
  14500. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  14501. # Commands used to build a loadable module if different from building
  14502. # a shared archive.
  14503. module_cmds=$lt_module_cmds_CXX
  14504. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  14505. # Whether we are building with GNU ld or not.
  14506. with_gnu_ld=$lt_with_gnu_ld_CXX
  14507. # Flag that allows shared libraries with undefined symbols to be built.
  14508. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  14509. # Flag that enforces no undefined symbols.
  14510. no_undefined_flag=$lt_no_undefined_flag_CXX
  14511. # Flag to hardcode \$libdir into a binary during linking.
  14512. # This must work even if \$libdir does not exist
  14513. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  14514. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14515. # during linking. This must work even if \$libdir does not exist.
  14516. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  14517. # Whether we need a single "-rpath" flag with a separated argument.
  14518. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  14519. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14520. # DIR into the resulting binary.
  14521. hardcode_direct=$hardcode_direct_CXX
  14522. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14523. # DIR into the resulting binary and the resulting library dependency is
  14524. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14525. # library is relocated.
  14526. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  14527. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14528. # into the resulting binary.
  14529. hardcode_minus_L=$hardcode_minus_L_CXX
  14530. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14531. # into the resulting binary.
  14532. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  14533. # Set to "yes" if building a shared library automatically hardcodes DIR
  14534. # into the library and all subsequent libraries and executables linked
  14535. # against it.
  14536. hardcode_automatic=$hardcode_automatic_CXX
  14537. # Set to yes if linker adds runtime paths of dependent libraries
  14538. # to runtime path list.
  14539. inherit_rpath=$inherit_rpath_CXX
  14540. # Whether libtool must link a program against all its dependency libraries.
  14541. link_all_deplibs=$link_all_deplibs_CXX
  14542. # Fix the shell variable \$srcfile for the compiler.
  14543. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  14544. # Set to "yes" if exported symbols are required.
  14545. always_export_symbols=$always_export_symbols_CXX
  14546. # The commands to list exported symbols.
  14547. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  14548. # Symbols that should not be listed in the preloaded symbols.
  14549. exclude_expsyms=$lt_exclude_expsyms_CXX
  14550. # Symbols that must always be exported.
  14551. include_expsyms=$lt_include_expsyms_CXX
  14552. # Commands necessary for linking programs (against libraries) with templates.
  14553. prelink_cmds=$lt_prelink_cmds_CXX
  14554. # Specify filename containing input files.
  14555. file_list_spec=$lt_file_list_spec_CXX
  14556. # How to hardcode a shared library path into an executable.
  14557. hardcode_action=$hardcode_action_CXX
  14558. # The directories searched by this compiler when creating a shared library.
  14559. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  14560. # Dependencies to place before and after the objects being linked to
  14561. # create a shared library.
  14562. predep_objects=$lt_predep_objects_CXX
  14563. postdep_objects=$lt_postdep_objects_CXX
  14564. predeps=$lt_predeps_CXX
  14565. postdeps=$lt_postdeps_CXX
  14566. # The library search path used internally by the compiler when linking
  14567. # a shared library.
  14568. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  14569. # ### END LIBTOOL TAG CONFIG: CXX
  14570. _LT_EOF
  14571. ;;
  14572. esac
  14573. done # for ac_tag
  14574. as_fn_exit 0
  14575. _ACEOF
  14576. ac_clean_files=$ac_clean_files_save
  14577. test $ac_write_fail = 0 ||
  14578. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14579. # configure is writing to config.log, and then calls config.status.
  14580. # config.status does its own redirection, appending to config.log.
  14581. # Unfortunately, on DOS this fails, as config.log is still kept open
  14582. # by configure, so config.status won't be able to write to it; its
  14583. # output is simply discarded. So we exec the FD to /dev/null,
  14584. # effectively closing config.log, so it can be properly (re)opened and
  14585. # appended to by config.status. When coming back to configure, we
  14586. # need to make the FD available again.
  14587. if test "$no_create" != yes; then
  14588. ac_cs_success=:
  14589. ac_config_status_args=
  14590. test "$silent" = yes &&
  14591. ac_config_status_args="$ac_config_status_args --quiet"
  14592. exec 5>/dev/null
  14593. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14594. exec 5>>config.log
  14595. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14596. # would make configure fail if this is the last instruction.
  14597. $ac_cs_success || as_fn_exit $?
  14598. fi
  14599. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14600. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14601. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14602. fi