configure 552 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for package-unused version-unused.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='package-unused'
  539. PACKAGE_TARNAME='libgo'
  540. PACKAGE_VERSION='version-unused'
  541. PACKAGE_STRING='package-unused version-unused'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="Makefile.am"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='am__EXEEXT_FALSE
  581. am__EXEEXT_TRUE
  582. LTLIBOBJS
  583. LIBOBJS
  584. HAVE_STATIC_LINK_FALSE
  585. HAVE_STATIC_LINK_TRUE
  586. HAVE_STAT_TIMESPEC_FALSE
  587. HAVE_STAT_TIMESPEC_TRUE
  588. STRUCT_EPOLL_EVENT_FD_OFFSET
  589. SIZEOF_STRUCT_EPOLL_EVENT
  590. MATH_FLAG
  591. STRINGOPS_FLAG
  592. HAVE_WAIT4_FALSE
  593. HAVE_WAIT4_TRUE
  594. HAVE_STRERROR_R_FALSE
  595. HAVE_STRERROR_R_TRUE
  596. HAVE_SYS_MMAN_H_FALSE
  597. HAVE_SYS_MMAN_H_TRUE
  598. PTHREAD_LIBS
  599. PTHREAD_CFLAGS
  600. NET_LIBS
  601. MATH_LIBS
  602. GOC_IS_LLGO_FALSE
  603. GOC_IS_LLGO_TRUE
  604. GO_SPLIT_STACK
  605. USING_SPLIT_STACK_FALSE
  606. USING_SPLIT_STACK_TRUE
  607. SPLIT_STACK
  608. HWCAP_CFLAGS
  609. OSCFLAGS
  610. GO_SYSCALL_OS_ARCH_FILE
  611. GO_SYSCALL_OS_FILE
  612. GO_LIBCALL_OS_ARCH_FILE
  613. GO_LIBCALL_OS_FILE
  614. FUNCTION_DESCRIPTORS
  615. LIBGO_IS_X86_FALSE
  616. LIBGO_IS_X86_TRUE
  617. ALLGOARCHFAMILY
  618. ALLGOARCH
  619. GOARCH
  620. USE_DEJAGNU
  621. ALLGOOS
  622. GOOS
  623. LIBGO_IS_BSD_FALSE
  624. LIBGO_IS_BSD_TRUE
  625. LIBGO_IS_HURD_FALSE
  626. LIBGO_IS_HURD_TRUE
  627. LIBGO_IS_AIX_FALSE
  628. LIBGO_IS_AIX_TRUE
  629. LIBGO_IS_SOLARIS_FALSE
  630. LIBGO_IS_SOLARIS_TRUE
  631. LIBGO_IS_RTEMS_FALSE
  632. LIBGO_IS_RTEMS_TRUE
  633. LIBGO_IS_DRAGONFLY_FALSE
  634. LIBGO_IS_DRAGONFLY_TRUE
  635. LIBGO_IS_OPENBSD_FALSE
  636. LIBGO_IS_OPENBSD_TRUE
  637. LIBGO_IS_NETBSD_FALSE
  638. LIBGO_IS_NETBSD_TRUE
  639. LIBGO_IS_LINUX_FALSE
  640. LIBGO_IS_LINUX_TRUE
  641. LIBGO_IS_IRIX_FALSE
  642. LIBGO_IS_IRIX_TRUE
  643. LIBGO_IS_FREEBSD_FALSE
  644. LIBGO_IS_FREEBSD_TRUE
  645. LIBGO_IS_DARWIN_FALSE
  646. LIBGO_IS_DARWIN_TRUE
  647. go_include
  648. LIBATOMIC
  649. USE_LIBFFI_FALSE
  650. USE_LIBFFI_TRUE
  651. LIBFFIINCS
  652. LIBFFI
  653. nover_glibgo_toolexeclibdir
  654. glibgo_toolexeclibdir
  655. glibgo_toolexecdir
  656. WERROR
  657. WARN_FLAGS
  658. CC_FOR_BUILD
  659. enable_static
  660. enable_shared
  661. CPP
  662. OTOOL64
  663. OTOOL
  664. LIPO
  665. NMEDIT
  666. DSYMUTIL
  667. AR
  668. OBJDUMP
  669. LN_S
  670. NM
  671. ac_ct_DUMPBIN
  672. DUMPBIN
  673. LIBTOOL
  674. OBJCOPY
  675. RANLIB
  676. LD
  677. FGREP
  678. EGREP
  679. GREP
  680. SED
  681. MAINT
  682. MAINTAINER_MODE_FALSE
  683. MAINTAINER_MODE_TRUE
  684. AIX_EXTRA_ARCH
  685. am__fastdepCCAS_FALSE
  686. am__fastdepCCAS_TRUE
  687. CCASDEPMODE
  688. CCASFLAGS
  689. CCAS
  690. GOFLAGS
  691. GOC
  692. am__fastdepCC_FALSE
  693. am__fastdepCC_TRUE
  694. CCDEPMODE
  695. am__nodep
  696. AMDEPBACKSLASH
  697. AMDEP_FALSE
  698. AMDEP_TRUE
  699. am__quote
  700. am__include
  701. DEPDIR
  702. OBJEXT
  703. EXEEXT
  704. ac_ct_CC
  705. CPPFLAGS
  706. LDFLAGS
  707. CFLAGS
  708. CC
  709. AM_BACKSLASH
  710. AM_DEFAULT_VERBOSITY
  711. AM_DEFAULT_V
  712. AM_V
  713. am__untar
  714. am__tar
  715. AMTAR
  716. am__leading_dot
  717. SET_MAKE
  718. AWK
  719. mkdir_p
  720. MKDIR_P
  721. INSTALL_STRIP_PROGRAM
  722. STRIP
  723. install_sh
  724. MAKEINFO
  725. AUTOHEADER
  726. AUTOMAKE
  727. AUTOCONF
  728. ACLOCAL
  729. VERSION
  730. PACKAGE
  731. CYGPATH_W
  732. am__isrc
  733. INSTALL_DATA
  734. INSTALL_SCRIPT
  735. INSTALL_PROGRAM
  736. target_os
  737. target_vendor
  738. target_cpu
  739. target
  740. host_os
  741. host_vendor
  742. host_cpu
  743. host
  744. build_os
  745. build_vendor
  746. build_cpu
  747. build
  748. multi_basedir
  749. libtool_VERSION
  750. target_alias
  751. host_alias
  752. build_alias
  753. LIBS
  754. ECHO_T
  755. ECHO_N
  756. ECHO_C
  757. DEFS
  758. mandir
  759. localedir
  760. libdir
  761. psdir
  762. pdfdir
  763. dvidir
  764. htmldir
  765. infodir
  766. docdir
  767. oldincludedir
  768. includedir
  769. localstatedir
  770. sharedstatedir
  771. sysconfdir
  772. datadir
  773. datarootdir
  774. libexecdir
  775. sbindir
  776. bindir
  777. program_transform_name
  778. prefix
  779. exec_prefix
  780. PACKAGE_URL
  781. PACKAGE_BUGREPORT
  782. PACKAGE_STRING
  783. PACKAGE_VERSION
  784. PACKAGE_TARNAME
  785. PACKAGE_NAME
  786. PATH_SEPARATOR
  787. SHELL'
  788. ac_subst_files=''
  789. ac_user_opts='
  790. enable_option_checking
  791. enable_multilib
  792. enable_silent_rules
  793. enable_dependency_tracking
  794. enable_maintainer_mode
  795. with_gnu_ld
  796. enable_shared
  797. enable_static
  798. with_pic
  799. enable_fast_install
  800. enable_libtool_lock
  801. enable_werror
  802. enable_version_specific_runtime_libs
  803. with_toolexeclibdir
  804. with_libffi
  805. with_libatomic
  806. with_system_libunwind
  807. '
  808. ac_precious_vars='build_alias
  809. host_alias
  810. target_alias
  811. CPP
  812. CPPFLAGS'
  813. # Initialize some variables set by options.
  814. ac_init_help=
  815. ac_init_version=false
  816. ac_unrecognized_opts=
  817. ac_unrecognized_sep=
  818. # The variables have the same names as the options, with
  819. # dashes changed to underlines.
  820. cache_file=/dev/null
  821. exec_prefix=NONE
  822. no_create=
  823. no_recursion=
  824. prefix=NONE
  825. program_prefix=NONE
  826. program_suffix=NONE
  827. program_transform_name=s,x,x,
  828. silent=
  829. site=
  830. srcdir=
  831. verbose=
  832. x_includes=NONE
  833. x_libraries=NONE
  834. # Installation directory options.
  835. # These are left unexpanded so users can "make install exec_prefix=/foo"
  836. # and all the variables that are supposed to be based on exec_prefix
  837. # by default will actually change.
  838. # Use braces instead of parens because sh, perl, etc. also accept them.
  839. # (The list follows the same order as the GNU Coding Standards.)
  840. bindir='${exec_prefix}/bin'
  841. sbindir='${exec_prefix}/sbin'
  842. libexecdir='${exec_prefix}/libexec'
  843. datarootdir='${prefix}/share'
  844. datadir='${datarootdir}'
  845. sysconfdir='${prefix}/etc'
  846. sharedstatedir='${prefix}/com'
  847. localstatedir='${prefix}/var'
  848. includedir='${prefix}/include'
  849. oldincludedir='/usr/include'
  850. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  851. infodir='${datarootdir}/info'
  852. htmldir='${docdir}'
  853. dvidir='${docdir}'
  854. pdfdir='${docdir}'
  855. psdir='${docdir}'
  856. libdir='${exec_prefix}/lib'
  857. localedir='${datarootdir}/locale'
  858. mandir='${datarootdir}/man'
  859. ac_prev=
  860. ac_dashdash=
  861. for ac_option
  862. do
  863. # If the previous option needs an argument, assign it.
  864. if test -n "$ac_prev"; then
  865. eval $ac_prev=\$ac_option
  866. ac_prev=
  867. continue
  868. fi
  869. case $ac_option in
  870. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  871. *=) ac_optarg= ;;
  872. *) ac_optarg=yes ;;
  873. esac
  874. # Accept the important Cygnus configure options, so we can diagnose typos.
  875. case $ac_dashdash$ac_option in
  876. --)
  877. ac_dashdash=yes ;;
  878. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  879. ac_prev=bindir ;;
  880. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  881. bindir=$ac_optarg ;;
  882. -build | --build | --buil | --bui | --bu)
  883. ac_prev=build_alias ;;
  884. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  885. build_alias=$ac_optarg ;;
  886. -cache-file | --cache-file | --cache-fil | --cache-fi \
  887. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  888. ac_prev=cache_file ;;
  889. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  890. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  891. cache_file=$ac_optarg ;;
  892. --config-cache | -C)
  893. cache_file=config.cache ;;
  894. -datadir | --datadir | --datadi | --datad)
  895. ac_prev=datadir ;;
  896. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  897. datadir=$ac_optarg ;;
  898. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  899. | --dataroo | --dataro | --datar)
  900. ac_prev=datarootdir ;;
  901. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  902. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  903. datarootdir=$ac_optarg ;;
  904. -disable-* | --disable-*)
  905. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  906. # Reject names that are not valid shell variable names.
  907. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  908. as_fn_error $? "invalid feature name: $ac_useropt"
  909. ac_useropt_orig=$ac_useropt
  910. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  911. case $ac_user_opts in
  912. *"
  913. "enable_$ac_useropt"
  914. "*) ;;
  915. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  916. ac_unrecognized_sep=', ';;
  917. esac
  918. eval enable_$ac_useropt=no ;;
  919. -docdir | --docdir | --docdi | --doc | --do)
  920. ac_prev=docdir ;;
  921. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  922. docdir=$ac_optarg ;;
  923. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  924. ac_prev=dvidir ;;
  925. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  926. dvidir=$ac_optarg ;;
  927. -enable-* | --enable-*)
  928. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  929. # Reject names that are not valid shell variable names.
  930. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  931. as_fn_error $? "invalid feature name: $ac_useropt"
  932. ac_useropt_orig=$ac_useropt
  933. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  934. case $ac_user_opts in
  935. *"
  936. "enable_$ac_useropt"
  937. "*) ;;
  938. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  939. ac_unrecognized_sep=', ';;
  940. esac
  941. eval enable_$ac_useropt=\$ac_optarg ;;
  942. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  943. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  944. | --exec | --exe | --ex)
  945. ac_prev=exec_prefix ;;
  946. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  947. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  948. | --exec=* | --exe=* | --ex=*)
  949. exec_prefix=$ac_optarg ;;
  950. -gas | --gas | --ga | --g)
  951. # Obsolete; use --with-gas.
  952. with_gas=yes ;;
  953. -help | --help | --hel | --he | -h)
  954. ac_init_help=long ;;
  955. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  956. ac_init_help=recursive ;;
  957. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  958. ac_init_help=short ;;
  959. -host | --host | --hos | --ho)
  960. ac_prev=host_alias ;;
  961. -host=* | --host=* | --hos=* | --ho=*)
  962. host_alias=$ac_optarg ;;
  963. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  964. ac_prev=htmldir ;;
  965. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  966. | --ht=*)
  967. htmldir=$ac_optarg ;;
  968. -includedir | --includedir | --includedi | --included | --include \
  969. | --includ | --inclu | --incl | --inc)
  970. ac_prev=includedir ;;
  971. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  972. | --includ=* | --inclu=* | --incl=* | --inc=*)
  973. includedir=$ac_optarg ;;
  974. -infodir | --infodir | --infodi | --infod | --info | --inf)
  975. ac_prev=infodir ;;
  976. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  977. infodir=$ac_optarg ;;
  978. -libdir | --libdir | --libdi | --libd)
  979. ac_prev=libdir ;;
  980. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  981. libdir=$ac_optarg ;;
  982. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  983. | --libexe | --libex | --libe)
  984. ac_prev=libexecdir ;;
  985. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  986. | --libexe=* | --libex=* | --libe=*)
  987. libexecdir=$ac_optarg ;;
  988. -localedir | --localedir | --localedi | --localed | --locale)
  989. ac_prev=localedir ;;
  990. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  991. localedir=$ac_optarg ;;
  992. -localstatedir | --localstatedir | --localstatedi | --localstated \
  993. | --localstate | --localstat | --localsta | --localst | --locals)
  994. ac_prev=localstatedir ;;
  995. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  996. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  997. localstatedir=$ac_optarg ;;
  998. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  999. ac_prev=mandir ;;
  1000. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1001. mandir=$ac_optarg ;;
  1002. -nfp | --nfp | --nf)
  1003. # Obsolete; use --without-fp.
  1004. with_fp=no ;;
  1005. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1006. | --no-cr | --no-c | -n)
  1007. no_create=yes ;;
  1008. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1009. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1010. no_recursion=yes ;;
  1011. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1012. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1013. | --oldin | --oldi | --old | --ol | --o)
  1014. ac_prev=oldincludedir ;;
  1015. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1016. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1017. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1018. oldincludedir=$ac_optarg ;;
  1019. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1020. ac_prev=prefix ;;
  1021. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1022. prefix=$ac_optarg ;;
  1023. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1024. | --program-pre | --program-pr | --program-p)
  1025. ac_prev=program_prefix ;;
  1026. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1027. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1028. program_prefix=$ac_optarg ;;
  1029. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1030. | --program-suf | --program-su | --program-s)
  1031. ac_prev=program_suffix ;;
  1032. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1033. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1034. program_suffix=$ac_optarg ;;
  1035. -program-transform-name | --program-transform-name \
  1036. | --program-transform-nam | --program-transform-na \
  1037. | --program-transform-n | --program-transform- \
  1038. | --program-transform | --program-transfor \
  1039. | --program-transfo | --program-transf \
  1040. | --program-trans | --program-tran \
  1041. | --progr-tra | --program-tr | --program-t)
  1042. ac_prev=program_transform_name ;;
  1043. -program-transform-name=* | --program-transform-name=* \
  1044. | --program-transform-nam=* | --program-transform-na=* \
  1045. | --program-transform-n=* | --program-transform-=* \
  1046. | --program-transform=* | --program-transfor=* \
  1047. | --program-transfo=* | --program-transf=* \
  1048. | --program-trans=* | --program-tran=* \
  1049. | --progr-tra=* | --program-tr=* | --program-t=*)
  1050. program_transform_name=$ac_optarg ;;
  1051. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1052. ac_prev=pdfdir ;;
  1053. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1054. pdfdir=$ac_optarg ;;
  1055. -psdir | --psdir | --psdi | --psd | --ps)
  1056. ac_prev=psdir ;;
  1057. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1058. psdir=$ac_optarg ;;
  1059. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1060. | -silent | --silent | --silen | --sile | --sil)
  1061. silent=yes ;;
  1062. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1063. ac_prev=sbindir ;;
  1064. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1065. | --sbi=* | --sb=*)
  1066. sbindir=$ac_optarg ;;
  1067. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1068. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1069. | --sharedst | --shareds | --shared | --share | --shar \
  1070. | --sha | --sh)
  1071. ac_prev=sharedstatedir ;;
  1072. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1073. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1074. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1075. | --sha=* | --sh=*)
  1076. sharedstatedir=$ac_optarg ;;
  1077. -site | --site | --sit)
  1078. ac_prev=site ;;
  1079. -site=* | --site=* | --sit=*)
  1080. site=$ac_optarg ;;
  1081. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1082. ac_prev=srcdir ;;
  1083. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1084. srcdir=$ac_optarg ;;
  1085. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1086. | --syscon | --sysco | --sysc | --sys | --sy)
  1087. ac_prev=sysconfdir ;;
  1088. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1089. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1090. sysconfdir=$ac_optarg ;;
  1091. -target | --target | --targe | --targ | --tar | --ta | --t)
  1092. ac_prev=target_alias ;;
  1093. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1094. target_alias=$ac_optarg ;;
  1095. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1096. verbose=yes ;;
  1097. -version | --version | --versio | --versi | --vers | -V)
  1098. ac_init_version=: ;;
  1099. -with-* | --with-*)
  1100. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1101. # Reject names that are not valid shell variable names.
  1102. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1103. as_fn_error $? "invalid package name: $ac_useropt"
  1104. ac_useropt_orig=$ac_useropt
  1105. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1106. case $ac_user_opts in
  1107. *"
  1108. "with_$ac_useropt"
  1109. "*) ;;
  1110. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1111. ac_unrecognized_sep=', ';;
  1112. esac
  1113. eval with_$ac_useropt=\$ac_optarg ;;
  1114. -without-* | --without-*)
  1115. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1116. # Reject names that are not valid shell variable names.
  1117. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1118. as_fn_error $? "invalid package name: $ac_useropt"
  1119. ac_useropt_orig=$ac_useropt
  1120. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1121. case $ac_user_opts in
  1122. *"
  1123. "with_$ac_useropt"
  1124. "*) ;;
  1125. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1126. ac_unrecognized_sep=', ';;
  1127. esac
  1128. eval with_$ac_useropt=no ;;
  1129. --x)
  1130. # Obsolete; use --with-x.
  1131. with_x=yes ;;
  1132. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1133. | --x-incl | --x-inc | --x-in | --x-i)
  1134. ac_prev=x_includes ;;
  1135. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1136. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1137. x_includes=$ac_optarg ;;
  1138. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1139. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1140. ac_prev=x_libraries ;;
  1141. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1142. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1143. x_libraries=$ac_optarg ;;
  1144. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1145. Try \`$0 --help' for more information"
  1146. ;;
  1147. *=*)
  1148. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1149. # Reject names that are not valid shell variable names.
  1150. case $ac_envvar in #(
  1151. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1152. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1153. esac
  1154. eval $ac_envvar=\$ac_optarg
  1155. export $ac_envvar ;;
  1156. *)
  1157. # FIXME: should be removed in autoconf 3.0.
  1158. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1159. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1160. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1161. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1162. ;;
  1163. esac
  1164. done
  1165. if test -n "$ac_prev"; then
  1166. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1167. as_fn_error $? "missing argument to $ac_option"
  1168. fi
  1169. if test -n "$ac_unrecognized_opts"; then
  1170. case $enable_option_checking in
  1171. no) ;;
  1172. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1173. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1174. esac
  1175. fi
  1176. # Check all directory arguments for consistency.
  1177. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1178. datadir sysconfdir sharedstatedir localstatedir includedir \
  1179. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1180. libdir localedir mandir
  1181. do
  1182. eval ac_val=\$$ac_var
  1183. # Remove trailing slashes.
  1184. case $ac_val in
  1185. */ )
  1186. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1187. eval $ac_var=\$ac_val;;
  1188. esac
  1189. # Be sure to have absolute directory names.
  1190. case $ac_val in
  1191. [\\/$]* | ?:[\\/]* ) continue;;
  1192. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1193. esac
  1194. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1195. done
  1196. # There might be people who depend on the old broken behavior: `$host'
  1197. # used to hold the argument of --host etc.
  1198. # FIXME: To remove some day.
  1199. build=$build_alias
  1200. host=$host_alias
  1201. target=$target_alias
  1202. # FIXME: To remove some day.
  1203. if test "x$host_alias" != x; then
  1204. if test "x$build_alias" = x; then
  1205. cross_compiling=maybe
  1206. elif test "x$build_alias" != "x$host_alias"; then
  1207. cross_compiling=yes
  1208. fi
  1209. fi
  1210. ac_tool_prefix=
  1211. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1212. test "$silent" = yes && exec 6>/dev/null
  1213. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1214. ac_ls_di=`ls -di .` &&
  1215. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1216. as_fn_error $? "working directory cannot be determined"
  1217. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1218. as_fn_error $? "pwd does not report name of working directory"
  1219. # Find the source files, if location was not specified.
  1220. if test -z "$srcdir"; then
  1221. ac_srcdir_defaulted=yes
  1222. # Try the directory containing this script, then the parent directory.
  1223. ac_confdir=`$as_dirname -- "$as_myself" ||
  1224. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1225. X"$as_myself" : 'X\(//\)[^/]' \| \
  1226. X"$as_myself" : 'X\(//\)$' \| \
  1227. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1228. $as_echo X"$as_myself" |
  1229. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1230. s//\1/
  1231. q
  1232. }
  1233. /^X\(\/\/\)[^/].*/{
  1234. s//\1/
  1235. q
  1236. }
  1237. /^X\(\/\/\)$/{
  1238. s//\1/
  1239. q
  1240. }
  1241. /^X\(\/\).*/{
  1242. s//\1/
  1243. q
  1244. }
  1245. s/.*/./; q'`
  1246. srcdir=$ac_confdir
  1247. if test ! -r "$srcdir/$ac_unique_file"; then
  1248. srcdir=..
  1249. fi
  1250. else
  1251. ac_srcdir_defaulted=no
  1252. fi
  1253. if test ! -r "$srcdir/$ac_unique_file"; then
  1254. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1255. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1256. fi
  1257. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1258. ac_abs_confdir=`(
  1259. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1260. pwd)`
  1261. # When building in place, set srcdir=.
  1262. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1263. srcdir=.
  1264. fi
  1265. # Remove unnecessary trailing slashes from srcdir.
  1266. # Double slashes in file names in object file debugging info
  1267. # mess up M-x gdb in Emacs.
  1268. case $srcdir in
  1269. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1270. esac
  1271. for ac_var in $ac_precious_vars; do
  1272. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1273. eval ac_env_${ac_var}_value=\$${ac_var}
  1274. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1275. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1276. done
  1277. #
  1278. # Report the --help message.
  1279. #
  1280. if test "$ac_init_help" = "long"; then
  1281. # Omit some internal or obsolete options to make the list less imposing.
  1282. # This message is too long to be a string in the A/UX 3.1 sh.
  1283. cat <<_ACEOF
  1284. \`configure' configures package-unused version-unused to adapt to many kinds of systems.
  1285. Usage: $0 [OPTION]... [VAR=VALUE]...
  1286. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1287. VAR=VALUE. See below for descriptions of some of the useful variables.
  1288. Defaults for the options are specified in brackets.
  1289. Configuration:
  1290. -h, --help display this help and exit
  1291. --help=short display options specific to this package
  1292. --help=recursive display the short help of all the included packages
  1293. -V, --version display version information and exit
  1294. -q, --quiet, --silent do not print \`checking ...' messages
  1295. --cache-file=FILE cache test results in FILE [disabled]
  1296. -C, --config-cache alias for \`--cache-file=config.cache'
  1297. -n, --no-create do not create output files
  1298. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1299. Installation directories:
  1300. --prefix=PREFIX install architecture-independent files in PREFIX
  1301. [$ac_default_prefix]
  1302. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1303. [PREFIX]
  1304. By default, \`make install' will install all the files in
  1305. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1306. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1307. for instance \`--prefix=\$HOME'.
  1308. For better control, use the options below.
  1309. Fine tuning of the installation directories:
  1310. --bindir=DIR user executables [EPREFIX/bin]
  1311. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1312. --libexecdir=DIR program executables [EPREFIX/libexec]
  1313. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1314. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1315. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1316. --libdir=DIR object code libraries [EPREFIX/lib]
  1317. --includedir=DIR C header files [PREFIX/include]
  1318. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1319. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1320. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1321. --infodir=DIR info documentation [DATAROOTDIR/info]
  1322. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1323. --mandir=DIR man documentation [DATAROOTDIR/man]
  1324. --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
  1325. --htmldir=DIR html documentation [DOCDIR]
  1326. --dvidir=DIR dvi documentation [DOCDIR]
  1327. --pdfdir=DIR pdf documentation [DOCDIR]
  1328. --psdir=DIR ps documentation [DOCDIR]
  1329. _ACEOF
  1330. cat <<\_ACEOF
  1331. Program names:
  1332. --program-prefix=PREFIX prepend PREFIX to installed program names
  1333. --program-suffix=SUFFIX append SUFFIX to installed program names
  1334. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1335. System types:
  1336. --build=BUILD configure for building on BUILD [guessed]
  1337. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1338. --target=TARGET configure for building compilers for TARGET [HOST]
  1339. _ACEOF
  1340. fi
  1341. if test -n "$ac_init_help"; then
  1342. case $ac_init_help in
  1343. short | recursive ) echo "Configuration of package-unused version-unused:";;
  1344. esac
  1345. cat <<\_ACEOF
  1346. Optional Features:
  1347. --disable-option-checking ignore unrecognized --enable/--with options
  1348. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1349. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1350. --enable-multilib build many library versions (default)
  1351. --enable-silent-rules less verbose build output (undo: "make V=1")
  1352. --disable-silent-rules verbose build output (undo: "make V=0")
  1353. --enable-dependency-tracking
  1354. do not reject slow dependency extractors
  1355. --disable-dependency-tracking
  1356. speeds up one-time build
  1357. --enable-maintainer-mode
  1358. enable make rules and dependencies not useful (and
  1359. sometimes confusing) to the casual installer
  1360. --enable-shared[=PKGS] build shared libraries [default=yes]
  1361. --enable-static[=PKGS] build static libraries [default=yes]
  1362. --enable-fast-install[=PKGS]
  1363. optimize for fast installation [default=yes]
  1364. --disable-libtool-lock avoid locking (might break parallel builds)
  1365. --disable-werror disable building with -Werror
  1366. --enable-version-specific-runtime-libs
  1367. Specify that runtime libraries should be installed
  1368. in a compiler-specific directory
  1369. Optional Packages:
  1370. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1371. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1372. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1373. --with-pic try to use only PIC/non-PIC objects [default=use
  1374. both]
  1375. --with-toolexeclibdir=DIR
  1376. install libraries built with a cross compiler within
  1377. DIR
  1378. --without-libffi don't use libffi
  1379. --without-libatomic don't use libatomic
  1380. --with-system-libunwind use installed libunwind
  1381. Some influential environment variables:
  1382. CC C compiler command
  1383. CFLAGS C compiler flags
  1384. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1385. nonstandard directory <lib dir>
  1386. LIBS libraries to pass to the linker, e.g. -l<library>
  1387. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1388. you have headers in a nonstandard directory <include dir>
  1389. GOC Go compiler command
  1390. GOFLAGS Go compiler flags
  1391. CCAS assembler compiler command (defaults to CC)
  1392. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1393. CPP C preprocessor
  1394. Use these variables to override the choices made by `configure' or to help
  1395. it to find libraries and programs with nonstandard names/locations.
  1396. Report bugs to the package provider.
  1397. _ACEOF
  1398. ac_status=$?
  1399. fi
  1400. if test "$ac_init_help" = "recursive"; then
  1401. # If there are subdirs, report their specific --help.
  1402. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1403. test -d "$ac_dir" ||
  1404. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1405. continue
  1406. ac_builddir=.
  1407. case "$ac_dir" in
  1408. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1409. *)
  1410. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1411. # A ".." for each directory in $ac_dir_suffix.
  1412. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1413. case $ac_top_builddir_sub in
  1414. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1415. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1416. esac ;;
  1417. esac
  1418. ac_abs_top_builddir=$ac_pwd
  1419. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1420. # for backward compatibility:
  1421. ac_top_builddir=$ac_top_build_prefix
  1422. case $srcdir in
  1423. .) # We are building in place.
  1424. ac_srcdir=.
  1425. ac_top_srcdir=$ac_top_builddir_sub
  1426. ac_abs_top_srcdir=$ac_pwd ;;
  1427. [\\/]* | ?:[\\/]* ) # Absolute name.
  1428. ac_srcdir=$srcdir$ac_dir_suffix;
  1429. ac_top_srcdir=$srcdir
  1430. ac_abs_top_srcdir=$srcdir ;;
  1431. *) # Relative name.
  1432. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1433. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1434. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1435. esac
  1436. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1437. cd "$ac_dir" || { ac_status=$?; continue; }
  1438. # Check for guested configure.
  1439. if test -f "$ac_srcdir/configure.gnu"; then
  1440. echo &&
  1441. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1442. elif test -f "$ac_srcdir/configure"; then
  1443. echo &&
  1444. $SHELL "$ac_srcdir/configure" --help=recursive
  1445. else
  1446. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1447. fi || ac_status=$?
  1448. cd "$ac_pwd" || { ac_status=$?; break; }
  1449. done
  1450. fi
  1451. test -n "$ac_init_help" && exit $ac_status
  1452. if $ac_init_version; then
  1453. cat <<\_ACEOF
  1454. package-unused configure version-unused
  1455. generated by GNU Autoconf 2.69
  1456. Copyright (C) 2012 Free Software Foundation, Inc.
  1457. This configure script is free software; the Free Software Foundation
  1458. gives unlimited permission to copy, distribute and modify it.
  1459. _ACEOF
  1460. exit
  1461. fi
  1462. ## ------------------------ ##
  1463. ## Autoconf initialization. ##
  1464. ## ------------------------ ##
  1465. # ac_fn_c_try_compile LINENO
  1466. # --------------------------
  1467. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1468. ac_fn_c_try_compile ()
  1469. {
  1470. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1471. rm -f conftest.$ac_objext
  1472. if { { ac_try="$ac_compile"
  1473. case "(($ac_try" in
  1474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1475. *) ac_try_echo=$ac_try;;
  1476. esac
  1477. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1478. $as_echo "$ac_try_echo"; } >&5
  1479. (eval "$ac_compile") 2>conftest.err
  1480. ac_status=$?
  1481. if test -s conftest.err; then
  1482. grep -v '^ *+' conftest.err >conftest.er1
  1483. cat conftest.er1 >&5
  1484. mv -f conftest.er1 conftest.err
  1485. fi
  1486. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1487. test $ac_status = 0; } && {
  1488. test -z "$ac_c_werror_flag" ||
  1489. test ! -s conftest.err
  1490. } && test -s conftest.$ac_objext; then :
  1491. ac_retval=0
  1492. else
  1493. $as_echo "$as_me: failed program was:" >&5
  1494. sed 's/^/| /' conftest.$ac_ext >&5
  1495. ac_retval=1
  1496. fi
  1497. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1498. as_fn_set_status $ac_retval
  1499. } # ac_fn_c_try_compile
  1500. # ac_fn_c_try_link LINENO
  1501. # -----------------------
  1502. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1503. ac_fn_c_try_link ()
  1504. {
  1505. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1506. rm -f conftest.$ac_objext conftest$ac_exeext
  1507. if { { ac_try="$ac_link"
  1508. case "(($ac_try" in
  1509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1510. *) ac_try_echo=$ac_try;;
  1511. esac
  1512. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1513. $as_echo "$ac_try_echo"; } >&5
  1514. (eval "$ac_link") 2>conftest.err
  1515. ac_status=$?
  1516. if test -s conftest.err; then
  1517. grep -v '^ *+' conftest.err >conftest.er1
  1518. cat conftest.er1 >&5
  1519. mv -f conftest.er1 conftest.err
  1520. fi
  1521. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1522. test $ac_status = 0; } && {
  1523. test -z "$ac_c_werror_flag" ||
  1524. test ! -s conftest.err
  1525. } && test -s conftest$ac_exeext && {
  1526. test "$cross_compiling" = yes ||
  1527. test -x conftest$ac_exeext
  1528. }; then :
  1529. ac_retval=0
  1530. else
  1531. $as_echo "$as_me: failed program was:" >&5
  1532. sed 's/^/| /' conftest.$ac_ext >&5
  1533. ac_retval=1
  1534. fi
  1535. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1536. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1537. # interfere with the next link command; also delete a directory that is
  1538. # left behind by Apple's compiler. We do this before executing the actions.
  1539. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1540. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1541. as_fn_set_status $ac_retval
  1542. } # ac_fn_c_try_link
  1543. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1544. # -------------------------------------------------------
  1545. # Tests whether HEADER exists and can be compiled using the include files in
  1546. # INCLUDES, setting the cache variable VAR accordingly.
  1547. ac_fn_c_check_header_compile ()
  1548. {
  1549. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1551. $as_echo_n "checking for $2... " >&6; }
  1552. if eval \${$3+:} false; then :
  1553. $as_echo_n "(cached) " >&6
  1554. else
  1555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1556. /* end confdefs.h. */
  1557. $4
  1558. #include <$2>
  1559. _ACEOF
  1560. if ac_fn_c_try_compile "$LINENO"; then :
  1561. eval "$3=yes"
  1562. else
  1563. eval "$3=no"
  1564. fi
  1565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1566. fi
  1567. eval ac_res=\$$3
  1568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1569. $as_echo "$ac_res" >&6; }
  1570. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1571. } # ac_fn_c_check_header_compile
  1572. # ac_fn_c_try_cpp LINENO
  1573. # ----------------------
  1574. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1575. ac_fn_c_try_cpp ()
  1576. {
  1577. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1578. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1579. case "(($ac_try" in
  1580. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1581. *) ac_try_echo=$ac_try;;
  1582. esac
  1583. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1584. $as_echo "$ac_try_echo"; } >&5
  1585. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1586. ac_status=$?
  1587. if test -s conftest.err; then
  1588. grep -v '^ *+' conftest.err >conftest.er1
  1589. cat conftest.er1 >&5
  1590. mv -f conftest.er1 conftest.err
  1591. fi
  1592. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1593. test $ac_status = 0; } > conftest.i && {
  1594. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1595. test ! -s conftest.err
  1596. }; then :
  1597. ac_retval=0
  1598. else
  1599. $as_echo "$as_me: failed program was:" >&5
  1600. sed 's/^/| /' conftest.$ac_ext >&5
  1601. ac_retval=1
  1602. fi
  1603. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1604. as_fn_set_status $ac_retval
  1605. } # ac_fn_c_try_cpp
  1606. # ac_fn_c_try_run LINENO
  1607. # ----------------------
  1608. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1609. # that executables *can* be run.
  1610. ac_fn_c_try_run ()
  1611. {
  1612. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1613. if { { ac_try="$ac_link"
  1614. case "(($ac_try" in
  1615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1616. *) ac_try_echo=$ac_try;;
  1617. esac
  1618. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1619. $as_echo "$ac_try_echo"; } >&5
  1620. (eval "$ac_link") 2>&5
  1621. ac_status=$?
  1622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1623. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1624. { { case "(($ac_try" in
  1625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1626. *) ac_try_echo=$ac_try;;
  1627. esac
  1628. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1629. $as_echo "$ac_try_echo"; } >&5
  1630. (eval "$ac_try") 2>&5
  1631. ac_status=$?
  1632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1633. test $ac_status = 0; }; }; then :
  1634. ac_retval=0
  1635. else
  1636. $as_echo "$as_me: program exited with status $ac_status" >&5
  1637. $as_echo "$as_me: failed program was:" >&5
  1638. sed 's/^/| /' conftest.$ac_ext >&5
  1639. ac_retval=$ac_status
  1640. fi
  1641. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1642. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1643. as_fn_set_status $ac_retval
  1644. } # ac_fn_c_try_run
  1645. # ac_fn_c_check_func LINENO FUNC VAR
  1646. # ----------------------------------
  1647. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1648. ac_fn_c_check_func ()
  1649. {
  1650. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1652. $as_echo_n "checking for $2... " >&6; }
  1653. if eval \${$3+:} false; then :
  1654. $as_echo_n "(cached) " >&6
  1655. else
  1656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1657. /* end confdefs.h. */
  1658. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1659. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1660. #define $2 innocuous_$2
  1661. /* System header to define __stub macros and hopefully few prototypes,
  1662. which can conflict with char $2 (); below.
  1663. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1664. <limits.h> exists even on freestanding compilers. */
  1665. #ifdef __STDC__
  1666. # include <limits.h>
  1667. #else
  1668. # include <assert.h>
  1669. #endif
  1670. #undef $2
  1671. /* Override any GCC internal prototype to avoid an error.
  1672. Use char because int might match the return type of a GCC
  1673. builtin and then its argument prototype would still apply. */
  1674. #ifdef __cplusplus
  1675. extern "C"
  1676. #endif
  1677. char $2 ();
  1678. /* The GNU C library defines this for functions which it implements
  1679. to always fail with ENOSYS. Some functions are actually named
  1680. something starting with __ and the normal name is an alias. */
  1681. #if defined __stub_$2 || defined __stub___$2
  1682. choke me
  1683. #endif
  1684. int
  1685. main ()
  1686. {
  1687. return $2 ();
  1688. ;
  1689. return 0;
  1690. }
  1691. _ACEOF
  1692. if ac_fn_c_try_link "$LINENO"; then :
  1693. eval "$3=yes"
  1694. else
  1695. eval "$3=no"
  1696. fi
  1697. rm -f core conftest.err conftest.$ac_objext \
  1698. conftest$ac_exeext conftest.$ac_ext
  1699. fi
  1700. eval ac_res=\$$3
  1701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1702. $as_echo "$ac_res" >&6; }
  1703. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1704. } # ac_fn_c_check_func
  1705. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1706. # -------------------------------------------------------
  1707. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1708. # the include files in INCLUDES and setting the cache variable VAR
  1709. # accordingly.
  1710. ac_fn_c_check_header_mongrel ()
  1711. {
  1712. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1713. if eval \${$3+:} false; then :
  1714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1715. $as_echo_n "checking for $2... " >&6; }
  1716. if eval \${$3+:} false; then :
  1717. $as_echo_n "(cached) " >&6
  1718. fi
  1719. eval ac_res=\$$3
  1720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1721. $as_echo "$ac_res" >&6; }
  1722. else
  1723. # Is the header compilable?
  1724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1725. $as_echo_n "checking $2 usability... " >&6; }
  1726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1727. /* end confdefs.h. */
  1728. $4
  1729. #include <$2>
  1730. _ACEOF
  1731. if ac_fn_c_try_compile "$LINENO"; then :
  1732. ac_header_compiler=yes
  1733. else
  1734. ac_header_compiler=no
  1735. fi
  1736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1738. $as_echo "$ac_header_compiler" >&6; }
  1739. # Is the header present?
  1740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1741. $as_echo_n "checking $2 presence... " >&6; }
  1742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1743. /* end confdefs.h. */
  1744. #include <$2>
  1745. _ACEOF
  1746. if ac_fn_c_try_cpp "$LINENO"; then :
  1747. ac_header_preproc=yes
  1748. else
  1749. ac_header_preproc=no
  1750. fi
  1751. rm -f conftest.err conftest.i conftest.$ac_ext
  1752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1753. $as_echo "$ac_header_preproc" >&6; }
  1754. # So? What about this header?
  1755. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1756. yes:no: )
  1757. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1758. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1759. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1760. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1761. ;;
  1762. no:yes:* )
  1763. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1764. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1766. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1768. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1769. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1770. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1772. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1773. ;;
  1774. esac
  1775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1776. $as_echo_n "checking for $2... " >&6; }
  1777. if eval \${$3+:} false; then :
  1778. $as_echo_n "(cached) " >&6
  1779. else
  1780. eval "$3=\$ac_header_compiler"
  1781. fi
  1782. eval ac_res=\$$3
  1783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1784. $as_echo "$ac_res" >&6; }
  1785. fi
  1786. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1787. } # ac_fn_c_check_header_mongrel
  1788. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1789. # ----------------------------------------------------
  1790. # Tries to find if the field MEMBER exists in type AGGR, after including
  1791. # INCLUDES, setting cache variable VAR accordingly.
  1792. ac_fn_c_check_member ()
  1793. {
  1794. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1796. $as_echo_n "checking for $2.$3... " >&6; }
  1797. if eval \${$4+:} false; then :
  1798. $as_echo_n "(cached) " >&6
  1799. else
  1800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1801. /* end confdefs.h. */
  1802. $5
  1803. int
  1804. main ()
  1805. {
  1806. static $2 ac_aggr;
  1807. if (ac_aggr.$3)
  1808. return 0;
  1809. ;
  1810. return 0;
  1811. }
  1812. _ACEOF
  1813. if ac_fn_c_try_compile "$LINENO"; then :
  1814. eval "$4=yes"
  1815. else
  1816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1817. /* end confdefs.h. */
  1818. $5
  1819. int
  1820. main ()
  1821. {
  1822. static $2 ac_aggr;
  1823. if (sizeof ac_aggr.$3)
  1824. return 0;
  1825. ;
  1826. return 0;
  1827. }
  1828. _ACEOF
  1829. if ac_fn_c_try_compile "$LINENO"; then :
  1830. eval "$4=yes"
  1831. else
  1832. eval "$4=no"
  1833. fi
  1834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1835. fi
  1836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1837. fi
  1838. eval ac_res=\$$4
  1839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1840. $as_echo "$ac_res" >&6; }
  1841. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1842. } # ac_fn_c_check_member
  1843. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1844. # -------------------------------------------
  1845. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1846. # variable VAR accordingly.
  1847. ac_fn_c_check_type ()
  1848. {
  1849. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1851. $as_echo_n "checking for $2... " >&6; }
  1852. if eval \${$3+:} false; then :
  1853. $as_echo_n "(cached) " >&6
  1854. else
  1855. eval "$3=no"
  1856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1857. /* end confdefs.h. */
  1858. $4
  1859. int
  1860. main ()
  1861. {
  1862. if (sizeof ($2))
  1863. return 0;
  1864. ;
  1865. return 0;
  1866. }
  1867. _ACEOF
  1868. if ac_fn_c_try_compile "$LINENO"; then :
  1869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1870. /* end confdefs.h. */
  1871. $4
  1872. int
  1873. main ()
  1874. {
  1875. if (sizeof (($2)))
  1876. return 0;
  1877. ;
  1878. return 0;
  1879. }
  1880. _ACEOF
  1881. if ac_fn_c_try_compile "$LINENO"; then :
  1882. else
  1883. eval "$3=yes"
  1884. fi
  1885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1886. fi
  1887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1888. fi
  1889. eval ac_res=\$$3
  1890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1891. $as_echo "$ac_res" >&6; }
  1892. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1893. } # ac_fn_c_check_type
  1894. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1895. # --------------------------------------------
  1896. # Tries to find the compile-time value of EXPR in a program that includes
  1897. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1898. # computed
  1899. ac_fn_c_compute_int ()
  1900. {
  1901. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1902. if test "$cross_compiling" = yes; then
  1903. # Depending upon the size, compute the lo and hi bounds.
  1904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1905. /* end confdefs.h. */
  1906. $4
  1907. int
  1908. main ()
  1909. {
  1910. static int test_array [1 - 2 * !(($2) >= 0)];
  1911. test_array [0] = 0;
  1912. return test_array [0];
  1913. ;
  1914. return 0;
  1915. }
  1916. _ACEOF
  1917. if ac_fn_c_try_compile "$LINENO"; then :
  1918. ac_lo=0 ac_mid=0
  1919. while :; do
  1920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1921. /* end confdefs.h. */
  1922. $4
  1923. int
  1924. main ()
  1925. {
  1926. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1927. test_array [0] = 0;
  1928. return test_array [0];
  1929. ;
  1930. return 0;
  1931. }
  1932. _ACEOF
  1933. if ac_fn_c_try_compile "$LINENO"; then :
  1934. ac_hi=$ac_mid; break
  1935. else
  1936. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1937. if test $ac_lo -le $ac_mid; then
  1938. ac_lo= ac_hi=
  1939. break
  1940. fi
  1941. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1942. fi
  1943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1944. done
  1945. else
  1946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1947. /* end confdefs.h. */
  1948. $4
  1949. int
  1950. main ()
  1951. {
  1952. static int test_array [1 - 2 * !(($2) < 0)];
  1953. test_array [0] = 0;
  1954. return test_array [0];
  1955. ;
  1956. return 0;
  1957. }
  1958. _ACEOF
  1959. if ac_fn_c_try_compile "$LINENO"; then :
  1960. ac_hi=-1 ac_mid=-1
  1961. while :; do
  1962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1963. /* end confdefs.h. */
  1964. $4
  1965. int
  1966. main ()
  1967. {
  1968. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1969. test_array [0] = 0;
  1970. return test_array [0];
  1971. ;
  1972. return 0;
  1973. }
  1974. _ACEOF
  1975. if ac_fn_c_try_compile "$LINENO"; then :
  1976. ac_lo=$ac_mid; break
  1977. else
  1978. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1979. if test $ac_mid -le $ac_hi; then
  1980. ac_lo= ac_hi=
  1981. break
  1982. fi
  1983. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1984. fi
  1985. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1986. done
  1987. else
  1988. ac_lo= ac_hi=
  1989. fi
  1990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1991. fi
  1992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1993. # Binary search between lo and hi bounds.
  1994. while test "x$ac_lo" != "x$ac_hi"; do
  1995. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1997. /* end confdefs.h. */
  1998. $4
  1999. int
  2000. main ()
  2001. {
  2002. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2003. test_array [0] = 0;
  2004. return test_array [0];
  2005. ;
  2006. return 0;
  2007. }
  2008. _ACEOF
  2009. if ac_fn_c_try_compile "$LINENO"; then :
  2010. ac_hi=$ac_mid
  2011. else
  2012. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2013. fi
  2014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2015. done
  2016. case $ac_lo in #((
  2017. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2018. '') ac_retval=1 ;;
  2019. esac
  2020. else
  2021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2022. /* end confdefs.h. */
  2023. $4
  2024. static long int longval () { return $2; }
  2025. static unsigned long int ulongval () { return $2; }
  2026. #include <stdio.h>
  2027. #include <stdlib.h>
  2028. int
  2029. main ()
  2030. {
  2031. FILE *f = fopen ("conftest.val", "w");
  2032. if (! f)
  2033. return 1;
  2034. if (($2) < 0)
  2035. {
  2036. long int i = longval ();
  2037. if (i != ($2))
  2038. return 1;
  2039. fprintf (f, "%ld", i);
  2040. }
  2041. else
  2042. {
  2043. unsigned long int i = ulongval ();
  2044. if (i != ($2))
  2045. return 1;
  2046. fprintf (f, "%lu", i);
  2047. }
  2048. /* Do not output a trailing newline, as this causes \r\n confusion
  2049. on some platforms. */
  2050. return ferror (f) || fclose (f) != 0;
  2051. ;
  2052. return 0;
  2053. }
  2054. _ACEOF
  2055. if ac_fn_c_try_run "$LINENO"; then :
  2056. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2057. else
  2058. ac_retval=1
  2059. fi
  2060. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2061. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2062. rm -f conftest.val
  2063. fi
  2064. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2065. as_fn_set_status $ac_retval
  2066. } # ac_fn_c_compute_int
  2067. cat >config.log <<_ACEOF
  2068. This file contains any messages produced by compilers while
  2069. running configure, to aid debugging if configure makes a mistake.
  2070. It was created by package-unused $as_me version-unused, which was
  2071. generated by GNU Autoconf 2.69. Invocation command line was
  2072. $ $0 $@
  2073. _ACEOF
  2074. exec 5>>config.log
  2075. {
  2076. cat <<_ASUNAME
  2077. ## --------- ##
  2078. ## Platform. ##
  2079. ## --------- ##
  2080. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2081. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2082. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2083. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2084. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2085. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2086. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2087. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2088. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2089. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2090. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2091. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2092. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2093. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2094. _ASUNAME
  2095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2096. for as_dir in $PATH
  2097. do
  2098. IFS=$as_save_IFS
  2099. test -z "$as_dir" && as_dir=.
  2100. $as_echo "PATH: $as_dir"
  2101. done
  2102. IFS=$as_save_IFS
  2103. } >&5
  2104. cat >&5 <<_ACEOF
  2105. ## ----------- ##
  2106. ## Core tests. ##
  2107. ## ----------- ##
  2108. _ACEOF
  2109. # Keep a trace of the command line.
  2110. # Strip out --no-create and --no-recursion so they do not pile up.
  2111. # Strip out --silent because we don't want to record it for future runs.
  2112. # Also quote any args containing shell meta-characters.
  2113. # Make two passes to allow for proper duplicate-argument suppression.
  2114. ac_configure_args=
  2115. ac_configure_args0=
  2116. ac_configure_args1=
  2117. ac_must_keep_next=false
  2118. for ac_pass in 1 2
  2119. do
  2120. for ac_arg
  2121. do
  2122. case $ac_arg in
  2123. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2124. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2125. | -silent | --silent | --silen | --sile | --sil)
  2126. continue ;;
  2127. *\'*)
  2128. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2129. esac
  2130. case $ac_pass in
  2131. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2132. 2)
  2133. as_fn_append ac_configure_args1 " '$ac_arg'"
  2134. if test $ac_must_keep_next = true; then
  2135. ac_must_keep_next=false # Got value, back to normal.
  2136. else
  2137. case $ac_arg in
  2138. *=* | --config-cache | -C | -disable-* | --disable-* \
  2139. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2140. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2141. | -with-* | --with-* | -without-* | --without-* | --x)
  2142. case "$ac_configure_args0 " in
  2143. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2144. esac
  2145. ;;
  2146. -* ) ac_must_keep_next=true ;;
  2147. esac
  2148. fi
  2149. as_fn_append ac_configure_args " '$ac_arg'"
  2150. ;;
  2151. esac
  2152. done
  2153. done
  2154. { ac_configure_args0=; unset ac_configure_args0;}
  2155. { ac_configure_args1=; unset ac_configure_args1;}
  2156. # When interrupted or exit'd, cleanup temporary files, and complete
  2157. # config.log. We remove comments because anyway the quotes in there
  2158. # would cause problems or look ugly.
  2159. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2160. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2161. trap 'exit_status=$?
  2162. # Save into config.log some information that might help in debugging.
  2163. {
  2164. echo
  2165. $as_echo "## ---------------- ##
  2166. ## Cache variables. ##
  2167. ## ---------------- ##"
  2168. echo
  2169. # The following way of writing the cache mishandles newlines in values,
  2170. (
  2171. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2172. eval ac_val=\$$ac_var
  2173. case $ac_val in #(
  2174. *${as_nl}*)
  2175. case $ac_var in #(
  2176. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2177. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2178. esac
  2179. case $ac_var in #(
  2180. _ | IFS | as_nl) ;; #(
  2181. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2182. *) { eval $ac_var=; unset $ac_var;} ;;
  2183. esac ;;
  2184. esac
  2185. done
  2186. (set) 2>&1 |
  2187. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2188. *${as_nl}ac_space=\ *)
  2189. sed -n \
  2190. "s/'\''/'\''\\\\'\'''\''/g;
  2191. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2192. ;; #(
  2193. *)
  2194. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2195. ;;
  2196. esac |
  2197. sort
  2198. )
  2199. echo
  2200. $as_echo "## ----------------- ##
  2201. ## Output variables. ##
  2202. ## ----------------- ##"
  2203. echo
  2204. for ac_var in $ac_subst_vars
  2205. do
  2206. eval ac_val=\$$ac_var
  2207. case $ac_val in
  2208. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2209. esac
  2210. $as_echo "$ac_var='\''$ac_val'\''"
  2211. done | sort
  2212. echo
  2213. if test -n "$ac_subst_files"; then
  2214. $as_echo "## ------------------- ##
  2215. ## File substitutions. ##
  2216. ## ------------------- ##"
  2217. echo
  2218. for ac_var in $ac_subst_files
  2219. do
  2220. eval ac_val=\$$ac_var
  2221. case $ac_val in
  2222. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2223. esac
  2224. $as_echo "$ac_var='\''$ac_val'\''"
  2225. done | sort
  2226. echo
  2227. fi
  2228. if test -s confdefs.h; then
  2229. $as_echo "## ----------- ##
  2230. ## confdefs.h. ##
  2231. ## ----------- ##"
  2232. echo
  2233. cat confdefs.h
  2234. echo
  2235. fi
  2236. test "$ac_signal" != 0 &&
  2237. $as_echo "$as_me: caught signal $ac_signal"
  2238. $as_echo "$as_me: exit $exit_status"
  2239. } >&5
  2240. rm -f core *.core core.conftest.* &&
  2241. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2242. exit $exit_status
  2243. ' 0
  2244. for ac_signal in 1 2 13 15; do
  2245. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2246. done
  2247. ac_signal=0
  2248. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2249. rm -f -r conftest* confdefs.h
  2250. $as_echo "/* confdefs.h */" > confdefs.h
  2251. # Predefined preprocessor variables.
  2252. cat >>confdefs.h <<_ACEOF
  2253. #define PACKAGE_NAME "$PACKAGE_NAME"
  2254. _ACEOF
  2255. cat >>confdefs.h <<_ACEOF
  2256. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2257. _ACEOF
  2258. cat >>confdefs.h <<_ACEOF
  2259. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2260. _ACEOF
  2261. cat >>confdefs.h <<_ACEOF
  2262. #define PACKAGE_STRING "$PACKAGE_STRING"
  2263. _ACEOF
  2264. cat >>confdefs.h <<_ACEOF
  2265. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2266. _ACEOF
  2267. cat >>confdefs.h <<_ACEOF
  2268. #define PACKAGE_URL "$PACKAGE_URL"
  2269. _ACEOF
  2270. # Let the site file select an alternate cache file if it wants to.
  2271. # Prefer an explicitly selected file to automatically selected ones.
  2272. ac_site_file1=NONE
  2273. ac_site_file2=NONE
  2274. if test -n "$CONFIG_SITE"; then
  2275. # We do not want a PATH search for config.site.
  2276. case $CONFIG_SITE in #((
  2277. -*) ac_site_file1=./$CONFIG_SITE;;
  2278. */*) ac_site_file1=$CONFIG_SITE;;
  2279. *) ac_site_file1=./$CONFIG_SITE;;
  2280. esac
  2281. elif test "x$prefix" != xNONE; then
  2282. ac_site_file1=$prefix/share/config.site
  2283. ac_site_file2=$prefix/etc/config.site
  2284. else
  2285. ac_site_file1=$ac_default_prefix/share/config.site
  2286. ac_site_file2=$ac_default_prefix/etc/config.site
  2287. fi
  2288. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2289. do
  2290. test "x$ac_site_file" = xNONE && continue
  2291. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2292. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2293. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2294. sed 's/^/| /' "$ac_site_file" >&5
  2295. . "$ac_site_file" \
  2296. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2297. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2298. as_fn_error $? "failed to load site script $ac_site_file
  2299. See \`config.log' for more details" "$LINENO" 5; }
  2300. fi
  2301. done
  2302. if test -r "$cache_file"; then
  2303. # Some versions of bash will fail to source /dev/null (special files
  2304. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2305. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2306. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2307. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2308. case $cache_file in
  2309. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2310. *) . "./$cache_file";;
  2311. esac
  2312. fi
  2313. else
  2314. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2315. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2316. >$cache_file
  2317. fi
  2318. # Check that the precious variables saved in the cache have kept the same
  2319. # value.
  2320. ac_cache_corrupted=false
  2321. for ac_var in $ac_precious_vars; do
  2322. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2323. eval ac_new_set=\$ac_env_${ac_var}_set
  2324. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2325. eval ac_new_val=\$ac_env_${ac_var}_value
  2326. case $ac_old_set,$ac_new_set in
  2327. set,)
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2329. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2330. ac_cache_corrupted=: ;;
  2331. ,set)
  2332. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2333. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2334. ac_cache_corrupted=: ;;
  2335. ,);;
  2336. *)
  2337. if test "x$ac_old_val" != "x$ac_new_val"; then
  2338. # differences in whitespace do not lead to failure.
  2339. ac_old_val_w=`echo x $ac_old_val`
  2340. ac_new_val_w=`echo x $ac_new_val`
  2341. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2343. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2344. ac_cache_corrupted=:
  2345. else
  2346. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2347. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2348. eval $ac_var=\$ac_old_val
  2349. fi
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2351. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2352. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2353. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2354. fi;;
  2355. esac
  2356. # Pass precious variables to config.status.
  2357. if test "$ac_new_set" = set; then
  2358. case $ac_new_val in
  2359. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2360. *) ac_arg=$ac_var=$ac_new_val ;;
  2361. esac
  2362. case " $ac_configure_args " in
  2363. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2364. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2365. esac
  2366. fi
  2367. done
  2368. if $ac_cache_corrupted; then
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2370. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2371. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2372. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2373. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2374. fi
  2375. ## -------------------- ##
  2376. ## Main body of script. ##
  2377. ## -------------------- ##
  2378. ac_ext=c
  2379. ac_cpp='$CPP $CPPFLAGS'
  2380. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2381. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2382. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2383. ac_config_headers="$ac_config_headers config.h"
  2384. libtool_VERSION=21:0:0
  2385. # Default to --enable-multilib
  2386. # Check whether --enable-multilib was given.
  2387. if test "${enable_multilib+set}" = set; then :
  2388. enableval=$enable_multilib; case "$enableval" in
  2389. yes) multilib=yes ;;
  2390. no) multilib=no ;;
  2391. *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2392. esac
  2393. else
  2394. multilib=yes
  2395. fi
  2396. # We may get other options which we leave undocumented:
  2397. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2398. # See config-ml.in if you want the gory details.
  2399. if test "$srcdir" = "."; then
  2400. if test "$with_target_subdir" != "."; then
  2401. multi_basedir="$srcdir/$with_multisrctop../.."
  2402. else
  2403. multi_basedir="$srcdir/$with_multisrctop.."
  2404. fi
  2405. else
  2406. multi_basedir="$srcdir/.."
  2407. fi
  2408. # Even if the default multilib is not a cross compilation,
  2409. # it may be that some of the other multilibs are.
  2410. if test $cross_compiling = no && test $multilib = yes \
  2411. && test "x${with_multisubdir}" != x ; then
  2412. cross_compiling=maybe
  2413. fi
  2414. ac_config_commands="$ac_config_commands default-1"
  2415. ac_aux_dir=
  2416. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2417. if test -f "$ac_dir/install-sh"; then
  2418. ac_aux_dir=$ac_dir
  2419. ac_install_sh="$ac_aux_dir/install-sh -c"
  2420. break
  2421. elif test -f "$ac_dir/install.sh"; then
  2422. ac_aux_dir=$ac_dir
  2423. ac_install_sh="$ac_aux_dir/install.sh -c"
  2424. break
  2425. elif test -f "$ac_dir/shtool"; then
  2426. ac_aux_dir=$ac_dir
  2427. ac_install_sh="$ac_aux_dir/shtool install -c"
  2428. break
  2429. fi
  2430. done
  2431. if test -z "$ac_aux_dir"; then
  2432. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2433. fi
  2434. # These three variables are undocumented and unsupported,
  2435. # and are intended to be withdrawn in a future Autoconf release.
  2436. # They can cause serious problems if a builder's source tree is in a directory
  2437. # whose full name contains unusual characters.
  2438. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2439. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2440. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2441. # Make sure we can run config.sub.
  2442. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2443. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2445. $as_echo_n "checking build system type... " >&6; }
  2446. if ${ac_cv_build+:} false; then :
  2447. $as_echo_n "(cached) " >&6
  2448. else
  2449. ac_build_alias=$build_alias
  2450. test "x$ac_build_alias" = x &&
  2451. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2452. test "x$ac_build_alias" = x &&
  2453. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2454. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2455. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2456. fi
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2458. $as_echo "$ac_cv_build" >&6; }
  2459. case $ac_cv_build in
  2460. *-*-*) ;;
  2461. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2462. esac
  2463. build=$ac_cv_build
  2464. ac_save_IFS=$IFS; IFS='-'
  2465. set x $ac_cv_build
  2466. shift
  2467. build_cpu=$1
  2468. build_vendor=$2
  2469. shift; shift
  2470. # Remember, the first character of IFS is used to create $*,
  2471. # except with old shells:
  2472. build_os=$*
  2473. IFS=$ac_save_IFS
  2474. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2476. $as_echo_n "checking host system type... " >&6; }
  2477. if ${ac_cv_host+:} false; then :
  2478. $as_echo_n "(cached) " >&6
  2479. else
  2480. if test "x$host_alias" = x; then
  2481. ac_cv_host=$ac_cv_build
  2482. else
  2483. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2484. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2485. fi
  2486. fi
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2488. $as_echo "$ac_cv_host" >&6; }
  2489. case $ac_cv_host in
  2490. *-*-*) ;;
  2491. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2492. esac
  2493. host=$ac_cv_host
  2494. ac_save_IFS=$IFS; IFS='-'
  2495. set x $ac_cv_host
  2496. shift
  2497. host_cpu=$1
  2498. host_vendor=$2
  2499. shift; shift
  2500. # Remember, the first character of IFS is used to create $*,
  2501. # except with old shells:
  2502. host_os=$*
  2503. IFS=$ac_save_IFS
  2504. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2506. $as_echo_n "checking target system type... " >&6; }
  2507. if ${ac_cv_target+:} false; then :
  2508. $as_echo_n "(cached) " >&6
  2509. else
  2510. if test "x$target_alias" = x; then
  2511. ac_cv_target=$ac_cv_host
  2512. else
  2513. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2514. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2515. fi
  2516. fi
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2518. $as_echo "$ac_cv_target" >&6; }
  2519. case $ac_cv_target in
  2520. *-*-*) ;;
  2521. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2522. esac
  2523. target=$ac_cv_target
  2524. ac_save_IFS=$IFS; IFS='-'
  2525. set x $ac_cv_target
  2526. shift
  2527. target_cpu=$1
  2528. target_vendor=$2
  2529. shift; shift
  2530. # Remember, the first character of IFS is used to create $*,
  2531. # except with old shells:
  2532. target_os=$*
  2533. IFS=$ac_save_IFS
  2534. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2535. # The aliases save the names the user supplied, while $host etc.
  2536. # will get canonicalized.
  2537. test -n "$target_alias" &&
  2538. test "$program_prefix$program_suffix$program_transform_name" = \
  2539. NONENONEs,x,x, &&
  2540. program_prefix=${target_alias}-
  2541. target_alias=${target_alias-$host_alias}
  2542. am__api_version='1.15'
  2543. # Find a good install program. We prefer a C program (faster),
  2544. # so one script is as good as another. But avoid the broken or
  2545. # incompatible versions:
  2546. # SysV /etc/install, /usr/sbin/install
  2547. # SunOS /usr/etc/install
  2548. # IRIX /sbin/install
  2549. # AIX /bin/install
  2550. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2551. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2552. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2553. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2554. # OS/2's system install, which has a completely different semantic
  2555. # ./install, which can be erroneously created by make from ./install.sh.
  2556. # Reject install programs that cannot install multiple files.
  2557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2558. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2559. if test -z "$INSTALL"; then
  2560. if ${ac_cv_path_install+:} false; then :
  2561. $as_echo_n "(cached) " >&6
  2562. else
  2563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2564. for as_dir in $PATH
  2565. do
  2566. IFS=$as_save_IFS
  2567. test -z "$as_dir" && as_dir=.
  2568. # Account for people who put trailing slashes in PATH elements.
  2569. case $as_dir/ in #((
  2570. ./ | .// | /[cC]/* | \
  2571. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2572. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2573. /usr/ucb/* ) ;;
  2574. *)
  2575. # OSF1 and SCO ODT 3.0 have their own names for install.
  2576. # Don't use installbsd from OSF since it installs stuff as root
  2577. # by default.
  2578. for ac_prog in ginstall scoinst install; do
  2579. for ac_exec_ext in '' $ac_executable_extensions; do
  2580. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2581. if test $ac_prog = install &&
  2582. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2583. # AIX install. It has an incompatible calling convention.
  2584. :
  2585. elif test $ac_prog = install &&
  2586. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2587. # program-specific install script used by HP pwplus--don't use.
  2588. :
  2589. else
  2590. rm -rf conftest.one conftest.two conftest.dir
  2591. echo one > conftest.one
  2592. echo two > conftest.two
  2593. mkdir conftest.dir
  2594. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2595. test -s conftest.one && test -s conftest.two &&
  2596. test -s conftest.dir/conftest.one &&
  2597. test -s conftest.dir/conftest.two
  2598. then
  2599. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2600. break 3
  2601. fi
  2602. fi
  2603. fi
  2604. done
  2605. done
  2606. ;;
  2607. esac
  2608. done
  2609. IFS=$as_save_IFS
  2610. rm -rf conftest.one conftest.two conftest.dir
  2611. fi
  2612. if test "${ac_cv_path_install+set}" = set; then
  2613. INSTALL=$ac_cv_path_install
  2614. else
  2615. # As a last resort, use the slow shell script. Don't cache a
  2616. # value for INSTALL within a source directory, because that will
  2617. # break other packages using the cache if that directory is
  2618. # removed, or if the value is a relative name.
  2619. INSTALL=$ac_install_sh
  2620. fi
  2621. fi
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2623. $as_echo "$INSTALL" >&6; }
  2624. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2625. # It thinks the first close brace ends the variable substitution.
  2626. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2627. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2628. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2630. $as_echo_n "checking whether build environment is sane... " >&6; }
  2631. # Reject unsafe characters in $srcdir or the absolute working directory
  2632. # name. Accept space and tab only in the latter.
  2633. am_lf='
  2634. '
  2635. case `pwd` in
  2636. *[\\\"\#\$\&\'\`$am_lf]*)
  2637. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2638. esac
  2639. case $srcdir in
  2640. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2641. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2642. esac
  2643. # Do 'set' in a subshell so we don't clobber the current shell's
  2644. # arguments. Must try -L first in case configure is actually a
  2645. # symlink; some systems play weird games with the mod time of symlinks
  2646. # (eg FreeBSD returns the mod time of the symlink's containing
  2647. # directory).
  2648. if (
  2649. am_has_slept=no
  2650. for am_try in 1 2; do
  2651. echo "timestamp, slept: $am_has_slept" > conftest.file
  2652. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2653. if test "$*" = "X"; then
  2654. # -L didn't work.
  2655. set X `ls -t "$srcdir/configure" conftest.file`
  2656. fi
  2657. if test "$*" != "X $srcdir/configure conftest.file" \
  2658. && test "$*" != "X conftest.file $srcdir/configure"; then
  2659. # If neither matched, then we have a broken ls. This can happen
  2660. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2661. # broken ls alias from the environment. This has actually
  2662. # happened. Such a system could not be considered "sane".
  2663. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2664. alias in your environment" "$LINENO" 5
  2665. fi
  2666. if test "$2" = conftest.file || test $am_try -eq 2; then
  2667. break
  2668. fi
  2669. # Just in case.
  2670. sleep 1
  2671. am_has_slept=yes
  2672. done
  2673. test "$2" = conftest.file
  2674. )
  2675. then
  2676. # Ok.
  2677. :
  2678. else
  2679. as_fn_error $? "newly created file is older than distributed files!
  2680. Check your system clock" "$LINENO" 5
  2681. fi
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2683. $as_echo "yes" >&6; }
  2684. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2685. # generated files are strictly newer.
  2686. am_sleep_pid=
  2687. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2688. ( sleep 1 ) &
  2689. am_sleep_pid=$!
  2690. fi
  2691. rm -f conftest.file
  2692. test "$program_prefix" != NONE &&
  2693. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2694. # Use a double $ so make ignores it.
  2695. test "$program_suffix" != NONE &&
  2696. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2697. # Double any \ or $.
  2698. # By default was `s,x,x', remove it if useless.
  2699. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2700. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2701. # Expand $ac_aux_dir to an absolute path.
  2702. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2703. if test x"${MISSING+set}" != xset; then
  2704. case $am_aux_dir in
  2705. *\ * | *\ *)
  2706. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2707. *)
  2708. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2709. esac
  2710. fi
  2711. # Use eval to expand $SHELL
  2712. if eval "$MISSING --is-lightweight"; then
  2713. am_missing_run="$MISSING "
  2714. else
  2715. am_missing_run=
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2717. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2718. fi
  2719. if test x"${install_sh+set}" != xset; then
  2720. case $am_aux_dir in
  2721. *\ * | *\ *)
  2722. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2723. *)
  2724. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2725. esac
  2726. fi
  2727. # Installed binaries are usually stripped using 'strip' when the user
  2728. # run "make install-strip". However 'strip' might not be the right
  2729. # tool to use in cross-compilation environments, therefore Automake
  2730. # will honor the 'STRIP' environment variable to overrule this program.
  2731. if test "$cross_compiling" != no; then
  2732. if test -n "$ac_tool_prefix"; then
  2733. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2734. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2736. $as_echo_n "checking for $ac_word... " >&6; }
  2737. if ${ac_cv_prog_STRIP+:} false; then :
  2738. $as_echo_n "(cached) " >&6
  2739. else
  2740. if test -n "$STRIP"; then
  2741. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2742. else
  2743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2744. for as_dir in $PATH
  2745. do
  2746. IFS=$as_save_IFS
  2747. test -z "$as_dir" && as_dir=.
  2748. for ac_exec_ext in '' $ac_executable_extensions; do
  2749. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2750. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2752. break 2
  2753. fi
  2754. done
  2755. done
  2756. IFS=$as_save_IFS
  2757. fi
  2758. fi
  2759. STRIP=$ac_cv_prog_STRIP
  2760. if test -n "$STRIP"; then
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2762. $as_echo "$STRIP" >&6; }
  2763. else
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2765. $as_echo "no" >&6; }
  2766. fi
  2767. fi
  2768. if test -z "$ac_cv_prog_STRIP"; then
  2769. ac_ct_STRIP=$STRIP
  2770. # Extract the first word of "strip", so it can be a program name with args.
  2771. set dummy strip; ac_word=$2
  2772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2773. $as_echo_n "checking for $ac_word... " >&6; }
  2774. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2775. $as_echo_n "(cached) " >&6
  2776. else
  2777. if test -n "$ac_ct_STRIP"; then
  2778. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2779. else
  2780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2781. for as_dir in $PATH
  2782. do
  2783. IFS=$as_save_IFS
  2784. test -z "$as_dir" && as_dir=.
  2785. for ac_exec_ext in '' $ac_executable_extensions; do
  2786. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2787. ac_cv_prog_ac_ct_STRIP="strip"
  2788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2789. break 2
  2790. fi
  2791. done
  2792. done
  2793. IFS=$as_save_IFS
  2794. fi
  2795. fi
  2796. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2797. if test -n "$ac_ct_STRIP"; then
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2799. $as_echo "$ac_ct_STRIP" >&6; }
  2800. else
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2802. $as_echo "no" >&6; }
  2803. fi
  2804. if test "x$ac_ct_STRIP" = x; then
  2805. STRIP=":"
  2806. else
  2807. case $cross_compiling:$ac_tool_warned in
  2808. yes:)
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2810. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2811. ac_tool_warned=yes ;;
  2812. esac
  2813. STRIP=$ac_ct_STRIP
  2814. fi
  2815. else
  2816. STRIP="$ac_cv_prog_STRIP"
  2817. fi
  2818. fi
  2819. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2821. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2822. if test -z "$MKDIR_P"; then
  2823. if ${ac_cv_path_mkdir+:} false; then :
  2824. $as_echo_n "(cached) " >&6
  2825. else
  2826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2827. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2828. do
  2829. IFS=$as_save_IFS
  2830. test -z "$as_dir" && as_dir=.
  2831. for ac_prog in mkdir gmkdir; do
  2832. for ac_exec_ext in '' $ac_executable_extensions; do
  2833. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2834. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2835. 'mkdir (GNU coreutils) '* | \
  2836. 'mkdir (coreutils) '* | \
  2837. 'mkdir (fileutils) '4.1*)
  2838. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2839. break 3;;
  2840. esac
  2841. done
  2842. done
  2843. done
  2844. IFS=$as_save_IFS
  2845. fi
  2846. test -d ./--version && rmdir ./--version
  2847. if test "${ac_cv_path_mkdir+set}" = set; then
  2848. MKDIR_P="$ac_cv_path_mkdir -p"
  2849. else
  2850. # As a last resort, use the slow shell script. Don't cache a
  2851. # value for MKDIR_P within a source directory, because that will
  2852. # break other packages using the cache if that directory is
  2853. # removed, or if the value is a relative name.
  2854. MKDIR_P="$ac_install_sh -d"
  2855. fi
  2856. fi
  2857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2858. $as_echo "$MKDIR_P" >&6; }
  2859. for ac_prog in gawk mawk nawk awk
  2860. do
  2861. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2862. set dummy $ac_prog; ac_word=$2
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2864. $as_echo_n "checking for $ac_word... " >&6; }
  2865. if ${ac_cv_prog_AWK+:} false; then :
  2866. $as_echo_n "(cached) " >&6
  2867. else
  2868. if test -n "$AWK"; then
  2869. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2870. else
  2871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2872. for as_dir in $PATH
  2873. do
  2874. IFS=$as_save_IFS
  2875. test -z "$as_dir" && as_dir=.
  2876. for ac_exec_ext in '' $ac_executable_extensions; do
  2877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2878. ac_cv_prog_AWK="$ac_prog"
  2879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2880. break 2
  2881. fi
  2882. done
  2883. done
  2884. IFS=$as_save_IFS
  2885. fi
  2886. fi
  2887. AWK=$ac_cv_prog_AWK
  2888. if test -n "$AWK"; then
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2890. $as_echo "$AWK" >&6; }
  2891. else
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2893. $as_echo "no" >&6; }
  2894. fi
  2895. test -n "$AWK" && break
  2896. done
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2898. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2899. set x ${MAKE-make}
  2900. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2901. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2902. $as_echo_n "(cached) " >&6
  2903. else
  2904. cat >conftest.make <<\_ACEOF
  2905. SHELL = /bin/sh
  2906. all:
  2907. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2908. _ACEOF
  2909. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2910. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2911. *@@@%%%=?*=@@@%%%*)
  2912. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2913. *)
  2914. eval ac_cv_prog_make_${ac_make}_set=no;;
  2915. esac
  2916. rm -f conftest.make
  2917. fi
  2918. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2920. $as_echo "yes" >&6; }
  2921. SET_MAKE=
  2922. else
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2924. $as_echo "no" >&6; }
  2925. SET_MAKE="MAKE=${MAKE-make}"
  2926. fi
  2927. rm -rf .tst 2>/dev/null
  2928. mkdir .tst 2>/dev/null
  2929. if test -d .tst; then
  2930. am__leading_dot=.
  2931. else
  2932. am__leading_dot=_
  2933. fi
  2934. rmdir .tst 2>/dev/null
  2935. # Check whether --enable-silent-rules was given.
  2936. if test "${enable_silent_rules+set}" = set; then :
  2937. enableval=$enable_silent_rules;
  2938. fi
  2939. case $enable_silent_rules in # (((
  2940. yes) AM_DEFAULT_VERBOSITY=0;;
  2941. no) AM_DEFAULT_VERBOSITY=1;;
  2942. *) AM_DEFAULT_VERBOSITY=1;;
  2943. esac
  2944. am_make=${MAKE-make}
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2946. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2947. if ${am_cv_make_support_nested_variables+:} false; then :
  2948. $as_echo_n "(cached) " >&6
  2949. else
  2950. if $as_echo 'TRUE=$(BAR$(V))
  2951. BAR0=false
  2952. BAR1=true
  2953. V=1
  2954. am__doit:
  2955. @$(TRUE)
  2956. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2957. am_cv_make_support_nested_variables=yes
  2958. else
  2959. am_cv_make_support_nested_variables=no
  2960. fi
  2961. fi
  2962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2963. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2964. if test $am_cv_make_support_nested_variables = yes; then
  2965. AM_V='$(V)'
  2966. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2967. else
  2968. AM_V=$AM_DEFAULT_VERBOSITY
  2969. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2970. fi
  2971. AM_BACKSLASH='\'
  2972. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2973. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2974. # is not polluted with repeated "-I."
  2975. am__isrc=' -I$(srcdir)'
  2976. # test to see if srcdir already configured
  2977. if test -f $srcdir/config.status; then
  2978. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2979. fi
  2980. fi
  2981. # test whether we have cygpath
  2982. if test -z "$CYGPATH_W"; then
  2983. if (cygpath --version) >/dev/null 2>/dev/null; then
  2984. CYGPATH_W='cygpath -w'
  2985. else
  2986. CYGPATH_W=echo
  2987. fi
  2988. fi
  2989. # Define the identity of the package.
  2990. PACKAGE='libgo'
  2991. VERSION='version-unused'
  2992. # Some tools Automake needs.
  2993. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2994. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2995. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2996. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2997. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2998. # For better backward compatibility. To be removed once Automake 1.9.x
  2999. # dies out for good. For more background, see:
  3000. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3001. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3002. mkdir_p='$(MKDIR_P)'
  3003. # We need awk for the "check" target (and possibly the TAP driver). The
  3004. # system "awk" is bad on some platforms.
  3005. # Always define AMTAR for backward compatibility. Yes, it's still used
  3006. # in the wild :-( We should find a proper way to deprecate it ...
  3007. AMTAR='$${TAR-tar}'
  3008. # We'll loop over all known methods to create a tar archive until one works.
  3009. _am_tools='gnutar pax cpio none'
  3010. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3011. # POSIX will say in a future version that running "rm -f" with no argument
  3012. # is OK; and we want to be able to make that assumption in our Makefile
  3013. # recipes. So use an aggressive probe to check that the usage we want is
  3014. # actually supported "in the wild" to an acceptable degree.
  3015. # See automake bug#10828.
  3016. # To make any issue more visible, cause the running configure to be aborted
  3017. # by default if the 'rm' program in use doesn't match our expectations; the
  3018. # user can still override this though.
  3019. if rm -f && rm -fr && rm -rf; then : OK; else
  3020. cat >&2 <<'END'
  3021. Oops!
  3022. Your 'rm' program seems unable to run without file operands specified
  3023. on the command line, even when the '-f' option is present. This is contrary
  3024. to the behaviour of most rm programs out there, and not conforming with
  3025. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3026. Please tell bug-automake@gnu.org about your system, including the value
  3027. of your $PATH and any error possibly output before this message. This
  3028. can help us improve future automake versions.
  3029. END
  3030. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3031. echo 'Configuration will proceed anyway, since you have set the' >&2
  3032. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3033. echo >&2
  3034. else
  3035. cat >&2 <<'END'
  3036. Aborting the configuration process, to ensure you take notice of the issue.
  3037. You can download and install GNU coreutils to get an 'rm' implementation
  3038. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3039. If you want to complete the configuration process using your problematic
  3040. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3041. to "yes", and re-run configure.
  3042. END
  3043. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3044. fi
  3045. fi
  3046. ac_ext=c
  3047. ac_cpp='$CPP $CPPFLAGS'
  3048. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3049. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3050. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3051. if test -n "$ac_tool_prefix"; then
  3052. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3053. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3055. $as_echo_n "checking for $ac_word... " >&6; }
  3056. if ${ac_cv_prog_CC+:} false; then :
  3057. $as_echo_n "(cached) " >&6
  3058. else
  3059. if test -n "$CC"; then
  3060. ac_cv_prog_CC="$CC" # Let the user override the test.
  3061. else
  3062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3063. for as_dir in $PATH
  3064. do
  3065. IFS=$as_save_IFS
  3066. test -z "$as_dir" && as_dir=.
  3067. for ac_exec_ext in '' $ac_executable_extensions; do
  3068. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3069. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3070. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3071. break 2
  3072. fi
  3073. done
  3074. done
  3075. IFS=$as_save_IFS
  3076. fi
  3077. fi
  3078. CC=$ac_cv_prog_CC
  3079. if test -n "$CC"; then
  3080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3081. $as_echo "$CC" >&6; }
  3082. else
  3083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3084. $as_echo "no" >&6; }
  3085. fi
  3086. fi
  3087. if test -z "$ac_cv_prog_CC"; then
  3088. ac_ct_CC=$CC
  3089. # Extract the first word of "gcc", so it can be a program name with args.
  3090. set dummy gcc; ac_word=$2
  3091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3092. $as_echo_n "checking for $ac_word... " >&6; }
  3093. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3094. $as_echo_n "(cached) " >&6
  3095. else
  3096. if test -n "$ac_ct_CC"; then
  3097. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3098. else
  3099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3100. for as_dir in $PATH
  3101. do
  3102. IFS=$as_save_IFS
  3103. test -z "$as_dir" && as_dir=.
  3104. for ac_exec_ext in '' $ac_executable_extensions; do
  3105. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3106. ac_cv_prog_ac_ct_CC="gcc"
  3107. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3108. break 2
  3109. fi
  3110. done
  3111. done
  3112. IFS=$as_save_IFS
  3113. fi
  3114. fi
  3115. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3116. if test -n "$ac_ct_CC"; then
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3118. $as_echo "$ac_ct_CC" >&6; }
  3119. else
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3121. $as_echo "no" >&6; }
  3122. fi
  3123. if test "x$ac_ct_CC" = x; then
  3124. CC=""
  3125. else
  3126. case $cross_compiling:$ac_tool_warned in
  3127. yes:)
  3128. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3129. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3130. ac_tool_warned=yes ;;
  3131. esac
  3132. CC=$ac_ct_CC
  3133. fi
  3134. else
  3135. CC="$ac_cv_prog_CC"
  3136. fi
  3137. if test -z "$CC"; then
  3138. if test -n "$ac_tool_prefix"; then
  3139. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3140. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3142. $as_echo_n "checking for $ac_word... " >&6; }
  3143. if ${ac_cv_prog_CC+:} false; then :
  3144. $as_echo_n "(cached) " >&6
  3145. else
  3146. if test -n "$CC"; then
  3147. ac_cv_prog_CC="$CC" # Let the user override the test.
  3148. else
  3149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3150. for as_dir in $PATH
  3151. do
  3152. IFS=$as_save_IFS
  3153. test -z "$as_dir" && as_dir=.
  3154. for ac_exec_ext in '' $ac_executable_extensions; do
  3155. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3156. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3157. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3158. break 2
  3159. fi
  3160. done
  3161. done
  3162. IFS=$as_save_IFS
  3163. fi
  3164. fi
  3165. CC=$ac_cv_prog_CC
  3166. if test -n "$CC"; then
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3168. $as_echo "$CC" >&6; }
  3169. else
  3170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3171. $as_echo "no" >&6; }
  3172. fi
  3173. fi
  3174. fi
  3175. if test -z "$CC"; then
  3176. # Extract the first word of "cc", so it can be a program name with args.
  3177. set dummy cc; ac_word=$2
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3179. $as_echo_n "checking for $ac_word... " >&6; }
  3180. if ${ac_cv_prog_CC+:} false; then :
  3181. $as_echo_n "(cached) " >&6
  3182. else
  3183. if test -n "$CC"; then
  3184. ac_cv_prog_CC="$CC" # Let the user override the test.
  3185. else
  3186. ac_prog_rejected=no
  3187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3188. for as_dir in $PATH
  3189. do
  3190. IFS=$as_save_IFS
  3191. test -z "$as_dir" && as_dir=.
  3192. for ac_exec_ext in '' $ac_executable_extensions; do
  3193. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3194. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3195. ac_prog_rejected=yes
  3196. continue
  3197. fi
  3198. ac_cv_prog_CC="cc"
  3199. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3200. break 2
  3201. fi
  3202. done
  3203. done
  3204. IFS=$as_save_IFS
  3205. if test $ac_prog_rejected = yes; then
  3206. # We found a bogon in the path, so make sure we never use it.
  3207. set dummy $ac_cv_prog_CC
  3208. shift
  3209. if test $# != 0; then
  3210. # We chose a different compiler from the bogus one.
  3211. # However, it has the same basename, so the bogon will be chosen
  3212. # first if we set CC to just the basename; use the full file name.
  3213. shift
  3214. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3215. fi
  3216. fi
  3217. fi
  3218. fi
  3219. CC=$ac_cv_prog_CC
  3220. if test -n "$CC"; then
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3222. $as_echo "$CC" >&6; }
  3223. else
  3224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3225. $as_echo "no" >&6; }
  3226. fi
  3227. fi
  3228. if test -z "$CC"; then
  3229. if test -n "$ac_tool_prefix"; then
  3230. for ac_prog in cl.exe
  3231. do
  3232. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3233. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3235. $as_echo_n "checking for $ac_word... " >&6; }
  3236. if ${ac_cv_prog_CC+:} false; then :
  3237. $as_echo_n "(cached) " >&6
  3238. else
  3239. if test -n "$CC"; then
  3240. ac_cv_prog_CC="$CC" # Let the user override the test.
  3241. else
  3242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3243. for as_dir in $PATH
  3244. do
  3245. IFS=$as_save_IFS
  3246. test -z "$as_dir" && as_dir=.
  3247. for ac_exec_ext in '' $ac_executable_extensions; do
  3248. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3249. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3250. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3251. break 2
  3252. fi
  3253. done
  3254. done
  3255. IFS=$as_save_IFS
  3256. fi
  3257. fi
  3258. CC=$ac_cv_prog_CC
  3259. if test -n "$CC"; then
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3261. $as_echo "$CC" >&6; }
  3262. else
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3264. $as_echo "no" >&6; }
  3265. fi
  3266. test -n "$CC" && break
  3267. done
  3268. fi
  3269. if test -z "$CC"; then
  3270. ac_ct_CC=$CC
  3271. for ac_prog in cl.exe
  3272. do
  3273. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3274. set dummy $ac_prog; ac_word=$2
  3275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3276. $as_echo_n "checking for $ac_word... " >&6; }
  3277. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3278. $as_echo_n "(cached) " >&6
  3279. else
  3280. if test -n "$ac_ct_CC"; then
  3281. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3282. else
  3283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3284. for as_dir in $PATH
  3285. do
  3286. IFS=$as_save_IFS
  3287. test -z "$as_dir" && as_dir=.
  3288. for ac_exec_ext in '' $ac_executable_extensions; do
  3289. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3290. ac_cv_prog_ac_ct_CC="$ac_prog"
  3291. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3292. break 2
  3293. fi
  3294. done
  3295. done
  3296. IFS=$as_save_IFS
  3297. fi
  3298. fi
  3299. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3300. if test -n "$ac_ct_CC"; then
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3302. $as_echo "$ac_ct_CC" >&6; }
  3303. else
  3304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3305. $as_echo "no" >&6; }
  3306. fi
  3307. test -n "$ac_ct_CC" && break
  3308. done
  3309. if test "x$ac_ct_CC" = x; then
  3310. CC=""
  3311. else
  3312. case $cross_compiling:$ac_tool_warned in
  3313. yes:)
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3315. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3316. ac_tool_warned=yes ;;
  3317. esac
  3318. CC=$ac_ct_CC
  3319. fi
  3320. fi
  3321. fi
  3322. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3323. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3324. as_fn_error $? "no acceptable C compiler found in \$PATH
  3325. See \`config.log' for more details" "$LINENO" 5; }
  3326. # Provide some information about the compiler.
  3327. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3328. set X $ac_compile
  3329. ac_compiler=$2
  3330. for ac_option in --version -v -V -qversion; do
  3331. { { ac_try="$ac_compiler $ac_option >&5"
  3332. case "(($ac_try" in
  3333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3334. *) ac_try_echo=$ac_try;;
  3335. esac
  3336. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3337. $as_echo "$ac_try_echo"; } >&5
  3338. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3339. ac_status=$?
  3340. if test -s conftest.err; then
  3341. sed '10a\
  3342. ... rest of stderr output deleted ...
  3343. 10q' conftest.err >conftest.er1
  3344. cat conftest.er1 >&5
  3345. fi
  3346. rm -f conftest.er1 conftest.err
  3347. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3348. test $ac_status = 0; }
  3349. done
  3350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3351. /* end confdefs.h. */
  3352. int
  3353. main ()
  3354. {
  3355. ;
  3356. return 0;
  3357. }
  3358. _ACEOF
  3359. ac_clean_files_save=$ac_clean_files
  3360. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3361. # Try to create an executable without -o first, disregard a.out.
  3362. # It will help us diagnose broken compilers, and finding out an intuition
  3363. # of exeext.
  3364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3365. $as_echo_n "checking whether the C compiler works... " >&6; }
  3366. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3367. # The possible output files:
  3368. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3369. ac_rmfiles=
  3370. for ac_file in $ac_files
  3371. do
  3372. case $ac_file in
  3373. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3374. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3375. esac
  3376. done
  3377. rm -f $ac_rmfiles
  3378. if { { ac_try="$ac_link_default"
  3379. case "(($ac_try" in
  3380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3381. *) ac_try_echo=$ac_try;;
  3382. esac
  3383. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3384. $as_echo "$ac_try_echo"; } >&5
  3385. (eval "$ac_link_default") 2>&5
  3386. ac_status=$?
  3387. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3388. test $ac_status = 0; }; then :
  3389. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3390. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3391. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3392. # so that the user can short-circuit this test for compilers unknown to
  3393. # Autoconf.
  3394. for ac_file in $ac_files ''
  3395. do
  3396. test -f "$ac_file" || continue
  3397. case $ac_file in
  3398. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3399. ;;
  3400. [ab].out )
  3401. # We found the default executable, but exeext='' is most
  3402. # certainly right.
  3403. break;;
  3404. *.* )
  3405. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3406. then :; else
  3407. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3408. fi
  3409. # We set ac_cv_exeext here because the later test for it is not
  3410. # safe: cross compilers may not add the suffix if given an `-o'
  3411. # argument, so we may need to know it at that point already.
  3412. # Even if this section looks crufty: it has the advantage of
  3413. # actually working.
  3414. break;;
  3415. * )
  3416. break;;
  3417. esac
  3418. done
  3419. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3420. else
  3421. ac_file=''
  3422. fi
  3423. if test -z "$ac_file"; then :
  3424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3425. $as_echo "no" >&6; }
  3426. $as_echo "$as_me: failed program was:" >&5
  3427. sed 's/^/| /' conftest.$ac_ext >&5
  3428. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3429. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3430. as_fn_error 77 "C compiler cannot create executables
  3431. See \`config.log' for more details" "$LINENO" 5; }
  3432. else
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3434. $as_echo "yes" >&6; }
  3435. fi
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3437. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3439. $as_echo "$ac_file" >&6; }
  3440. ac_exeext=$ac_cv_exeext
  3441. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3442. ac_clean_files=$ac_clean_files_save
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3444. $as_echo_n "checking for suffix of executables... " >&6; }
  3445. if { { ac_try="$ac_link"
  3446. case "(($ac_try" in
  3447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3448. *) ac_try_echo=$ac_try;;
  3449. esac
  3450. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3451. $as_echo "$ac_try_echo"; } >&5
  3452. (eval "$ac_link") 2>&5
  3453. ac_status=$?
  3454. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3455. test $ac_status = 0; }; then :
  3456. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3457. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3458. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3459. # `rm'.
  3460. for ac_file in conftest.exe conftest conftest.*; do
  3461. test -f "$ac_file" || continue
  3462. case $ac_file in
  3463. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3464. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3465. break;;
  3466. * ) break;;
  3467. esac
  3468. done
  3469. else
  3470. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3471. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3472. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3473. See \`config.log' for more details" "$LINENO" 5; }
  3474. fi
  3475. rm -f conftest conftest$ac_cv_exeext
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3477. $as_echo "$ac_cv_exeext" >&6; }
  3478. rm -f conftest.$ac_ext
  3479. EXEEXT=$ac_cv_exeext
  3480. ac_exeext=$EXEEXT
  3481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3482. /* end confdefs.h. */
  3483. #include <stdio.h>
  3484. int
  3485. main ()
  3486. {
  3487. FILE *f = fopen ("conftest.out", "w");
  3488. return ferror (f) || fclose (f) != 0;
  3489. ;
  3490. return 0;
  3491. }
  3492. _ACEOF
  3493. ac_clean_files="$ac_clean_files conftest.out"
  3494. # Check that the compiler produces executables we can run. If not, either
  3495. # the compiler is broken, or we cross compile.
  3496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3497. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3498. if test "$cross_compiling" != yes; then
  3499. { { ac_try="$ac_link"
  3500. case "(($ac_try" in
  3501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3502. *) ac_try_echo=$ac_try;;
  3503. esac
  3504. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3505. $as_echo "$ac_try_echo"; } >&5
  3506. (eval "$ac_link") 2>&5
  3507. ac_status=$?
  3508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3509. test $ac_status = 0; }
  3510. if { ac_try='./conftest$ac_cv_exeext'
  3511. { { case "(($ac_try" in
  3512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3513. *) ac_try_echo=$ac_try;;
  3514. esac
  3515. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3516. $as_echo "$ac_try_echo"; } >&5
  3517. (eval "$ac_try") 2>&5
  3518. ac_status=$?
  3519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3520. test $ac_status = 0; }; }; then
  3521. cross_compiling=no
  3522. else
  3523. if test "$cross_compiling" = maybe; then
  3524. cross_compiling=yes
  3525. else
  3526. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3527. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3528. as_fn_error $? "cannot run C compiled programs.
  3529. If you meant to cross compile, use \`--host'.
  3530. See \`config.log' for more details" "$LINENO" 5; }
  3531. fi
  3532. fi
  3533. fi
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3535. $as_echo "$cross_compiling" >&6; }
  3536. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3537. ac_clean_files=$ac_clean_files_save
  3538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3539. $as_echo_n "checking for suffix of object files... " >&6; }
  3540. if ${ac_cv_objext+:} false; then :
  3541. $as_echo_n "(cached) " >&6
  3542. else
  3543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3544. /* end confdefs.h. */
  3545. int
  3546. main ()
  3547. {
  3548. ;
  3549. return 0;
  3550. }
  3551. _ACEOF
  3552. rm -f conftest.o conftest.obj
  3553. if { { ac_try="$ac_compile"
  3554. case "(($ac_try" in
  3555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3556. *) ac_try_echo=$ac_try;;
  3557. esac
  3558. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3559. $as_echo "$ac_try_echo"; } >&5
  3560. (eval "$ac_compile") 2>&5
  3561. ac_status=$?
  3562. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3563. test $ac_status = 0; }; then :
  3564. for ac_file in conftest.o conftest.obj conftest.*; do
  3565. test -f "$ac_file" || continue;
  3566. case $ac_file in
  3567. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3568. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3569. break;;
  3570. esac
  3571. done
  3572. else
  3573. $as_echo "$as_me: failed program was:" >&5
  3574. sed 's/^/| /' conftest.$ac_ext >&5
  3575. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3576. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3577. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3578. See \`config.log' for more details" "$LINENO" 5; }
  3579. fi
  3580. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3581. fi
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3583. $as_echo "$ac_cv_objext" >&6; }
  3584. OBJEXT=$ac_cv_objext
  3585. ac_objext=$OBJEXT
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3587. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3588. if ${ac_cv_c_compiler_gnu+:} false; then :
  3589. $as_echo_n "(cached) " >&6
  3590. else
  3591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3592. /* end confdefs.h. */
  3593. int
  3594. main ()
  3595. {
  3596. #ifndef __GNUC__
  3597. choke me
  3598. #endif
  3599. ;
  3600. return 0;
  3601. }
  3602. _ACEOF
  3603. if ac_fn_c_try_compile "$LINENO"; then :
  3604. ac_compiler_gnu=yes
  3605. else
  3606. ac_compiler_gnu=no
  3607. fi
  3608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3609. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3610. fi
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3612. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3613. if test $ac_compiler_gnu = yes; then
  3614. GCC=yes
  3615. else
  3616. GCC=
  3617. fi
  3618. ac_test_CFLAGS=${CFLAGS+set}
  3619. ac_save_CFLAGS=$CFLAGS
  3620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3621. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3622. if ${ac_cv_prog_cc_g+:} false; then :
  3623. $as_echo_n "(cached) " >&6
  3624. else
  3625. ac_save_c_werror_flag=$ac_c_werror_flag
  3626. ac_c_werror_flag=yes
  3627. ac_cv_prog_cc_g=no
  3628. CFLAGS="-g"
  3629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3630. /* end confdefs.h. */
  3631. int
  3632. main ()
  3633. {
  3634. ;
  3635. return 0;
  3636. }
  3637. _ACEOF
  3638. if ac_fn_c_try_compile "$LINENO"; then :
  3639. ac_cv_prog_cc_g=yes
  3640. else
  3641. CFLAGS=""
  3642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3643. /* end confdefs.h. */
  3644. int
  3645. main ()
  3646. {
  3647. ;
  3648. return 0;
  3649. }
  3650. _ACEOF
  3651. if ac_fn_c_try_compile "$LINENO"; then :
  3652. else
  3653. ac_c_werror_flag=$ac_save_c_werror_flag
  3654. CFLAGS="-g"
  3655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3656. /* end confdefs.h. */
  3657. int
  3658. main ()
  3659. {
  3660. ;
  3661. return 0;
  3662. }
  3663. _ACEOF
  3664. if ac_fn_c_try_compile "$LINENO"; then :
  3665. ac_cv_prog_cc_g=yes
  3666. fi
  3667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3668. fi
  3669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3670. fi
  3671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3672. ac_c_werror_flag=$ac_save_c_werror_flag
  3673. fi
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3675. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3676. if test "$ac_test_CFLAGS" = set; then
  3677. CFLAGS=$ac_save_CFLAGS
  3678. elif test $ac_cv_prog_cc_g = yes; then
  3679. if test "$GCC" = yes; then
  3680. CFLAGS="-g -O2"
  3681. else
  3682. CFLAGS="-g"
  3683. fi
  3684. else
  3685. if test "$GCC" = yes; then
  3686. CFLAGS="-O2"
  3687. else
  3688. CFLAGS=
  3689. fi
  3690. fi
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3692. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3693. if ${ac_cv_prog_cc_c89+:} false; then :
  3694. $as_echo_n "(cached) " >&6
  3695. else
  3696. ac_cv_prog_cc_c89=no
  3697. ac_save_CC=$CC
  3698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3699. /* end confdefs.h. */
  3700. #include <stdarg.h>
  3701. #include <stdio.h>
  3702. struct stat;
  3703. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3704. struct buf { int x; };
  3705. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3706. static char *e (p, i)
  3707. char **p;
  3708. int i;
  3709. {
  3710. return p[i];
  3711. }
  3712. static char *f (char * (*g) (char **, int), char **p, ...)
  3713. {
  3714. char *s;
  3715. va_list v;
  3716. va_start (v,p);
  3717. s = g (p, va_arg (v,int));
  3718. va_end (v);
  3719. return s;
  3720. }
  3721. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3722. function prototypes and stuff, but not '\xHH' hex character constants.
  3723. These don't provoke an error unfortunately, instead are silently treated
  3724. as 'x'. The following induces an error, until -std is added to get
  3725. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3726. array size at least. It's necessary to write '\x00'==0 to get something
  3727. that's true only with -std. */
  3728. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3729. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3730. inside strings and character constants. */
  3731. #define FOO(x) 'x'
  3732. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3733. int test (int i, double x);
  3734. struct s1 {int (*f) (int a);};
  3735. struct s2 {int (*f) (double a);};
  3736. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3737. int argc;
  3738. char **argv;
  3739. int
  3740. main ()
  3741. {
  3742. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3743. ;
  3744. return 0;
  3745. }
  3746. _ACEOF
  3747. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3748. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3749. do
  3750. CC="$ac_save_CC $ac_arg"
  3751. if ac_fn_c_try_compile "$LINENO"; then :
  3752. ac_cv_prog_cc_c89=$ac_arg
  3753. fi
  3754. rm -f core conftest.err conftest.$ac_objext
  3755. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3756. done
  3757. rm -f conftest.$ac_ext
  3758. CC=$ac_save_CC
  3759. fi
  3760. # AC_CACHE_VAL
  3761. case "x$ac_cv_prog_cc_c89" in
  3762. x)
  3763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3764. $as_echo "none needed" >&6; } ;;
  3765. xno)
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3767. $as_echo "unsupported" >&6; } ;;
  3768. *)
  3769. CC="$CC $ac_cv_prog_cc_c89"
  3770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3771. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3772. esac
  3773. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3774. fi
  3775. ac_ext=c
  3776. ac_cpp='$CPP $CPPFLAGS'
  3777. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3778. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3779. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3780. ac_ext=c
  3781. ac_cpp='$CPP $CPPFLAGS'
  3782. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3783. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3784. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3786. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3787. if ${am_cv_prog_cc_c_o+:} false; then :
  3788. $as_echo_n "(cached) " >&6
  3789. else
  3790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3791. /* end confdefs.h. */
  3792. int
  3793. main ()
  3794. {
  3795. ;
  3796. return 0;
  3797. }
  3798. _ACEOF
  3799. # Make sure it works both with $CC and with simple cc.
  3800. # Following AC_PROG_CC_C_O, we do the test twice because some
  3801. # compilers refuse to overwrite an existing .o file with -o,
  3802. # though they will create one.
  3803. am_cv_prog_cc_c_o=yes
  3804. for am_i in 1 2; do
  3805. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3806. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3807. ac_status=$?
  3808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3809. (exit $ac_status); } \
  3810. && test -f conftest2.$ac_objext; then
  3811. : OK
  3812. else
  3813. am_cv_prog_cc_c_o=no
  3814. break
  3815. fi
  3816. done
  3817. rm -f core conftest*
  3818. unset am_i
  3819. fi
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3821. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3822. if test "$am_cv_prog_cc_c_o" != yes; then
  3823. # Losing compiler, so override with the script.
  3824. # FIXME: It is wrong to rewrite CC.
  3825. # But if we don't then we get into trouble of one sort or another.
  3826. # A longer-term fix would be to have automake use am__CC in this case,
  3827. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3828. CC="$am_aux_dir/compile $CC"
  3829. fi
  3830. ac_ext=c
  3831. ac_cpp='$CPP $CPPFLAGS'
  3832. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3833. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3834. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3835. DEPDIR="${am__leading_dot}deps"
  3836. ac_config_commands="$ac_config_commands depfiles"
  3837. am_make=${MAKE-make}
  3838. cat > confinc << 'END'
  3839. am__doit:
  3840. @echo this is the am__doit target
  3841. .PHONY: am__doit
  3842. END
  3843. # If we don't find an include directive, just comment out the code.
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3845. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3846. am__include="#"
  3847. am__quote=
  3848. _am_result=none
  3849. # First try GNU make style include.
  3850. echo "include confinc" > confmf
  3851. # Ignore all kinds of additional output from 'make'.
  3852. case `$am_make -s -f confmf 2> /dev/null` in #(
  3853. *the\ am__doit\ target*)
  3854. am__include=include
  3855. am__quote=
  3856. _am_result=GNU
  3857. ;;
  3858. esac
  3859. # Now try BSD make style include.
  3860. if test "$am__include" = "#"; then
  3861. echo '.include "confinc"' > confmf
  3862. case `$am_make -s -f confmf 2> /dev/null` in #(
  3863. *the\ am__doit\ target*)
  3864. am__include=.include
  3865. am__quote="\""
  3866. _am_result=BSD
  3867. ;;
  3868. esac
  3869. fi
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3871. $as_echo "$_am_result" >&6; }
  3872. rm -f confinc confmf
  3873. # Check whether --enable-dependency-tracking was given.
  3874. if test "${enable_dependency_tracking+set}" = set; then :
  3875. enableval=$enable_dependency_tracking;
  3876. fi
  3877. if test "x$enable_dependency_tracking" != xno; then
  3878. am_depcomp="$ac_aux_dir/depcomp"
  3879. AMDEPBACKSLASH='\'
  3880. am__nodep='_no'
  3881. fi
  3882. if test "x$enable_dependency_tracking" != xno; then
  3883. AMDEP_TRUE=
  3884. AMDEP_FALSE='#'
  3885. else
  3886. AMDEP_TRUE='#'
  3887. AMDEP_FALSE=
  3888. fi
  3889. depcc="$CC" am_compiler_list=
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3891. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3892. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3893. $as_echo_n "(cached) " >&6
  3894. else
  3895. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3896. # We make a subdir and do the tests there. Otherwise we can end up
  3897. # making bogus files that we don't know about and never remove. For
  3898. # instance it was reported that on HP-UX the gcc test will end up
  3899. # making a dummy file named 'D' -- because '-MD' means "put the output
  3900. # in D".
  3901. rm -rf conftest.dir
  3902. mkdir conftest.dir
  3903. # Copy depcomp to subdir because otherwise we won't find it if we're
  3904. # using a relative directory.
  3905. cp "$am_depcomp" conftest.dir
  3906. cd conftest.dir
  3907. # We will build objects and dependencies in a subdirectory because
  3908. # it helps to detect inapplicable dependency modes. For instance
  3909. # both Tru64's cc and ICC support -MD to output dependencies as a
  3910. # side effect of compilation, but ICC will put the dependencies in
  3911. # the current directory while Tru64 will put them in the object
  3912. # directory.
  3913. mkdir sub
  3914. am_cv_CC_dependencies_compiler_type=none
  3915. if test "$am_compiler_list" = ""; then
  3916. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3917. fi
  3918. am__universal=false
  3919. case " $depcc " in #(
  3920. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3921. esac
  3922. for depmode in $am_compiler_list; do
  3923. # Setup a source with many dependencies, because some compilers
  3924. # like to wrap large dependency lists on column 80 (with \), and
  3925. # we should not choose a depcomp mode which is confused by this.
  3926. #
  3927. # We need to recreate these files for each test, as the compiler may
  3928. # overwrite some of them when testing with obscure command lines.
  3929. # This happens at least with the AIX C compiler.
  3930. : > sub/conftest.c
  3931. for i in 1 2 3 4 5 6; do
  3932. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3933. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3934. # Solaris 10 /bin/sh.
  3935. echo '/* dummy */' > sub/conftst$i.h
  3936. done
  3937. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3938. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3939. # mode. It turns out that the SunPro C++ compiler does not properly
  3940. # handle '-M -o', and we need to detect this. Also, some Intel
  3941. # versions had trouble with output in subdirs.
  3942. am__obj=sub/conftest.${OBJEXT-o}
  3943. am__minus_obj="-o $am__obj"
  3944. case $depmode in
  3945. gcc)
  3946. # This depmode causes a compiler race in universal mode.
  3947. test "$am__universal" = false || continue
  3948. ;;
  3949. nosideeffect)
  3950. # After this tag, mechanisms are not by side-effect, so they'll
  3951. # only be used when explicitly requested.
  3952. if test "x$enable_dependency_tracking" = xyes; then
  3953. continue
  3954. else
  3955. break
  3956. fi
  3957. ;;
  3958. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3959. # This compiler won't grok '-c -o', but also, the minuso test has
  3960. # not run yet. These depmodes are late enough in the game, and
  3961. # so weak that their functioning should not be impacted.
  3962. am__obj=conftest.${OBJEXT-o}
  3963. am__minus_obj=
  3964. ;;
  3965. none) break ;;
  3966. esac
  3967. if depmode=$depmode \
  3968. source=sub/conftest.c object=$am__obj \
  3969. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3970. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3971. >/dev/null 2>conftest.err &&
  3972. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3973. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3974. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3975. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3976. # icc doesn't choke on unknown options, it will just issue warnings
  3977. # or remarks (even with -Werror). So we grep stderr for any message
  3978. # that says an option was ignored or not supported.
  3979. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3980. # icc: Command line warning: ignoring option '-M'; no argument required
  3981. # The diagnosis changed in icc 8.0:
  3982. # icc: Command line remark: option '-MP' not supported
  3983. if (grep 'ignoring option' conftest.err ||
  3984. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3985. am_cv_CC_dependencies_compiler_type=$depmode
  3986. break
  3987. fi
  3988. fi
  3989. done
  3990. cd ..
  3991. rm -rf conftest.dir
  3992. else
  3993. am_cv_CC_dependencies_compiler_type=none
  3994. fi
  3995. fi
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3997. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3998. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3999. if
  4000. test "x$enable_dependency_tracking" != xno \
  4001. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4002. am__fastdepCC_TRUE=
  4003. am__fastdepCC_FALSE='#'
  4004. else
  4005. am__fastdepCC_TRUE='#'
  4006. am__fastdepCC_FALSE=
  4007. fi
  4008. ac_ext=go
  4009. ac_compile='$GOC -c $GOFLAGS conftest.$ac_ext >&5'
  4010. ac_link='$GOC -o conftest$ac_exeext $GOFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4011. ac_compiler_gnu=yes
  4012. if test -n "$ac_tool_prefix"; then
  4013. # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
  4014. set dummy ${ac_tool_prefix}gccgo; ac_word=$2
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4016. $as_echo_n "checking for $ac_word... " >&6; }
  4017. if ${ac_cv_prog_GOC+:} false; then :
  4018. $as_echo_n "(cached) " >&6
  4019. else
  4020. if test -n "$GOC"; then
  4021. ac_cv_prog_GOC="$GOC" # Let the user override the test.
  4022. else
  4023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4024. for as_dir in $PATH
  4025. do
  4026. IFS=$as_save_IFS
  4027. test -z "$as_dir" && as_dir=.
  4028. for ac_exec_ext in '' $ac_executable_extensions; do
  4029. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4030. ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
  4031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4032. break 2
  4033. fi
  4034. done
  4035. done
  4036. IFS=$as_save_IFS
  4037. fi
  4038. fi
  4039. GOC=$ac_cv_prog_GOC
  4040. if test -n "$GOC"; then
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
  4042. $as_echo "$GOC" >&6; }
  4043. else
  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4045. $as_echo "no" >&6; }
  4046. fi
  4047. fi
  4048. if test -z "$ac_cv_prog_GOC"; then
  4049. ac_ct_GOC=$GOC
  4050. # Extract the first word of "gccgo", so it can be a program name with args.
  4051. set dummy gccgo; ac_word=$2
  4052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4053. $as_echo_n "checking for $ac_word... " >&6; }
  4054. if ${ac_cv_prog_ac_ct_GOC+:} false; then :
  4055. $as_echo_n "(cached) " >&6
  4056. else
  4057. if test -n "$ac_ct_GOC"; then
  4058. ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
  4059. else
  4060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4061. for as_dir in $PATH
  4062. do
  4063. IFS=$as_save_IFS
  4064. test -z "$as_dir" && as_dir=.
  4065. for ac_exec_ext in '' $ac_executable_extensions; do
  4066. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4067. ac_cv_prog_ac_ct_GOC="gccgo"
  4068. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4069. break 2
  4070. fi
  4071. done
  4072. done
  4073. IFS=$as_save_IFS
  4074. fi
  4075. fi
  4076. ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
  4077. if test -n "$ac_ct_GOC"; then
  4078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
  4079. $as_echo "$ac_ct_GOC" >&6; }
  4080. else
  4081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4082. $as_echo "no" >&6; }
  4083. fi
  4084. if test "x$ac_ct_GOC" = x; then
  4085. GOC=""
  4086. else
  4087. case $cross_compiling:$ac_tool_warned in
  4088. yes:)
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4090. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4091. ac_tool_warned=yes ;;
  4092. esac
  4093. GOC=$ac_ct_GOC
  4094. fi
  4095. else
  4096. GOC="$ac_cv_prog_GOC"
  4097. fi
  4098. if test -z "$GOC"; then
  4099. if test -n "$ac_tool_prefix"; then
  4100. # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
  4101. set dummy ${ac_tool_prefix}gccgo; ac_word=$2
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4103. $as_echo_n "checking for $ac_word... " >&6; }
  4104. if ${ac_cv_prog_GOC+:} false; then :
  4105. $as_echo_n "(cached) " >&6
  4106. else
  4107. if test -n "$GOC"; then
  4108. ac_cv_prog_GOC="$GOC" # Let the user override the test.
  4109. else
  4110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4111. for as_dir in $PATH
  4112. do
  4113. IFS=$as_save_IFS
  4114. test -z "$as_dir" && as_dir=.
  4115. for ac_exec_ext in '' $ac_executable_extensions; do
  4116. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4117. ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
  4118. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4119. break 2
  4120. fi
  4121. done
  4122. done
  4123. IFS=$as_save_IFS
  4124. fi
  4125. fi
  4126. GOC=$ac_cv_prog_GOC
  4127. if test -n "$GOC"; then
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
  4129. $as_echo "$GOC" >&6; }
  4130. else
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4132. $as_echo "no" >&6; }
  4133. fi
  4134. fi
  4135. fi
  4136. if test -z "$GOC"; then
  4137. # Extract the first word of "gccgo", so it can be a program name with args.
  4138. set dummy gccgo; ac_word=$2
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4140. $as_echo_n "checking for $ac_word... " >&6; }
  4141. if ${ac_cv_prog_GOC+:} false; then :
  4142. $as_echo_n "(cached) " >&6
  4143. else
  4144. if test -n "$GOC"; then
  4145. ac_cv_prog_GOC="$GOC" # Let the user override the test.
  4146. else
  4147. ac_prog_rejected=no
  4148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4149. for as_dir in $PATH
  4150. do
  4151. IFS=$as_save_IFS
  4152. test -z "$as_dir" && as_dir=.
  4153. for ac_exec_ext in '' $ac_executable_extensions; do
  4154. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4155. if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
  4156. ac_prog_rejected=yes
  4157. continue
  4158. fi
  4159. ac_cv_prog_GOC="gccgo"
  4160. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4161. break 2
  4162. fi
  4163. done
  4164. done
  4165. IFS=$as_save_IFS
  4166. if test $ac_prog_rejected = yes; then
  4167. # We found a bogon in the path, so make sure we never use it.
  4168. set dummy $ac_cv_prog_GOC
  4169. shift
  4170. if test $# != 0; then
  4171. # We chose a different compiler from the bogus one.
  4172. # However, it has the same basename, so the bogon will be chosen
  4173. # first if we set GOC to just the basename; use the full file name.
  4174. shift
  4175. ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
  4176. fi
  4177. fi
  4178. fi
  4179. fi
  4180. GOC=$ac_cv_prog_GOC
  4181. if test -n "$GOC"; then
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
  4183. $as_echo "$GOC" >&6; }
  4184. else
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4186. $as_echo "no" >&6; }
  4187. fi
  4188. fi
  4189. # Provide some information about the compiler.
  4190. $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
  4191. set X $ac_compile
  4192. ac_compiler=$2
  4193. { { ac_try="$ac_compiler --version >&5"
  4194. case "(($ac_try" in
  4195. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4196. *) ac_try_echo=$ac_try;;
  4197. esac
  4198. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4199. $as_echo "$ac_try_echo"; } >&5
  4200. (eval "$ac_compiler --version >&5") 2>conftest.err
  4201. ac_status=$?
  4202. if test -s conftest.err; then
  4203. sed '10a\
  4204. ... rest of stderr output deleted ...
  4205. 10q' conftest.err >conftest.er1
  4206. cat conftest.er1 >&5
  4207. fi
  4208. rm -f conftest.er1 conftest.err
  4209. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4210. test $ac_status = 0; }
  4211. GOFLAGS="-g -O2"
  4212. ac_ext=c
  4213. ac_cpp='$CPP $CPPFLAGS'
  4214. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4215. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4216. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4217. # By default we simply use the C compiler to build assembly code.
  4218. test "${CCAS+set}" = set || CCAS=$CC
  4219. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4220. depcc="$CCAS" am_compiler_list=
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4222. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4223. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  4224. $as_echo_n "(cached) " >&6
  4225. else
  4226. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4227. # We make a subdir and do the tests there. Otherwise we can end up
  4228. # making bogus files that we don't know about and never remove. For
  4229. # instance it was reported that on HP-UX the gcc test will end up
  4230. # making a dummy file named 'D' -- because '-MD' means "put the output
  4231. # in D".
  4232. rm -rf conftest.dir
  4233. mkdir conftest.dir
  4234. # Copy depcomp to subdir because otherwise we won't find it if we're
  4235. # using a relative directory.
  4236. cp "$am_depcomp" conftest.dir
  4237. cd conftest.dir
  4238. # We will build objects and dependencies in a subdirectory because
  4239. # it helps to detect inapplicable dependency modes. For instance
  4240. # both Tru64's cc and ICC support -MD to output dependencies as a
  4241. # side effect of compilation, but ICC will put the dependencies in
  4242. # the current directory while Tru64 will put them in the object
  4243. # directory.
  4244. mkdir sub
  4245. am_cv_CCAS_dependencies_compiler_type=none
  4246. if test "$am_compiler_list" = ""; then
  4247. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4248. fi
  4249. am__universal=false
  4250. for depmode in $am_compiler_list; do
  4251. # Setup a source with many dependencies, because some compilers
  4252. # like to wrap large dependency lists on column 80 (with \), and
  4253. # we should not choose a depcomp mode which is confused by this.
  4254. #
  4255. # We need to recreate these files for each test, as the compiler may
  4256. # overwrite some of them when testing with obscure command lines.
  4257. # This happens at least with the AIX C compiler.
  4258. : > sub/conftest.c
  4259. for i in 1 2 3 4 5 6; do
  4260. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4261. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4262. # Solaris 10 /bin/sh.
  4263. echo '/* dummy */' > sub/conftst$i.h
  4264. done
  4265. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4266. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4267. # mode. It turns out that the SunPro C++ compiler does not properly
  4268. # handle '-M -o', and we need to detect this. Also, some Intel
  4269. # versions had trouble with output in subdirs.
  4270. am__obj=sub/conftest.${OBJEXT-o}
  4271. am__minus_obj="-o $am__obj"
  4272. case $depmode in
  4273. gcc)
  4274. # This depmode causes a compiler race in universal mode.
  4275. test "$am__universal" = false || continue
  4276. ;;
  4277. nosideeffect)
  4278. # After this tag, mechanisms are not by side-effect, so they'll
  4279. # only be used when explicitly requested.
  4280. if test "x$enable_dependency_tracking" = xyes; then
  4281. continue
  4282. else
  4283. break
  4284. fi
  4285. ;;
  4286. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4287. # This compiler won't grok '-c -o', but also, the minuso test has
  4288. # not run yet. These depmodes are late enough in the game, and
  4289. # so weak that their functioning should not be impacted.
  4290. am__obj=conftest.${OBJEXT-o}
  4291. am__minus_obj=
  4292. ;;
  4293. none) break ;;
  4294. esac
  4295. if depmode=$depmode \
  4296. source=sub/conftest.c object=$am__obj \
  4297. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4298. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4299. >/dev/null 2>conftest.err &&
  4300. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4301. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4302. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4303. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4304. # icc doesn't choke on unknown options, it will just issue warnings
  4305. # or remarks (even with -Werror). So we grep stderr for any message
  4306. # that says an option was ignored or not supported.
  4307. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4308. # icc: Command line warning: ignoring option '-M'; no argument required
  4309. # The diagnosis changed in icc 8.0:
  4310. # icc: Command line remark: option '-MP' not supported
  4311. if (grep 'ignoring option' conftest.err ||
  4312. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4313. am_cv_CCAS_dependencies_compiler_type=$depmode
  4314. break
  4315. fi
  4316. fi
  4317. done
  4318. cd ..
  4319. rm -rf conftest.dir
  4320. else
  4321. am_cv_CCAS_dependencies_compiler_type=none
  4322. fi
  4323. fi
  4324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4325. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4326. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4327. if
  4328. test "x$enable_dependency_tracking" != xno \
  4329. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4330. am__fastdepCCAS_TRUE=
  4331. am__fastdepCCAS_FALSE='#'
  4332. else
  4333. am__fastdepCCAS_TRUE='#'
  4334. am__fastdepCCAS_FALSE=
  4335. fi
  4336. case ${host} in
  4337. *-*-aix*)
  4338. # Check default architecture for FAT library creation
  4339. if test -z "`$CC -x c -E /dev/null -g3 -o - | grep 64BIT`" ; then
  4340. AIX_EXTRA_ARCH='64'
  4341. else
  4342. AIX_EXTRA_ARCH='32'
  4343. fi
  4344. ;;
  4345. esac
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  4347. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  4348. # Check whether --enable-maintainer-mode was given.
  4349. if test "${enable_maintainer_mode+set}" = set; then :
  4350. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  4351. else
  4352. USE_MAINTAINER_MODE=no
  4353. fi
  4354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  4355. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  4356. if test $USE_MAINTAINER_MODE = yes; then
  4357. MAINTAINER_MODE_TRUE=
  4358. MAINTAINER_MODE_FALSE='#'
  4359. else
  4360. MAINTAINER_MODE_TRUE='#'
  4361. MAINTAINER_MODE_FALSE=
  4362. fi
  4363. MAINT=$MAINTAINER_MODE_TRUE
  4364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4365. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4366. if ${ac_cv_path_SED+:} false; then :
  4367. $as_echo_n "(cached) " >&6
  4368. else
  4369. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4370. for ac_i in 1 2 3 4 5 6 7; do
  4371. ac_script="$ac_script$as_nl$ac_script"
  4372. done
  4373. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4374. { ac_script=; unset ac_script;}
  4375. if test -z "$SED"; then
  4376. ac_path_SED_found=false
  4377. # Loop through the user's path and test for each of PROGNAME-LIST
  4378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4379. for as_dir in $PATH
  4380. do
  4381. IFS=$as_save_IFS
  4382. test -z "$as_dir" && as_dir=.
  4383. for ac_prog in sed gsed; do
  4384. for ac_exec_ext in '' $ac_executable_extensions; do
  4385. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4386. as_fn_executable_p "$ac_path_SED" || continue
  4387. # Check for GNU ac_path_SED and select it if it is found.
  4388. # Check for GNU $ac_path_SED
  4389. case `"$ac_path_SED" --version 2>&1` in
  4390. *GNU*)
  4391. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4392. *)
  4393. ac_count=0
  4394. $as_echo_n 0123456789 >"conftest.in"
  4395. while :
  4396. do
  4397. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4398. mv "conftest.tmp" "conftest.in"
  4399. cp "conftest.in" "conftest.nl"
  4400. $as_echo '' >> "conftest.nl"
  4401. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4402. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4403. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4404. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4405. # Best one so far, save it but keep looking for a better one
  4406. ac_cv_path_SED="$ac_path_SED"
  4407. ac_path_SED_max=$ac_count
  4408. fi
  4409. # 10*(2^10) chars as input seems more than enough
  4410. test $ac_count -gt 10 && break
  4411. done
  4412. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4413. esac
  4414. $ac_path_SED_found && break 3
  4415. done
  4416. done
  4417. done
  4418. IFS=$as_save_IFS
  4419. if test -z "$ac_cv_path_SED"; then
  4420. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4421. fi
  4422. else
  4423. ac_cv_path_SED=$SED
  4424. fi
  4425. fi
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4427. $as_echo "$ac_cv_path_SED" >&6; }
  4428. SED="$ac_cv_path_SED"
  4429. rm -f conftest.sed
  4430. test -z "$SED" && SED=sed
  4431. Xsed="$SED -e 1s/^X//"
  4432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4433. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4434. if ${ac_cv_path_GREP+:} false; then :
  4435. $as_echo_n "(cached) " >&6
  4436. else
  4437. if test -z "$GREP"; then
  4438. ac_path_GREP_found=false
  4439. # Loop through the user's path and test for each of PROGNAME-LIST
  4440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4441. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4442. do
  4443. IFS=$as_save_IFS
  4444. test -z "$as_dir" && as_dir=.
  4445. for ac_prog in grep ggrep; do
  4446. for ac_exec_ext in '' $ac_executable_extensions; do
  4447. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4448. as_fn_executable_p "$ac_path_GREP" || continue
  4449. # Check for GNU ac_path_GREP and select it if it is found.
  4450. # Check for GNU $ac_path_GREP
  4451. case `"$ac_path_GREP" --version 2>&1` in
  4452. *GNU*)
  4453. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4454. *)
  4455. ac_count=0
  4456. $as_echo_n 0123456789 >"conftest.in"
  4457. while :
  4458. do
  4459. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4460. mv "conftest.tmp" "conftest.in"
  4461. cp "conftest.in" "conftest.nl"
  4462. $as_echo 'GREP' >> "conftest.nl"
  4463. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4464. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4465. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4466. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4467. # Best one so far, save it but keep looking for a better one
  4468. ac_cv_path_GREP="$ac_path_GREP"
  4469. ac_path_GREP_max=$ac_count
  4470. fi
  4471. # 10*(2^10) chars as input seems more than enough
  4472. test $ac_count -gt 10 && break
  4473. done
  4474. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4475. esac
  4476. $ac_path_GREP_found && break 3
  4477. done
  4478. done
  4479. done
  4480. IFS=$as_save_IFS
  4481. if test -z "$ac_cv_path_GREP"; then
  4482. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4483. fi
  4484. else
  4485. ac_cv_path_GREP=$GREP
  4486. fi
  4487. fi
  4488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4489. $as_echo "$ac_cv_path_GREP" >&6; }
  4490. GREP="$ac_cv_path_GREP"
  4491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4492. $as_echo_n "checking for egrep... " >&6; }
  4493. if ${ac_cv_path_EGREP+:} false; then :
  4494. $as_echo_n "(cached) " >&6
  4495. else
  4496. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4497. then ac_cv_path_EGREP="$GREP -E"
  4498. else
  4499. if test -z "$EGREP"; then
  4500. ac_path_EGREP_found=false
  4501. # Loop through the user's path and test for each of PROGNAME-LIST
  4502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4503. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4504. do
  4505. IFS=$as_save_IFS
  4506. test -z "$as_dir" && as_dir=.
  4507. for ac_prog in egrep; do
  4508. for ac_exec_ext in '' $ac_executable_extensions; do
  4509. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4510. as_fn_executable_p "$ac_path_EGREP" || continue
  4511. # Check for GNU ac_path_EGREP and select it if it is found.
  4512. # Check for GNU $ac_path_EGREP
  4513. case `"$ac_path_EGREP" --version 2>&1` in
  4514. *GNU*)
  4515. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4516. *)
  4517. ac_count=0
  4518. $as_echo_n 0123456789 >"conftest.in"
  4519. while :
  4520. do
  4521. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4522. mv "conftest.tmp" "conftest.in"
  4523. cp "conftest.in" "conftest.nl"
  4524. $as_echo 'EGREP' >> "conftest.nl"
  4525. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4526. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4527. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4528. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4529. # Best one so far, save it but keep looking for a better one
  4530. ac_cv_path_EGREP="$ac_path_EGREP"
  4531. ac_path_EGREP_max=$ac_count
  4532. fi
  4533. # 10*(2^10) chars as input seems more than enough
  4534. test $ac_count -gt 10 && break
  4535. done
  4536. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4537. esac
  4538. $ac_path_EGREP_found && break 3
  4539. done
  4540. done
  4541. done
  4542. IFS=$as_save_IFS
  4543. if test -z "$ac_cv_path_EGREP"; then
  4544. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4545. fi
  4546. else
  4547. ac_cv_path_EGREP=$EGREP
  4548. fi
  4549. fi
  4550. fi
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4552. $as_echo "$ac_cv_path_EGREP" >&6; }
  4553. EGREP="$ac_cv_path_EGREP"
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4555. $as_echo_n "checking for fgrep... " >&6; }
  4556. if ${ac_cv_path_FGREP+:} false; then :
  4557. $as_echo_n "(cached) " >&6
  4558. else
  4559. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4560. then ac_cv_path_FGREP="$GREP -F"
  4561. else
  4562. if test -z "$FGREP"; then
  4563. ac_path_FGREP_found=false
  4564. # Loop through the user's path and test for each of PROGNAME-LIST
  4565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4566. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4567. do
  4568. IFS=$as_save_IFS
  4569. test -z "$as_dir" && as_dir=.
  4570. for ac_prog in fgrep; do
  4571. for ac_exec_ext in '' $ac_executable_extensions; do
  4572. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4573. as_fn_executable_p "$ac_path_FGREP" || continue
  4574. # Check for GNU ac_path_FGREP and select it if it is found.
  4575. # Check for GNU $ac_path_FGREP
  4576. case `"$ac_path_FGREP" --version 2>&1` in
  4577. *GNU*)
  4578. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4579. *)
  4580. ac_count=0
  4581. $as_echo_n 0123456789 >"conftest.in"
  4582. while :
  4583. do
  4584. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4585. mv "conftest.tmp" "conftest.in"
  4586. cp "conftest.in" "conftest.nl"
  4587. $as_echo 'FGREP' >> "conftest.nl"
  4588. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4589. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4590. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4591. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4592. # Best one so far, save it but keep looking for a better one
  4593. ac_cv_path_FGREP="$ac_path_FGREP"
  4594. ac_path_FGREP_max=$ac_count
  4595. fi
  4596. # 10*(2^10) chars as input seems more than enough
  4597. test $ac_count -gt 10 && break
  4598. done
  4599. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4600. esac
  4601. $ac_path_FGREP_found && break 3
  4602. done
  4603. done
  4604. done
  4605. IFS=$as_save_IFS
  4606. if test -z "$ac_cv_path_FGREP"; then
  4607. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4608. fi
  4609. else
  4610. ac_cv_path_FGREP=$FGREP
  4611. fi
  4612. fi
  4613. fi
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4615. $as_echo "$ac_cv_path_FGREP" >&6; }
  4616. FGREP="$ac_cv_path_FGREP"
  4617. test -z "$GREP" && GREP=grep
  4618. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4619. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4620. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4622. $as_echo_n "checking how to print strings... " >&6; }
  4623. # Test print first, because it will be a builtin if present.
  4624. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4625. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4626. ECHO='print -r --'
  4627. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4628. ECHO='printf %s\n'
  4629. else
  4630. # Use this function as a fallback that always works.
  4631. func_fallback_echo ()
  4632. {
  4633. eval 'cat <<_LTECHO_EOF
  4634. $1
  4635. _LTECHO_EOF'
  4636. }
  4637. ECHO='func_fallback_echo'
  4638. fi
  4639. # func_echo_all arg...
  4640. # Invoke $ECHO with all args, space-separated.
  4641. func_echo_all ()
  4642. {
  4643. $ECHO ""
  4644. }
  4645. case "$ECHO" in
  4646. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4647. $as_echo "printf" >&6; } ;;
  4648. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4649. $as_echo "print -r" >&6; } ;;
  4650. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4651. $as_echo "cat" >&6; } ;;
  4652. esac
  4653. # Check whether --with-gnu-ld was given.
  4654. if test "${with_gnu_ld+set}" = set; then :
  4655. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4656. else
  4657. with_gnu_ld=no
  4658. fi
  4659. ac_prog=ld
  4660. if test "$GCC" = yes; then
  4661. # Check if gcc -print-prog-name=ld gives a path.
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4663. $as_echo_n "checking for ld used by $CC... " >&6; }
  4664. case $host in
  4665. *-*-mingw*)
  4666. # gcc leaves a trailing carriage return which upsets mingw
  4667. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4668. *)
  4669. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4670. esac
  4671. case $ac_prog in
  4672. # Accept absolute paths.
  4673. [\\/]* | ?:[\\/]*)
  4674. re_direlt='/[^/][^/]*/\.\./'
  4675. # Canonicalize the pathname of ld
  4676. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4677. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4678. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4679. done
  4680. test -z "$LD" && LD="$ac_prog"
  4681. ;;
  4682. "")
  4683. # If it fails, then pretend we aren't using GCC.
  4684. ac_prog=ld
  4685. ;;
  4686. *)
  4687. # If it is relative, then search for the first ld in PATH.
  4688. with_gnu_ld=unknown
  4689. ;;
  4690. esac
  4691. elif test "$with_gnu_ld" = yes; then
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4693. $as_echo_n "checking for GNU ld... " >&6; }
  4694. else
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4696. $as_echo_n "checking for non-GNU ld... " >&6; }
  4697. fi
  4698. if ${lt_cv_path_LD+:} false; then :
  4699. $as_echo_n "(cached) " >&6
  4700. else
  4701. if test -z "$LD"; then
  4702. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4703. for ac_dir in $PATH; do
  4704. IFS="$lt_save_ifs"
  4705. test -z "$ac_dir" && ac_dir=.
  4706. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4707. lt_cv_path_LD="$ac_dir/$ac_prog"
  4708. # Check to see if the program is GNU ld. I'd rather use --version,
  4709. # but apparently some variants of GNU ld only accept -v.
  4710. # Break only if it was the GNU/non-GNU ld that we prefer.
  4711. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4712. *GNU* | *'with BFD'*)
  4713. test "$with_gnu_ld" != no && break
  4714. ;;
  4715. *)
  4716. test "$with_gnu_ld" != yes && break
  4717. ;;
  4718. esac
  4719. fi
  4720. done
  4721. IFS="$lt_save_ifs"
  4722. else
  4723. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4724. fi
  4725. fi
  4726. LD="$lt_cv_path_LD"
  4727. if test -n "$LD"; then
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4729. $as_echo "$LD" >&6; }
  4730. else
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4732. $as_echo "no" >&6; }
  4733. fi
  4734. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4736. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4737. if ${lt_cv_prog_gnu_ld+:} false; then :
  4738. $as_echo_n "(cached) " >&6
  4739. else
  4740. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4741. case `$LD -v 2>&1 </dev/null` in
  4742. *GNU* | *'with BFD'*)
  4743. lt_cv_prog_gnu_ld=yes
  4744. ;;
  4745. *)
  4746. lt_cv_prog_gnu_ld=no
  4747. ;;
  4748. esac
  4749. fi
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4751. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4752. with_gnu_ld=$lt_cv_prog_gnu_ld
  4753. if test -n "$ac_tool_prefix"; then
  4754. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4755. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4757. $as_echo_n "checking for $ac_word... " >&6; }
  4758. if ${ac_cv_prog_RANLIB+:} false; then :
  4759. $as_echo_n "(cached) " >&6
  4760. else
  4761. if test -n "$RANLIB"; then
  4762. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4763. else
  4764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4765. for as_dir in $PATH
  4766. do
  4767. IFS=$as_save_IFS
  4768. test -z "$as_dir" && as_dir=.
  4769. for ac_exec_ext in '' $ac_executable_extensions; do
  4770. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4771. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4772. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4773. break 2
  4774. fi
  4775. done
  4776. done
  4777. IFS=$as_save_IFS
  4778. fi
  4779. fi
  4780. RANLIB=$ac_cv_prog_RANLIB
  4781. if test -n "$RANLIB"; then
  4782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4783. $as_echo "$RANLIB" >&6; }
  4784. else
  4785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4786. $as_echo "no" >&6; }
  4787. fi
  4788. fi
  4789. if test -z "$ac_cv_prog_RANLIB"; then
  4790. ac_ct_RANLIB=$RANLIB
  4791. # Extract the first word of "ranlib", so it can be a program name with args.
  4792. set dummy ranlib; ac_word=$2
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4794. $as_echo_n "checking for $ac_word... " >&6; }
  4795. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4796. $as_echo_n "(cached) " >&6
  4797. else
  4798. if test -n "$ac_ct_RANLIB"; then
  4799. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4800. else
  4801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4802. for as_dir in $PATH
  4803. do
  4804. IFS=$as_save_IFS
  4805. test -z "$as_dir" && as_dir=.
  4806. for ac_exec_ext in '' $ac_executable_extensions; do
  4807. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4808. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4810. break 2
  4811. fi
  4812. done
  4813. done
  4814. IFS=$as_save_IFS
  4815. fi
  4816. fi
  4817. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4818. if test -n "$ac_ct_RANLIB"; then
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4820. $as_echo "$ac_ct_RANLIB" >&6; }
  4821. else
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4823. $as_echo "no" >&6; }
  4824. fi
  4825. if test "x$ac_ct_RANLIB" = x; then
  4826. RANLIB=":"
  4827. else
  4828. case $cross_compiling:$ac_tool_warned in
  4829. yes:)
  4830. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4831. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4832. ac_tool_warned=yes ;;
  4833. esac
  4834. RANLIB=$ac_ct_RANLIB
  4835. fi
  4836. else
  4837. RANLIB="$ac_cv_prog_RANLIB"
  4838. fi
  4839. if test -n "$ac_tool_prefix"; then
  4840. # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
  4841. set dummy ${ac_tool_prefix}objcopy; ac_word=$2
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4843. $as_echo_n "checking for $ac_word... " >&6; }
  4844. if ${ac_cv_prog_OBJCOPY+:} false; then :
  4845. $as_echo_n "(cached) " >&6
  4846. else
  4847. if test -n "$OBJCOPY"; then
  4848. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  4849. else
  4850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4851. for as_dir in $PATH
  4852. do
  4853. IFS=$as_save_IFS
  4854. test -z "$as_dir" && as_dir=.
  4855. for ac_exec_ext in '' $ac_executable_extensions; do
  4856. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4857. ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
  4858. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4859. break 2
  4860. fi
  4861. done
  4862. done
  4863. IFS=$as_save_IFS
  4864. fi
  4865. fi
  4866. OBJCOPY=$ac_cv_prog_OBJCOPY
  4867. if test -n "$OBJCOPY"; then
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  4869. $as_echo "$OBJCOPY" >&6; }
  4870. else
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4872. $as_echo "no" >&6; }
  4873. fi
  4874. fi
  4875. if test -z "$ac_cv_prog_OBJCOPY"; then
  4876. ac_ct_OBJCOPY=$OBJCOPY
  4877. # Extract the first word of "objcopy", so it can be a program name with args.
  4878. set dummy objcopy; ac_word=$2
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4880. $as_echo_n "checking for $ac_word... " >&6; }
  4881. if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
  4882. $as_echo_n "(cached) " >&6
  4883. else
  4884. if test -n "$ac_ct_OBJCOPY"; then
  4885. ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
  4886. else
  4887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4888. for as_dir in $PATH
  4889. do
  4890. IFS=$as_save_IFS
  4891. test -z "$as_dir" && as_dir=.
  4892. for ac_exec_ext in '' $ac_executable_extensions; do
  4893. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4894. ac_cv_prog_ac_ct_OBJCOPY="objcopy"
  4895. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4896. break 2
  4897. fi
  4898. done
  4899. done
  4900. IFS=$as_save_IFS
  4901. fi
  4902. fi
  4903. ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
  4904. if test -n "$ac_ct_OBJCOPY"; then
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
  4906. $as_echo "$ac_ct_OBJCOPY" >&6; }
  4907. else
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4909. $as_echo "no" >&6; }
  4910. fi
  4911. if test "x$ac_ct_OBJCOPY" = x; then
  4912. OBJCOPY="missing-objcopy"
  4913. else
  4914. case $cross_compiling:$ac_tool_warned in
  4915. yes:)
  4916. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4917. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4918. ac_tool_warned=yes ;;
  4919. esac
  4920. OBJCOPY=$ac_ct_OBJCOPY
  4921. fi
  4922. else
  4923. OBJCOPY="$ac_cv_prog_OBJCOPY"
  4924. fi
  4925. enable_dlopen=yes
  4926. case `pwd` in
  4927. *\ * | *\ *)
  4928. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4929. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4930. esac
  4931. macro_version='2.2.7a'
  4932. macro_revision='1.3134'
  4933. ltmain="$ac_aux_dir/ltmain.sh"
  4934. # Backslashify metacharacters that are still active within
  4935. # double-quoted strings.
  4936. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4937. # Same as above, but do not quote variable references.
  4938. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4939. # Sed substitution to delay expansion of an escaped shell variable in a
  4940. # double_quote_subst'ed string.
  4941. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4942. # Sed substitution to delay expansion of an escaped single quote.
  4943. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4944. # Sed substitution to avoid accidental globbing in evaled expressions
  4945. no_glob_subst='s/\*/\\\*/g'
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4947. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4948. if ${lt_cv_path_NM+:} false; then :
  4949. $as_echo_n "(cached) " >&6
  4950. else
  4951. if test -n "$NM"; then
  4952. # Let the user override the test.
  4953. lt_cv_path_NM="$NM"
  4954. else
  4955. lt_nm_to_check="${ac_tool_prefix}nm"
  4956. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4957. lt_nm_to_check="$lt_nm_to_check nm"
  4958. fi
  4959. for lt_tmp_nm in $lt_nm_to_check; do
  4960. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4961. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4962. IFS="$lt_save_ifs"
  4963. test -z "$ac_dir" && ac_dir=.
  4964. tmp_nm="$ac_dir/$lt_tmp_nm"
  4965. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4966. # Check to see if the nm accepts a BSD-compat flag.
  4967. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4968. # nm: unknown option "B" ignored
  4969. # Tru64's nm complains that /dev/null is an invalid object file
  4970. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4971. */dev/null* | *'Invalid file or object type'*)
  4972. lt_cv_path_NM="$tmp_nm -B"
  4973. break
  4974. ;;
  4975. *)
  4976. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4977. */dev/null*)
  4978. lt_cv_path_NM="$tmp_nm -p"
  4979. break
  4980. ;;
  4981. *)
  4982. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4983. continue # so that we can try to find one that supports BSD flags
  4984. ;;
  4985. esac
  4986. ;;
  4987. esac
  4988. fi
  4989. done
  4990. IFS="$lt_save_ifs"
  4991. done
  4992. : ${lt_cv_path_NM=no}
  4993. fi
  4994. fi
  4995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4996. $as_echo "$lt_cv_path_NM" >&6; }
  4997. if test "$lt_cv_path_NM" != "no"; then
  4998. NM="$lt_cv_path_NM"
  4999. else
  5000. # Didn't find any BSD compatible name lister, look for dumpbin.
  5001. if test -n "$DUMPBIN"; then :
  5002. # Let the user override the test.
  5003. else
  5004. if test -n "$ac_tool_prefix"; then
  5005. for ac_prog in dumpbin "link -dump"
  5006. do
  5007. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5008. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5010. $as_echo_n "checking for $ac_word... " >&6; }
  5011. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5012. $as_echo_n "(cached) " >&6
  5013. else
  5014. if test -n "$DUMPBIN"; then
  5015. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5016. else
  5017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5018. for as_dir in $PATH
  5019. do
  5020. IFS=$as_save_IFS
  5021. test -z "$as_dir" && as_dir=.
  5022. for ac_exec_ext in '' $ac_executable_extensions; do
  5023. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5024. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5025. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5026. break 2
  5027. fi
  5028. done
  5029. done
  5030. IFS=$as_save_IFS
  5031. fi
  5032. fi
  5033. DUMPBIN=$ac_cv_prog_DUMPBIN
  5034. if test -n "$DUMPBIN"; then
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5036. $as_echo "$DUMPBIN" >&6; }
  5037. else
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5039. $as_echo "no" >&6; }
  5040. fi
  5041. test -n "$DUMPBIN" && break
  5042. done
  5043. fi
  5044. if test -z "$DUMPBIN"; then
  5045. ac_ct_DUMPBIN=$DUMPBIN
  5046. for ac_prog in dumpbin "link -dump"
  5047. do
  5048. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5049. set dummy $ac_prog; ac_word=$2
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5051. $as_echo_n "checking for $ac_word... " >&6; }
  5052. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5053. $as_echo_n "(cached) " >&6
  5054. else
  5055. if test -n "$ac_ct_DUMPBIN"; then
  5056. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5057. else
  5058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5059. for as_dir in $PATH
  5060. do
  5061. IFS=$as_save_IFS
  5062. test -z "$as_dir" && as_dir=.
  5063. for ac_exec_ext in '' $ac_executable_extensions; do
  5064. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5065. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5066. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5067. break 2
  5068. fi
  5069. done
  5070. done
  5071. IFS=$as_save_IFS
  5072. fi
  5073. fi
  5074. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5075. if test -n "$ac_ct_DUMPBIN"; then
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5077. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5078. else
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5080. $as_echo "no" >&6; }
  5081. fi
  5082. test -n "$ac_ct_DUMPBIN" && break
  5083. done
  5084. if test "x$ac_ct_DUMPBIN" = x; then
  5085. DUMPBIN=":"
  5086. else
  5087. case $cross_compiling:$ac_tool_warned in
  5088. yes:)
  5089. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5090. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5091. ac_tool_warned=yes ;;
  5092. esac
  5093. DUMPBIN=$ac_ct_DUMPBIN
  5094. fi
  5095. fi
  5096. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5097. *COFF*)
  5098. DUMPBIN="$DUMPBIN -symbols"
  5099. ;;
  5100. *)
  5101. DUMPBIN=:
  5102. ;;
  5103. esac
  5104. fi
  5105. if test "$DUMPBIN" != ":"; then
  5106. NM="$DUMPBIN"
  5107. fi
  5108. fi
  5109. test -z "$NM" && NM=nm
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5111. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5112. if ${lt_cv_nm_interface+:} false; then :
  5113. $as_echo_n "(cached) " >&6
  5114. else
  5115. lt_cv_nm_interface="BSD nm"
  5116. echo "int some_variable = 0;" > conftest.$ac_ext
  5117. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5118. (eval "$ac_compile" 2>conftest.err)
  5119. cat conftest.err >&5
  5120. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5121. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5122. cat conftest.err >&5
  5123. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5124. cat conftest.out >&5
  5125. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5126. lt_cv_nm_interface="MS dumpbin"
  5127. fi
  5128. rm -f conftest*
  5129. fi
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5131. $as_echo "$lt_cv_nm_interface" >&6; }
  5132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5133. $as_echo_n "checking whether ln -s works... " >&6; }
  5134. LN_S=$as_ln_s
  5135. if test "$LN_S" = "ln -s"; then
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5137. $as_echo "yes" >&6; }
  5138. else
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5140. $as_echo "no, using $LN_S" >&6; }
  5141. fi
  5142. # find the maximum length of command line arguments
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5144. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5145. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5146. $as_echo_n "(cached) " >&6
  5147. else
  5148. i=0
  5149. teststring="ABCD"
  5150. case $build_os in
  5151. msdosdjgpp*)
  5152. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5153. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5154. # during glob expansion). Even if it were fixed, the result of this
  5155. # check would be larger than it should be.
  5156. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5157. ;;
  5158. gnu*)
  5159. # Under GNU Hurd, this test is not required because there is
  5160. # no limit to the length of command line arguments.
  5161. # Libtool will interpret -1 as no limit whatsoever
  5162. lt_cv_sys_max_cmd_len=-1;
  5163. ;;
  5164. cygwin* | mingw* | cegcc*)
  5165. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5166. # about 5 minutes as the teststring grows exponentially.
  5167. # Worse, since 9x/ME are not pre-emptively multitasking,
  5168. # you end up with a "frozen" computer, even though with patience
  5169. # the test eventually succeeds (with a max line length of 256k).
  5170. # Instead, let's just punt: use the minimum linelength reported by
  5171. # all of the supported platforms: 8192 (on NT/2K/XP).
  5172. lt_cv_sys_max_cmd_len=8192;
  5173. ;;
  5174. mint*)
  5175. # On MiNT this can take a long time and run out of memory.
  5176. lt_cv_sys_max_cmd_len=8192;
  5177. ;;
  5178. amigaos*)
  5179. # On AmigaOS with pdksh, this test takes hours, literally.
  5180. # So we just punt and use a minimum line length of 8192.
  5181. lt_cv_sys_max_cmd_len=8192;
  5182. ;;
  5183. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5184. # This has been around since 386BSD, at least. Likely further.
  5185. if test -x /sbin/sysctl; then
  5186. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5187. elif test -x /usr/sbin/sysctl; then
  5188. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5189. else
  5190. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5191. fi
  5192. # And add a safety zone
  5193. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5194. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5195. ;;
  5196. interix*)
  5197. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5198. lt_cv_sys_max_cmd_len=196608
  5199. ;;
  5200. osf*)
  5201. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5202. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5203. # nice to cause kernel panics so lets avoid the loop below.
  5204. # First set a reasonable default.
  5205. lt_cv_sys_max_cmd_len=16384
  5206. #
  5207. if test -x /sbin/sysconfig; then
  5208. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5209. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5210. esac
  5211. fi
  5212. ;;
  5213. sco3.2v5*)
  5214. lt_cv_sys_max_cmd_len=102400
  5215. ;;
  5216. sysv5* | sco5v6* | sysv4.2uw2*)
  5217. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5218. if test -n "$kargmax"; then
  5219. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5220. else
  5221. lt_cv_sys_max_cmd_len=32768
  5222. fi
  5223. ;;
  5224. *)
  5225. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5226. if test -n "$lt_cv_sys_max_cmd_len"; then
  5227. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5228. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5229. else
  5230. # Make teststring a little bigger before we do anything with it.
  5231. # a 1K string should be a reasonable start.
  5232. for i in 1 2 3 4 5 6 7 8 ; do
  5233. teststring=$teststring$teststring
  5234. done
  5235. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5236. # If test is not a shell built-in, we'll probably end up computing a
  5237. # maximum length that is only half of the actual maximum length, but
  5238. # we can't tell.
  5239. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5240. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5241. test $i != 17 # 1/2 MB should be enough
  5242. do
  5243. i=`expr $i + 1`
  5244. teststring=$teststring$teststring
  5245. done
  5246. # Only check the string length outside the loop.
  5247. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5248. teststring=
  5249. # Add a significant safety factor because C++ compilers can tack on
  5250. # massive amounts of additional arguments before passing them to the
  5251. # linker. It appears as though 1/2 is a usable value.
  5252. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5253. fi
  5254. ;;
  5255. esac
  5256. fi
  5257. if test -n $lt_cv_sys_max_cmd_len ; then
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5259. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5260. else
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5262. $as_echo "none" >&6; }
  5263. fi
  5264. max_cmd_len=$lt_cv_sys_max_cmd_len
  5265. : ${CP="cp -f"}
  5266. : ${MV="mv -f"}
  5267. : ${RM="rm -f"}
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5269. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5270. # Try some XSI features
  5271. xsi_shell=no
  5272. ( _lt_dummy="a/b/c"
  5273. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5274. = c,a/b,, \
  5275. && eval 'test $(( 1 + 1 )) -eq 2 \
  5276. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5277. && xsi_shell=yes
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5279. $as_echo "$xsi_shell" >&6; }
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5281. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5282. lt_shell_append=no
  5283. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5284. >/dev/null 2>&1 \
  5285. && lt_shell_append=yes
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5287. $as_echo "$lt_shell_append" >&6; }
  5288. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5289. lt_unset=unset
  5290. else
  5291. lt_unset=false
  5292. fi
  5293. # test EBCDIC or ASCII
  5294. case `echo X|tr X '\101'` in
  5295. A) # ASCII based system
  5296. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5297. lt_SP2NL='tr \040 \012'
  5298. lt_NL2SP='tr \015\012 \040\040'
  5299. ;;
  5300. *) # EBCDIC based system
  5301. lt_SP2NL='tr \100 \n'
  5302. lt_NL2SP='tr \r\n \100\100'
  5303. ;;
  5304. esac
  5305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5306. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5307. if ${lt_cv_ld_reload_flag+:} false; then :
  5308. $as_echo_n "(cached) " >&6
  5309. else
  5310. lt_cv_ld_reload_flag='-r'
  5311. fi
  5312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5313. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5314. reload_flag=$lt_cv_ld_reload_flag
  5315. case $reload_flag in
  5316. "" | " "*) ;;
  5317. *) reload_flag=" $reload_flag" ;;
  5318. esac
  5319. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5320. case $host_os in
  5321. darwin*)
  5322. if test "$GCC" = yes; then
  5323. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5324. else
  5325. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5326. fi
  5327. ;;
  5328. esac
  5329. if test -n "$ac_tool_prefix"; then
  5330. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5331. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5333. $as_echo_n "checking for $ac_word... " >&6; }
  5334. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5335. $as_echo_n "(cached) " >&6
  5336. else
  5337. if test -n "$OBJDUMP"; then
  5338. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5339. else
  5340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5341. for as_dir in $PATH
  5342. do
  5343. IFS=$as_save_IFS
  5344. test -z "$as_dir" && as_dir=.
  5345. for ac_exec_ext in '' $ac_executable_extensions; do
  5346. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5347. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5349. break 2
  5350. fi
  5351. done
  5352. done
  5353. IFS=$as_save_IFS
  5354. fi
  5355. fi
  5356. OBJDUMP=$ac_cv_prog_OBJDUMP
  5357. if test -n "$OBJDUMP"; then
  5358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5359. $as_echo "$OBJDUMP" >&6; }
  5360. else
  5361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5362. $as_echo "no" >&6; }
  5363. fi
  5364. fi
  5365. if test -z "$ac_cv_prog_OBJDUMP"; then
  5366. ac_ct_OBJDUMP=$OBJDUMP
  5367. # Extract the first word of "objdump", so it can be a program name with args.
  5368. set dummy objdump; ac_word=$2
  5369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5370. $as_echo_n "checking for $ac_word... " >&6; }
  5371. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5372. $as_echo_n "(cached) " >&6
  5373. else
  5374. if test -n "$ac_ct_OBJDUMP"; then
  5375. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5376. else
  5377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5378. for as_dir in $PATH
  5379. do
  5380. IFS=$as_save_IFS
  5381. test -z "$as_dir" && as_dir=.
  5382. for ac_exec_ext in '' $ac_executable_extensions; do
  5383. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5384. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5385. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5386. break 2
  5387. fi
  5388. done
  5389. done
  5390. IFS=$as_save_IFS
  5391. fi
  5392. fi
  5393. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5394. if test -n "$ac_ct_OBJDUMP"; then
  5395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5396. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5397. else
  5398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5399. $as_echo "no" >&6; }
  5400. fi
  5401. if test "x$ac_ct_OBJDUMP" = x; then
  5402. OBJDUMP="false"
  5403. else
  5404. case $cross_compiling:$ac_tool_warned in
  5405. yes:)
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5407. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5408. ac_tool_warned=yes ;;
  5409. esac
  5410. OBJDUMP=$ac_ct_OBJDUMP
  5411. fi
  5412. else
  5413. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5414. fi
  5415. test -z "$OBJDUMP" && OBJDUMP=objdump
  5416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5417. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5418. if ${lt_cv_deplibs_check_method+:} false; then :
  5419. $as_echo_n "(cached) " >&6
  5420. else
  5421. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5422. lt_cv_file_magic_test_file=
  5423. lt_cv_deplibs_check_method='unknown'
  5424. # Need to set the preceding variable on all platforms that support
  5425. # interlibrary dependencies.
  5426. # 'none' -- dependencies not supported.
  5427. # `unknown' -- same as none, but documents that we really don't know.
  5428. # 'pass_all' -- all dependencies passed with no checks.
  5429. # 'test_compile' -- check by making test program.
  5430. # 'file_magic [[regex]]' -- check by looking for files in library path
  5431. # which responds to the $file_magic_cmd with a given extended regex.
  5432. # If you have `file' or equivalent on your system and you're not sure
  5433. # whether `pass_all' will *always* work, you probably want this one.
  5434. case $host_os in
  5435. aix[4-9]*)
  5436. lt_cv_deplibs_check_method=pass_all
  5437. ;;
  5438. beos*)
  5439. lt_cv_deplibs_check_method=pass_all
  5440. ;;
  5441. bsdi[45]*)
  5442. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5443. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5444. lt_cv_file_magic_test_file=/shlib/libc.so
  5445. ;;
  5446. cygwin*)
  5447. # func_win32_libid is a shell function defined in ltmain.sh
  5448. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5449. lt_cv_file_magic_cmd='func_win32_libid'
  5450. ;;
  5451. mingw* | pw32*)
  5452. # Base MSYS/MinGW do not provide the 'file' command needed by
  5453. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5454. # unless we find 'file', for example because we are cross-compiling.
  5455. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5456. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5457. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5458. lt_cv_file_magic_cmd='func_win32_libid'
  5459. else
  5460. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5461. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5462. fi
  5463. ;;
  5464. cegcc*)
  5465. # use the weaker test based on 'objdump'. See mingw*.
  5466. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5467. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5468. ;;
  5469. darwin* | rhapsody*)
  5470. lt_cv_deplibs_check_method=pass_all
  5471. ;;
  5472. freebsd* | dragonfly*)
  5473. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5474. case $host_cpu in
  5475. i*86 )
  5476. # Not sure whether the presence of OpenBSD here was a mistake.
  5477. # Let's accept both of them until this is cleared up.
  5478. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5479. lt_cv_file_magic_cmd=/usr/bin/file
  5480. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5481. ;;
  5482. esac
  5483. else
  5484. lt_cv_deplibs_check_method=pass_all
  5485. fi
  5486. ;;
  5487. gnu*)
  5488. lt_cv_deplibs_check_method=pass_all
  5489. ;;
  5490. haiku*)
  5491. lt_cv_deplibs_check_method=pass_all
  5492. ;;
  5493. hpux10.20* | hpux11*)
  5494. lt_cv_file_magic_cmd=/usr/bin/file
  5495. case $host_cpu in
  5496. ia64*)
  5497. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5498. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5499. ;;
  5500. hppa*64*)
  5501. 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]'
  5502. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5503. ;;
  5504. *)
  5505. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5506. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5507. ;;
  5508. esac
  5509. ;;
  5510. interix[3-9]*)
  5511. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5512. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5513. ;;
  5514. irix5* | irix6* | nonstopux*)
  5515. case $LD in
  5516. *-32|*"-32 ") libmagic=32-bit;;
  5517. *-n32|*"-n32 ") libmagic=N32;;
  5518. *-64|*"-64 ") libmagic=64-bit;;
  5519. *) libmagic=never-match;;
  5520. esac
  5521. lt_cv_deplibs_check_method=pass_all
  5522. ;;
  5523. # This must be Linux ELF.
  5524. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5525. lt_cv_deplibs_check_method=pass_all
  5526. ;;
  5527. netbsd*)
  5528. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5529. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5530. else
  5531. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5532. fi
  5533. ;;
  5534. newos6*)
  5535. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5536. lt_cv_file_magic_cmd=/usr/bin/file
  5537. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5538. ;;
  5539. *nto* | *qnx*)
  5540. lt_cv_deplibs_check_method=pass_all
  5541. ;;
  5542. openbsd*)
  5543. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5544. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5545. else
  5546. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5547. fi
  5548. ;;
  5549. osf3* | osf4* | osf5*)
  5550. lt_cv_deplibs_check_method=pass_all
  5551. ;;
  5552. rdos*)
  5553. lt_cv_deplibs_check_method=pass_all
  5554. ;;
  5555. solaris*)
  5556. lt_cv_deplibs_check_method=pass_all
  5557. ;;
  5558. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5559. lt_cv_deplibs_check_method=pass_all
  5560. ;;
  5561. sysv4 | sysv4.3*)
  5562. case $host_vendor in
  5563. motorola)
  5564. 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]'
  5565. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5566. ;;
  5567. ncr)
  5568. lt_cv_deplibs_check_method=pass_all
  5569. ;;
  5570. sequent)
  5571. lt_cv_file_magic_cmd='/bin/file'
  5572. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5573. ;;
  5574. sni)
  5575. lt_cv_file_magic_cmd='/bin/file'
  5576. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5577. lt_cv_file_magic_test_file=/lib/libc.so
  5578. ;;
  5579. siemens)
  5580. lt_cv_deplibs_check_method=pass_all
  5581. ;;
  5582. pc)
  5583. lt_cv_deplibs_check_method=pass_all
  5584. ;;
  5585. esac
  5586. ;;
  5587. tpf*)
  5588. lt_cv_deplibs_check_method=pass_all
  5589. ;;
  5590. esac
  5591. fi
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5593. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5594. file_magic_cmd=$lt_cv_file_magic_cmd
  5595. deplibs_check_method=$lt_cv_deplibs_check_method
  5596. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5597. if test -n "$ac_tool_prefix"; then
  5598. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5599. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5601. $as_echo_n "checking for $ac_word... " >&6; }
  5602. if ${ac_cv_prog_AR+:} false; then :
  5603. $as_echo_n "(cached) " >&6
  5604. else
  5605. if test -n "$AR"; then
  5606. ac_cv_prog_AR="$AR" # Let the user override the test.
  5607. else
  5608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5609. for as_dir in $PATH
  5610. do
  5611. IFS=$as_save_IFS
  5612. test -z "$as_dir" && as_dir=.
  5613. for ac_exec_ext in '' $ac_executable_extensions; do
  5614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5615. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5617. break 2
  5618. fi
  5619. done
  5620. done
  5621. IFS=$as_save_IFS
  5622. fi
  5623. fi
  5624. AR=$ac_cv_prog_AR
  5625. if test -n "$AR"; then
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5627. $as_echo "$AR" >&6; }
  5628. else
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5630. $as_echo "no" >&6; }
  5631. fi
  5632. fi
  5633. if test -z "$ac_cv_prog_AR"; then
  5634. ac_ct_AR=$AR
  5635. # Extract the first word of "ar", so it can be a program name with args.
  5636. set dummy ar; ac_word=$2
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5638. $as_echo_n "checking for $ac_word... " >&6; }
  5639. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5640. $as_echo_n "(cached) " >&6
  5641. else
  5642. if test -n "$ac_ct_AR"; then
  5643. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5644. else
  5645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5646. for as_dir in $PATH
  5647. do
  5648. IFS=$as_save_IFS
  5649. test -z "$as_dir" && as_dir=.
  5650. for ac_exec_ext in '' $ac_executable_extensions; do
  5651. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5652. ac_cv_prog_ac_ct_AR="ar"
  5653. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5654. break 2
  5655. fi
  5656. done
  5657. done
  5658. IFS=$as_save_IFS
  5659. fi
  5660. fi
  5661. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5662. if test -n "$ac_ct_AR"; then
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5664. $as_echo "$ac_ct_AR" >&6; }
  5665. else
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5667. $as_echo "no" >&6; }
  5668. fi
  5669. if test "x$ac_ct_AR" = x; then
  5670. AR="false"
  5671. else
  5672. case $cross_compiling:$ac_tool_warned in
  5673. yes:)
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5675. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5676. ac_tool_warned=yes ;;
  5677. esac
  5678. AR=$ac_ct_AR
  5679. fi
  5680. else
  5681. AR="$ac_cv_prog_AR"
  5682. fi
  5683. test -z "$AR" && AR=ar
  5684. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5685. if test -n "$ac_tool_prefix"; then
  5686. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5687. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5689. $as_echo_n "checking for $ac_word... " >&6; }
  5690. if ${ac_cv_prog_STRIP+:} false; then :
  5691. $as_echo_n "(cached) " >&6
  5692. else
  5693. if test -n "$STRIP"; then
  5694. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5695. else
  5696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5697. for as_dir in $PATH
  5698. do
  5699. IFS=$as_save_IFS
  5700. test -z "$as_dir" && as_dir=.
  5701. for ac_exec_ext in '' $ac_executable_extensions; do
  5702. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5703. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5704. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5705. break 2
  5706. fi
  5707. done
  5708. done
  5709. IFS=$as_save_IFS
  5710. fi
  5711. fi
  5712. STRIP=$ac_cv_prog_STRIP
  5713. if test -n "$STRIP"; then
  5714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5715. $as_echo "$STRIP" >&6; }
  5716. else
  5717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5718. $as_echo "no" >&6; }
  5719. fi
  5720. fi
  5721. if test -z "$ac_cv_prog_STRIP"; then
  5722. ac_ct_STRIP=$STRIP
  5723. # Extract the first word of "strip", so it can be a program name with args.
  5724. set dummy strip; ac_word=$2
  5725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5726. $as_echo_n "checking for $ac_word... " >&6; }
  5727. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5728. $as_echo_n "(cached) " >&6
  5729. else
  5730. if test -n "$ac_ct_STRIP"; then
  5731. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5732. else
  5733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5734. for as_dir in $PATH
  5735. do
  5736. IFS=$as_save_IFS
  5737. test -z "$as_dir" && as_dir=.
  5738. for ac_exec_ext in '' $ac_executable_extensions; do
  5739. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5740. ac_cv_prog_ac_ct_STRIP="strip"
  5741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5742. break 2
  5743. fi
  5744. done
  5745. done
  5746. IFS=$as_save_IFS
  5747. fi
  5748. fi
  5749. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5750. if test -n "$ac_ct_STRIP"; then
  5751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5752. $as_echo "$ac_ct_STRIP" >&6; }
  5753. else
  5754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5755. $as_echo "no" >&6; }
  5756. fi
  5757. if test "x$ac_ct_STRIP" = x; then
  5758. STRIP=":"
  5759. else
  5760. case $cross_compiling:$ac_tool_warned in
  5761. yes:)
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5763. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5764. ac_tool_warned=yes ;;
  5765. esac
  5766. STRIP=$ac_ct_STRIP
  5767. fi
  5768. else
  5769. STRIP="$ac_cv_prog_STRIP"
  5770. fi
  5771. test -z "$STRIP" && STRIP=:
  5772. if test -n "$ac_tool_prefix"; then
  5773. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5774. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5776. $as_echo_n "checking for $ac_word... " >&6; }
  5777. if ${ac_cv_prog_RANLIB+:} false; then :
  5778. $as_echo_n "(cached) " >&6
  5779. else
  5780. if test -n "$RANLIB"; then
  5781. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5782. else
  5783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5784. for as_dir in $PATH
  5785. do
  5786. IFS=$as_save_IFS
  5787. test -z "$as_dir" && as_dir=.
  5788. for ac_exec_ext in '' $ac_executable_extensions; do
  5789. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5790. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5792. break 2
  5793. fi
  5794. done
  5795. done
  5796. IFS=$as_save_IFS
  5797. fi
  5798. fi
  5799. RANLIB=$ac_cv_prog_RANLIB
  5800. if test -n "$RANLIB"; then
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5802. $as_echo "$RANLIB" >&6; }
  5803. else
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5805. $as_echo "no" >&6; }
  5806. fi
  5807. fi
  5808. if test -z "$ac_cv_prog_RANLIB"; then
  5809. ac_ct_RANLIB=$RANLIB
  5810. # Extract the first word of "ranlib", so it can be a program name with args.
  5811. set dummy ranlib; ac_word=$2
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5813. $as_echo_n "checking for $ac_word... " >&6; }
  5814. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5815. $as_echo_n "(cached) " >&6
  5816. else
  5817. if test -n "$ac_ct_RANLIB"; then
  5818. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5819. else
  5820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5821. for as_dir in $PATH
  5822. do
  5823. IFS=$as_save_IFS
  5824. test -z "$as_dir" && as_dir=.
  5825. for ac_exec_ext in '' $ac_executable_extensions; do
  5826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5827. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5829. break 2
  5830. fi
  5831. done
  5832. done
  5833. IFS=$as_save_IFS
  5834. fi
  5835. fi
  5836. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5837. if test -n "$ac_ct_RANLIB"; then
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5839. $as_echo "$ac_ct_RANLIB" >&6; }
  5840. else
  5841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5842. $as_echo "no" >&6; }
  5843. fi
  5844. if test "x$ac_ct_RANLIB" = x; then
  5845. RANLIB=":"
  5846. else
  5847. case $cross_compiling:$ac_tool_warned in
  5848. yes:)
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5850. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5851. ac_tool_warned=yes ;;
  5852. esac
  5853. RANLIB=$ac_ct_RANLIB
  5854. fi
  5855. else
  5856. RANLIB="$ac_cv_prog_RANLIB"
  5857. fi
  5858. test -z "$RANLIB" && RANLIB=:
  5859. # Determine commands to create old-style static archives.
  5860. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5861. old_postinstall_cmds='chmod 644 $oldlib'
  5862. old_postuninstall_cmds=
  5863. if test -n "$RANLIB"; then
  5864. case $host_os in
  5865. openbsd*)
  5866. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5867. ;;
  5868. *)
  5869. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5870. ;;
  5871. esac
  5872. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5873. fi
  5874. case $host_os in
  5875. darwin*)
  5876. lock_old_archive_extraction=yes ;;
  5877. *)
  5878. lock_old_archive_extraction=no ;;
  5879. esac
  5880. # If no C compiler was specified, use CC.
  5881. LTCC=${LTCC-"$CC"}
  5882. # If no C compiler flags were specified, use CFLAGS.
  5883. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5884. # Allow CC to be a program name with arguments.
  5885. compiler=$CC
  5886. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5888. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5889. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5890. $as_echo_n "(cached) " >&6
  5891. else
  5892. # These are sane defaults that work on at least a few old systems.
  5893. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5894. # Character class describing NM global symbol codes.
  5895. symcode='[BCDEGRST]'
  5896. # Regexp to match symbols that can be accessed directly from C.
  5897. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5898. # Define system-specific variables.
  5899. case $host_os in
  5900. aix*)
  5901. symcode='[BCDT]'
  5902. ;;
  5903. cygwin* | mingw* | pw32* | cegcc*)
  5904. symcode='[ABCDGISTW]'
  5905. ;;
  5906. hpux*)
  5907. if test "$host_cpu" = ia64; then
  5908. symcode='[ABCDEGRST]'
  5909. fi
  5910. ;;
  5911. irix* | nonstopux*)
  5912. symcode='[BCDEGRST]'
  5913. ;;
  5914. osf*)
  5915. symcode='[BCDEGQRST]'
  5916. ;;
  5917. solaris*)
  5918. symcode='[BDRT]'
  5919. ;;
  5920. sco3.2v5*)
  5921. symcode='[DT]'
  5922. ;;
  5923. sysv4.2uw2*)
  5924. symcode='[DT]'
  5925. ;;
  5926. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5927. symcode='[ABDT]'
  5928. ;;
  5929. sysv4)
  5930. symcode='[DFNSTU]'
  5931. ;;
  5932. esac
  5933. # If we're using GNU nm, then use its standard symbol codes.
  5934. case `$NM -V 2>&1` in
  5935. *GNU* | *'with BFD'*)
  5936. symcode='[ABCDGIRSTW]' ;;
  5937. esac
  5938. # Transform an extracted symbol line into a proper C declaration.
  5939. # Some systems (esp. on ia64) link data and code symbols differently,
  5940. # so use this general approach.
  5941. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5942. # Transform an extracted symbol line into symbol name and symbol address
  5943. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5944. 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'"
  5945. # Handle CRLF in mingw tool chain
  5946. opt_cr=
  5947. case $build_os in
  5948. mingw*)
  5949. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5950. ;;
  5951. esac
  5952. # Try without a prefix underscore, then with it.
  5953. for ac_symprfx in "" "_"; do
  5954. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5955. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5956. # Write the raw and C identifiers.
  5957. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5958. # Fake it for dumpbin and say T for any non-static function
  5959. # and D for any global variable.
  5960. # Also find C++ and __fastcall symbols from MSVC++,
  5961. # which start with @ or ?.
  5962. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5963. " {last_section=section; section=\$ 3};"\
  5964. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5965. " \$ 0!~/External *\|/{next};"\
  5966. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5967. " {if(hide[section]) next};"\
  5968. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5969. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5970. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5971. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5972. " ' prfx=^$ac_symprfx"
  5973. else
  5974. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5975. fi
  5976. # Check to see that the pipe works correctly.
  5977. pipe_works=no
  5978. rm -f conftest*
  5979. cat > conftest.$ac_ext <<_LT_EOF
  5980. #ifdef __cplusplus
  5981. extern "C" {
  5982. #endif
  5983. char nm_test_var;
  5984. void nm_test_func(void);
  5985. void nm_test_func(void){}
  5986. #ifdef __cplusplus
  5987. }
  5988. #endif
  5989. int main(){nm_test_var='a';nm_test_func();return(0);}
  5990. _LT_EOF
  5991. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5992. (eval $ac_compile) 2>&5
  5993. ac_status=$?
  5994. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5995. test $ac_status = 0; }; then
  5996. # Now try to grab the symbols.
  5997. nlist=conftest.nm
  5998. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5999. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6000. ac_status=$?
  6001. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6002. test $ac_status = 0; } && test -s "$nlist"; then
  6003. # Try sorting and uniquifying the output.
  6004. if sort "$nlist" | uniq > "$nlist"T; then
  6005. mv -f "$nlist"T "$nlist"
  6006. else
  6007. rm -f "$nlist"T
  6008. fi
  6009. # Make sure that we snagged all the symbols we need.
  6010. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6011. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6012. cat <<_LT_EOF > conftest.$ac_ext
  6013. #ifdef __cplusplus
  6014. extern "C" {
  6015. #endif
  6016. _LT_EOF
  6017. # Now generate the symbol file.
  6018. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6019. cat <<_LT_EOF >> conftest.$ac_ext
  6020. /* The mapping between symbol names and symbols. */
  6021. const struct {
  6022. const char *name;
  6023. void *address;
  6024. }
  6025. lt__PROGRAM__LTX_preloaded_symbols[] =
  6026. {
  6027. { "@PROGRAM@", (void *) 0 },
  6028. _LT_EOF
  6029. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6030. cat <<\_LT_EOF >> conftest.$ac_ext
  6031. {0, (void *) 0}
  6032. };
  6033. /* This works around a problem in FreeBSD linker */
  6034. #ifdef FREEBSD_WORKAROUND
  6035. static const void *lt_preloaded_setup() {
  6036. return lt__PROGRAM__LTX_preloaded_symbols;
  6037. }
  6038. #endif
  6039. #ifdef __cplusplus
  6040. }
  6041. #endif
  6042. _LT_EOF
  6043. # Now try linking the two files.
  6044. mv conftest.$ac_objext conftstm.$ac_objext
  6045. lt_save_LIBS="$LIBS"
  6046. lt_save_CFLAGS="$CFLAGS"
  6047. LIBS="conftstm.$ac_objext"
  6048. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6049. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6050. (eval $ac_link) 2>&5
  6051. ac_status=$?
  6052. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6053. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6054. pipe_works=yes
  6055. fi
  6056. LIBS="$lt_save_LIBS"
  6057. CFLAGS="$lt_save_CFLAGS"
  6058. else
  6059. echo "cannot find nm_test_func in $nlist" >&5
  6060. fi
  6061. else
  6062. echo "cannot find nm_test_var in $nlist" >&5
  6063. fi
  6064. else
  6065. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6066. fi
  6067. else
  6068. echo "$progname: failed program was:" >&5
  6069. cat conftest.$ac_ext >&5
  6070. fi
  6071. rm -rf conftest* conftst*
  6072. # Do not use the global_symbol_pipe unless it works.
  6073. if test "$pipe_works" = yes; then
  6074. break
  6075. else
  6076. lt_cv_sys_global_symbol_pipe=
  6077. fi
  6078. done
  6079. fi
  6080. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6081. lt_cv_sys_global_symbol_to_cdecl=
  6082. fi
  6083. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6085. $as_echo "failed" >&6; }
  6086. else
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6088. $as_echo "ok" >&6; }
  6089. fi
  6090. # Check whether --enable-libtool-lock was given.
  6091. if test "${enable_libtool_lock+set}" = set; then :
  6092. enableval=$enable_libtool_lock;
  6093. fi
  6094. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6095. # Some flags need to be propagated to the compiler or linker for good
  6096. # libtool support.
  6097. case $host in
  6098. ia64-*-hpux*)
  6099. # Find out which ABI we are using.
  6100. echo 'int i;' > conftest.$ac_ext
  6101. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6102. (eval $ac_compile) 2>&5
  6103. ac_status=$?
  6104. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6105. test $ac_status = 0; }; then
  6106. case `/usr/bin/file conftest.$ac_objext` in
  6107. *ELF-32*)
  6108. HPUX_IA64_MODE="32"
  6109. ;;
  6110. *ELF-64*)
  6111. HPUX_IA64_MODE="64"
  6112. ;;
  6113. esac
  6114. fi
  6115. rm -rf conftest*
  6116. ;;
  6117. *-*-irix6*)
  6118. # Find out which ABI we are using.
  6119. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6120. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6121. (eval $ac_compile) 2>&5
  6122. ac_status=$?
  6123. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6124. test $ac_status = 0; }; then
  6125. if test "$lt_cv_prog_gnu_ld" = yes; then
  6126. case `/usr/bin/file conftest.$ac_objext` in
  6127. *32-bit*)
  6128. LD="${LD-ld} -melf32bsmip"
  6129. ;;
  6130. *N32*)
  6131. LD="${LD-ld} -melf32bmipn32"
  6132. ;;
  6133. *64-bit*)
  6134. LD="${LD-ld} -melf64bmip"
  6135. ;;
  6136. esac
  6137. else
  6138. case `/usr/bin/file conftest.$ac_objext` in
  6139. *32-bit*)
  6140. LD="${LD-ld} -32"
  6141. ;;
  6142. *N32*)
  6143. LD="${LD-ld} -n32"
  6144. ;;
  6145. *64-bit*)
  6146. LD="${LD-ld} -64"
  6147. ;;
  6148. esac
  6149. fi
  6150. fi
  6151. rm -rf conftest*
  6152. ;;
  6153. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6154. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6155. # Find out which ABI we are using.
  6156. echo 'int i;' > conftest.$ac_ext
  6157. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6158. (eval $ac_compile) 2>&5
  6159. ac_status=$?
  6160. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6161. test $ac_status = 0; }; then
  6162. case `/usr/bin/file conftest.o` in
  6163. *32-bit*)
  6164. case $host in
  6165. x86_64-*kfreebsd*-gnu)
  6166. LD="${LD-ld} -m elf_i386_fbsd"
  6167. ;;
  6168. x86_64-*linux*)
  6169. case `/usr/bin/file conftest.o` in
  6170. *x86-64*)
  6171. LD="${LD-ld} -m elf32_x86_64"
  6172. ;;
  6173. *)
  6174. LD="${LD-ld} -m elf_i386"
  6175. ;;
  6176. esac
  6177. ;;
  6178. powerpc64le-*linux*)
  6179. LD="${LD-ld} -m elf32lppclinux"
  6180. ;;
  6181. powerpc64-*linux*)
  6182. LD="${LD-ld} -m elf32ppclinux"
  6183. ;;
  6184. s390x-*linux*)
  6185. LD="${LD-ld} -m elf_s390"
  6186. ;;
  6187. sparc64-*linux*)
  6188. LD="${LD-ld} -m elf32_sparc"
  6189. ;;
  6190. esac
  6191. ;;
  6192. *64-bit*)
  6193. case $host in
  6194. x86_64-*kfreebsd*-gnu)
  6195. LD="${LD-ld} -m elf_x86_64_fbsd"
  6196. ;;
  6197. x86_64-*linux*)
  6198. LD="${LD-ld} -m elf_x86_64"
  6199. ;;
  6200. powerpcle-*linux*)
  6201. LD="${LD-ld} -m elf64lppc"
  6202. ;;
  6203. powerpc-*linux*)
  6204. LD="${LD-ld} -m elf64ppc"
  6205. ;;
  6206. s390*-*linux*|s390*-*tpf*)
  6207. LD="${LD-ld} -m elf64_s390"
  6208. ;;
  6209. sparc*-*linux*)
  6210. LD="${LD-ld} -m elf64_sparc"
  6211. ;;
  6212. esac
  6213. ;;
  6214. esac
  6215. fi
  6216. rm -rf conftest*
  6217. ;;
  6218. *-*-sco3.2v5*)
  6219. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6220. SAVE_CFLAGS="$CFLAGS"
  6221. CFLAGS="$CFLAGS -belf"
  6222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6223. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6224. if ${lt_cv_cc_needs_belf+:} false; then :
  6225. $as_echo_n "(cached) " >&6
  6226. else
  6227. ac_ext=c
  6228. ac_cpp='$CPP $CPPFLAGS'
  6229. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6230. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6231. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6233. /* end confdefs.h. */
  6234. int
  6235. main ()
  6236. {
  6237. ;
  6238. return 0;
  6239. }
  6240. _ACEOF
  6241. if ac_fn_c_try_link "$LINENO"; then :
  6242. lt_cv_cc_needs_belf=yes
  6243. else
  6244. lt_cv_cc_needs_belf=no
  6245. fi
  6246. rm -f core conftest.err conftest.$ac_objext \
  6247. conftest$ac_exeext conftest.$ac_ext
  6248. ac_ext=c
  6249. ac_cpp='$CPP $CPPFLAGS'
  6250. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6251. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6252. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6253. fi
  6254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6255. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6256. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6257. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6258. CFLAGS="$SAVE_CFLAGS"
  6259. fi
  6260. ;;
  6261. sparc*-*solaris*)
  6262. # Find out which ABI we are using.
  6263. echo 'int i;' > conftest.$ac_ext
  6264. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6265. (eval $ac_compile) 2>&5
  6266. ac_status=$?
  6267. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6268. test $ac_status = 0; }; then
  6269. case `/usr/bin/file conftest.o` in
  6270. *64-bit*)
  6271. case $lt_cv_prog_gnu_ld in
  6272. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6273. *)
  6274. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6275. LD="${LD-ld} -64"
  6276. fi
  6277. ;;
  6278. esac
  6279. ;;
  6280. esac
  6281. fi
  6282. rm -rf conftest*
  6283. ;;
  6284. esac
  6285. need_locks="$enable_libtool_lock"
  6286. case $host_os in
  6287. rhapsody* | darwin*)
  6288. if test -n "$ac_tool_prefix"; then
  6289. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6290. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6292. $as_echo_n "checking for $ac_word... " >&6; }
  6293. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6294. $as_echo_n "(cached) " >&6
  6295. else
  6296. if test -n "$DSYMUTIL"; then
  6297. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6298. else
  6299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6300. for as_dir in $PATH
  6301. do
  6302. IFS=$as_save_IFS
  6303. test -z "$as_dir" && as_dir=.
  6304. for ac_exec_ext in '' $ac_executable_extensions; do
  6305. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6306. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6307. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6308. break 2
  6309. fi
  6310. done
  6311. done
  6312. IFS=$as_save_IFS
  6313. fi
  6314. fi
  6315. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6316. if test -n "$DSYMUTIL"; then
  6317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6318. $as_echo "$DSYMUTIL" >&6; }
  6319. else
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6321. $as_echo "no" >&6; }
  6322. fi
  6323. fi
  6324. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6325. ac_ct_DSYMUTIL=$DSYMUTIL
  6326. # Extract the first word of "dsymutil", so it can be a program name with args.
  6327. set dummy dsymutil; ac_word=$2
  6328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6329. $as_echo_n "checking for $ac_word... " >&6; }
  6330. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6331. $as_echo_n "(cached) " >&6
  6332. else
  6333. if test -n "$ac_ct_DSYMUTIL"; then
  6334. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6335. else
  6336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6337. for as_dir in $PATH
  6338. do
  6339. IFS=$as_save_IFS
  6340. test -z "$as_dir" && as_dir=.
  6341. for ac_exec_ext in '' $ac_executable_extensions; do
  6342. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6343. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6345. break 2
  6346. fi
  6347. done
  6348. done
  6349. IFS=$as_save_IFS
  6350. fi
  6351. fi
  6352. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6353. if test -n "$ac_ct_DSYMUTIL"; then
  6354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6355. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6356. else
  6357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6358. $as_echo "no" >&6; }
  6359. fi
  6360. if test "x$ac_ct_DSYMUTIL" = x; then
  6361. DSYMUTIL=":"
  6362. else
  6363. case $cross_compiling:$ac_tool_warned in
  6364. yes:)
  6365. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6366. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6367. ac_tool_warned=yes ;;
  6368. esac
  6369. DSYMUTIL=$ac_ct_DSYMUTIL
  6370. fi
  6371. else
  6372. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6373. fi
  6374. if test -n "$ac_tool_prefix"; then
  6375. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6376. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6378. $as_echo_n "checking for $ac_word... " >&6; }
  6379. if ${ac_cv_prog_NMEDIT+:} false; then :
  6380. $as_echo_n "(cached) " >&6
  6381. else
  6382. if test -n "$NMEDIT"; then
  6383. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6384. else
  6385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6386. for as_dir in $PATH
  6387. do
  6388. IFS=$as_save_IFS
  6389. test -z "$as_dir" && as_dir=.
  6390. for ac_exec_ext in '' $ac_executable_extensions; do
  6391. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6392. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6393. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6394. break 2
  6395. fi
  6396. done
  6397. done
  6398. IFS=$as_save_IFS
  6399. fi
  6400. fi
  6401. NMEDIT=$ac_cv_prog_NMEDIT
  6402. if test -n "$NMEDIT"; then
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6404. $as_echo "$NMEDIT" >&6; }
  6405. else
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6407. $as_echo "no" >&6; }
  6408. fi
  6409. fi
  6410. if test -z "$ac_cv_prog_NMEDIT"; then
  6411. ac_ct_NMEDIT=$NMEDIT
  6412. # Extract the first word of "nmedit", so it can be a program name with args.
  6413. set dummy nmedit; ac_word=$2
  6414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6415. $as_echo_n "checking for $ac_word... " >&6; }
  6416. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6417. $as_echo_n "(cached) " >&6
  6418. else
  6419. if test -n "$ac_ct_NMEDIT"; then
  6420. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6421. else
  6422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6423. for as_dir in $PATH
  6424. do
  6425. IFS=$as_save_IFS
  6426. test -z "$as_dir" && as_dir=.
  6427. for ac_exec_ext in '' $ac_executable_extensions; do
  6428. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6429. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6430. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6431. break 2
  6432. fi
  6433. done
  6434. done
  6435. IFS=$as_save_IFS
  6436. fi
  6437. fi
  6438. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6439. if test -n "$ac_ct_NMEDIT"; then
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6441. $as_echo "$ac_ct_NMEDIT" >&6; }
  6442. else
  6443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6444. $as_echo "no" >&6; }
  6445. fi
  6446. if test "x$ac_ct_NMEDIT" = x; then
  6447. NMEDIT=":"
  6448. else
  6449. case $cross_compiling:$ac_tool_warned in
  6450. yes:)
  6451. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6452. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6453. ac_tool_warned=yes ;;
  6454. esac
  6455. NMEDIT=$ac_ct_NMEDIT
  6456. fi
  6457. else
  6458. NMEDIT="$ac_cv_prog_NMEDIT"
  6459. fi
  6460. if test -n "$ac_tool_prefix"; then
  6461. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6462. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6464. $as_echo_n "checking for $ac_word... " >&6; }
  6465. if ${ac_cv_prog_LIPO+:} false; then :
  6466. $as_echo_n "(cached) " >&6
  6467. else
  6468. if test -n "$LIPO"; then
  6469. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6470. else
  6471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6472. for as_dir in $PATH
  6473. do
  6474. IFS=$as_save_IFS
  6475. test -z "$as_dir" && as_dir=.
  6476. for ac_exec_ext in '' $ac_executable_extensions; do
  6477. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6478. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6479. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6480. break 2
  6481. fi
  6482. done
  6483. done
  6484. IFS=$as_save_IFS
  6485. fi
  6486. fi
  6487. LIPO=$ac_cv_prog_LIPO
  6488. if test -n "$LIPO"; then
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6490. $as_echo "$LIPO" >&6; }
  6491. else
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6493. $as_echo "no" >&6; }
  6494. fi
  6495. fi
  6496. if test -z "$ac_cv_prog_LIPO"; then
  6497. ac_ct_LIPO=$LIPO
  6498. # Extract the first word of "lipo", so it can be a program name with args.
  6499. set dummy lipo; ac_word=$2
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6501. $as_echo_n "checking for $ac_word... " >&6; }
  6502. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6503. $as_echo_n "(cached) " >&6
  6504. else
  6505. if test -n "$ac_ct_LIPO"; then
  6506. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6507. else
  6508. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6509. for as_dir in $PATH
  6510. do
  6511. IFS=$as_save_IFS
  6512. test -z "$as_dir" && as_dir=.
  6513. for ac_exec_ext in '' $ac_executable_extensions; do
  6514. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6515. ac_cv_prog_ac_ct_LIPO="lipo"
  6516. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6517. break 2
  6518. fi
  6519. done
  6520. done
  6521. IFS=$as_save_IFS
  6522. fi
  6523. fi
  6524. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6525. if test -n "$ac_ct_LIPO"; then
  6526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6527. $as_echo "$ac_ct_LIPO" >&6; }
  6528. else
  6529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6530. $as_echo "no" >&6; }
  6531. fi
  6532. if test "x$ac_ct_LIPO" = x; then
  6533. LIPO=":"
  6534. else
  6535. case $cross_compiling:$ac_tool_warned in
  6536. yes:)
  6537. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6538. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6539. ac_tool_warned=yes ;;
  6540. esac
  6541. LIPO=$ac_ct_LIPO
  6542. fi
  6543. else
  6544. LIPO="$ac_cv_prog_LIPO"
  6545. fi
  6546. if test -n "$ac_tool_prefix"; then
  6547. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6548. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6550. $as_echo_n "checking for $ac_word... " >&6; }
  6551. if ${ac_cv_prog_OTOOL+:} false; then :
  6552. $as_echo_n "(cached) " >&6
  6553. else
  6554. if test -n "$OTOOL"; then
  6555. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6556. else
  6557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6558. for as_dir in $PATH
  6559. do
  6560. IFS=$as_save_IFS
  6561. test -z "$as_dir" && as_dir=.
  6562. for ac_exec_ext in '' $ac_executable_extensions; do
  6563. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6564. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6566. break 2
  6567. fi
  6568. done
  6569. done
  6570. IFS=$as_save_IFS
  6571. fi
  6572. fi
  6573. OTOOL=$ac_cv_prog_OTOOL
  6574. if test -n "$OTOOL"; then
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6576. $as_echo "$OTOOL" >&6; }
  6577. else
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6579. $as_echo "no" >&6; }
  6580. fi
  6581. fi
  6582. if test -z "$ac_cv_prog_OTOOL"; then
  6583. ac_ct_OTOOL=$OTOOL
  6584. # Extract the first word of "otool", so it can be a program name with args.
  6585. set dummy otool; ac_word=$2
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6587. $as_echo_n "checking for $ac_word... " >&6; }
  6588. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6589. $as_echo_n "(cached) " >&6
  6590. else
  6591. if test -n "$ac_ct_OTOOL"; then
  6592. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6593. else
  6594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6595. for as_dir in $PATH
  6596. do
  6597. IFS=$as_save_IFS
  6598. test -z "$as_dir" && as_dir=.
  6599. for ac_exec_ext in '' $ac_executable_extensions; do
  6600. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6601. ac_cv_prog_ac_ct_OTOOL="otool"
  6602. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6603. break 2
  6604. fi
  6605. done
  6606. done
  6607. IFS=$as_save_IFS
  6608. fi
  6609. fi
  6610. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6611. if test -n "$ac_ct_OTOOL"; then
  6612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6613. $as_echo "$ac_ct_OTOOL" >&6; }
  6614. else
  6615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6616. $as_echo "no" >&6; }
  6617. fi
  6618. if test "x$ac_ct_OTOOL" = x; then
  6619. OTOOL=":"
  6620. else
  6621. case $cross_compiling:$ac_tool_warned in
  6622. yes:)
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6624. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6625. ac_tool_warned=yes ;;
  6626. esac
  6627. OTOOL=$ac_ct_OTOOL
  6628. fi
  6629. else
  6630. OTOOL="$ac_cv_prog_OTOOL"
  6631. fi
  6632. if test -n "$ac_tool_prefix"; then
  6633. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6634. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6636. $as_echo_n "checking for $ac_word... " >&6; }
  6637. if ${ac_cv_prog_OTOOL64+:} false; then :
  6638. $as_echo_n "(cached) " >&6
  6639. else
  6640. if test -n "$OTOOL64"; then
  6641. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6642. else
  6643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6644. for as_dir in $PATH
  6645. do
  6646. IFS=$as_save_IFS
  6647. test -z "$as_dir" && as_dir=.
  6648. for ac_exec_ext in '' $ac_executable_extensions; do
  6649. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6650. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6651. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6652. break 2
  6653. fi
  6654. done
  6655. done
  6656. IFS=$as_save_IFS
  6657. fi
  6658. fi
  6659. OTOOL64=$ac_cv_prog_OTOOL64
  6660. if test -n "$OTOOL64"; then
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6662. $as_echo "$OTOOL64" >&6; }
  6663. else
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6665. $as_echo "no" >&6; }
  6666. fi
  6667. fi
  6668. if test -z "$ac_cv_prog_OTOOL64"; then
  6669. ac_ct_OTOOL64=$OTOOL64
  6670. # Extract the first word of "otool64", so it can be a program name with args.
  6671. set dummy otool64; ac_word=$2
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6673. $as_echo_n "checking for $ac_word... " >&6; }
  6674. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6675. $as_echo_n "(cached) " >&6
  6676. else
  6677. if test -n "$ac_ct_OTOOL64"; then
  6678. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6679. else
  6680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6681. for as_dir in $PATH
  6682. do
  6683. IFS=$as_save_IFS
  6684. test -z "$as_dir" && as_dir=.
  6685. for ac_exec_ext in '' $ac_executable_extensions; do
  6686. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6687. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6689. break 2
  6690. fi
  6691. done
  6692. done
  6693. IFS=$as_save_IFS
  6694. fi
  6695. fi
  6696. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6697. if test -n "$ac_ct_OTOOL64"; then
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6699. $as_echo "$ac_ct_OTOOL64" >&6; }
  6700. else
  6701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6702. $as_echo "no" >&6; }
  6703. fi
  6704. if test "x$ac_ct_OTOOL64" = x; then
  6705. OTOOL64=":"
  6706. else
  6707. case $cross_compiling:$ac_tool_warned in
  6708. yes:)
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6710. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6711. ac_tool_warned=yes ;;
  6712. esac
  6713. OTOOL64=$ac_ct_OTOOL64
  6714. fi
  6715. else
  6716. OTOOL64="$ac_cv_prog_OTOOL64"
  6717. fi
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6719. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6720. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6721. $as_echo_n "(cached) " >&6
  6722. else
  6723. lt_cv_apple_cc_single_mod=no
  6724. if test -z "${LT_MULTI_MODULE}"; then
  6725. # By default we will add the -single_module flag. You can override
  6726. # by either setting the environment variable LT_MULTI_MODULE
  6727. # non-empty at configure time, or by adding -multi_module to the
  6728. # link flags.
  6729. rm -rf libconftest.dylib*
  6730. echo "int foo(void){return 1;}" > conftest.c
  6731. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6732. -dynamiclib -Wl,-single_module conftest.c" >&5
  6733. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6734. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6735. _lt_result=$?
  6736. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6737. lt_cv_apple_cc_single_mod=yes
  6738. else
  6739. cat conftest.err >&5
  6740. fi
  6741. rm -rf libconftest.dylib*
  6742. rm -f conftest.*
  6743. fi
  6744. fi
  6745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6746. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6748. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6749. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6750. $as_echo_n "(cached) " >&6
  6751. else
  6752. lt_cv_ld_exported_symbols_list=no
  6753. save_LDFLAGS=$LDFLAGS
  6754. echo "_main" > conftest.sym
  6755. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6757. /* end confdefs.h. */
  6758. int
  6759. main ()
  6760. {
  6761. ;
  6762. return 0;
  6763. }
  6764. _ACEOF
  6765. if ac_fn_c_try_link "$LINENO"; then :
  6766. lt_cv_ld_exported_symbols_list=yes
  6767. else
  6768. lt_cv_ld_exported_symbols_list=no
  6769. fi
  6770. rm -f core conftest.err conftest.$ac_objext \
  6771. conftest$ac_exeext conftest.$ac_ext
  6772. LDFLAGS="$save_LDFLAGS"
  6773. fi
  6774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6775. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6777. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6778. if ${lt_cv_ld_force_load+:} false; then :
  6779. $as_echo_n "(cached) " >&6
  6780. else
  6781. lt_cv_ld_force_load=no
  6782. cat > conftest.c << _LT_EOF
  6783. int forced_loaded() { return 2;}
  6784. _LT_EOF
  6785. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6786. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6787. echo "$AR cru libconftest.a conftest.o" >&5
  6788. $AR cru libconftest.a conftest.o 2>&5
  6789. cat > conftest.c << _LT_EOF
  6790. int main() { return 0;}
  6791. _LT_EOF
  6792. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6793. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6794. _lt_result=$?
  6795. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6796. lt_cv_ld_force_load=yes
  6797. else
  6798. cat conftest.err >&5
  6799. fi
  6800. rm -f conftest.err libconftest.a conftest conftest.c
  6801. rm -rf conftest.dSYM
  6802. fi
  6803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6804. $as_echo "$lt_cv_ld_force_load" >&6; }
  6805. case $host_os in
  6806. rhapsody* | darwin1.[012])
  6807. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6808. darwin1.*)
  6809. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6810. darwin*) # darwin 5.x on
  6811. # if running on 10.5 or later, the deployment target defaults
  6812. # to the OS version, if on x86, and 10.4, the deployment
  6813. # target defaults to 10.4. Don't you love it?
  6814. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6815. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6816. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6817. 10.[012][,.]*)
  6818. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6819. 10.*)
  6820. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6821. esac
  6822. ;;
  6823. esac
  6824. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6825. _lt_dar_single_mod='$single_module'
  6826. fi
  6827. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6828. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6829. else
  6830. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6831. fi
  6832. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6833. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6834. else
  6835. _lt_dsymutil=
  6836. fi
  6837. ;;
  6838. esac
  6839. ac_ext=c
  6840. ac_cpp='$CPP $CPPFLAGS'
  6841. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6842. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6843. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6845. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6846. # On Suns, sometimes $CPP names a directory.
  6847. if test -n "$CPP" && test -d "$CPP"; then
  6848. CPP=
  6849. fi
  6850. if test -z "$CPP"; then
  6851. if ${ac_cv_prog_CPP+:} false; then :
  6852. $as_echo_n "(cached) " >&6
  6853. else
  6854. # Double quotes because CPP needs to be expanded
  6855. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6856. do
  6857. ac_preproc_ok=false
  6858. for ac_c_preproc_warn_flag in '' yes
  6859. do
  6860. # Use a header file that comes with gcc, so configuring glibc
  6861. # with a fresh cross-compiler works.
  6862. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6863. # <limits.h> exists even on freestanding compilers.
  6864. # On the NeXT, cc -E runs the code through the compiler's parser,
  6865. # not just through cpp. "Syntax error" is here to catch this case.
  6866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6867. /* end confdefs.h. */
  6868. #ifdef __STDC__
  6869. # include <limits.h>
  6870. #else
  6871. # include <assert.h>
  6872. #endif
  6873. Syntax error
  6874. _ACEOF
  6875. if ac_fn_c_try_cpp "$LINENO"; then :
  6876. else
  6877. # Broken: fails on valid input.
  6878. continue
  6879. fi
  6880. rm -f conftest.err conftest.i conftest.$ac_ext
  6881. # OK, works on sane cases. Now check whether nonexistent headers
  6882. # can be detected and how.
  6883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6884. /* end confdefs.h. */
  6885. #include <ac_nonexistent.h>
  6886. _ACEOF
  6887. if ac_fn_c_try_cpp "$LINENO"; then :
  6888. # Broken: success on invalid input.
  6889. continue
  6890. else
  6891. # Passes both tests.
  6892. ac_preproc_ok=:
  6893. break
  6894. fi
  6895. rm -f conftest.err conftest.i conftest.$ac_ext
  6896. done
  6897. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6898. rm -f conftest.i conftest.err conftest.$ac_ext
  6899. if $ac_preproc_ok; then :
  6900. break
  6901. fi
  6902. done
  6903. ac_cv_prog_CPP=$CPP
  6904. fi
  6905. CPP=$ac_cv_prog_CPP
  6906. else
  6907. ac_cv_prog_CPP=$CPP
  6908. fi
  6909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6910. $as_echo "$CPP" >&6; }
  6911. ac_preproc_ok=false
  6912. for ac_c_preproc_warn_flag in '' yes
  6913. do
  6914. # Use a header file that comes with gcc, so configuring glibc
  6915. # with a fresh cross-compiler works.
  6916. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6917. # <limits.h> exists even on freestanding compilers.
  6918. # On the NeXT, cc -E runs the code through the compiler's parser,
  6919. # not just through cpp. "Syntax error" is here to catch this case.
  6920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6921. /* end confdefs.h. */
  6922. #ifdef __STDC__
  6923. # include <limits.h>
  6924. #else
  6925. # include <assert.h>
  6926. #endif
  6927. Syntax error
  6928. _ACEOF
  6929. if ac_fn_c_try_cpp "$LINENO"; then :
  6930. else
  6931. # Broken: fails on valid input.
  6932. continue
  6933. fi
  6934. rm -f conftest.err conftest.i conftest.$ac_ext
  6935. # OK, works on sane cases. Now check whether nonexistent headers
  6936. # can be detected and how.
  6937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6938. /* end confdefs.h. */
  6939. #include <ac_nonexistent.h>
  6940. _ACEOF
  6941. if ac_fn_c_try_cpp "$LINENO"; then :
  6942. # Broken: success on invalid input.
  6943. continue
  6944. else
  6945. # Passes both tests.
  6946. ac_preproc_ok=:
  6947. break
  6948. fi
  6949. rm -f conftest.err conftest.i conftest.$ac_ext
  6950. done
  6951. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6952. rm -f conftest.i conftest.err conftest.$ac_ext
  6953. if $ac_preproc_ok; then :
  6954. else
  6955. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6956. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6957. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6958. See \`config.log' for more details" "$LINENO" 5; }
  6959. fi
  6960. ac_ext=c
  6961. ac_cpp='$CPP $CPPFLAGS'
  6962. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6963. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6964. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6966. $as_echo_n "checking for ANSI C header files... " >&6; }
  6967. if ${ac_cv_header_stdc+:} false; then :
  6968. $as_echo_n "(cached) " >&6
  6969. else
  6970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6971. /* end confdefs.h. */
  6972. #include <stdlib.h>
  6973. #include <stdarg.h>
  6974. #include <string.h>
  6975. #include <float.h>
  6976. int
  6977. main ()
  6978. {
  6979. ;
  6980. return 0;
  6981. }
  6982. _ACEOF
  6983. if ac_fn_c_try_compile "$LINENO"; then :
  6984. ac_cv_header_stdc=yes
  6985. else
  6986. ac_cv_header_stdc=no
  6987. fi
  6988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6989. if test $ac_cv_header_stdc = yes; then
  6990. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6992. /* end confdefs.h. */
  6993. #include <string.h>
  6994. _ACEOF
  6995. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6996. $EGREP "memchr" >/dev/null 2>&1; then :
  6997. else
  6998. ac_cv_header_stdc=no
  6999. fi
  7000. rm -f conftest*
  7001. fi
  7002. if test $ac_cv_header_stdc = yes; then
  7003. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7005. /* end confdefs.h. */
  7006. #include <stdlib.h>
  7007. _ACEOF
  7008. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7009. $EGREP "free" >/dev/null 2>&1; then :
  7010. else
  7011. ac_cv_header_stdc=no
  7012. fi
  7013. rm -f conftest*
  7014. fi
  7015. if test $ac_cv_header_stdc = yes; then
  7016. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7017. if test "$cross_compiling" = yes; then :
  7018. :
  7019. else
  7020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7021. /* end confdefs.h. */
  7022. #include <ctype.h>
  7023. #include <stdlib.h>
  7024. #if ((' ' & 0x0FF) == 0x020)
  7025. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7026. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7027. #else
  7028. # define ISLOWER(c) \
  7029. (('a' <= (c) && (c) <= 'i') \
  7030. || ('j' <= (c) && (c) <= 'r') \
  7031. || ('s' <= (c) && (c) <= 'z'))
  7032. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7033. #endif
  7034. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7035. int
  7036. main ()
  7037. {
  7038. int i;
  7039. for (i = 0; i < 256; i++)
  7040. if (XOR (islower (i), ISLOWER (i))
  7041. || toupper (i) != TOUPPER (i))
  7042. return 2;
  7043. return 0;
  7044. }
  7045. _ACEOF
  7046. if ac_fn_c_try_run "$LINENO"; then :
  7047. else
  7048. ac_cv_header_stdc=no
  7049. fi
  7050. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7051. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7052. fi
  7053. fi
  7054. fi
  7055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7056. $as_echo "$ac_cv_header_stdc" >&6; }
  7057. if test $ac_cv_header_stdc = yes; then
  7058. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7059. fi
  7060. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7061. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7062. inttypes.h stdint.h unistd.h
  7063. do :
  7064. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7065. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7066. "
  7067. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7068. cat >>confdefs.h <<_ACEOF
  7069. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7070. _ACEOF
  7071. fi
  7072. done
  7073. for ac_header in dlfcn.h
  7074. do :
  7075. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7076. "
  7077. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7078. cat >>confdefs.h <<_ACEOF
  7079. #define HAVE_DLFCN_H 1
  7080. _ACEOF
  7081. fi
  7082. done
  7083. if test -n "$ac_tool_prefix"; then
  7084. # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
  7085. set dummy ${ac_tool_prefix}gccgo; ac_word=$2
  7086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7087. $as_echo_n "checking for $ac_word... " >&6; }
  7088. if ${ac_cv_prog_GOC+:} false; then :
  7089. $as_echo_n "(cached) " >&6
  7090. else
  7091. if test -n "$GOC"; then
  7092. ac_cv_prog_GOC="$GOC" # Let the user override the test.
  7093. else
  7094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7095. for as_dir in $PATH
  7096. do
  7097. IFS=$as_save_IFS
  7098. test -z "$as_dir" && as_dir=.
  7099. for ac_exec_ext in '' $ac_executable_extensions; do
  7100. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7101. ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
  7102. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7103. break 2
  7104. fi
  7105. done
  7106. done
  7107. IFS=$as_save_IFS
  7108. fi
  7109. fi
  7110. GOC=$ac_cv_prog_GOC
  7111. if test -n "$GOC"; then
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
  7113. $as_echo "$GOC" >&6; }
  7114. else
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7116. $as_echo "no" >&6; }
  7117. fi
  7118. fi
  7119. if test -z "$ac_cv_prog_GOC"; then
  7120. ac_ct_GOC=$GOC
  7121. # Extract the first word of "gccgo", so it can be a program name with args.
  7122. set dummy gccgo; ac_word=$2
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7124. $as_echo_n "checking for $ac_word... " >&6; }
  7125. if ${ac_cv_prog_ac_ct_GOC+:} false; then :
  7126. $as_echo_n "(cached) " >&6
  7127. else
  7128. if test -n "$ac_ct_GOC"; then
  7129. ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
  7130. else
  7131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7132. for as_dir in $PATH
  7133. do
  7134. IFS=$as_save_IFS
  7135. test -z "$as_dir" && as_dir=.
  7136. for ac_exec_ext in '' $ac_executable_extensions; do
  7137. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7138. ac_cv_prog_ac_ct_GOC="gccgo"
  7139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7140. break 2
  7141. fi
  7142. done
  7143. done
  7144. IFS=$as_save_IFS
  7145. fi
  7146. fi
  7147. ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
  7148. if test -n "$ac_ct_GOC"; then
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
  7150. $as_echo "$ac_ct_GOC" >&6; }
  7151. else
  7152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7153. $as_echo "no" >&6; }
  7154. fi
  7155. if test "x$ac_ct_GOC" = x; then
  7156. GOC=""
  7157. else
  7158. case $cross_compiling:$ac_tool_warned in
  7159. yes:)
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7161. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7162. ac_tool_warned=yes ;;
  7163. esac
  7164. GOC=$ac_ct_GOC
  7165. fi
  7166. else
  7167. GOC="$ac_cv_prog_GOC"
  7168. fi
  7169. # Set options
  7170. enable_win32_dll=no
  7171. # Check whether --enable-shared was given.
  7172. if test "${enable_shared+set}" = set; then :
  7173. enableval=$enable_shared; p=${PACKAGE-default}
  7174. case $enableval in
  7175. yes) enable_shared=yes ;;
  7176. no) enable_shared=no ;;
  7177. *)
  7178. enable_shared=no
  7179. # Look at the argument we got. We use all the common list separators.
  7180. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7181. for pkg in $enableval; do
  7182. IFS="$lt_save_ifs"
  7183. if test "X$pkg" = "X$p"; then
  7184. enable_shared=yes
  7185. fi
  7186. done
  7187. IFS="$lt_save_ifs"
  7188. ;;
  7189. esac
  7190. else
  7191. enable_shared=yes
  7192. fi
  7193. # Check whether --enable-static was given.
  7194. if test "${enable_static+set}" = set; then :
  7195. enableval=$enable_static; p=${PACKAGE-default}
  7196. case $enableval in
  7197. yes) enable_static=yes ;;
  7198. no) enable_static=no ;;
  7199. *)
  7200. enable_static=no
  7201. # Look at the argument we got. We use all the common list separators.
  7202. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7203. for pkg in $enableval; do
  7204. IFS="$lt_save_ifs"
  7205. if test "X$pkg" = "X$p"; then
  7206. enable_static=yes
  7207. fi
  7208. done
  7209. IFS="$lt_save_ifs"
  7210. ;;
  7211. esac
  7212. else
  7213. enable_static=yes
  7214. fi
  7215. # Check whether --with-pic was given.
  7216. if test "${with_pic+set}" = set; then :
  7217. withval=$with_pic; pic_mode="$withval"
  7218. else
  7219. pic_mode=default
  7220. fi
  7221. test -z "$pic_mode" && pic_mode=default
  7222. # Check whether --enable-fast-install was given.
  7223. if test "${enable_fast_install+set}" = set; then :
  7224. enableval=$enable_fast_install; p=${PACKAGE-default}
  7225. case $enableval in
  7226. yes) enable_fast_install=yes ;;
  7227. no) enable_fast_install=no ;;
  7228. *)
  7229. enable_fast_install=no
  7230. # Look at the argument we got. We use all the common list separators.
  7231. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7232. for pkg in $enableval; do
  7233. IFS="$lt_save_ifs"
  7234. if test "X$pkg" = "X$p"; then
  7235. enable_fast_install=yes
  7236. fi
  7237. done
  7238. IFS="$lt_save_ifs"
  7239. ;;
  7240. esac
  7241. else
  7242. enable_fast_install=yes
  7243. fi
  7244. # This can be used to rebuild libtool when needed
  7245. LIBTOOL_DEPS="$ltmain"
  7246. # Always use our own libtool.
  7247. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7248. test -z "$LN_S" && LN_S="ln -s"
  7249. if test -n "${ZSH_VERSION+set}" ; then
  7250. setopt NO_GLOB_SUBST
  7251. fi
  7252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7253. $as_echo_n "checking for objdir... " >&6; }
  7254. if ${lt_cv_objdir+:} false; then :
  7255. $as_echo_n "(cached) " >&6
  7256. else
  7257. rm -f .libs 2>/dev/null
  7258. mkdir .libs 2>/dev/null
  7259. if test -d .libs; then
  7260. lt_cv_objdir=.libs
  7261. else
  7262. # MS-DOS does not allow filenames that begin with a dot.
  7263. lt_cv_objdir=_libs
  7264. fi
  7265. rmdir .libs 2>/dev/null
  7266. fi
  7267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7268. $as_echo "$lt_cv_objdir" >&6; }
  7269. objdir=$lt_cv_objdir
  7270. cat >>confdefs.h <<_ACEOF
  7271. #define LT_OBJDIR "$lt_cv_objdir/"
  7272. _ACEOF
  7273. case $host_os in
  7274. aix3*)
  7275. # AIX sometimes has problems with the GCC collect2 program. For some
  7276. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7277. # vanish in a puff of smoke.
  7278. if test "X${COLLECT_NAMES+set}" != Xset; then
  7279. COLLECT_NAMES=
  7280. export COLLECT_NAMES
  7281. fi
  7282. ;;
  7283. esac
  7284. # Global variables:
  7285. ofile=libtool
  7286. can_build_shared=yes
  7287. # All known linkers require a `.a' archive for static linking (except MSVC,
  7288. # which needs '.lib').
  7289. libext=a
  7290. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7291. old_CC="$CC"
  7292. old_CFLAGS="$CFLAGS"
  7293. # Set sane defaults for various variables
  7294. test -z "$CC" && CC=cc
  7295. test -z "$LTCC" && LTCC=$CC
  7296. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7297. test -z "$LD" && LD=ld
  7298. test -z "$ac_objext" && ac_objext=o
  7299. for cc_temp in $compiler""; do
  7300. case $cc_temp in
  7301. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7302. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7303. \-*) ;;
  7304. *) break;;
  7305. esac
  7306. done
  7307. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7308. # Only perform the check for file, if the check method requires it
  7309. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7310. case $deplibs_check_method in
  7311. file_magic*)
  7312. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7314. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7315. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7316. $as_echo_n "(cached) " >&6
  7317. else
  7318. case $MAGIC_CMD in
  7319. [\\/*] | ?:[\\/]*)
  7320. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7321. ;;
  7322. *)
  7323. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7324. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7325. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7326. for ac_dir in $ac_dummy; do
  7327. IFS="$lt_save_ifs"
  7328. test -z "$ac_dir" && ac_dir=.
  7329. if test -f $ac_dir/${ac_tool_prefix}file; then
  7330. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7331. if test -n "$file_magic_test_file"; then
  7332. case $deplibs_check_method in
  7333. "file_magic "*)
  7334. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7335. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7336. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7337. $EGREP "$file_magic_regex" > /dev/null; then
  7338. :
  7339. else
  7340. cat <<_LT_EOF 1>&2
  7341. *** Warning: the command libtool uses to detect shared libraries,
  7342. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7343. *** The result is that libtool may fail to recognize shared libraries
  7344. *** as such. This will affect the creation of libtool libraries that
  7345. *** depend on shared libraries, but programs linked with such libtool
  7346. *** libraries will work regardless of this problem. Nevertheless, you
  7347. *** may want to report the problem to your system manager and/or to
  7348. *** bug-libtool@gnu.org
  7349. _LT_EOF
  7350. fi ;;
  7351. esac
  7352. fi
  7353. break
  7354. fi
  7355. done
  7356. IFS="$lt_save_ifs"
  7357. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7358. ;;
  7359. esac
  7360. fi
  7361. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7362. if test -n "$MAGIC_CMD"; then
  7363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7364. $as_echo "$MAGIC_CMD" >&6; }
  7365. else
  7366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7367. $as_echo "no" >&6; }
  7368. fi
  7369. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7370. if test -n "$ac_tool_prefix"; then
  7371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7372. $as_echo_n "checking for file... " >&6; }
  7373. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7374. $as_echo_n "(cached) " >&6
  7375. else
  7376. case $MAGIC_CMD in
  7377. [\\/*] | ?:[\\/]*)
  7378. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7379. ;;
  7380. *)
  7381. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7382. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7383. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7384. for ac_dir in $ac_dummy; do
  7385. IFS="$lt_save_ifs"
  7386. test -z "$ac_dir" && ac_dir=.
  7387. if test -f $ac_dir/file; then
  7388. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7389. if test -n "$file_magic_test_file"; then
  7390. case $deplibs_check_method in
  7391. "file_magic "*)
  7392. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7393. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7394. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7395. $EGREP "$file_magic_regex" > /dev/null; then
  7396. :
  7397. else
  7398. cat <<_LT_EOF 1>&2
  7399. *** Warning: the command libtool uses to detect shared libraries,
  7400. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7401. *** The result is that libtool may fail to recognize shared libraries
  7402. *** as such. This will affect the creation of libtool libraries that
  7403. *** depend on shared libraries, but programs linked with such libtool
  7404. *** libraries will work regardless of this problem. Nevertheless, you
  7405. *** may want to report the problem to your system manager and/or to
  7406. *** bug-libtool@gnu.org
  7407. _LT_EOF
  7408. fi ;;
  7409. esac
  7410. fi
  7411. break
  7412. fi
  7413. done
  7414. IFS="$lt_save_ifs"
  7415. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7416. ;;
  7417. esac
  7418. fi
  7419. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7420. if test -n "$MAGIC_CMD"; then
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7422. $as_echo "$MAGIC_CMD" >&6; }
  7423. else
  7424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7425. $as_echo "no" >&6; }
  7426. fi
  7427. else
  7428. MAGIC_CMD=:
  7429. fi
  7430. fi
  7431. fi
  7432. ;;
  7433. esac
  7434. # Use C for the default configuration in the libtool script
  7435. lt_save_CC="$CC"
  7436. ac_ext=c
  7437. ac_cpp='$CPP $CPPFLAGS'
  7438. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7439. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7440. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7441. # Source file extension for C test sources.
  7442. ac_ext=c
  7443. # Object file extension for compiled C test sources.
  7444. objext=o
  7445. objext=$objext
  7446. # Code to be used in simple compile tests
  7447. lt_simple_compile_test_code="int some_variable = 0;"
  7448. # Code to be used in simple link tests
  7449. lt_simple_link_test_code='int main(){return(0);}'
  7450. # If no C compiler was specified, use CC.
  7451. LTCC=${LTCC-"$CC"}
  7452. # If no C compiler flags were specified, use CFLAGS.
  7453. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7454. # Allow CC to be a program name with arguments.
  7455. compiler=$CC
  7456. # Save the default compiler, since it gets overwritten when the other
  7457. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7458. compiler_DEFAULT=$CC
  7459. # save warnings/boilerplate of simple test code
  7460. ac_outfile=conftest.$ac_objext
  7461. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7462. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7463. _lt_compiler_boilerplate=`cat conftest.err`
  7464. $RM conftest*
  7465. ac_outfile=conftest.$ac_objext
  7466. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7467. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7468. _lt_linker_boilerplate=`cat conftest.err`
  7469. $RM -r conftest*
  7470. ## CAVEAT EMPTOR:
  7471. ## There is no encapsulation within the following macros, do not change
  7472. ## the running order or otherwise move them around unless you know exactly
  7473. ## what you are doing...
  7474. if test -n "$compiler"; then
  7475. lt_prog_compiler_no_builtin_flag=
  7476. if test "$GCC" = yes; then
  7477. case $cc_basename in
  7478. nvcc*)
  7479. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7480. *)
  7481. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7482. esac
  7483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7484. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7485. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7486. $as_echo_n "(cached) " >&6
  7487. else
  7488. lt_cv_prog_compiler_rtti_exceptions=no
  7489. ac_outfile=conftest.$ac_objext
  7490. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7491. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7492. # Insert the option either (1) after the last *FLAGS variable, or
  7493. # (2) before a word containing "conftest.", or (3) at the end.
  7494. # Note that $ac_compile itself does not contain backslashes and begins
  7495. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7496. # The option is referenced via a variable to avoid confusing sed.
  7497. lt_compile=`echo "$ac_compile" | $SED \
  7498. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7499. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7500. -e 's:$: $lt_compiler_flag:'`
  7501. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7502. (eval "$lt_compile" 2>conftest.err)
  7503. ac_status=$?
  7504. cat conftest.err >&5
  7505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7506. if (exit $ac_status) && test -s "$ac_outfile"; then
  7507. # The compiler can only warn and ignore the option if not recognized
  7508. # So say no if there are warnings other than the usual output.
  7509. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7510. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7511. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7512. lt_cv_prog_compiler_rtti_exceptions=yes
  7513. fi
  7514. fi
  7515. $RM conftest*
  7516. fi
  7517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7518. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7519. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7520. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7521. else
  7522. :
  7523. fi
  7524. fi
  7525. lt_prog_compiler_wl=
  7526. lt_prog_compiler_pic=
  7527. lt_prog_compiler_static=
  7528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7529. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7530. if test "$GCC" = yes; then
  7531. lt_prog_compiler_wl='-Wl,'
  7532. lt_prog_compiler_static='-static'
  7533. case $host_os in
  7534. aix*)
  7535. # All AIX code is PIC.
  7536. if test "$host_cpu" = ia64; then
  7537. # AIX 5 now supports IA64 processor
  7538. lt_prog_compiler_static='-Bstatic'
  7539. fi
  7540. lt_prog_compiler_pic='-fPIC'
  7541. ;;
  7542. amigaos*)
  7543. case $host_cpu in
  7544. powerpc)
  7545. # see comment about AmigaOS4 .so support
  7546. lt_prog_compiler_pic='-fPIC'
  7547. ;;
  7548. m68k)
  7549. # FIXME: we need at least 68020 code to build shared libraries, but
  7550. # adding the `-m68020' flag to GCC prevents building anything better,
  7551. # like `-m68040'.
  7552. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7553. ;;
  7554. esac
  7555. ;;
  7556. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7557. # PIC is the default for these OSes.
  7558. ;;
  7559. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7560. # This hack is so that the source file can tell whether it is being
  7561. # built for inclusion in a dll (and should export symbols for example).
  7562. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7563. # (--disable-auto-import) libraries
  7564. lt_prog_compiler_pic='-DDLL_EXPORT'
  7565. ;;
  7566. darwin* | rhapsody*)
  7567. # PIC is the default on this platform
  7568. # Common symbols not allowed in MH_DYLIB files
  7569. lt_prog_compiler_pic='-fno-common'
  7570. ;;
  7571. haiku*)
  7572. # PIC is the default for Haiku.
  7573. # The "-static" flag exists, but is broken.
  7574. lt_prog_compiler_static=
  7575. ;;
  7576. hpux*)
  7577. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7578. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7579. # sets the default TLS model and affects inlining.
  7580. case $host_cpu in
  7581. hppa*64*)
  7582. # +Z the default
  7583. ;;
  7584. *)
  7585. lt_prog_compiler_pic='-fPIC'
  7586. ;;
  7587. esac
  7588. ;;
  7589. interix[3-9]*)
  7590. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7591. # Instead, we relocate shared libraries at runtime.
  7592. ;;
  7593. msdosdjgpp*)
  7594. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7595. # on systems that don't support them.
  7596. lt_prog_compiler_can_build_shared=no
  7597. enable_shared=no
  7598. ;;
  7599. *nto* | *qnx*)
  7600. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7601. # it will coredump.
  7602. lt_prog_compiler_pic='-fPIC -shared'
  7603. ;;
  7604. sysv4*MP*)
  7605. if test -d /usr/nec; then
  7606. lt_prog_compiler_pic=-Kconform_pic
  7607. fi
  7608. ;;
  7609. *)
  7610. lt_prog_compiler_pic='-fPIC'
  7611. ;;
  7612. esac
  7613. case $cc_basename in
  7614. nvcc*) # Cuda Compiler Driver 2.2
  7615. lt_prog_compiler_wl='-Xlinker '
  7616. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7617. ;;
  7618. esac
  7619. else
  7620. # PORTME Check for flag to pass linker flags through the system compiler.
  7621. case $host_os in
  7622. aix*)
  7623. lt_prog_compiler_wl='-Wl,'
  7624. if test "$host_cpu" = ia64; then
  7625. # AIX 5 now supports IA64 processor
  7626. lt_prog_compiler_static='-Bstatic'
  7627. else
  7628. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7629. fi
  7630. ;;
  7631. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7632. # This hack is so that the source file can tell whether it is being
  7633. # built for inclusion in a dll (and should export symbols for example).
  7634. lt_prog_compiler_pic='-DDLL_EXPORT'
  7635. ;;
  7636. hpux9* | hpux10* | hpux11*)
  7637. lt_prog_compiler_wl='-Wl,'
  7638. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7639. # not for PA HP-UX.
  7640. case $host_cpu in
  7641. hppa*64*|ia64*)
  7642. # +Z the default
  7643. ;;
  7644. *)
  7645. lt_prog_compiler_pic='+Z'
  7646. ;;
  7647. esac
  7648. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7649. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7650. ;;
  7651. irix5* | irix6* | nonstopux*)
  7652. lt_prog_compiler_wl='-Wl,'
  7653. # PIC (with -KPIC) is the default.
  7654. lt_prog_compiler_static='-non_shared'
  7655. ;;
  7656. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7657. case $cc_basename in
  7658. # old Intel for x86_64 which still supported -KPIC.
  7659. ecc*)
  7660. lt_prog_compiler_wl='-Wl,'
  7661. lt_prog_compiler_pic='-KPIC'
  7662. lt_prog_compiler_static='-static'
  7663. ;;
  7664. # icc used to be incompatible with GCC.
  7665. # ICC 10 doesn't accept -KPIC any more.
  7666. icc* | ifort*)
  7667. lt_prog_compiler_wl='-Wl,'
  7668. lt_prog_compiler_pic='-fPIC'
  7669. lt_prog_compiler_static='-static'
  7670. ;;
  7671. # Lahey Fortran 8.1.
  7672. lf95*)
  7673. lt_prog_compiler_wl='-Wl,'
  7674. lt_prog_compiler_pic='--shared'
  7675. lt_prog_compiler_static='--static'
  7676. ;;
  7677. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7678. # Portland Group compilers (*not* the Pentium gcc compiler,
  7679. # which looks to be a dead project)
  7680. lt_prog_compiler_wl='-Wl,'
  7681. lt_prog_compiler_pic='-fpic'
  7682. lt_prog_compiler_static='-Bstatic'
  7683. ;;
  7684. ccc*)
  7685. lt_prog_compiler_wl='-Wl,'
  7686. # All Alpha code is PIC.
  7687. lt_prog_compiler_static='-non_shared'
  7688. ;;
  7689. xl* | bgxl* | bgf* | mpixl*)
  7690. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7691. lt_prog_compiler_wl='-Wl,'
  7692. lt_prog_compiler_pic='-qpic'
  7693. lt_prog_compiler_static='-qstaticlink'
  7694. ;;
  7695. *)
  7696. case `$CC -V 2>&1 | sed 5q` in
  7697. *Sun\ F* | *Sun*Fortran*)
  7698. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7699. lt_prog_compiler_pic='-KPIC'
  7700. lt_prog_compiler_static='-Bstatic'
  7701. lt_prog_compiler_wl=''
  7702. ;;
  7703. *Sun\ C*)
  7704. # Sun C 5.9
  7705. lt_prog_compiler_pic='-KPIC'
  7706. lt_prog_compiler_static='-Bstatic'
  7707. lt_prog_compiler_wl='-Wl,'
  7708. ;;
  7709. esac
  7710. ;;
  7711. esac
  7712. ;;
  7713. newsos6)
  7714. lt_prog_compiler_pic='-KPIC'
  7715. lt_prog_compiler_static='-Bstatic'
  7716. ;;
  7717. *nto* | *qnx*)
  7718. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7719. # it will coredump.
  7720. lt_prog_compiler_pic='-fPIC -shared'
  7721. ;;
  7722. osf3* | osf4* | osf5*)
  7723. lt_prog_compiler_wl='-Wl,'
  7724. # All OSF/1 code is PIC.
  7725. lt_prog_compiler_static='-non_shared'
  7726. ;;
  7727. rdos*)
  7728. lt_prog_compiler_static='-non_shared'
  7729. ;;
  7730. solaris*)
  7731. lt_prog_compiler_pic='-KPIC'
  7732. lt_prog_compiler_static='-Bstatic'
  7733. case $cc_basename in
  7734. f77* | f90* | f95*)
  7735. lt_prog_compiler_wl='-Qoption ld ';;
  7736. *)
  7737. lt_prog_compiler_wl='-Wl,';;
  7738. esac
  7739. ;;
  7740. sunos4*)
  7741. lt_prog_compiler_wl='-Qoption ld '
  7742. lt_prog_compiler_pic='-PIC'
  7743. lt_prog_compiler_static='-Bstatic'
  7744. ;;
  7745. sysv4 | sysv4.2uw2* | sysv4.3*)
  7746. lt_prog_compiler_wl='-Wl,'
  7747. lt_prog_compiler_pic='-KPIC'
  7748. lt_prog_compiler_static='-Bstatic'
  7749. ;;
  7750. sysv4*MP*)
  7751. if test -d /usr/nec ;then
  7752. lt_prog_compiler_pic='-Kconform_pic'
  7753. lt_prog_compiler_static='-Bstatic'
  7754. fi
  7755. ;;
  7756. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7757. lt_prog_compiler_wl='-Wl,'
  7758. lt_prog_compiler_pic='-KPIC'
  7759. lt_prog_compiler_static='-Bstatic'
  7760. ;;
  7761. unicos*)
  7762. lt_prog_compiler_wl='-Wl,'
  7763. lt_prog_compiler_can_build_shared=no
  7764. ;;
  7765. uts4*)
  7766. lt_prog_compiler_pic='-pic'
  7767. lt_prog_compiler_static='-Bstatic'
  7768. ;;
  7769. *)
  7770. lt_prog_compiler_can_build_shared=no
  7771. ;;
  7772. esac
  7773. fi
  7774. case $host_os in
  7775. # For platforms which do not support PIC, -DPIC is meaningless:
  7776. *djgpp*)
  7777. lt_prog_compiler_pic=
  7778. ;;
  7779. *)
  7780. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7781. ;;
  7782. esac
  7783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7784. $as_echo "$lt_prog_compiler_pic" >&6; }
  7785. #
  7786. # Check to make sure the PIC flag actually works.
  7787. #
  7788. if test -n "$lt_prog_compiler_pic"; then
  7789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7790. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7791. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7792. $as_echo_n "(cached) " >&6
  7793. else
  7794. lt_cv_prog_compiler_pic_works=no
  7795. ac_outfile=conftest.$ac_objext
  7796. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7797. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7798. # Insert the option either (1) after the last *FLAGS variable, or
  7799. # (2) before a word containing "conftest.", or (3) at the end.
  7800. # Note that $ac_compile itself does not contain backslashes and begins
  7801. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7802. # The option is referenced via a variable to avoid confusing sed.
  7803. lt_compile=`echo "$ac_compile" | $SED \
  7804. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7805. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7806. -e 's:$: $lt_compiler_flag:'`
  7807. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7808. (eval "$lt_compile" 2>conftest.err)
  7809. ac_status=$?
  7810. cat conftest.err >&5
  7811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7812. if (exit $ac_status) && test -s "$ac_outfile"; then
  7813. # The compiler can only warn and ignore the option if not recognized
  7814. # So say no if there are warnings other than the usual output.
  7815. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7816. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7817. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7818. lt_cv_prog_compiler_pic_works=yes
  7819. fi
  7820. fi
  7821. $RM conftest*
  7822. fi
  7823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7824. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7825. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7826. case $lt_prog_compiler_pic in
  7827. "" | " "*) ;;
  7828. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7829. esac
  7830. else
  7831. lt_prog_compiler_pic=
  7832. lt_prog_compiler_can_build_shared=no
  7833. fi
  7834. fi
  7835. #
  7836. # Check to make sure the static flag actually works.
  7837. #
  7838. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7840. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7841. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7842. $as_echo_n "(cached) " >&6
  7843. else
  7844. lt_cv_prog_compiler_static_works=no
  7845. save_LDFLAGS="$LDFLAGS"
  7846. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7847. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7848. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7849. # The linker can only warn and ignore the option if not recognized
  7850. # So say no if there are warnings
  7851. if test -s conftest.err; then
  7852. # Append any errors to the config.log.
  7853. cat conftest.err 1>&5
  7854. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7855. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7856. if diff conftest.exp conftest.er2 >/dev/null; then
  7857. lt_cv_prog_compiler_static_works=yes
  7858. fi
  7859. else
  7860. lt_cv_prog_compiler_static_works=yes
  7861. fi
  7862. fi
  7863. $RM -r conftest*
  7864. LDFLAGS="$save_LDFLAGS"
  7865. fi
  7866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7867. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7868. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7869. :
  7870. else
  7871. lt_prog_compiler_static=
  7872. fi
  7873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7874. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7875. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7876. $as_echo_n "(cached) " >&6
  7877. else
  7878. lt_cv_prog_compiler_c_o=no
  7879. $RM -r conftest 2>/dev/null
  7880. mkdir conftest
  7881. cd conftest
  7882. mkdir out
  7883. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7884. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7885. # Insert the option either (1) after the last *FLAGS variable, or
  7886. # (2) before a word containing "conftest.", or (3) at the end.
  7887. # Note that $ac_compile itself does not contain backslashes and begins
  7888. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7889. lt_compile=`echo "$ac_compile" | $SED \
  7890. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7891. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7892. -e 's:$: $lt_compiler_flag:'`
  7893. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7894. (eval "$lt_compile" 2>out/conftest.err)
  7895. ac_status=$?
  7896. cat out/conftest.err >&5
  7897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7898. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7899. then
  7900. # The compiler can only warn and ignore the option if not recognized
  7901. # So say no if there are warnings
  7902. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7903. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7904. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7905. lt_cv_prog_compiler_c_o=yes
  7906. fi
  7907. fi
  7908. chmod u+w . 2>&5
  7909. $RM conftest*
  7910. # SGI C++ compiler will create directory out/ii_files/ for
  7911. # template instantiation
  7912. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7913. $RM out/* && rmdir out
  7914. cd ..
  7915. $RM -r conftest
  7916. $RM conftest*
  7917. fi
  7918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7919. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7921. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7922. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7923. $as_echo_n "(cached) " >&6
  7924. else
  7925. lt_cv_prog_compiler_c_o=no
  7926. $RM -r conftest 2>/dev/null
  7927. mkdir conftest
  7928. cd conftest
  7929. mkdir out
  7930. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7931. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7932. # Insert the option either (1) after the last *FLAGS variable, or
  7933. # (2) before a word containing "conftest.", or (3) at the end.
  7934. # Note that $ac_compile itself does not contain backslashes and begins
  7935. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7936. lt_compile=`echo "$ac_compile" | $SED \
  7937. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7938. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7939. -e 's:$: $lt_compiler_flag:'`
  7940. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7941. (eval "$lt_compile" 2>out/conftest.err)
  7942. ac_status=$?
  7943. cat out/conftest.err >&5
  7944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7945. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7946. then
  7947. # The compiler can only warn and ignore the option if not recognized
  7948. # So say no if there are warnings
  7949. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7950. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7951. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7952. lt_cv_prog_compiler_c_o=yes
  7953. fi
  7954. fi
  7955. chmod u+w . 2>&5
  7956. $RM conftest*
  7957. # SGI C++ compiler will create directory out/ii_files/ for
  7958. # template instantiation
  7959. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7960. $RM out/* && rmdir out
  7961. cd ..
  7962. $RM -r conftest
  7963. $RM conftest*
  7964. fi
  7965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7966. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7967. hard_links="nottested"
  7968. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7969. # do not overwrite the value of need_locks provided by the user
  7970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7971. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7972. hard_links=yes
  7973. $RM conftest*
  7974. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7975. touch conftest.a
  7976. ln conftest.a conftest.b 2>&5 || hard_links=no
  7977. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7979. $as_echo "$hard_links" >&6; }
  7980. if test "$hard_links" = no; then
  7981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7982. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7983. need_locks=warn
  7984. fi
  7985. else
  7986. need_locks=no
  7987. fi
  7988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7989. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7990. runpath_var=
  7991. allow_undefined_flag=
  7992. always_export_symbols=no
  7993. archive_cmds=
  7994. archive_expsym_cmds=
  7995. compiler_needs_object=no
  7996. enable_shared_with_static_runtimes=no
  7997. export_dynamic_flag_spec=
  7998. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7999. hardcode_automatic=no
  8000. hardcode_direct=no
  8001. hardcode_direct_absolute=no
  8002. hardcode_libdir_flag_spec=
  8003. hardcode_libdir_flag_spec_ld=
  8004. hardcode_libdir_separator=
  8005. hardcode_minus_L=no
  8006. hardcode_shlibpath_var=unsupported
  8007. inherit_rpath=no
  8008. link_all_deplibs=unknown
  8009. module_cmds=
  8010. module_expsym_cmds=
  8011. old_archive_from_new_cmds=
  8012. old_archive_from_expsyms_cmds=
  8013. thread_safe_flag_spec=
  8014. whole_archive_flag_spec=
  8015. # include_expsyms should be a list of space-separated symbols to be *always*
  8016. # included in the symbol list
  8017. include_expsyms=
  8018. # exclude_expsyms can be an extended regexp of symbols to exclude
  8019. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8020. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8021. # as well as any symbol that contains `d'.
  8022. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8023. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8024. # platforms (ab)use it in PIC code, but their linkers get confused if
  8025. # the symbol is explicitly referenced. Since portable code cannot
  8026. # rely on this symbol name, it's probably fine to never include it in
  8027. # preloaded symbol tables.
  8028. # Exclude shared library initialization/finalization symbols.
  8029. extract_expsyms_cmds=
  8030. case $host_os in
  8031. cygwin* | mingw* | pw32* | cegcc*)
  8032. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8033. # When not using gcc, we currently assume that we are using
  8034. # Microsoft Visual C++.
  8035. if test "$GCC" != yes; then
  8036. with_gnu_ld=no
  8037. fi
  8038. ;;
  8039. interix*)
  8040. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8041. with_gnu_ld=yes
  8042. ;;
  8043. openbsd*)
  8044. with_gnu_ld=no
  8045. ;;
  8046. esac
  8047. ld_shlibs=yes
  8048. # On some targets, GNU ld is compatible enough with the native linker
  8049. # that we're better off using the native interface for both.
  8050. lt_use_gnu_ld_interface=no
  8051. if test "$with_gnu_ld" = yes; then
  8052. case $host_os in
  8053. aix*)
  8054. # The AIX port of GNU ld has always aspired to compatibility
  8055. # with the native linker. However, as the warning in the GNU ld
  8056. # block says, versions before 2.19.5* couldn't really create working
  8057. # shared libraries, regardless of the interface used.
  8058. case `$LD -v 2>&1` in
  8059. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8060. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8061. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8062. *)
  8063. lt_use_gnu_ld_interface=yes
  8064. ;;
  8065. esac
  8066. ;;
  8067. *)
  8068. lt_use_gnu_ld_interface=yes
  8069. ;;
  8070. esac
  8071. fi
  8072. if test "$lt_use_gnu_ld_interface" = yes; then
  8073. # If archive_cmds runs LD, not CC, wlarc should be empty
  8074. wlarc='${wl}'
  8075. # Set some defaults for GNU ld with shared library support. These
  8076. # are reset later if shared libraries are not supported. Putting them
  8077. # here allows them to be overridden if necessary.
  8078. runpath_var=LD_RUN_PATH
  8079. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8080. export_dynamic_flag_spec='${wl}--export-dynamic'
  8081. # ancient GNU ld didn't support --whole-archive et. al.
  8082. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8083. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8084. else
  8085. whole_archive_flag_spec=
  8086. fi
  8087. supports_anon_versioning=no
  8088. case `$LD -v 2>&1` in
  8089. *GNU\ gold*) supports_anon_versioning=yes ;;
  8090. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8091. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8092. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8093. *\ 2.11.*) ;; # other 2.11 versions
  8094. *) supports_anon_versioning=yes ;;
  8095. esac
  8096. # See if GNU ld supports shared libraries.
  8097. case $host_os in
  8098. aix[3-9]*)
  8099. # On AIX/PPC, the GNU linker is very broken
  8100. if test "$host_cpu" != ia64; then
  8101. ld_shlibs=no
  8102. cat <<_LT_EOF 1>&2
  8103. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8104. *** to be unable to reliably create shared libraries on AIX.
  8105. *** Therefore, libtool is disabling shared libraries support. If you
  8106. *** really care for shared libraries, you may want to install binutils
  8107. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8108. *** You will then need to restart the configuration process.
  8109. _LT_EOF
  8110. fi
  8111. ;;
  8112. amigaos*)
  8113. case $host_cpu in
  8114. powerpc)
  8115. # see comment about AmigaOS4 .so support
  8116. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8117. archive_expsym_cmds=''
  8118. ;;
  8119. m68k)
  8120. 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)'
  8121. hardcode_libdir_flag_spec='-L$libdir'
  8122. hardcode_minus_L=yes
  8123. ;;
  8124. esac
  8125. ;;
  8126. beos*)
  8127. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8128. allow_undefined_flag=unsupported
  8129. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8130. # support --undefined. This deserves some investigation. FIXME
  8131. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8132. else
  8133. ld_shlibs=no
  8134. fi
  8135. ;;
  8136. cygwin* | mingw* | pw32* | cegcc*)
  8137. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8138. # as there is no search path for DLLs.
  8139. hardcode_libdir_flag_spec='-L$libdir'
  8140. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8141. allow_undefined_flag=unsupported
  8142. always_export_symbols=no
  8143. enable_shared_with_static_runtimes=yes
  8144. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8145. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8146. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8147. # If the export-symbols file already is a .def file (1st line
  8148. # is EXPORTS), use it as is; otherwise, prepend...
  8149. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8150. cp $export_symbols $output_objdir/$soname.def;
  8151. else
  8152. echo EXPORTS > $output_objdir/$soname.def;
  8153. cat $export_symbols >> $output_objdir/$soname.def;
  8154. fi~
  8155. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8156. else
  8157. ld_shlibs=no
  8158. fi
  8159. ;;
  8160. haiku*)
  8161. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8162. link_all_deplibs=yes
  8163. ;;
  8164. interix[3-9]*)
  8165. hardcode_direct=no
  8166. hardcode_shlibpath_var=no
  8167. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8168. export_dynamic_flag_spec='${wl}-E'
  8169. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8170. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8171. # default) and relocated if they conflict, which is a slow very memory
  8172. # consuming and fragmenting process. To avoid this, we pick a random,
  8173. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8174. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8175. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8176. 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'
  8177. ;;
  8178. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8179. tmp_diet=no
  8180. if test "$host_os" = linux-dietlibc; then
  8181. case $cc_basename in
  8182. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8183. esac
  8184. fi
  8185. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8186. && test "$tmp_diet" = no
  8187. then
  8188. tmp_addflag=
  8189. tmp_sharedflag='-shared'
  8190. case $cc_basename,$host_cpu in
  8191. pgcc*) # Portland Group C compiler
  8192. 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'
  8193. tmp_addflag=' $pic_flag'
  8194. ;;
  8195. pgf77* | pgf90* | pgf95* | pgfortran*)
  8196. # Portland Group f77 and f90 compilers
  8197. 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'
  8198. tmp_addflag=' $pic_flag -Mnomain' ;;
  8199. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8200. tmp_addflag=' -i_dynamic' ;;
  8201. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8202. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8203. ifc* | ifort*) # Intel Fortran compiler
  8204. tmp_addflag=' -nofor_main' ;;
  8205. lf95*) # Lahey Fortran 8.1
  8206. whole_archive_flag_spec=
  8207. tmp_sharedflag='--shared' ;;
  8208. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8209. tmp_sharedflag='-qmkshrobj'
  8210. tmp_addflag= ;;
  8211. nvcc*) # Cuda Compiler Driver 2.2
  8212. 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'
  8213. compiler_needs_object=yes
  8214. ;;
  8215. esac
  8216. case `$CC -V 2>&1 | sed 5q` in
  8217. *Sun\ C*) # Sun C 5.9
  8218. 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'
  8219. compiler_needs_object=yes
  8220. tmp_sharedflag='-G' ;;
  8221. *Sun\ F*) # Sun Fortran 8.3
  8222. tmp_sharedflag='-G' ;;
  8223. esac
  8224. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8225. if test "x$supports_anon_versioning" = xyes; then
  8226. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8227. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8228. echo "local: *; };" >> $output_objdir/$libname.ver~
  8229. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8230. fi
  8231. case $cc_basename in
  8232. xlf* | bgf* | bgxlf* | mpixlf*)
  8233. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8234. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8235. hardcode_libdir_flag_spec=
  8236. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8237. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8238. if test "x$supports_anon_versioning" = xyes; then
  8239. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8240. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8241. echo "local: *; };" >> $output_objdir/$libname.ver~
  8242. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8243. fi
  8244. ;;
  8245. esac
  8246. else
  8247. ld_shlibs=no
  8248. fi
  8249. ;;
  8250. netbsd*)
  8251. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8252. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8253. wlarc=
  8254. else
  8255. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8256. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8257. fi
  8258. ;;
  8259. solaris*)
  8260. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8261. ld_shlibs=no
  8262. cat <<_LT_EOF 1>&2
  8263. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8264. *** create shared libraries on Solaris systems. Therefore, libtool
  8265. *** is disabling shared libraries support. We urge you to upgrade GNU
  8266. *** binutils to release 2.9.1 or newer. Another option is to modify
  8267. *** your PATH or compiler configuration so that the native linker is
  8268. *** used, and then restart.
  8269. _LT_EOF
  8270. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8271. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8272. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8273. else
  8274. ld_shlibs=no
  8275. fi
  8276. ;;
  8277. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8278. case `$LD -v 2>&1` in
  8279. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8280. ld_shlibs=no
  8281. cat <<_LT_EOF 1>&2
  8282. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8283. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8284. *** is disabling shared libraries support. We urge you to upgrade GNU
  8285. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8286. *** your PATH or compiler configuration so that the native linker is
  8287. *** used, and then restart.
  8288. _LT_EOF
  8289. ;;
  8290. *)
  8291. # For security reasons, it is highly recommended that you always
  8292. # use absolute paths for naming shared libraries, and exclude the
  8293. # DT_RUNPATH tag from executables and libraries. But doing so
  8294. # requires that you compile everything twice, which is a pain.
  8295. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8296. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8297. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8298. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8299. else
  8300. ld_shlibs=no
  8301. fi
  8302. ;;
  8303. esac
  8304. ;;
  8305. sunos4*)
  8306. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8307. wlarc=
  8308. hardcode_direct=yes
  8309. hardcode_shlibpath_var=no
  8310. ;;
  8311. *)
  8312. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8313. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8314. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8315. else
  8316. ld_shlibs=no
  8317. fi
  8318. ;;
  8319. esac
  8320. if test "$ld_shlibs" = no; then
  8321. runpath_var=
  8322. hardcode_libdir_flag_spec=
  8323. export_dynamic_flag_spec=
  8324. whole_archive_flag_spec=
  8325. fi
  8326. else
  8327. # PORTME fill in a description of your system's linker (not GNU ld)
  8328. case $host_os in
  8329. aix3*)
  8330. allow_undefined_flag=unsupported
  8331. always_export_symbols=yes
  8332. 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'
  8333. # Note: this linker hardcodes the directories in LIBPATH if there
  8334. # are no directories specified by -L.
  8335. hardcode_minus_L=yes
  8336. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8337. # Neither direct hardcoding nor static linking is supported with a
  8338. # broken collect2.
  8339. hardcode_direct=unsupported
  8340. fi
  8341. ;;
  8342. aix[4-9]*)
  8343. if test "$host_cpu" = ia64; then
  8344. # On IA64, the linker does run time linking by default, so we don't
  8345. # have to do anything special.
  8346. aix_use_runtimelinking=no
  8347. exp_sym_flag='-Bexport'
  8348. no_entry_flag=""
  8349. else
  8350. # If we're using GNU nm, then we don't want the "-C" option.
  8351. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8352. # Also, AIX nm treats weak defined symbols like other global
  8353. # defined symbols, whereas GNU nm marks them as "W".
  8354. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8355. 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'
  8356. else
  8357. 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'
  8358. fi
  8359. aix_use_runtimelinking=no
  8360. # Test if we are trying to use run time linking or normal
  8361. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8362. # need to do runtime linking.
  8363. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8364. for ld_flag in $LDFLAGS; do
  8365. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8366. aix_use_runtimelinking=yes
  8367. break
  8368. fi
  8369. done
  8370. ;;
  8371. esac
  8372. exp_sym_flag='-bexport'
  8373. no_entry_flag='-bnoentry'
  8374. fi
  8375. # When large executables or shared objects are built, AIX ld can
  8376. # have problems creating the table of contents. If linking a library
  8377. # or program results in "error TOC overflow" add -mminimal-toc to
  8378. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8379. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8380. archive_cmds=''
  8381. hardcode_direct=yes
  8382. hardcode_direct_absolute=yes
  8383. hardcode_libdir_separator=':'
  8384. link_all_deplibs=yes
  8385. file_list_spec='${wl}-f,'
  8386. if test "$GCC" = yes; then
  8387. case $host_os in aix4.[012]|aix4.[012].*)
  8388. # We only want to do this on AIX 4.2 and lower, the check
  8389. # below for broken collect2 doesn't work under 4.3+
  8390. collect2name=`${CC} -print-prog-name=collect2`
  8391. if test -f "$collect2name" &&
  8392. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8393. then
  8394. # We have reworked collect2
  8395. :
  8396. else
  8397. # We have old collect2
  8398. hardcode_direct=unsupported
  8399. # It fails to find uninstalled libraries when the uninstalled
  8400. # path is not listed in the libpath. Setting hardcode_minus_L
  8401. # to unsupported forces relinking
  8402. hardcode_minus_L=yes
  8403. hardcode_libdir_flag_spec='-L$libdir'
  8404. hardcode_libdir_separator=
  8405. fi
  8406. ;;
  8407. esac
  8408. shared_flag='-shared'
  8409. if test "$aix_use_runtimelinking" = yes; then
  8410. shared_flag="$shared_flag "'${wl}-G'
  8411. fi
  8412. else
  8413. # not using gcc
  8414. if test "$host_cpu" = ia64; then
  8415. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8416. # chokes on -Wl,-G. The following line is correct:
  8417. shared_flag='-G'
  8418. else
  8419. if test "$aix_use_runtimelinking" = yes; then
  8420. shared_flag='${wl}-G'
  8421. else
  8422. shared_flag='${wl}-bM:SRE'
  8423. fi
  8424. fi
  8425. fi
  8426. export_dynamic_flag_spec='${wl}-bexpall'
  8427. # It seems that -bexpall does not export symbols beginning with
  8428. # underscore (_), so it is better to generate a list of symbols to export.
  8429. always_export_symbols=yes
  8430. if test "$aix_use_runtimelinking" = yes; then
  8431. # Warning - without using the other runtime loading flags (-brtl),
  8432. # -berok will link without error, but may produce a broken library.
  8433. allow_undefined_flag='-berok'
  8434. # Determine the default libpath from the value encoded in an
  8435. # empty executable.
  8436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8437. /* end confdefs.h. */
  8438. int
  8439. main ()
  8440. {
  8441. ;
  8442. return 0;
  8443. }
  8444. _ACEOF
  8445. if ac_fn_c_try_link "$LINENO"; then :
  8446. lt_aix_libpath_sed='
  8447. /Import File Strings/,/^$/ {
  8448. /^0/ {
  8449. s/^0 *\(.*\)$/\1/
  8450. p
  8451. }
  8452. }'
  8453. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8454. # Check for a 64-bit object if we didn't find anything.
  8455. if test -z "$aix_libpath"; then
  8456. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8457. fi
  8458. fi
  8459. rm -f core conftest.err conftest.$ac_objext \
  8460. conftest$ac_exeext conftest.$ac_ext
  8461. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8462. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8463. 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"
  8464. else
  8465. if test "$host_cpu" = ia64; then
  8466. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8467. allow_undefined_flag="-z nodefs"
  8468. 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"
  8469. else
  8470. # Determine the default libpath from the value encoded in an
  8471. # empty executable.
  8472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8473. /* end confdefs.h. */
  8474. int
  8475. main ()
  8476. {
  8477. ;
  8478. return 0;
  8479. }
  8480. _ACEOF
  8481. if ac_fn_c_try_link "$LINENO"; then :
  8482. lt_aix_libpath_sed='
  8483. /Import File Strings/,/^$/ {
  8484. /^0/ {
  8485. s/^0 *\(.*\)$/\1/
  8486. p
  8487. }
  8488. }'
  8489. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8490. # Check for a 64-bit object if we didn't find anything.
  8491. if test -z "$aix_libpath"; then
  8492. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8493. fi
  8494. fi
  8495. rm -f core conftest.err conftest.$ac_objext \
  8496. conftest$ac_exeext conftest.$ac_ext
  8497. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8498. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8499. # Warning - without using the other run time loading flags,
  8500. # -berok will link without error, but may produce a broken library.
  8501. no_undefined_flag=' ${wl}-bernotok'
  8502. allow_undefined_flag=' ${wl}-berok'
  8503. if test "$with_gnu_ld" = yes; then
  8504. # We only use this code for GNU lds that support --whole-archive.
  8505. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8506. else
  8507. # Exported symbols can be pulled into shared objects from archives
  8508. whole_archive_flag_spec='$convenience'
  8509. fi
  8510. archive_cmds_need_lc=yes
  8511. # This is similar to how AIX traditionally builds its shared libraries.
  8512. 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'
  8513. fi
  8514. fi
  8515. ;;
  8516. amigaos*)
  8517. case $host_cpu in
  8518. powerpc)
  8519. # see comment about AmigaOS4 .so support
  8520. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8521. archive_expsym_cmds=''
  8522. ;;
  8523. m68k)
  8524. 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)'
  8525. hardcode_libdir_flag_spec='-L$libdir'
  8526. hardcode_minus_L=yes
  8527. ;;
  8528. esac
  8529. ;;
  8530. bsdi[45]*)
  8531. export_dynamic_flag_spec=-rdynamic
  8532. ;;
  8533. cygwin* | mingw* | pw32* | cegcc*)
  8534. # When not using gcc, we currently assume that we are using
  8535. # Microsoft Visual C++.
  8536. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8537. # no search path for DLLs.
  8538. hardcode_libdir_flag_spec=' '
  8539. allow_undefined_flag=unsupported
  8540. # Tell ltmain to make .lib files, not .a files.
  8541. libext=lib
  8542. # Tell ltmain to make .dll files, not .so files.
  8543. shrext_cmds=".dll"
  8544. # FIXME: Setting linknames here is a bad hack.
  8545. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8546. # The linker will automatically build a .lib file if we build a DLL.
  8547. old_archive_from_new_cmds='true'
  8548. # FIXME: Should let the user specify the lib program.
  8549. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8550. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8551. enable_shared_with_static_runtimes=yes
  8552. ;;
  8553. darwin* | rhapsody*)
  8554. archive_cmds_need_lc=no
  8555. hardcode_direct=no
  8556. hardcode_automatic=yes
  8557. hardcode_shlibpath_var=unsupported
  8558. if test "$lt_cv_ld_force_load" = "yes"; then
  8559. 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\"`'
  8560. else
  8561. whole_archive_flag_spec=''
  8562. fi
  8563. link_all_deplibs=yes
  8564. allow_undefined_flag="$_lt_dar_allow_undefined"
  8565. case $cc_basename in
  8566. ifort*) _lt_dar_can_shared=yes ;;
  8567. *) _lt_dar_can_shared=$GCC ;;
  8568. esac
  8569. if test "$_lt_dar_can_shared" = "yes"; then
  8570. output_verbose_link_cmd=func_echo_all
  8571. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8572. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8573. 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}"
  8574. 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}"
  8575. else
  8576. ld_shlibs=no
  8577. fi
  8578. ;;
  8579. dgux*)
  8580. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8581. hardcode_libdir_flag_spec='-L$libdir'
  8582. hardcode_shlibpath_var=no
  8583. ;;
  8584. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8585. # support. Future versions do this automatically, but an explicit c++rt0.o
  8586. # does not break anything, and helps significantly (at the cost of a little
  8587. # extra space).
  8588. freebsd2.2*)
  8589. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8590. hardcode_libdir_flag_spec='-R$libdir'
  8591. hardcode_direct=yes
  8592. hardcode_shlibpath_var=no
  8593. ;;
  8594. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8595. freebsd2.*)
  8596. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8597. hardcode_direct=yes
  8598. hardcode_minus_L=yes
  8599. hardcode_shlibpath_var=no
  8600. ;;
  8601. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8602. freebsd* | dragonfly*)
  8603. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8604. hardcode_libdir_flag_spec='-R$libdir'
  8605. hardcode_direct=yes
  8606. hardcode_shlibpath_var=no
  8607. ;;
  8608. hpux9*)
  8609. if test "$GCC" = yes; then
  8610. 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'
  8611. else
  8612. 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'
  8613. fi
  8614. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8615. hardcode_libdir_separator=:
  8616. hardcode_direct=yes
  8617. # hardcode_minus_L: Not really in the search PATH,
  8618. # but as the default location of the library.
  8619. hardcode_minus_L=yes
  8620. export_dynamic_flag_spec='${wl}-E'
  8621. ;;
  8622. hpux10*)
  8623. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8624. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8625. else
  8626. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8627. fi
  8628. if test "$with_gnu_ld" = no; then
  8629. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8630. hardcode_libdir_flag_spec_ld='+b $libdir'
  8631. hardcode_libdir_separator=:
  8632. hardcode_direct=yes
  8633. hardcode_direct_absolute=yes
  8634. export_dynamic_flag_spec='${wl}-E'
  8635. # hardcode_minus_L: Not really in the search PATH,
  8636. # but as the default location of the library.
  8637. hardcode_minus_L=yes
  8638. fi
  8639. ;;
  8640. hpux11*)
  8641. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8642. case $host_cpu in
  8643. hppa*64*)
  8644. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8645. ;;
  8646. ia64*)
  8647. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8648. ;;
  8649. *)
  8650. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8651. ;;
  8652. esac
  8653. else
  8654. case $host_cpu in
  8655. hppa*64*)
  8656. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8657. ;;
  8658. ia64*)
  8659. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8660. ;;
  8661. *)
  8662. # Older versions of the 11.00 compiler do not understand -b yet
  8663. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8665. $as_echo_n "checking if $CC understands -b... " >&6; }
  8666. if ${lt_cv_prog_compiler__b+:} false; then :
  8667. $as_echo_n "(cached) " >&6
  8668. else
  8669. lt_cv_prog_compiler__b=no
  8670. save_LDFLAGS="$LDFLAGS"
  8671. LDFLAGS="$LDFLAGS -b"
  8672. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8673. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8674. # The linker can only warn and ignore the option if not recognized
  8675. # So say no if there are warnings
  8676. if test -s conftest.err; then
  8677. # Append any errors to the config.log.
  8678. cat conftest.err 1>&5
  8679. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8680. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8681. if diff conftest.exp conftest.er2 >/dev/null; then
  8682. lt_cv_prog_compiler__b=yes
  8683. fi
  8684. else
  8685. lt_cv_prog_compiler__b=yes
  8686. fi
  8687. fi
  8688. $RM -r conftest*
  8689. LDFLAGS="$save_LDFLAGS"
  8690. fi
  8691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8692. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8693. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8694. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8695. else
  8696. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8697. fi
  8698. ;;
  8699. esac
  8700. fi
  8701. if test "$with_gnu_ld" = no; then
  8702. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8703. hardcode_libdir_separator=:
  8704. case $host_cpu in
  8705. hppa*64*|ia64*)
  8706. hardcode_direct=no
  8707. hardcode_shlibpath_var=no
  8708. ;;
  8709. *)
  8710. hardcode_direct=yes
  8711. hardcode_direct_absolute=yes
  8712. export_dynamic_flag_spec='${wl}-E'
  8713. # hardcode_minus_L: Not really in the search PATH,
  8714. # but as the default location of the library.
  8715. hardcode_minus_L=yes
  8716. ;;
  8717. esac
  8718. fi
  8719. ;;
  8720. irix5* | irix6* | nonstopux*)
  8721. if test "$GCC" = yes; then
  8722. 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'
  8723. # Try to use the -exported_symbol ld option, if it does not
  8724. # work, assume that -exports_file does not work either and
  8725. # implicitly export all symbols.
  8726. save_LDFLAGS="$LDFLAGS"
  8727. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8729. /* end confdefs.h. */
  8730. int foo(void) {}
  8731. _ACEOF
  8732. if ac_fn_c_try_link "$LINENO"; then :
  8733. 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'
  8734. fi
  8735. rm -f core conftest.err conftest.$ac_objext \
  8736. conftest$ac_exeext conftest.$ac_ext
  8737. LDFLAGS="$save_LDFLAGS"
  8738. else
  8739. 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'
  8740. 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'
  8741. fi
  8742. archive_cmds_need_lc='no'
  8743. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8744. hardcode_libdir_separator=:
  8745. inherit_rpath=yes
  8746. link_all_deplibs=yes
  8747. ;;
  8748. netbsd*)
  8749. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8750. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8751. else
  8752. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8753. fi
  8754. hardcode_libdir_flag_spec='-R$libdir'
  8755. hardcode_direct=yes
  8756. hardcode_shlibpath_var=no
  8757. ;;
  8758. newsos6)
  8759. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8760. hardcode_direct=yes
  8761. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8762. hardcode_libdir_separator=:
  8763. hardcode_shlibpath_var=no
  8764. ;;
  8765. *nto* | *qnx*)
  8766. ;;
  8767. openbsd*)
  8768. if test -f /usr/libexec/ld.so; then
  8769. hardcode_direct=yes
  8770. hardcode_shlibpath_var=no
  8771. hardcode_direct_absolute=yes
  8772. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8773. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8774. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8775. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8776. export_dynamic_flag_spec='${wl}-E'
  8777. else
  8778. case $host_os in
  8779. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8780. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8781. hardcode_libdir_flag_spec='-R$libdir'
  8782. ;;
  8783. *)
  8784. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8785. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8786. ;;
  8787. esac
  8788. fi
  8789. else
  8790. ld_shlibs=no
  8791. fi
  8792. ;;
  8793. os2*)
  8794. hardcode_libdir_flag_spec='-L$libdir'
  8795. hardcode_minus_L=yes
  8796. allow_undefined_flag=unsupported
  8797. 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'
  8798. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8799. ;;
  8800. osf3*)
  8801. if test "$GCC" = yes; then
  8802. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8803. 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'
  8804. else
  8805. allow_undefined_flag=' -expect_unresolved \*'
  8806. 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'
  8807. fi
  8808. archive_cmds_need_lc='no'
  8809. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8810. hardcode_libdir_separator=:
  8811. ;;
  8812. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8813. if test "$GCC" = yes; then
  8814. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8815. 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'
  8816. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8817. else
  8818. allow_undefined_flag=' -expect_unresolved \*'
  8819. 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'
  8820. 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~
  8821. $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'
  8822. # Both c and cxx compiler support -rpath directly
  8823. hardcode_libdir_flag_spec='-rpath $libdir'
  8824. fi
  8825. archive_cmds_need_lc='no'
  8826. hardcode_libdir_separator=:
  8827. ;;
  8828. solaris*)
  8829. no_undefined_flag=' -z defs'
  8830. if test "$GCC" = yes; then
  8831. wlarc='${wl}'
  8832. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8833. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8834. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8835. else
  8836. case `$CC -V 2>&1` in
  8837. *"Compilers 5.0"*)
  8838. wlarc=''
  8839. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8840. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8841. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8842. ;;
  8843. *)
  8844. wlarc='${wl}'
  8845. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8846. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8847. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8848. ;;
  8849. esac
  8850. fi
  8851. hardcode_libdir_flag_spec='-R$libdir'
  8852. hardcode_shlibpath_var=no
  8853. case $host_os in
  8854. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8855. *)
  8856. # The compiler driver will combine and reorder linker options,
  8857. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8858. # but is careful enough not to reorder.
  8859. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8860. if test "$GCC" = yes; then
  8861. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8862. else
  8863. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8864. fi
  8865. ;;
  8866. esac
  8867. link_all_deplibs=yes
  8868. ;;
  8869. sunos4*)
  8870. if test "x$host_vendor" = xsequent; then
  8871. # Use $CC to link under sequent, because it throws in some extra .o
  8872. # files that make .init and .fini sections work.
  8873. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8874. else
  8875. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8876. fi
  8877. hardcode_libdir_flag_spec='-L$libdir'
  8878. hardcode_direct=yes
  8879. hardcode_minus_L=yes
  8880. hardcode_shlibpath_var=no
  8881. ;;
  8882. sysv4)
  8883. case $host_vendor in
  8884. sni)
  8885. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8886. hardcode_direct=yes # is this really true???
  8887. ;;
  8888. siemens)
  8889. ## LD is ld it makes a PLAMLIB
  8890. ## CC just makes a GrossModule.
  8891. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8892. reload_cmds='$CC -r -o $output$reload_objs'
  8893. hardcode_direct=no
  8894. ;;
  8895. motorola)
  8896. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8897. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8898. ;;
  8899. esac
  8900. runpath_var='LD_RUN_PATH'
  8901. hardcode_shlibpath_var=no
  8902. ;;
  8903. sysv4.3*)
  8904. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8905. hardcode_shlibpath_var=no
  8906. export_dynamic_flag_spec='-Bexport'
  8907. ;;
  8908. sysv4*MP*)
  8909. if test -d /usr/nec; then
  8910. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8911. hardcode_shlibpath_var=no
  8912. runpath_var=LD_RUN_PATH
  8913. hardcode_runpath_var=yes
  8914. ld_shlibs=yes
  8915. fi
  8916. ;;
  8917. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8918. no_undefined_flag='${wl}-z,text'
  8919. archive_cmds_need_lc=no
  8920. hardcode_shlibpath_var=no
  8921. runpath_var='LD_RUN_PATH'
  8922. if test "$GCC" = yes; then
  8923. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8924. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8925. else
  8926. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8927. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8928. fi
  8929. ;;
  8930. sysv5* | sco3.2v5* | sco5v6*)
  8931. # Note: We can NOT use -z defs as we might desire, because we do not
  8932. # link with -lc, and that would cause any symbols used from libc to
  8933. # always be unresolved, which means just about no library would
  8934. # ever link correctly. If we're not using GNU ld we use -z text
  8935. # though, which does catch some bad symbols but isn't as heavy-handed
  8936. # as -z defs.
  8937. no_undefined_flag='${wl}-z,text'
  8938. allow_undefined_flag='${wl}-z,nodefs'
  8939. archive_cmds_need_lc=no
  8940. hardcode_shlibpath_var=no
  8941. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8942. hardcode_libdir_separator=':'
  8943. link_all_deplibs=yes
  8944. export_dynamic_flag_spec='${wl}-Bexport'
  8945. runpath_var='LD_RUN_PATH'
  8946. if test "$GCC" = yes; then
  8947. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8948. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8949. else
  8950. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8951. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8952. fi
  8953. ;;
  8954. uts4*)
  8955. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8956. hardcode_libdir_flag_spec='-L$libdir'
  8957. hardcode_shlibpath_var=no
  8958. ;;
  8959. *)
  8960. ld_shlibs=no
  8961. ;;
  8962. esac
  8963. if test x$host_vendor = xsni; then
  8964. case $host in
  8965. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8966. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8967. ;;
  8968. esac
  8969. fi
  8970. fi
  8971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8972. $as_echo "$ld_shlibs" >&6; }
  8973. test "$ld_shlibs" = no && can_build_shared=no
  8974. with_gnu_ld=$with_gnu_ld
  8975. #
  8976. # Do we need to explicitly link libc?
  8977. #
  8978. case "x$archive_cmds_need_lc" in
  8979. x|xyes)
  8980. # Assume -lc should be added
  8981. archive_cmds_need_lc=yes
  8982. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8983. case $archive_cmds in
  8984. *'~'*)
  8985. # FIXME: we may have to deal with multi-command sequences.
  8986. ;;
  8987. '$CC '*)
  8988. # Test whether the compiler implicitly links with -lc since on some
  8989. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8990. # to ld, don't add -lc before -lgcc.
  8991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8992. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8993. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8994. $as_echo_n "(cached) " >&6
  8995. else
  8996. $RM conftest*
  8997. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8998. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8999. (eval $ac_compile) 2>&5
  9000. ac_status=$?
  9001. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9002. test $ac_status = 0; } 2>conftest.err; then
  9003. soname=conftest
  9004. lib=conftest
  9005. libobjs=conftest.$ac_objext
  9006. deplibs=
  9007. wl=$lt_prog_compiler_wl
  9008. pic_flag=$lt_prog_compiler_pic
  9009. compiler_flags=-v
  9010. linker_flags=-v
  9011. verstring=
  9012. output_objdir=.
  9013. libname=conftest
  9014. lt_save_allow_undefined_flag=$allow_undefined_flag
  9015. allow_undefined_flag=
  9016. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9017. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9018. ac_status=$?
  9019. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9020. test $ac_status = 0; }
  9021. then
  9022. lt_cv_archive_cmds_need_lc=no
  9023. else
  9024. lt_cv_archive_cmds_need_lc=yes
  9025. fi
  9026. allow_undefined_flag=$lt_save_allow_undefined_flag
  9027. else
  9028. cat conftest.err 1>&5
  9029. fi
  9030. $RM conftest*
  9031. fi
  9032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9033. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9034. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9035. ;;
  9036. esac
  9037. fi
  9038. ;;
  9039. esac
  9040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9041. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9042. if test "$GCC" = yes; then
  9043. case $host_os in
  9044. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9045. *) lt_awk_arg="/^libraries:/" ;;
  9046. esac
  9047. case $host_os in
  9048. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9049. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9050. esac
  9051. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9052. case $lt_search_path_spec in
  9053. *\;*)
  9054. # if the path contains ";" then we assume it to be the separator
  9055. # otherwise default to the standard path separator (i.e. ":") - it is
  9056. # assumed that no part of a normal pathname contains ";" but that should
  9057. # okay in the real world where ";" in dirpaths is itself problematic.
  9058. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9059. ;;
  9060. *)
  9061. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9062. ;;
  9063. esac
  9064. # Ok, now we have the path, separated by spaces, we can step through it
  9065. # and add multilib dir if necessary.
  9066. lt_tmp_lt_search_path_spec=
  9067. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9068. for lt_sys_path in $lt_search_path_spec; do
  9069. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9070. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9071. else
  9072. test -d "$lt_sys_path" && \
  9073. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9074. fi
  9075. done
  9076. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9077. BEGIN {RS=" "; FS="/|\n";} {
  9078. lt_foo="";
  9079. lt_count=0;
  9080. for (lt_i = NF; lt_i > 0; lt_i--) {
  9081. if ($lt_i != "" && $lt_i != ".") {
  9082. if ($lt_i == "..") {
  9083. lt_count++;
  9084. } else {
  9085. if (lt_count == 0) {
  9086. lt_foo="/" $lt_i lt_foo;
  9087. } else {
  9088. lt_count--;
  9089. }
  9090. }
  9091. }
  9092. }
  9093. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9094. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9095. }'`
  9096. # AWK program above erroneously prepends '/' to C:/dos/paths
  9097. # for these hosts.
  9098. case $host_os in
  9099. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9100. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9101. esac
  9102. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9103. else
  9104. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9105. fi
  9106. library_names_spec=
  9107. libname_spec='lib$name'
  9108. soname_spec=
  9109. shrext_cmds=".so"
  9110. postinstall_cmds=
  9111. postuninstall_cmds=
  9112. finish_cmds=
  9113. finish_eval=
  9114. shlibpath_var=
  9115. shlibpath_overrides_runpath=unknown
  9116. version_type=none
  9117. dynamic_linker="$host_os ld.so"
  9118. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9119. need_lib_prefix=unknown
  9120. hardcode_into_libs=no
  9121. # when you set need_version to no, make sure it does not cause -set_version
  9122. # flags to be left without arguments
  9123. need_version=unknown
  9124. case $host_os in
  9125. aix3*)
  9126. version_type=linux
  9127. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9128. shlibpath_var=LIBPATH
  9129. # AIX 3 has no versioning support, so we append a major version to the name.
  9130. soname_spec='${libname}${release}${shared_ext}$major'
  9131. ;;
  9132. aix[4-9]*)
  9133. version_type=linux
  9134. need_lib_prefix=no
  9135. need_version=no
  9136. hardcode_into_libs=yes
  9137. if test "$host_cpu" = ia64; then
  9138. # AIX 5 supports IA64
  9139. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9140. shlibpath_var=LD_LIBRARY_PATH
  9141. else
  9142. # With GCC up to 2.95.x, collect2 would create an import file
  9143. # for dependence libraries. The import file would start with
  9144. # the line `#! .'. This would cause the generated library to
  9145. # depend on `.', always an invalid library. This was fixed in
  9146. # development snapshots of GCC prior to 3.0.
  9147. case $host_os in
  9148. aix4 | aix4.[01] | aix4.[01].*)
  9149. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9150. echo ' yes '
  9151. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9152. :
  9153. else
  9154. can_build_shared=no
  9155. fi
  9156. ;;
  9157. esac
  9158. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9159. # soname into executable. Probably we can add versioning support to
  9160. # collect2, so additional links can be useful in future.
  9161. if test "$aix_use_runtimelinking" = yes; then
  9162. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9163. # instead of lib<name>.a to let people know that these are not
  9164. # typical AIX shared libraries.
  9165. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9166. else
  9167. # We preserve .a as extension for shared libraries through AIX4.2
  9168. # and later when we are not doing run time linking.
  9169. library_names_spec='${libname}${release}.a $libname.a'
  9170. soname_spec='${libname}${release}${shared_ext}$major'
  9171. fi
  9172. shlibpath_var=LIBPATH
  9173. fi
  9174. ;;
  9175. amigaos*)
  9176. case $host_cpu in
  9177. powerpc)
  9178. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9179. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9180. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9181. ;;
  9182. m68k)
  9183. library_names_spec='$libname.ixlibrary $libname.a'
  9184. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9185. 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'
  9186. ;;
  9187. esac
  9188. ;;
  9189. beos*)
  9190. library_names_spec='${libname}${shared_ext}'
  9191. dynamic_linker="$host_os ld.so"
  9192. shlibpath_var=LIBRARY_PATH
  9193. ;;
  9194. bsdi[45]*)
  9195. version_type=linux
  9196. need_version=no
  9197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9198. soname_spec='${libname}${release}${shared_ext}$major'
  9199. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9200. shlibpath_var=LD_LIBRARY_PATH
  9201. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9202. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9203. # the default ld.so.conf also contains /usr/contrib/lib and
  9204. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9205. # libtool to hard-code these into programs
  9206. ;;
  9207. cygwin* | mingw* | pw32* | cegcc*)
  9208. version_type=windows
  9209. shrext_cmds=".dll"
  9210. need_version=no
  9211. need_lib_prefix=no
  9212. case $GCC,$host_os in
  9213. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9214. library_names_spec='$libname.dll.a'
  9215. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9216. postinstall_cmds='base_file=`basename \${file}`~
  9217. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9218. dldir=$destdir/`dirname \$dlpath`~
  9219. test -d \$dldir || mkdir -p \$dldir~
  9220. $install_prog $dir/$dlname \$dldir/$dlname~
  9221. chmod a+x \$dldir/$dlname~
  9222. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9223. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9224. fi'
  9225. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9226. dlpath=$dir/\$dldll~
  9227. $RM \$dlpath'
  9228. shlibpath_overrides_runpath=yes
  9229. case $host_os in
  9230. cygwin*)
  9231. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9232. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9233. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9234. ;;
  9235. mingw* | cegcc*)
  9236. # MinGW DLLs use traditional 'lib' prefix
  9237. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9238. ;;
  9239. pw32*)
  9240. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9241. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9242. ;;
  9243. esac
  9244. ;;
  9245. *)
  9246. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9247. ;;
  9248. esac
  9249. dynamic_linker='Win32 ld.exe'
  9250. # FIXME: first we should search . and the directory the executable is in
  9251. shlibpath_var=PATH
  9252. ;;
  9253. darwin* | rhapsody*)
  9254. dynamic_linker="$host_os dyld"
  9255. version_type=darwin
  9256. need_lib_prefix=no
  9257. need_version=no
  9258. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9259. soname_spec='${libname}${release}${major}$shared_ext'
  9260. shlibpath_overrides_runpath=yes
  9261. shlibpath_var=DYLD_LIBRARY_PATH
  9262. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9263. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9264. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9265. ;;
  9266. dgux*)
  9267. version_type=linux
  9268. need_lib_prefix=no
  9269. need_version=no
  9270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9271. soname_spec='${libname}${release}${shared_ext}$major'
  9272. shlibpath_var=LD_LIBRARY_PATH
  9273. ;;
  9274. freebsd* | dragonfly*)
  9275. # DragonFly does not have aout. When/if they implement a new
  9276. # versioning mechanism, adjust this.
  9277. if test -x /usr/bin/objformat; then
  9278. objformat=`/usr/bin/objformat`
  9279. else
  9280. case $host_os in
  9281. freebsd[23].*) objformat=aout ;;
  9282. *) objformat=elf ;;
  9283. esac
  9284. fi
  9285. version_type=freebsd-$objformat
  9286. case $version_type in
  9287. freebsd-elf*)
  9288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9289. need_version=no
  9290. need_lib_prefix=no
  9291. ;;
  9292. freebsd-*)
  9293. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9294. need_version=yes
  9295. ;;
  9296. esac
  9297. shlibpath_var=LD_LIBRARY_PATH
  9298. case $host_os in
  9299. freebsd2.*)
  9300. shlibpath_overrides_runpath=yes
  9301. ;;
  9302. freebsd3.[01]* | freebsdelf3.[01]*)
  9303. shlibpath_overrides_runpath=yes
  9304. hardcode_into_libs=yes
  9305. ;;
  9306. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9307. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9308. shlibpath_overrides_runpath=no
  9309. hardcode_into_libs=yes
  9310. ;;
  9311. *) # from 4.6 on, and DragonFly
  9312. shlibpath_overrides_runpath=yes
  9313. hardcode_into_libs=yes
  9314. ;;
  9315. esac
  9316. ;;
  9317. haiku*)
  9318. version_type=linux
  9319. need_lib_prefix=no
  9320. need_version=no
  9321. dynamic_linker="$host_os runtime_loader"
  9322. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9323. soname_spec='${libname}${release}${shared_ext}$major'
  9324. shlibpath_var=LIBRARY_PATH
  9325. shlibpath_overrides_runpath=yes
  9326. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9327. hardcode_into_libs=yes
  9328. ;;
  9329. hpux9* | hpux10* | hpux11*)
  9330. # Give a soname corresponding to the major version so that dld.sl refuses to
  9331. # link against other versions.
  9332. version_type=sunos
  9333. need_lib_prefix=no
  9334. need_version=no
  9335. case $host_cpu in
  9336. ia64*)
  9337. shrext_cmds='.so'
  9338. hardcode_into_libs=yes
  9339. dynamic_linker="$host_os dld.so"
  9340. shlibpath_var=LD_LIBRARY_PATH
  9341. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9342. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9343. soname_spec='${libname}${release}${shared_ext}$major'
  9344. if test "X$HPUX_IA64_MODE" = X32; then
  9345. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9346. else
  9347. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9348. fi
  9349. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9350. ;;
  9351. hppa*64*)
  9352. shrext_cmds='.sl'
  9353. hardcode_into_libs=yes
  9354. dynamic_linker="$host_os dld.sl"
  9355. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9356. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9357. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9358. soname_spec='${libname}${release}${shared_ext}$major'
  9359. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9360. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9361. ;;
  9362. *)
  9363. shrext_cmds='.sl'
  9364. dynamic_linker="$host_os dld.sl"
  9365. shlibpath_var=SHLIB_PATH
  9366. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9367. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9368. soname_spec='${libname}${release}${shared_ext}$major'
  9369. ;;
  9370. esac
  9371. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9372. postinstall_cmds='chmod 555 $lib'
  9373. # or fails outright, so override atomically:
  9374. install_override_mode=555
  9375. ;;
  9376. interix[3-9]*)
  9377. version_type=linux
  9378. need_lib_prefix=no
  9379. need_version=no
  9380. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9381. soname_spec='${libname}${release}${shared_ext}$major'
  9382. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9383. shlibpath_var=LD_LIBRARY_PATH
  9384. shlibpath_overrides_runpath=no
  9385. hardcode_into_libs=yes
  9386. ;;
  9387. irix5* | irix6* | nonstopux*)
  9388. case $host_os in
  9389. nonstopux*) version_type=nonstopux ;;
  9390. *)
  9391. if test "$lt_cv_prog_gnu_ld" = yes; then
  9392. version_type=linux
  9393. else
  9394. version_type=irix
  9395. fi ;;
  9396. esac
  9397. need_lib_prefix=no
  9398. need_version=no
  9399. soname_spec='${libname}${release}${shared_ext}$major'
  9400. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9401. case $host_os in
  9402. irix5* | nonstopux*)
  9403. libsuff= shlibsuff=
  9404. ;;
  9405. *)
  9406. case $LD in # libtool.m4 will add one of these switches to LD
  9407. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9408. libsuff= shlibsuff= libmagic=32-bit;;
  9409. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9410. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9411. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9412. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9413. *) libsuff= shlibsuff= libmagic=never-match;;
  9414. esac
  9415. ;;
  9416. esac
  9417. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9418. shlibpath_overrides_runpath=no
  9419. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9420. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9421. hardcode_into_libs=yes
  9422. ;;
  9423. # No shared lib support for Linux oldld, aout, or coff.
  9424. linux*oldld* | linux*aout* | linux*coff*)
  9425. dynamic_linker=no
  9426. ;;
  9427. # This must be Linux ELF.
  9428. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9429. version_type=linux
  9430. need_lib_prefix=no
  9431. need_version=no
  9432. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9433. soname_spec='${libname}${release}${shared_ext}$major'
  9434. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9435. shlibpath_var=LD_LIBRARY_PATH
  9436. shlibpath_overrides_runpath=no
  9437. # Some binutils ld are patched to set DT_RUNPATH
  9438. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9439. $as_echo_n "(cached) " >&6
  9440. else
  9441. lt_cv_shlibpath_overrides_runpath=no
  9442. save_LDFLAGS=$LDFLAGS
  9443. save_libdir=$libdir
  9444. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9445. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9447. /* end confdefs.h. */
  9448. int
  9449. main ()
  9450. {
  9451. ;
  9452. return 0;
  9453. }
  9454. _ACEOF
  9455. if ac_fn_c_try_link "$LINENO"; then :
  9456. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9457. lt_cv_shlibpath_overrides_runpath=yes
  9458. fi
  9459. fi
  9460. rm -f core conftest.err conftest.$ac_objext \
  9461. conftest$ac_exeext conftest.$ac_ext
  9462. LDFLAGS=$save_LDFLAGS
  9463. libdir=$save_libdir
  9464. fi
  9465. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9466. # This implies no fast_install, which is unacceptable.
  9467. # Some rework will be needed to allow for fast_install
  9468. # before this can be enabled.
  9469. hardcode_into_libs=yes
  9470. # Append ld.so.conf contents to the search path
  9471. if test -f /etc/ld.so.conf; then
  9472. 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' ' '`
  9473. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9474. fi
  9475. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9476. # powerpc, because MkLinux only supported shared libraries with the
  9477. # GNU dynamic linker. Since this was broken with cross compilers,
  9478. # most powerpc-linux boxes support dynamic linking these days and
  9479. # people can always --disable-shared, the test was removed, and we
  9480. # assume the GNU/Linux dynamic linker is in use.
  9481. dynamic_linker='GNU/Linux ld.so'
  9482. ;;
  9483. netbsd*)
  9484. version_type=sunos
  9485. need_lib_prefix=no
  9486. need_version=no
  9487. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9488. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9489. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9490. dynamic_linker='NetBSD (a.out) ld.so'
  9491. else
  9492. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9493. soname_spec='${libname}${release}${shared_ext}$major'
  9494. dynamic_linker='NetBSD ld.elf_so'
  9495. fi
  9496. shlibpath_var=LD_LIBRARY_PATH
  9497. shlibpath_overrides_runpath=yes
  9498. hardcode_into_libs=yes
  9499. ;;
  9500. newsos6)
  9501. version_type=linux
  9502. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9503. shlibpath_var=LD_LIBRARY_PATH
  9504. shlibpath_overrides_runpath=yes
  9505. ;;
  9506. *nto* | *qnx*)
  9507. version_type=qnx
  9508. need_lib_prefix=no
  9509. need_version=no
  9510. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9511. soname_spec='${libname}${release}${shared_ext}$major'
  9512. shlibpath_var=LD_LIBRARY_PATH
  9513. shlibpath_overrides_runpath=no
  9514. hardcode_into_libs=yes
  9515. dynamic_linker='ldqnx.so'
  9516. ;;
  9517. openbsd*)
  9518. version_type=sunos
  9519. sys_lib_dlsearch_path_spec="/usr/lib"
  9520. need_lib_prefix=no
  9521. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9522. case $host_os in
  9523. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9524. *) need_version=no ;;
  9525. esac
  9526. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9527. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9528. shlibpath_var=LD_LIBRARY_PATH
  9529. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9530. case $host_os in
  9531. openbsd2.[89] | openbsd2.[89].*)
  9532. shlibpath_overrides_runpath=no
  9533. ;;
  9534. *)
  9535. shlibpath_overrides_runpath=yes
  9536. ;;
  9537. esac
  9538. else
  9539. shlibpath_overrides_runpath=yes
  9540. fi
  9541. ;;
  9542. os2*)
  9543. libname_spec='$name'
  9544. shrext_cmds=".dll"
  9545. need_lib_prefix=no
  9546. library_names_spec='$libname${shared_ext} $libname.a'
  9547. dynamic_linker='OS/2 ld.exe'
  9548. shlibpath_var=LIBPATH
  9549. ;;
  9550. osf3* | osf4* | osf5*)
  9551. version_type=osf
  9552. need_lib_prefix=no
  9553. need_version=no
  9554. soname_spec='${libname}${release}${shared_ext}$major'
  9555. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9556. shlibpath_var=LD_LIBRARY_PATH
  9557. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9558. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9559. ;;
  9560. rdos*)
  9561. dynamic_linker=no
  9562. ;;
  9563. solaris*)
  9564. version_type=linux
  9565. need_lib_prefix=no
  9566. need_version=no
  9567. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9568. soname_spec='${libname}${release}${shared_ext}$major'
  9569. shlibpath_var=LD_LIBRARY_PATH
  9570. shlibpath_overrides_runpath=yes
  9571. hardcode_into_libs=yes
  9572. # ldd complains unless libraries are executable
  9573. postinstall_cmds='chmod +x $lib'
  9574. ;;
  9575. sunos4*)
  9576. version_type=sunos
  9577. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9578. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9579. shlibpath_var=LD_LIBRARY_PATH
  9580. shlibpath_overrides_runpath=yes
  9581. if test "$with_gnu_ld" = yes; then
  9582. need_lib_prefix=no
  9583. fi
  9584. need_version=yes
  9585. ;;
  9586. sysv4 | sysv4.3*)
  9587. version_type=linux
  9588. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9589. soname_spec='${libname}${release}${shared_ext}$major'
  9590. shlibpath_var=LD_LIBRARY_PATH
  9591. case $host_vendor in
  9592. sni)
  9593. shlibpath_overrides_runpath=no
  9594. need_lib_prefix=no
  9595. runpath_var=LD_RUN_PATH
  9596. ;;
  9597. siemens)
  9598. need_lib_prefix=no
  9599. ;;
  9600. motorola)
  9601. need_lib_prefix=no
  9602. need_version=no
  9603. shlibpath_overrides_runpath=no
  9604. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9605. ;;
  9606. esac
  9607. ;;
  9608. sysv4*MP*)
  9609. if test -d /usr/nec ;then
  9610. version_type=linux
  9611. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9612. soname_spec='$libname${shared_ext}.$major'
  9613. shlibpath_var=LD_LIBRARY_PATH
  9614. fi
  9615. ;;
  9616. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9617. version_type=freebsd-elf
  9618. need_lib_prefix=no
  9619. need_version=no
  9620. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9621. soname_spec='${libname}${release}${shared_ext}$major'
  9622. shlibpath_var=LD_LIBRARY_PATH
  9623. shlibpath_overrides_runpath=yes
  9624. hardcode_into_libs=yes
  9625. if test "$with_gnu_ld" = yes; then
  9626. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9627. else
  9628. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9629. case $host_os in
  9630. sco3.2v5*)
  9631. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9632. ;;
  9633. esac
  9634. fi
  9635. sys_lib_dlsearch_path_spec='/usr/lib'
  9636. ;;
  9637. tpf*)
  9638. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9639. version_type=linux
  9640. need_lib_prefix=no
  9641. need_version=no
  9642. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9643. shlibpath_var=LD_LIBRARY_PATH
  9644. shlibpath_overrides_runpath=no
  9645. hardcode_into_libs=yes
  9646. ;;
  9647. uts4*)
  9648. version_type=linux
  9649. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9650. soname_spec='${libname}${release}${shared_ext}$major'
  9651. shlibpath_var=LD_LIBRARY_PATH
  9652. ;;
  9653. *)
  9654. dynamic_linker=no
  9655. ;;
  9656. esac
  9657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9658. $as_echo "$dynamic_linker" >&6; }
  9659. test "$dynamic_linker" = no && can_build_shared=no
  9660. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9661. if test "$GCC" = yes; then
  9662. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9663. fi
  9664. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9665. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9666. fi
  9667. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9668. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9669. fi
  9670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9671. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9672. hardcode_action=
  9673. if test -n "$hardcode_libdir_flag_spec" ||
  9674. test -n "$runpath_var" ||
  9675. test "X$hardcode_automatic" = "Xyes" ; then
  9676. # We can hardcode non-existent directories.
  9677. if test "$hardcode_direct" != no &&
  9678. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9679. # have to relink, otherwise we might link with an installed library
  9680. # when we should be linking with a yet-to-be-installed one
  9681. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9682. test "$hardcode_minus_L" != no; then
  9683. # Linking always hardcodes the temporary library directory.
  9684. hardcode_action=relink
  9685. else
  9686. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9687. hardcode_action=immediate
  9688. fi
  9689. else
  9690. # We cannot hardcode anything, or else we can only hardcode existing
  9691. # directories.
  9692. hardcode_action=unsupported
  9693. fi
  9694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9695. $as_echo "$hardcode_action" >&6; }
  9696. if test "$hardcode_action" = relink ||
  9697. test "$inherit_rpath" = yes; then
  9698. # Fast installation is not supported
  9699. enable_fast_install=no
  9700. elif test "$shlibpath_overrides_runpath" = yes ||
  9701. test "$enable_shared" = no; then
  9702. # Fast installation is not necessary
  9703. enable_fast_install=needless
  9704. fi
  9705. if test "x$enable_dlopen" != xyes; then
  9706. enable_dlopen=unknown
  9707. enable_dlopen_self=unknown
  9708. enable_dlopen_self_static=unknown
  9709. else
  9710. lt_cv_dlopen=no
  9711. lt_cv_dlopen_libs=
  9712. case $host_os in
  9713. beos*)
  9714. lt_cv_dlopen="load_add_on"
  9715. lt_cv_dlopen_libs=
  9716. lt_cv_dlopen_self=yes
  9717. ;;
  9718. mingw* | pw32* | cegcc*)
  9719. lt_cv_dlopen="LoadLibrary"
  9720. lt_cv_dlopen_libs=
  9721. ;;
  9722. cygwin*)
  9723. lt_cv_dlopen="dlopen"
  9724. lt_cv_dlopen_libs=
  9725. ;;
  9726. darwin*)
  9727. # if libdl is installed we need to link against it
  9728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9729. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9730. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9731. $as_echo_n "(cached) " >&6
  9732. else
  9733. ac_check_lib_save_LIBS=$LIBS
  9734. LIBS="-ldl $LIBS"
  9735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9736. /* end confdefs.h. */
  9737. /* Override any GCC internal prototype to avoid an error.
  9738. Use char because int might match the return type of a GCC
  9739. builtin and then its argument prototype would still apply. */
  9740. #ifdef __cplusplus
  9741. extern "C"
  9742. #endif
  9743. char dlopen ();
  9744. int
  9745. main ()
  9746. {
  9747. return dlopen ();
  9748. ;
  9749. return 0;
  9750. }
  9751. _ACEOF
  9752. if ac_fn_c_try_link "$LINENO"; then :
  9753. ac_cv_lib_dl_dlopen=yes
  9754. else
  9755. ac_cv_lib_dl_dlopen=no
  9756. fi
  9757. rm -f core conftest.err conftest.$ac_objext \
  9758. conftest$ac_exeext conftest.$ac_ext
  9759. LIBS=$ac_check_lib_save_LIBS
  9760. fi
  9761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9762. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9763. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9764. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9765. else
  9766. lt_cv_dlopen="dyld"
  9767. lt_cv_dlopen_libs=
  9768. lt_cv_dlopen_self=yes
  9769. fi
  9770. ;;
  9771. *)
  9772. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9773. if test "x$ac_cv_func_shl_load" = xyes; then :
  9774. lt_cv_dlopen="shl_load"
  9775. else
  9776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9777. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9778. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9779. $as_echo_n "(cached) " >&6
  9780. else
  9781. ac_check_lib_save_LIBS=$LIBS
  9782. LIBS="-ldld $LIBS"
  9783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9784. /* end confdefs.h. */
  9785. /* Override any GCC internal prototype to avoid an error.
  9786. Use char because int might match the return type of a GCC
  9787. builtin and then its argument prototype would still apply. */
  9788. #ifdef __cplusplus
  9789. extern "C"
  9790. #endif
  9791. char shl_load ();
  9792. int
  9793. main ()
  9794. {
  9795. return shl_load ();
  9796. ;
  9797. return 0;
  9798. }
  9799. _ACEOF
  9800. if ac_fn_c_try_link "$LINENO"; then :
  9801. ac_cv_lib_dld_shl_load=yes
  9802. else
  9803. ac_cv_lib_dld_shl_load=no
  9804. fi
  9805. rm -f core conftest.err conftest.$ac_objext \
  9806. conftest$ac_exeext conftest.$ac_ext
  9807. LIBS=$ac_check_lib_save_LIBS
  9808. fi
  9809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9810. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9811. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9812. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9813. else
  9814. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9815. if test "x$ac_cv_func_dlopen" = xyes; then :
  9816. lt_cv_dlopen="dlopen"
  9817. else
  9818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9819. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9820. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9821. $as_echo_n "(cached) " >&6
  9822. else
  9823. ac_check_lib_save_LIBS=$LIBS
  9824. LIBS="-ldl $LIBS"
  9825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9826. /* end confdefs.h. */
  9827. /* Override any GCC internal prototype to avoid an error.
  9828. Use char because int might match the return type of a GCC
  9829. builtin and then its argument prototype would still apply. */
  9830. #ifdef __cplusplus
  9831. extern "C"
  9832. #endif
  9833. char dlopen ();
  9834. int
  9835. main ()
  9836. {
  9837. return dlopen ();
  9838. ;
  9839. return 0;
  9840. }
  9841. _ACEOF
  9842. if ac_fn_c_try_link "$LINENO"; then :
  9843. ac_cv_lib_dl_dlopen=yes
  9844. else
  9845. ac_cv_lib_dl_dlopen=no
  9846. fi
  9847. rm -f core conftest.err conftest.$ac_objext \
  9848. conftest$ac_exeext conftest.$ac_ext
  9849. LIBS=$ac_check_lib_save_LIBS
  9850. fi
  9851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9852. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9853. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9854. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9855. else
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9857. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9858. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9859. $as_echo_n "(cached) " >&6
  9860. else
  9861. ac_check_lib_save_LIBS=$LIBS
  9862. LIBS="-lsvld $LIBS"
  9863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9864. /* end confdefs.h. */
  9865. /* Override any GCC internal prototype to avoid an error.
  9866. Use char because int might match the return type of a GCC
  9867. builtin and then its argument prototype would still apply. */
  9868. #ifdef __cplusplus
  9869. extern "C"
  9870. #endif
  9871. char dlopen ();
  9872. int
  9873. main ()
  9874. {
  9875. return dlopen ();
  9876. ;
  9877. return 0;
  9878. }
  9879. _ACEOF
  9880. if ac_fn_c_try_link "$LINENO"; then :
  9881. ac_cv_lib_svld_dlopen=yes
  9882. else
  9883. ac_cv_lib_svld_dlopen=no
  9884. fi
  9885. rm -f core conftest.err conftest.$ac_objext \
  9886. conftest$ac_exeext conftest.$ac_ext
  9887. LIBS=$ac_check_lib_save_LIBS
  9888. fi
  9889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9890. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9891. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9892. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9893. else
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9895. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9896. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9897. $as_echo_n "(cached) " >&6
  9898. else
  9899. ac_check_lib_save_LIBS=$LIBS
  9900. LIBS="-ldld $LIBS"
  9901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9902. /* end confdefs.h. */
  9903. /* Override any GCC internal prototype to avoid an error.
  9904. Use char because int might match the return type of a GCC
  9905. builtin and then its argument prototype would still apply. */
  9906. #ifdef __cplusplus
  9907. extern "C"
  9908. #endif
  9909. char dld_link ();
  9910. int
  9911. main ()
  9912. {
  9913. return dld_link ();
  9914. ;
  9915. return 0;
  9916. }
  9917. _ACEOF
  9918. if ac_fn_c_try_link "$LINENO"; then :
  9919. ac_cv_lib_dld_dld_link=yes
  9920. else
  9921. ac_cv_lib_dld_dld_link=no
  9922. fi
  9923. rm -f core conftest.err conftest.$ac_objext \
  9924. conftest$ac_exeext conftest.$ac_ext
  9925. LIBS=$ac_check_lib_save_LIBS
  9926. fi
  9927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9928. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9929. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9930. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9931. fi
  9932. fi
  9933. fi
  9934. fi
  9935. fi
  9936. fi
  9937. ;;
  9938. esac
  9939. if test "x$lt_cv_dlopen" != xno; then
  9940. enable_dlopen=yes
  9941. else
  9942. enable_dlopen=no
  9943. fi
  9944. case $lt_cv_dlopen in
  9945. dlopen)
  9946. save_CPPFLAGS="$CPPFLAGS"
  9947. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9948. save_LDFLAGS="$LDFLAGS"
  9949. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9950. save_LIBS="$LIBS"
  9951. LIBS="$lt_cv_dlopen_libs $LIBS"
  9952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9953. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9954. if ${lt_cv_dlopen_self+:} false; then :
  9955. $as_echo_n "(cached) " >&6
  9956. else
  9957. if test "$cross_compiling" = yes; then :
  9958. lt_cv_dlopen_self=cross
  9959. else
  9960. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9961. lt_status=$lt_dlunknown
  9962. cat > conftest.$ac_ext <<_LT_EOF
  9963. #line 11547 "configure"
  9964. #include "confdefs.h"
  9965. #if HAVE_DLFCN_H
  9966. #include <dlfcn.h>
  9967. #endif
  9968. #include <stdio.h>
  9969. #ifdef RTLD_GLOBAL
  9970. # define LT_DLGLOBAL RTLD_GLOBAL
  9971. #else
  9972. # ifdef DL_GLOBAL
  9973. # define LT_DLGLOBAL DL_GLOBAL
  9974. # else
  9975. # define LT_DLGLOBAL 0
  9976. # endif
  9977. #endif
  9978. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9979. find out it does not work in some platform. */
  9980. #ifndef LT_DLLAZY_OR_NOW
  9981. # ifdef RTLD_LAZY
  9982. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9983. # else
  9984. # ifdef DL_LAZY
  9985. # define LT_DLLAZY_OR_NOW DL_LAZY
  9986. # else
  9987. # ifdef RTLD_NOW
  9988. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9989. # else
  9990. # ifdef DL_NOW
  9991. # define LT_DLLAZY_OR_NOW DL_NOW
  9992. # else
  9993. # define LT_DLLAZY_OR_NOW 0
  9994. # endif
  9995. # endif
  9996. # endif
  9997. # endif
  9998. #endif
  9999. /* When -fvisbility=hidden is used, assume the code has been annotated
  10000. correspondingly for the symbols needed. */
  10001. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10002. void fnord () __attribute__((visibility("default")));
  10003. #endif
  10004. void fnord () { int i=42; }
  10005. int main ()
  10006. {
  10007. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10008. int status = $lt_dlunknown;
  10009. if (self)
  10010. {
  10011. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10012. else
  10013. {
  10014. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10015. else puts (dlerror ());
  10016. }
  10017. /* dlclose (self); */
  10018. }
  10019. else
  10020. puts (dlerror ());
  10021. return status;
  10022. }
  10023. _LT_EOF
  10024. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10025. (eval $ac_link) 2>&5
  10026. ac_status=$?
  10027. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10028. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10029. (./conftest; exit; ) >&5 2>/dev/null
  10030. lt_status=$?
  10031. case x$lt_status in
  10032. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10033. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10034. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10035. esac
  10036. else :
  10037. # compilation failed
  10038. lt_cv_dlopen_self=no
  10039. fi
  10040. fi
  10041. rm -fr conftest*
  10042. fi
  10043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10044. $as_echo "$lt_cv_dlopen_self" >&6; }
  10045. if test "x$lt_cv_dlopen_self" = xyes; then
  10046. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10048. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10049. if ${lt_cv_dlopen_self_static+:} false; then :
  10050. $as_echo_n "(cached) " >&6
  10051. else
  10052. if test "$cross_compiling" = yes; then :
  10053. lt_cv_dlopen_self_static=cross
  10054. else
  10055. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10056. lt_status=$lt_dlunknown
  10057. cat > conftest.$ac_ext <<_LT_EOF
  10058. #line 11653 "configure"
  10059. #include "confdefs.h"
  10060. #if HAVE_DLFCN_H
  10061. #include <dlfcn.h>
  10062. #endif
  10063. #include <stdio.h>
  10064. #ifdef RTLD_GLOBAL
  10065. # define LT_DLGLOBAL RTLD_GLOBAL
  10066. #else
  10067. # ifdef DL_GLOBAL
  10068. # define LT_DLGLOBAL DL_GLOBAL
  10069. # else
  10070. # define LT_DLGLOBAL 0
  10071. # endif
  10072. #endif
  10073. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10074. find out it does not work in some platform. */
  10075. #ifndef LT_DLLAZY_OR_NOW
  10076. # ifdef RTLD_LAZY
  10077. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10078. # else
  10079. # ifdef DL_LAZY
  10080. # define LT_DLLAZY_OR_NOW DL_LAZY
  10081. # else
  10082. # ifdef RTLD_NOW
  10083. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10084. # else
  10085. # ifdef DL_NOW
  10086. # define LT_DLLAZY_OR_NOW DL_NOW
  10087. # else
  10088. # define LT_DLLAZY_OR_NOW 0
  10089. # endif
  10090. # endif
  10091. # endif
  10092. # endif
  10093. #endif
  10094. /* When -fvisbility=hidden is used, assume the code has been annotated
  10095. correspondingly for the symbols needed. */
  10096. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10097. void fnord () __attribute__((visibility("default")));
  10098. #endif
  10099. void fnord () { int i=42; }
  10100. int main ()
  10101. {
  10102. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10103. int status = $lt_dlunknown;
  10104. if (self)
  10105. {
  10106. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10107. else
  10108. {
  10109. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10110. else puts (dlerror ());
  10111. }
  10112. /* dlclose (self); */
  10113. }
  10114. else
  10115. puts (dlerror ());
  10116. return status;
  10117. }
  10118. _LT_EOF
  10119. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10120. (eval $ac_link) 2>&5
  10121. ac_status=$?
  10122. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10123. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10124. (./conftest; exit; ) >&5 2>/dev/null
  10125. lt_status=$?
  10126. case x$lt_status in
  10127. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10128. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10129. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10130. esac
  10131. else :
  10132. # compilation failed
  10133. lt_cv_dlopen_self_static=no
  10134. fi
  10135. fi
  10136. rm -fr conftest*
  10137. fi
  10138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10139. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10140. fi
  10141. CPPFLAGS="$save_CPPFLAGS"
  10142. LDFLAGS="$save_LDFLAGS"
  10143. LIBS="$save_LIBS"
  10144. ;;
  10145. esac
  10146. case $lt_cv_dlopen_self in
  10147. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10148. *) enable_dlopen_self=unknown ;;
  10149. esac
  10150. case $lt_cv_dlopen_self_static in
  10151. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10152. *) enable_dlopen_self_static=unknown ;;
  10153. esac
  10154. fi
  10155. striplib=
  10156. old_striplib=
  10157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10158. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10159. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10160. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10161. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10163. $as_echo "yes" >&6; }
  10164. else
  10165. # FIXME - insert some real tests, host_os isn't really good enough
  10166. case $host_os in
  10167. darwin*)
  10168. if test -n "$STRIP" ; then
  10169. striplib="$STRIP -x"
  10170. old_striplib="$STRIP -S"
  10171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10172. $as_echo "yes" >&6; }
  10173. else
  10174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10175. $as_echo "no" >&6; }
  10176. fi
  10177. ;;
  10178. *)
  10179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10180. $as_echo "no" >&6; }
  10181. ;;
  10182. esac
  10183. fi
  10184. # Report which library types will actually be built
  10185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10186. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10188. $as_echo "$can_build_shared" >&6; }
  10189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10190. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10191. test "$can_build_shared" = "no" && enable_shared=no
  10192. # On AIX, shared libraries and static libraries use the same namespace, and
  10193. # are all built from PIC.
  10194. case $host_os in
  10195. aix3*)
  10196. test "$enable_shared" = yes && enable_static=no
  10197. if test -n "$RANLIB"; then
  10198. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10199. postinstall_cmds='$RANLIB $lib'
  10200. fi
  10201. ;;
  10202. aix[4-9]*)
  10203. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10204. test "$enable_shared" = yes && enable_static=no
  10205. fi
  10206. ;;
  10207. esac
  10208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10209. $as_echo "$enable_shared" >&6; }
  10210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10211. $as_echo_n "checking whether to build static libraries... " >&6; }
  10212. # Make sure either enable_shared or enable_static is yes.
  10213. test "$enable_shared" = yes || enable_static=yes
  10214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10215. $as_echo "$enable_static" >&6; }
  10216. fi
  10217. ac_ext=c
  10218. ac_cpp='$CPP $CPPFLAGS'
  10219. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10220. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10221. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10222. CC="$lt_save_CC"
  10223. # Source file extension for Go test sources.
  10224. ac_ext=go
  10225. # Object file extension for compiled Go test sources.
  10226. objext=o
  10227. objext_GO=$objext
  10228. # Code to be used in simple compile tests
  10229. lt_simple_compile_test_code="package main; func main() { }"
  10230. # Code to be used in simple link tests
  10231. lt_simple_link_test_code='package main; func main() { }'
  10232. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10233. # If no C compiler was specified, use CC.
  10234. LTCC=${LTCC-"$CC"}
  10235. # If no C compiler flags were specified, use CFLAGS.
  10236. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10237. # Allow CC to be a program name with arguments.
  10238. compiler=$CC
  10239. # save warnings/boilerplate of simple test code
  10240. ac_outfile=conftest.$ac_objext
  10241. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10242. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10243. _lt_compiler_boilerplate=`cat conftest.err`
  10244. $RM conftest*
  10245. ac_outfile=conftest.$ac_objext
  10246. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10247. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10248. _lt_linker_boilerplate=`cat conftest.err`
  10249. $RM -r conftest*
  10250. # Allow CC to be a program name with arguments.
  10251. lt_save_CC="$CC"
  10252. lt_save_GCC="$GCC"
  10253. GCC=yes
  10254. CC=${GOC-"gccgo"}
  10255. compiler=$CC
  10256. compiler_GO=$CC
  10257. LD_GO="$LD"
  10258. for cc_temp in $compiler""; do
  10259. case $cc_temp in
  10260. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10261. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10262. \-*) ;;
  10263. *) break;;
  10264. esac
  10265. done
  10266. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10267. # Go did not exist at the time GCC didn't implicitly link libc in.
  10268. archive_cmds_need_lc_GO=no
  10269. old_archive_cmds_GO=$old_archive_cmds
  10270. ## CAVEAT EMPTOR:
  10271. ## There is no encapsulation within the following macros, do not change
  10272. ## the running order or otherwise move them around unless you know exactly
  10273. ## what you are doing...
  10274. if test -n "$compiler"; then
  10275. lt_prog_compiler_no_builtin_flag_GO=
  10276. if test "$GCC" = yes; then
  10277. case $cc_basename in
  10278. nvcc*)
  10279. lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
  10280. *)
  10281. lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
  10282. esac
  10283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  10284. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  10285. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  10286. $as_echo_n "(cached) " >&6
  10287. else
  10288. lt_cv_prog_compiler_rtti_exceptions=no
  10289. ac_outfile=conftest.$ac_objext
  10290. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10291. lt_compiler_flag="-fno-rtti -fno-exceptions"
  10292. # Insert the option either (1) after the last *FLAGS variable, or
  10293. # (2) before a word containing "conftest.", or (3) at the end.
  10294. # Note that $ac_compile itself does not contain backslashes and begins
  10295. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10296. # The option is referenced via a variable to avoid confusing sed.
  10297. lt_compile=`echo "$ac_compile" | $SED \
  10298. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10299. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10300. -e 's:$: $lt_compiler_flag:'`
  10301. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10302. (eval "$lt_compile" 2>conftest.err)
  10303. ac_status=$?
  10304. cat conftest.err >&5
  10305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10306. if (exit $ac_status) && test -s "$ac_outfile"; then
  10307. # The compiler can only warn and ignore the option if not recognized
  10308. # So say no if there are warnings other than the usual output.
  10309. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10310. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10311. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10312. lt_cv_prog_compiler_rtti_exceptions=yes
  10313. fi
  10314. fi
  10315. $RM conftest*
  10316. fi
  10317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  10318. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  10319. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  10320. lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
  10321. else
  10322. :
  10323. fi
  10324. fi
  10325. lt_prog_compiler_wl_GO=
  10326. lt_prog_compiler_pic_GO=
  10327. lt_prog_compiler_static_GO=
  10328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  10329. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  10330. if test "$GCC" = yes; then
  10331. lt_prog_compiler_wl_GO='-Wl,'
  10332. lt_prog_compiler_static_GO='-static'
  10333. case $host_os in
  10334. aix*)
  10335. # All AIX code is PIC.
  10336. if test "$host_cpu" = ia64; then
  10337. # AIX 5 now supports IA64 processor
  10338. lt_prog_compiler_static_GO='-Bstatic'
  10339. fi
  10340. lt_prog_compiler_pic_GO='-fPIC'
  10341. ;;
  10342. amigaos*)
  10343. case $host_cpu in
  10344. powerpc)
  10345. # see comment about AmigaOS4 .so support
  10346. lt_prog_compiler_pic_GO='-fPIC'
  10347. ;;
  10348. m68k)
  10349. # FIXME: we need at least 68020 code to build shared libraries, but
  10350. # adding the `-m68020' flag to GCC prevents building anything better,
  10351. # like `-m68040'.
  10352. lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
  10353. ;;
  10354. esac
  10355. ;;
  10356. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10357. # PIC is the default for these OSes.
  10358. ;;
  10359. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10360. # This hack is so that the source file can tell whether it is being
  10361. # built for inclusion in a dll (and should export symbols for example).
  10362. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10363. # (--disable-auto-import) libraries
  10364. lt_prog_compiler_pic_GO='-DDLL_EXPORT'
  10365. ;;
  10366. darwin* | rhapsody*)
  10367. # PIC is the default on this platform
  10368. # Common symbols not allowed in MH_DYLIB files
  10369. lt_prog_compiler_pic_GO='-fno-common'
  10370. ;;
  10371. haiku*)
  10372. # PIC is the default for Haiku.
  10373. # The "-static" flag exists, but is broken.
  10374. lt_prog_compiler_static_GO=
  10375. ;;
  10376. hpux*)
  10377. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10378. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10379. # sets the default TLS model and affects inlining.
  10380. case $host_cpu in
  10381. hppa*64*)
  10382. # +Z the default
  10383. ;;
  10384. *)
  10385. lt_prog_compiler_pic_GO='-fPIC'
  10386. ;;
  10387. esac
  10388. ;;
  10389. interix[3-9]*)
  10390. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10391. # Instead, we relocate shared libraries at runtime.
  10392. ;;
  10393. msdosdjgpp*)
  10394. # Just because we use GCC doesn't mean we suddenly get shared libraries
  10395. # on systems that don't support them.
  10396. lt_prog_compiler_can_build_shared_GO=no
  10397. enable_shared=no
  10398. ;;
  10399. *nto* | *qnx*)
  10400. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10401. # it will coredump.
  10402. lt_prog_compiler_pic_GO='-fPIC -shared'
  10403. ;;
  10404. sysv4*MP*)
  10405. if test -d /usr/nec; then
  10406. lt_prog_compiler_pic_GO=-Kconform_pic
  10407. fi
  10408. ;;
  10409. *)
  10410. lt_prog_compiler_pic_GO='-fPIC'
  10411. ;;
  10412. esac
  10413. case $cc_basename in
  10414. nvcc*) # Cuda Compiler Driver 2.2
  10415. lt_prog_compiler_wl_GO='-Xlinker '
  10416. lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
  10417. ;;
  10418. esac
  10419. else
  10420. # PORTME Check for flag to pass linker flags through the system compiler.
  10421. case $host_os in
  10422. aix*)
  10423. lt_prog_compiler_wl_GO='-Wl,'
  10424. if test "$host_cpu" = ia64; then
  10425. # AIX 5 now supports IA64 processor
  10426. lt_prog_compiler_static_GO='-Bstatic'
  10427. else
  10428. lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
  10429. fi
  10430. ;;
  10431. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10432. # This hack is so that the source file can tell whether it is being
  10433. # built for inclusion in a dll (and should export symbols for example).
  10434. lt_prog_compiler_pic_GO='-DDLL_EXPORT'
  10435. ;;
  10436. hpux9* | hpux10* | hpux11*)
  10437. lt_prog_compiler_wl_GO='-Wl,'
  10438. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10439. # not for PA HP-UX.
  10440. case $host_cpu in
  10441. hppa*64*|ia64*)
  10442. # +Z the default
  10443. ;;
  10444. *)
  10445. lt_prog_compiler_pic_GO='+Z'
  10446. ;;
  10447. esac
  10448. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10449. lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
  10450. ;;
  10451. irix5* | irix6* | nonstopux*)
  10452. lt_prog_compiler_wl_GO='-Wl,'
  10453. # PIC (with -KPIC) is the default.
  10454. lt_prog_compiler_static_GO='-non_shared'
  10455. ;;
  10456. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10457. case $cc_basename in
  10458. # old Intel for x86_64 which still supported -KPIC.
  10459. ecc*)
  10460. lt_prog_compiler_wl_GO='-Wl,'
  10461. lt_prog_compiler_pic_GO='-KPIC'
  10462. lt_prog_compiler_static_GO='-static'
  10463. ;;
  10464. # icc used to be incompatible with GCC.
  10465. # ICC 10 doesn't accept -KPIC any more.
  10466. icc* | ifort*)
  10467. lt_prog_compiler_wl_GO='-Wl,'
  10468. lt_prog_compiler_pic_GO='-fPIC'
  10469. lt_prog_compiler_static_GO='-static'
  10470. ;;
  10471. # Lahey Fortran 8.1.
  10472. lf95*)
  10473. lt_prog_compiler_wl_GO='-Wl,'
  10474. lt_prog_compiler_pic_GO='--shared'
  10475. lt_prog_compiler_static_GO='--static'
  10476. ;;
  10477. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  10478. # Portland Group compilers (*not* the Pentium gcc compiler,
  10479. # which looks to be a dead project)
  10480. lt_prog_compiler_wl_GO='-Wl,'
  10481. lt_prog_compiler_pic_GO='-fpic'
  10482. lt_prog_compiler_static_GO='-Bstatic'
  10483. ;;
  10484. ccc*)
  10485. lt_prog_compiler_wl_GO='-Wl,'
  10486. # All Alpha code is PIC.
  10487. lt_prog_compiler_static_GO='-non_shared'
  10488. ;;
  10489. xl* | bgxl* | bgf* | mpixl*)
  10490. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  10491. lt_prog_compiler_wl_GO='-Wl,'
  10492. lt_prog_compiler_pic_GO='-qpic'
  10493. lt_prog_compiler_static_GO='-qstaticlink'
  10494. ;;
  10495. *)
  10496. case `$CC -V 2>&1 | sed 5q` in
  10497. *Sun\ F* | *Sun*Fortran*)
  10498. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  10499. lt_prog_compiler_pic_GO='-KPIC'
  10500. lt_prog_compiler_static_GO='-Bstatic'
  10501. lt_prog_compiler_wl_GO=''
  10502. ;;
  10503. *Sun\ C*)
  10504. # Sun C 5.9
  10505. lt_prog_compiler_pic_GO='-KPIC'
  10506. lt_prog_compiler_static_GO='-Bstatic'
  10507. lt_prog_compiler_wl_GO='-Wl,'
  10508. ;;
  10509. esac
  10510. ;;
  10511. esac
  10512. ;;
  10513. newsos6)
  10514. lt_prog_compiler_pic_GO='-KPIC'
  10515. lt_prog_compiler_static_GO='-Bstatic'
  10516. ;;
  10517. *nto* | *qnx*)
  10518. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10519. # it will coredump.
  10520. lt_prog_compiler_pic_GO='-fPIC -shared'
  10521. ;;
  10522. osf3* | osf4* | osf5*)
  10523. lt_prog_compiler_wl_GO='-Wl,'
  10524. # All OSF/1 code is PIC.
  10525. lt_prog_compiler_static_GO='-non_shared'
  10526. ;;
  10527. rdos*)
  10528. lt_prog_compiler_static_GO='-non_shared'
  10529. ;;
  10530. solaris*)
  10531. lt_prog_compiler_pic_GO='-KPIC'
  10532. lt_prog_compiler_static_GO='-Bstatic'
  10533. case $cc_basename in
  10534. f77* | f90* | f95*)
  10535. lt_prog_compiler_wl_GO='-Qoption ld ';;
  10536. *)
  10537. lt_prog_compiler_wl_GO='-Wl,';;
  10538. esac
  10539. ;;
  10540. sunos4*)
  10541. lt_prog_compiler_wl_GO='-Qoption ld '
  10542. lt_prog_compiler_pic_GO='-PIC'
  10543. lt_prog_compiler_static_GO='-Bstatic'
  10544. ;;
  10545. sysv4 | sysv4.2uw2* | sysv4.3*)
  10546. lt_prog_compiler_wl_GO='-Wl,'
  10547. lt_prog_compiler_pic_GO='-KPIC'
  10548. lt_prog_compiler_static_GO='-Bstatic'
  10549. ;;
  10550. sysv4*MP*)
  10551. if test -d /usr/nec ;then
  10552. lt_prog_compiler_pic_GO='-Kconform_pic'
  10553. lt_prog_compiler_static_GO='-Bstatic'
  10554. fi
  10555. ;;
  10556. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10557. lt_prog_compiler_wl_GO='-Wl,'
  10558. lt_prog_compiler_pic_GO='-KPIC'
  10559. lt_prog_compiler_static_GO='-Bstatic'
  10560. ;;
  10561. unicos*)
  10562. lt_prog_compiler_wl_GO='-Wl,'
  10563. lt_prog_compiler_can_build_shared_GO=no
  10564. ;;
  10565. uts4*)
  10566. lt_prog_compiler_pic_GO='-pic'
  10567. lt_prog_compiler_static_GO='-Bstatic'
  10568. ;;
  10569. *)
  10570. lt_prog_compiler_can_build_shared_GO=no
  10571. ;;
  10572. esac
  10573. fi
  10574. case $host_os in
  10575. # For platforms which do not support PIC, -DPIC is meaningless:
  10576. *djgpp*)
  10577. lt_prog_compiler_pic_GO=
  10578. ;;
  10579. *)
  10580. lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
  10581. ;;
  10582. esac
  10583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
  10584. $as_echo "$lt_prog_compiler_pic_GO" >&6; }
  10585. #
  10586. # Check to make sure the PIC flag actually works.
  10587. #
  10588. if test -n "$lt_prog_compiler_pic_GO"; then
  10589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
  10590. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
  10591. if ${lt_cv_prog_compiler_pic_works_GO+:} false; then :
  10592. $as_echo_n "(cached) " >&6
  10593. else
  10594. lt_cv_prog_compiler_pic_works_GO=no
  10595. ac_outfile=conftest.$ac_objext
  10596. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10597. lt_compiler_flag="$lt_prog_compiler_pic_GO"
  10598. # Insert the option either (1) after the last *FLAGS variable, or
  10599. # (2) before a word containing "conftest.", or (3) at the end.
  10600. # Note that $ac_compile itself does not contain backslashes and begins
  10601. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10602. # The option is referenced via a variable to avoid confusing sed.
  10603. lt_compile=`echo "$ac_compile" | $SED \
  10604. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10605. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10606. -e 's:$: $lt_compiler_flag:'`
  10607. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10608. (eval "$lt_compile" 2>conftest.err)
  10609. ac_status=$?
  10610. cat conftest.err >&5
  10611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10612. if (exit $ac_status) && test -s "$ac_outfile"; then
  10613. # The compiler can only warn and ignore the option if not recognized
  10614. # So say no if there are warnings other than the usual output.
  10615. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10616. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10617. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10618. lt_cv_prog_compiler_pic_works_GO=yes
  10619. fi
  10620. fi
  10621. $RM conftest*
  10622. fi
  10623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
  10624. $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
  10625. if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
  10626. case $lt_prog_compiler_pic_GO in
  10627. "" | " "*) ;;
  10628. *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
  10629. esac
  10630. else
  10631. lt_prog_compiler_pic_GO=
  10632. lt_prog_compiler_can_build_shared_GO=no
  10633. fi
  10634. fi
  10635. #
  10636. # Check to make sure the static flag actually works.
  10637. #
  10638. wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
  10639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10640. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  10641. if ${lt_cv_prog_compiler_static_works_GO+:} false; then :
  10642. $as_echo_n "(cached) " >&6
  10643. else
  10644. lt_cv_prog_compiler_static_works_GO=no
  10645. save_LDFLAGS="$LDFLAGS"
  10646. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10647. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10648. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10649. # The linker can only warn and ignore the option if not recognized
  10650. # So say no if there are warnings
  10651. if test -s conftest.err; then
  10652. # Append any errors to the config.log.
  10653. cat conftest.err 1>&5
  10654. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10655. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10656. if diff conftest.exp conftest.er2 >/dev/null; then
  10657. lt_cv_prog_compiler_static_works_GO=yes
  10658. fi
  10659. else
  10660. lt_cv_prog_compiler_static_works_GO=yes
  10661. fi
  10662. fi
  10663. $RM -r conftest*
  10664. LDFLAGS="$save_LDFLAGS"
  10665. fi
  10666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
  10667. $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
  10668. if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
  10669. :
  10670. else
  10671. lt_prog_compiler_static_GO=
  10672. fi
  10673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10674. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10675. if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
  10676. $as_echo_n "(cached) " >&6
  10677. else
  10678. lt_cv_prog_compiler_c_o_GO=no
  10679. $RM -r conftest 2>/dev/null
  10680. mkdir conftest
  10681. cd conftest
  10682. mkdir out
  10683. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10684. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10685. # Insert the option either (1) after the last *FLAGS variable, or
  10686. # (2) before a word containing "conftest.", or (3) at the end.
  10687. # Note that $ac_compile itself does not contain backslashes and begins
  10688. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10689. lt_compile=`echo "$ac_compile" | $SED \
  10690. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10691. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10692. -e 's:$: $lt_compiler_flag:'`
  10693. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10694. (eval "$lt_compile" 2>out/conftest.err)
  10695. ac_status=$?
  10696. cat out/conftest.err >&5
  10697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10698. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10699. then
  10700. # The compiler can only warn and ignore the option if not recognized
  10701. # So say no if there are warnings
  10702. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10703. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10704. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10705. lt_cv_prog_compiler_c_o_GO=yes
  10706. fi
  10707. fi
  10708. chmod u+w . 2>&5
  10709. $RM conftest*
  10710. # SGI C++ compiler will create directory out/ii_files/ for
  10711. # template instantiation
  10712. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10713. $RM out/* && rmdir out
  10714. cd ..
  10715. $RM -r conftest
  10716. $RM conftest*
  10717. fi
  10718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
  10719. $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
  10720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10721. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10722. if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
  10723. $as_echo_n "(cached) " >&6
  10724. else
  10725. lt_cv_prog_compiler_c_o_GO=no
  10726. $RM -r conftest 2>/dev/null
  10727. mkdir conftest
  10728. cd conftest
  10729. mkdir out
  10730. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10731. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10732. # Insert the option either (1) after the last *FLAGS variable, or
  10733. # (2) before a word containing "conftest.", or (3) at the end.
  10734. # Note that $ac_compile itself does not contain backslashes and begins
  10735. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10736. lt_compile=`echo "$ac_compile" | $SED \
  10737. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10738. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10739. -e 's:$: $lt_compiler_flag:'`
  10740. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10741. (eval "$lt_compile" 2>out/conftest.err)
  10742. ac_status=$?
  10743. cat out/conftest.err >&5
  10744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10745. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10746. then
  10747. # The compiler can only warn and ignore the option if not recognized
  10748. # So say no if there are warnings
  10749. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10750. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10751. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10752. lt_cv_prog_compiler_c_o_GO=yes
  10753. fi
  10754. fi
  10755. chmod u+w . 2>&5
  10756. $RM conftest*
  10757. # SGI C++ compiler will create directory out/ii_files/ for
  10758. # template instantiation
  10759. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10760. $RM out/* && rmdir out
  10761. cd ..
  10762. $RM -r conftest
  10763. $RM conftest*
  10764. fi
  10765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
  10766. $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
  10767. hard_links="nottested"
  10768. if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
  10769. # do not overwrite the value of need_locks provided by the user
  10770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  10771. $as_echo_n "checking if we can lock with hard links... " >&6; }
  10772. hard_links=yes
  10773. $RM conftest*
  10774. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10775. touch conftest.a
  10776. ln conftest.a conftest.b 2>&5 || hard_links=no
  10777. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  10779. $as_echo "$hard_links" >&6; }
  10780. if test "$hard_links" = no; then
  10781. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10782. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10783. need_locks=warn
  10784. fi
  10785. else
  10786. need_locks=no
  10787. fi
  10788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10789. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10790. runpath_var=
  10791. allow_undefined_flag_GO=
  10792. always_export_symbols_GO=no
  10793. archive_cmds_GO=
  10794. archive_expsym_cmds_GO=
  10795. compiler_needs_object_GO=no
  10796. enable_shared_with_static_runtimes_GO=no
  10797. export_dynamic_flag_spec_GO=
  10798. export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10799. hardcode_automatic_GO=no
  10800. hardcode_direct_GO=no
  10801. hardcode_direct_absolute_GO=no
  10802. hardcode_libdir_flag_spec_GO=
  10803. hardcode_libdir_flag_spec_ld_GO=
  10804. hardcode_libdir_separator_GO=
  10805. hardcode_minus_L_GO=no
  10806. hardcode_shlibpath_var_GO=unsupported
  10807. inherit_rpath_GO=no
  10808. link_all_deplibs_GO=unknown
  10809. module_cmds_GO=
  10810. module_expsym_cmds_GO=
  10811. old_archive_from_new_cmds_GO=
  10812. old_archive_from_expsyms_cmds_GO=
  10813. thread_safe_flag_spec_GO=
  10814. whole_archive_flag_spec_GO=
  10815. # include_expsyms should be a list of space-separated symbols to be *always*
  10816. # included in the symbol list
  10817. include_expsyms_GO=
  10818. # exclude_expsyms can be an extended regexp of symbols to exclude
  10819. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  10820. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  10821. # as well as any symbol that contains `d'.
  10822. exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  10823. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  10824. # platforms (ab)use it in PIC code, but their linkers get confused if
  10825. # the symbol is explicitly referenced. Since portable code cannot
  10826. # rely on this symbol name, it's probably fine to never include it in
  10827. # preloaded symbol tables.
  10828. # Exclude shared library initialization/finalization symbols.
  10829. extract_expsyms_cmds=
  10830. case $host_os in
  10831. cygwin* | mingw* | pw32* | cegcc*)
  10832. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  10833. # When not using gcc, we currently assume that we are using
  10834. # Microsoft Visual C++.
  10835. if test "$GCC" != yes; then
  10836. with_gnu_ld=no
  10837. fi
  10838. ;;
  10839. interix*)
  10840. # we just hope/assume this is gcc and not c89 (= MSVC++)
  10841. with_gnu_ld=yes
  10842. ;;
  10843. openbsd*)
  10844. with_gnu_ld=no
  10845. ;;
  10846. esac
  10847. ld_shlibs_GO=yes
  10848. # On some targets, GNU ld is compatible enough with the native linker
  10849. # that we're better off using the native interface for both.
  10850. lt_use_gnu_ld_interface=no
  10851. if test "$with_gnu_ld" = yes; then
  10852. case $host_os in
  10853. aix*)
  10854. # The AIX port of GNU ld has always aspired to compatibility
  10855. # with the native linker. However, as the warning in the GNU ld
  10856. # block says, versions before 2.19.5* couldn't really create working
  10857. # shared libraries, regardless of the interface used.
  10858. case `$LD -v 2>&1` in
  10859. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  10860. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  10861. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  10862. *)
  10863. lt_use_gnu_ld_interface=yes
  10864. ;;
  10865. esac
  10866. ;;
  10867. *)
  10868. lt_use_gnu_ld_interface=yes
  10869. ;;
  10870. esac
  10871. fi
  10872. if test "$lt_use_gnu_ld_interface" = yes; then
  10873. # If archive_cmds runs LD, not CC, wlarc should be empty
  10874. wlarc='${wl}'
  10875. # Set some defaults for GNU ld with shared library support. These
  10876. # are reset later if shared libraries are not supported. Putting them
  10877. # here allows them to be overridden if necessary.
  10878. runpath_var=LD_RUN_PATH
  10879. hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
  10880. export_dynamic_flag_spec_GO='${wl}--export-dynamic'
  10881. # ancient GNU ld didn't support --whole-archive et. al.
  10882. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  10883. whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10884. else
  10885. whole_archive_flag_spec_GO=
  10886. fi
  10887. supports_anon_versioning=no
  10888. case `$LD -v 2>&1` in
  10889. *GNU\ gold*) supports_anon_versioning=yes ;;
  10890. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  10891. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10892. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10893. *\ 2.11.*) ;; # other 2.11 versions
  10894. *) supports_anon_versioning=yes ;;
  10895. esac
  10896. # See if GNU ld supports shared libraries.
  10897. case $host_os in
  10898. aix[3-9]*)
  10899. # On AIX/PPC, the GNU linker is very broken
  10900. if test "$host_cpu" != ia64; then
  10901. ld_shlibs_GO=no
  10902. cat <<_LT_EOF 1>&2
  10903. *** Warning: the GNU linker, at least up to release 2.19, is reported
  10904. *** to be unable to reliably create shared libraries on AIX.
  10905. *** Therefore, libtool is disabling shared libraries support. If you
  10906. *** really care for shared libraries, you may want to install binutils
  10907. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  10908. *** You will then need to restart the configuration process.
  10909. _LT_EOF
  10910. fi
  10911. ;;
  10912. amigaos*)
  10913. case $host_cpu in
  10914. powerpc)
  10915. # see comment about AmigaOS4 .so support
  10916. archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10917. archive_expsym_cmds_GO=''
  10918. ;;
  10919. m68k)
  10920. archive_cmds_GO='$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)'
  10921. hardcode_libdir_flag_spec_GO='-L$libdir'
  10922. hardcode_minus_L_GO=yes
  10923. ;;
  10924. esac
  10925. ;;
  10926. beos*)
  10927. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10928. allow_undefined_flag_GO=unsupported
  10929. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10930. # support --undefined. This deserves some investigation. FIXME
  10931. archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10932. else
  10933. ld_shlibs_GO=no
  10934. fi
  10935. ;;
  10936. cygwin* | mingw* | pw32* | cegcc*)
  10937. # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
  10938. # as there is no search path for DLLs.
  10939. hardcode_libdir_flag_spec_GO='-L$libdir'
  10940. export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
  10941. allow_undefined_flag_GO=unsupported
  10942. always_export_symbols_GO=no
  10943. enable_shared_with_static_runtimes_GO=yes
  10944. export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10945. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10946. archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10947. # If the export-symbols file already is a .def file (1st line
  10948. # is EXPORTS), use it as is; otherwise, prepend...
  10949. archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10950. cp $export_symbols $output_objdir/$soname.def;
  10951. else
  10952. echo EXPORTS > $output_objdir/$soname.def;
  10953. cat $export_symbols >> $output_objdir/$soname.def;
  10954. fi~
  10955. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10956. else
  10957. ld_shlibs_GO=no
  10958. fi
  10959. ;;
  10960. haiku*)
  10961. archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10962. link_all_deplibs_GO=yes
  10963. ;;
  10964. interix[3-9]*)
  10965. hardcode_direct_GO=no
  10966. hardcode_shlibpath_var_GO=no
  10967. hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
  10968. export_dynamic_flag_spec_GO='${wl}-E'
  10969. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10970. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10971. # default) and relocated if they conflict, which is a slow very memory
  10972. # consuming and fragmenting process. To avoid this, we pick a random,
  10973. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10974. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10975. archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10976. archive_expsym_cmds_GO='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'
  10977. ;;
  10978. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  10979. tmp_diet=no
  10980. if test "$host_os" = linux-dietlibc; then
  10981. case $cc_basename in
  10982. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  10983. esac
  10984. fi
  10985. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10986. && test "$tmp_diet" = no
  10987. then
  10988. tmp_addflag=
  10989. tmp_sharedflag='-shared'
  10990. case $cc_basename,$host_cpu in
  10991. pgcc*) # Portland Group C compiler
  10992. whole_archive_flag_spec_GO='${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'
  10993. tmp_addflag=' $pic_flag'
  10994. ;;
  10995. pgf77* | pgf90* | pgf95* | pgfortran*)
  10996. # Portland Group f77 and f90 compilers
  10997. whole_archive_flag_spec_GO='${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'
  10998. tmp_addflag=' $pic_flag -Mnomain' ;;
  10999. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11000. tmp_addflag=' -i_dynamic' ;;
  11001. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11002. tmp_addflag=' -i_dynamic -nofor_main' ;;
  11003. ifc* | ifort*) # Intel Fortran compiler
  11004. tmp_addflag=' -nofor_main' ;;
  11005. lf95*) # Lahey Fortran 8.1
  11006. whole_archive_flag_spec_GO=
  11007. tmp_sharedflag='--shared' ;;
  11008. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  11009. tmp_sharedflag='-qmkshrobj'
  11010. tmp_addflag= ;;
  11011. nvcc*) # Cuda Compiler Driver 2.2
  11012. whole_archive_flag_spec_GO='${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'
  11013. compiler_needs_object_GO=yes
  11014. ;;
  11015. esac
  11016. case `$CC -V 2>&1 | sed 5q` in
  11017. *Sun\ C*) # Sun C 5.9
  11018. whole_archive_flag_spec_GO='${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'
  11019. compiler_needs_object_GO=yes
  11020. tmp_sharedflag='-G' ;;
  11021. *Sun\ F*) # Sun Fortran 8.3
  11022. tmp_sharedflag='-G' ;;
  11023. esac
  11024. archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11025. if test "x$supports_anon_versioning" = xyes; then
  11026. archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
  11027. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11028. echo "local: *; };" >> $output_objdir/$libname.ver~
  11029. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11030. fi
  11031. case $cc_basename in
  11032. xlf* | bgf* | bgxlf* | mpixlf*)
  11033. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  11034. whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
  11035. hardcode_libdir_flag_spec_GO=
  11036. hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
  11037. archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  11038. if test "x$supports_anon_versioning" = xyes; then
  11039. archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
  11040. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11041. echo "local: *; };" >> $output_objdir/$libname.ver~
  11042. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  11043. fi
  11044. ;;
  11045. esac
  11046. else
  11047. ld_shlibs_GO=no
  11048. fi
  11049. ;;
  11050. netbsd*)
  11051. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11052. archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11053. wlarc=
  11054. else
  11055. archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11056. archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11057. fi
  11058. ;;
  11059. solaris*)
  11060. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  11061. ld_shlibs_GO=no
  11062. cat <<_LT_EOF 1>&2
  11063. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11064. *** create shared libraries on Solaris systems. Therefore, libtool
  11065. *** is disabling shared libraries support. We urge you to upgrade GNU
  11066. *** binutils to release 2.9.1 or newer. Another option is to modify
  11067. *** your PATH or compiler configuration so that the native linker is
  11068. *** used, and then restart.
  11069. _LT_EOF
  11070. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11071. archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11072. archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11073. else
  11074. ld_shlibs_GO=no
  11075. fi
  11076. ;;
  11077. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11078. case `$LD -v 2>&1` in
  11079. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  11080. ld_shlibs_GO=no
  11081. cat <<_LT_EOF 1>&2
  11082. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  11083. *** reliably create shared libraries on SCO systems. Therefore, libtool
  11084. *** is disabling shared libraries support. We urge you to upgrade GNU
  11085. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11086. *** your PATH or compiler configuration so that the native linker is
  11087. *** used, and then restart.
  11088. _LT_EOF
  11089. ;;
  11090. *)
  11091. # For security reasons, it is highly recommended that you always
  11092. # use absolute paths for naming shared libraries, and exclude the
  11093. # DT_RUNPATH tag from executables and libraries. But doing so
  11094. # requires that you compile everything twice, which is a pain.
  11095. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11096. hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
  11097. archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11098. archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11099. else
  11100. ld_shlibs_GO=no
  11101. fi
  11102. ;;
  11103. esac
  11104. ;;
  11105. sunos4*)
  11106. archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11107. wlarc=
  11108. hardcode_direct_GO=yes
  11109. hardcode_shlibpath_var_GO=no
  11110. ;;
  11111. *)
  11112. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11113. archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11114. archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11115. else
  11116. ld_shlibs_GO=no
  11117. fi
  11118. ;;
  11119. esac
  11120. if test "$ld_shlibs_GO" = no; then
  11121. runpath_var=
  11122. hardcode_libdir_flag_spec_GO=
  11123. export_dynamic_flag_spec_GO=
  11124. whole_archive_flag_spec_GO=
  11125. fi
  11126. else
  11127. # PORTME fill in a description of your system's linker (not GNU ld)
  11128. case $host_os in
  11129. aix3*)
  11130. allow_undefined_flag_GO=unsupported
  11131. always_export_symbols_GO=yes
  11132. archive_expsym_cmds_GO='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  11133. # Note: this linker hardcodes the directories in LIBPATH if there
  11134. # are no directories specified by -L.
  11135. hardcode_minus_L_GO=yes
  11136. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  11137. # Neither direct hardcoding nor static linking is supported with a
  11138. # broken collect2.
  11139. hardcode_direct_GO=unsupported
  11140. fi
  11141. ;;
  11142. aix[4-9]*)
  11143. if test "$host_cpu" = ia64; then
  11144. # On IA64, the linker does run time linking by default, so we don't
  11145. # have to do anything special.
  11146. aix_use_runtimelinking=no
  11147. exp_sym_flag='-Bexport'
  11148. no_entry_flag=""
  11149. else
  11150. # If we're using GNU nm, then we don't want the "-C" option.
  11151. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11152. # Also, AIX nm treats weak defined symbols like other global
  11153. # defined symbols, whereas GNU nm marks them as "W".
  11154. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11155. export_symbols_cmds_GO='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11156. else
  11157. export_symbols_cmds_GO='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11158. fi
  11159. aix_use_runtimelinking=no
  11160. # Test if we are trying to use run time linking or normal
  11161. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11162. # need to do runtime linking.
  11163. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11164. for ld_flag in $LDFLAGS; do
  11165. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11166. aix_use_runtimelinking=yes
  11167. break
  11168. fi
  11169. done
  11170. ;;
  11171. esac
  11172. exp_sym_flag='-bexport'
  11173. no_entry_flag='-bnoentry'
  11174. fi
  11175. # When large executables or shared objects are built, AIX ld can
  11176. # have problems creating the table of contents. If linking a library
  11177. # or program results in "error TOC overflow" add -mminimal-toc to
  11178. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11179. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11180. archive_cmds_GO=''
  11181. hardcode_direct_GO=yes
  11182. hardcode_direct_absolute_GO=yes
  11183. hardcode_libdir_separator_GO=':'
  11184. link_all_deplibs_GO=yes
  11185. file_list_spec_GO='${wl}-f,'
  11186. if test "$GCC" = yes; then
  11187. case $host_os in aix4.[012]|aix4.[012].*)
  11188. # We only want to do this on AIX 4.2 and lower, the check
  11189. # below for broken collect2 doesn't work under 4.3+
  11190. collect2name=`${CC} -print-prog-name=collect2`
  11191. if test -f "$collect2name" &&
  11192. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11193. then
  11194. # We have reworked collect2
  11195. :
  11196. else
  11197. # We have old collect2
  11198. hardcode_direct_GO=unsupported
  11199. # It fails to find uninstalled libraries when the uninstalled
  11200. # path is not listed in the libpath. Setting hardcode_minus_L
  11201. # to unsupported forces relinking
  11202. hardcode_minus_L_GO=yes
  11203. hardcode_libdir_flag_spec_GO='-L$libdir'
  11204. hardcode_libdir_separator_GO=
  11205. fi
  11206. ;;
  11207. esac
  11208. shared_flag='-shared'
  11209. if test "$aix_use_runtimelinking" = yes; then
  11210. shared_flag="$shared_flag "'${wl}-G'
  11211. fi
  11212. else
  11213. # not using gcc
  11214. if test "$host_cpu" = ia64; then
  11215. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11216. # chokes on -Wl,-G. The following line is correct:
  11217. shared_flag='-G'
  11218. else
  11219. if test "$aix_use_runtimelinking" = yes; then
  11220. shared_flag='${wl}-G'
  11221. else
  11222. shared_flag='${wl}-bM:SRE'
  11223. fi
  11224. fi
  11225. fi
  11226. export_dynamic_flag_spec_GO='${wl}-bexpall'
  11227. # It seems that -bexpall does not export symbols beginning with
  11228. # underscore (_), so it is better to generate a list of symbols to export.
  11229. always_export_symbols_GO=yes
  11230. if test "$aix_use_runtimelinking" = yes; then
  11231. # Warning - without using the other runtime loading flags (-brtl),
  11232. # -berok will link without error, but may produce a broken library.
  11233. allow_undefined_flag_GO='-berok'
  11234. # Determine the default libpath from the value encoded in an
  11235. # empty executable.
  11236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11237. /* end confdefs.h. */
  11238. int
  11239. main ()
  11240. {
  11241. ;
  11242. return 0;
  11243. }
  11244. _ACEOF
  11245. if ac_fn_c_try_link "$LINENO"; then :
  11246. lt_aix_libpath_sed='
  11247. /Import File Strings/,/^$/ {
  11248. /^0/ {
  11249. s/^0 *\(.*\)$/\1/
  11250. p
  11251. }
  11252. }'
  11253. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11254. # Check for a 64-bit object if we didn't find anything.
  11255. if test -z "$aix_libpath"; then
  11256. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11257. fi
  11258. fi
  11259. rm -f core conftest.err conftest.$ac_objext \
  11260. conftest$ac_exeext conftest.$ac_ext
  11261. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11262. hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
  11263. archive_expsym_cmds_GO='$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"
  11264. else
  11265. if test "$host_cpu" = ia64; then
  11266. hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
  11267. allow_undefined_flag_GO="-z nodefs"
  11268. archive_expsym_cmds_GO="\$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"
  11269. else
  11270. # Determine the default libpath from the value encoded in an
  11271. # empty executable.
  11272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11273. /* end confdefs.h. */
  11274. int
  11275. main ()
  11276. {
  11277. ;
  11278. return 0;
  11279. }
  11280. _ACEOF
  11281. if ac_fn_c_try_link "$LINENO"; then :
  11282. lt_aix_libpath_sed='
  11283. /Import File Strings/,/^$/ {
  11284. /^0/ {
  11285. s/^0 *\(.*\)$/\1/
  11286. p
  11287. }
  11288. }'
  11289. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11290. # Check for a 64-bit object if we didn't find anything.
  11291. if test -z "$aix_libpath"; then
  11292. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11293. fi
  11294. fi
  11295. rm -f core conftest.err conftest.$ac_objext \
  11296. conftest$ac_exeext conftest.$ac_ext
  11297. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11298. hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
  11299. # Warning - without using the other run time loading flags,
  11300. # -berok will link without error, but may produce a broken library.
  11301. no_undefined_flag_GO=' ${wl}-bernotok'
  11302. allow_undefined_flag_GO=' ${wl}-berok'
  11303. if test "$with_gnu_ld" = yes; then
  11304. # We only use this code for GNU lds that support --whole-archive.
  11305. whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11306. else
  11307. # Exported symbols can be pulled into shared objects from archives
  11308. whole_archive_flag_spec_GO='$convenience'
  11309. fi
  11310. archive_cmds_need_lc_GO=yes
  11311. # This is similar to how AIX traditionally builds its shared libraries.
  11312. archive_expsym_cmds_GO="\$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'
  11313. fi
  11314. fi
  11315. ;;
  11316. amigaos*)
  11317. case $host_cpu in
  11318. powerpc)
  11319. # see comment about AmigaOS4 .so support
  11320. archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11321. archive_expsym_cmds_GO=''
  11322. ;;
  11323. m68k)
  11324. archive_cmds_GO='$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)'
  11325. hardcode_libdir_flag_spec_GO='-L$libdir'
  11326. hardcode_minus_L_GO=yes
  11327. ;;
  11328. esac
  11329. ;;
  11330. bsdi[45]*)
  11331. export_dynamic_flag_spec_GO=-rdynamic
  11332. ;;
  11333. cygwin* | mingw* | pw32* | cegcc*)
  11334. # When not using gcc, we currently assume that we are using
  11335. # Microsoft Visual C++.
  11336. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11337. # no search path for DLLs.
  11338. hardcode_libdir_flag_spec_GO=' '
  11339. allow_undefined_flag_GO=unsupported
  11340. # Tell ltmain to make .lib files, not .a files.
  11341. libext=lib
  11342. # Tell ltmain to make .dll files, not .so files.
  11343. shrext_cmds=".dll"
  11344. # FIXME: Setting linknames here is a bad hack.
  11345. archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  11346. # The linker will automatically build a .lib file if we build a DLL.
  11347. old_archive_from_new_cmds_GO='true'
  11348. # FIXME: Should let the user specify the lib program.
  11349. old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
  11350. fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
  11351. enable_shared_with_static_runtimes_GO=yes
  11352. ;;
  11353. darwin* | rhapsody*)
  11354. archive_cmds_need_lc_GO=no
  11355. hardcode_direct_GO=no
  11356. hardcode_automatic_GO=yes
  11357. hardcode_shlibpath_var_GO=unsupported
  11358. if test "$lt_cv_ld_force_load" = "yes"; then
  11359. whole_archive_flag_spec_GO='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11360. else
  11361. whole_archive_flag_spec_GO=''
  11362. fi
  11363. link_all_deplibs_GO=yes
  11364. allow_undefined_flag_GO="$_lt_dar_allow_undefined"
  11365. case $cc_basename in
  11366. ifort*) _lt_dar_can_shared=yes ;;
  11367. *) _lt_dar_can_shared=$GCC ;;
  11368. esac
  11369. if test "$_lt_dar_can_shared" = "yes"; then
  11370. output_verbose_link_cmd=func_echo_all
  11371. archive_cmds_GO="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11372. module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11373. archive_expsym_cmds_GO="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}"
  11374. module_expsym_cmds_GO="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}"
  11375. else
  11376. ld_shlibs_GO=no
  11377. fi
  11378. ;;
  11379. dgux*)
  11380. archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11381. hardcode_libdir_flag_spec_GO='-L$libdir'
  11382. hardcode_shlibpath_var_GO=no
  11383. ;;
  11384. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11385. # support. Future versions do this automatically, but an explicit c++rt0.o
  11386. # does not break anything, and helps significantly (at the cost of a little
  11387. # extra space).
  11388. freebsd2.2*)
  11389. archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11390. hardcode_libdir_flag_spec_GO='-R$libdir'
  11391. hardcode_direct_GO=yes
  11392. hardcode_shlibpath_var_GO=no
  11393. ;;
  11394. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11395. freebsd2.*)
  11396. archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11397. hardcode_direct_GO=yes
  11398. hardcode_minus_L_GO=yes
  11399. hardcode_shlibpath_var_GO=no
  11400. ;;
  11401. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11402. freebsd* | dragonfly*)
  11403. archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  11404. hardcode_libdir_flag_spec_GO='-R$libdir'
  11405. hardcode_direct_GO=yes
  11406. hardcode_shlibpath_var_GO=no
  11407. ;;
  11408. hpux9*)
  11409. if test "$GCC" = yes; then
  11410. archive_cmds_GO='$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'
  11411. else
  11412. archive_cmds_GO='$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'
  11413. fi
  11414. hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
  11415. hardcode_libdir_separator_GO=:
  11416. hardcode_direct_GO=yes
  11417. # hardcode_minus_L: Not really in the search PATH,
  11418. # but as the default location of the library.
  11419. hardcode_minus_L_GO=yes
  11420. export_dynamic_flag_spec_GO='${wl}-E'
  11421. ;;
  11422. hpux10*)
  11423. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11424. archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11425. else
  11426. archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11427. fi
  11428. if test "$with_gnu_ld" = no; then
  11429. hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
  11430. hardcode_libdir_flag_spec_ld_GO='+b $libdir'
  11431. hardcode_libdir_separator_GO=:
  11432. hardcode_direct_GO=yes
  11433. hardcode_direct_absolute_GO=yes
  11434. export_dynamic_flag_spec_GO='${wl}-E'
  11435. # hardcode_minus_L: Not really in the search PATH,
  11436. # but as the default location of the library.
  11437. hardcode_minus_L_GO=yes
  11438. fi
  11439. ;;
  11440. hpux11*)
  11441. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11442. case $host_cpu in
  11443. hppa*64*)
  11444. archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11445. ;;
  11446. ia64*)
  11447. archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11448. ;;
  11449. *)
  11450. archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11451. ;;
  11452. esac
  11453. else
  11454. case $host_cpu in
  11455. hppa*64*)
  11456. archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11457. ;;
  11458. ia64*)
  11459. archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11460. ;;
  11461. *)
  11462. archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11463. ;;
  11464. esac
  11465. fi
  11466. if test "$with_gnu_ld" = no; then
  11467. hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
  11468. hardcode_libdir_separator_GO=:
  11469. case $host_cpu in
  11470. hppa*64*|ia64*)
  11471. hardcode_direct_GO=no
  11472. hardcode_shlibpath_var_GO=no
  11473. ;;
  11474. *)
  11475. hardcode_direct_GO=yes
  11476. hardcode_direct_absolute_GO=yes
  11477. export_dynamic_flag_spec_GO='${wl}-E'
  11478. # hardcode_minus_L: Not really in the search PATH,
  11479. # but as the default location of the library.
  11480. hardcode_minus_L_GO=yes
  11481. ;;
  11482. esac
  11483. fi
  11484. ;;
  11485. irix5* | irix6* | nonstopux*)
  11486. if test "$GCC" = yes; then
  11487. archive_cmds_GO='$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'
  11488. # Try to use the -exported_symbol ld option, if it does not
  11489. # work, assume that -exports_file does not work either and
  11490. # implicitly export all symbols.
  11491. save_LDFLAGS="$LDFLAGS"
  11492. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  11493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11494. /* end confdefs.h. */
  11495. int foo(void) {}
  11496. _ACEOF
  11497. if ac_fn_c_try_link "$LINENO"; then :
  11498. archive_expsym_cmds_GO='$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'
  11499. fi
  11500. rm -f core conftest.err conftest.$ac_objext \
  11501. conftest$ac_exeext conftest.$ac_ext
  11502. LDFLAGS="$save_LDFLAGS"
  11503. else
  11504. archive_cmds_GO='$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'
  11505. archive_expsym_cmds_GO='$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'
  11506. fi
  11507. archive_cmds_need_lc_GO='no'
  11508. hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
  11509. hardcode_libdir_separator_GO=:
  11510. inherit_rpath_GO=yes
  11511. link_all_deplibs_GO=yes
  11512. ;;
  11513. netbsd*)
  11514. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11515. archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11516. else
  11517. archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11518. fi
  11519. hardcode_libdir_flag_spec_GO='-R$libdir'
  11520. hardcode_direct_GO=yes
  11521. hardcode_shlibpath_var_GO=no
  11522. ;;
  11523. newsos6)
  11524. archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11525. hardcode_direct_GO=yes
  11526. hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
  11527. hardcode_libdir_separator_GO=:
  11528. hardcode_shlibpath_var_GO=no
  11529. ;;
  11530. *nto* | *qnx*)
  11531. ;;
  11532. openbsd*)
  11533. if test -f /usr/libexec/ld.so; then
  11534. hardcode_direct_GO=yes
  11535. hardcode_shlibpath_var_GO=no
  11536. hardcode_direct_absolute_GO=yes
  11537. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11538. archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11539. archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  11540. hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
  11541. export_dynamic_flag_spec_GO='${wl}-E'
  11542. else
  11543. case $host_os in
  11544. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  11545. archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11546. hardcode_libdir_flag_spec_GO='-R$libdir'
  11547. ;;
  11548. *)
  11549. archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11550. hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
  11551. ;;
  11552. esac
  11553. fi
  11554. else
  11555. ld_shlibs_GO=no
  11556. fi
  11557. ;;
  11558. os2*)
  11559. hardcode_libdir_flag_spec_GO='-L$libdir'
  11560. hardcode_minus_L_GO=yes
  11561. allow_undefined_flag_GO=unsupported
  11562. archive_cmds_GO='$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'
  11563. old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  11564. ;;
  11565. osf3*)
  11566. if test "$GCC" = yes; then
  11567. allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
  11568. archive_cmds_GO='$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'
  11569. else
  11570. allow_undefined_flag_GO=' -expect_unresolved \*'
  11571. archive_cmds_GO='$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'
  11572. fi
  11573. archive_cmds_need_lc_GO='no'
  11574. hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
  11575. hardcode_libdir_separator_GO=:
  11576. ;;
  11577. osf4* | osf5*) # as osf3* with the addition of -msym flag
  11578. if test "$GCC" = yes; then
  11579. allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
  11580. archive_cmds_GO='$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'
  11581. hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
  11582. else
  11583. allow_undefined_flag_GO=' -expect_unresolved \*'
  11584. archive_cmds_GO='$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'
  11585. archive_expsym_cmds_GO='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  11586. $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'
  11587. # Both c and cxx compiler support -rpath directly
  11588. hardcode_libdir_flag_spec_GO='-rpath $libdir'
  11589. fi
  11590. archive_cmds_need_lc_GO='no'
  11591. hardcode_libdir_separator_GO=:
  11592. ;;
  11593. solaris*)
  11594. no_undefined_flag_GO=' -z defs'
  11595. if test "$GCC" = yes; then
  11596. wlarc='${wl}'
  11597. archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11598. archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11599. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11600. else
  11601. case `$CC -V 2>&1` in
  11602. *"Compilers 5.0"*)
  11603. wlarc=''
  11604. archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11605. archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11606. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  11607. ;;
  11608. *)
  11609. wlarc='${wl}'
  11610. archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11611. archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11612. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11613. ;;
  11614. esac
  11615. fi
  11616. hardcode_libdir_flag_spec_GO='-R$libdir'
  11617. hardcode_shlibpath_var_GO=no
  11618. case $host_os in
  11619. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11620. *)
  11621. # The compiler driver will combine and reorder linker options,
  11622. # but understands `-z linker_flag'. GCC discards it without `$wl',
  11623. # but is careful enough not to reorder.
  11624. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11625. if test "$GCC" = yes; then
  11626. whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11627. else
  11628. whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
  11629. fi
  11630. ;;
  11631. esac
  11632. link_all_deplibs_GO=yes
  11633. ;;
  11634. sunos4*)
  11635. if test "x$host_vendor" = xsequent; then
  11636. # Use $CC to link under sequent, because it throws in some extra .o
  11637. # files that make .init and .fini sections work.
  11638. archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11639. else
  11640. archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11641. fi
  11642. hardcode_libdir_flag_spec_GO='-L$libdir'
  11643. hardcode_direct_GO=yes
  11644. hardcode_minus_L_GO=yes
  11645. hardcode_shlibpath_var_GO=no
  11646. ;;
  11647. sysv4)
  11648. case $host_vendor in
  11649. sni)
  11650. archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11651. hardcode_direct_GO=yes # is this really true???
  11652. ;;
  11653. siemens)
  11654. ## LD is ld it makes a PLAMLIB
  11655. ## CC just makes a GrossModule.
  11656. archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11657. reload_cmds_GO='$CC -r -o $output$reload_objs'
  11658. hardcode_direct_GO=no
  11659. ;;
  11660. motorola)
  11661. archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11662. hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
  11663. ;;
  11664. esac
  11665. runpath_var='LD_RUN_PATH'
  11666. hardcode_shlibpath_var_GO=no
  11667. ;;
  11668. sysv4.3*)
  11669. archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11670. hardcode_shlibpath_var_GO=no
  11671. export_dynamic_flag_spec_GO='-Bexport'
  11672. ;;
  11673. sysv4*MP*)
  11674. if test -d /usr/nec; then
  11675. archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11676. hardcode_shlibpath_var_GO=no
  11677. runpath_var=LD_RUN_PATH
  11678. hardcode_runpath_var=yes
  11679. ld_shlibs_GO=yes
  11680. fi
  11681. ;;
  11682. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11683. no_undefined_flag_GO='${wl}-z,text'
  11684. archive_cmds_need_lc_GO=no
  11685. hardcode_shlibpath_var_GO=no
  11686. runpath_var='LD_RUN_PATH'
  11687. if test "$GCC" = yes; then
  11688. archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11689. archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11690. else
  11691. archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11692. archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11693. fi
  11694. ;;
  11695. sysv5* | sco3.2v5* | sco5v6*)
  11696. # Note: We can NOT use -z defs as we might desire, because we do not
  11697. # link with -lc, and that would cause any symbols used from libc to
  11698. # always be unresolved, which means just about no library would
  11699. # ever link correctly. If we're not using GNU ld we use -z text
  11700. # though, which does catch some bad symbols but isn't as heavy-handed
  11701. # as -z defs.
  11702. no_undefined_flag_GO='${wl}-z,text'
  11703. allow_undefined_flag_GO='${wl}-z,nodefs'
  11704. archive_cmds_need_lc_GO=no
  11705. hardcode_shlibpath_var_GO=no
  11706. hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
  11707. hardcode_libdir_separator_GO=':'
  11708. link_all_deplibs_GO=yes
  11709. export_dynamic_flag_spec_GO='${wl}-Bexport'
  11710. runpath_var='LD_RUN_PATH'
  11711. if test "$GCC" = yes; then
  11712. archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11713. archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11714. else
  11715. archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11716. archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11717. fi
  11718. ;;
  11719. uts4*)
  11720. archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11721. hardcode_libdir_flag_spec_GO='-L$libdir'
  11722. hardcode_shlibpath_var_GO=no
  11723. ;;
  11724. *)
  11725. ld_shlibs_GO=no
  11726. ;;
  11727. esac
  11728. if test x$host_vendor = xsni; then
  11729. case $host in
  11730. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11731. export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
  11732. ;;
  11733. esac
  11734. fi
  11735. fi
  11736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
  11737. $as_echo "$ld_shlibs_GO" >&6; }
  11738. test "$ld_shlibs_GO" = no && can_build_shared=no
  11739. with_gnu_ld_GO=$with_gnu_ld
  11740. #
  11741. # Do we need to explicitly link libc?
  11742. #
  11743. case "x$archive_cmds_need_lc_GO" in
  11744. x|xyes)
  11745. # Assume -lc should be added
  11746. archive_cmds_need_lc_GO=yes
  11747. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11748. case $archive_cmds_GO in
  11749. *'~'*)
  11750. # FIXME: we may have to deal with multi-command sequences.
  11751. ;;
  11752. '$CC '*)
  11753. # Test whether the compiler implicitly links with -lc since on some
  11754. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11755. # to ld, don't add -lc before -lgcc.
  11756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11757. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11758. if ${lt_cv_archive_cmds_need_lc_GO+:} false; then :
  11759. $as_echo_n "(cached) " >&6
  11760. else
  11761. $RM conftest*
  11762. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11763. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11764. (eval $ac_compile) 2>&5
  11765. ac_status=$?
  11766. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11767. test $ac_status = 0; } 2>conftest.err; then
  11768. soname=conftest
  11769. lib=conftest
  11770. libobjs=conftest.$ac_objext
  11771. deplibs=
  11772. wl=$lt_prog_compiler_wl_GO
  11773. pic_flag=$lt_prog_compiler_pic_GO
  11774. compiler_flags=-v
  11775. linker_flags=-v
  11776. verstring=
  11777. output_objdir=.
  11778. libname=conftest
  11779. lt_save_allow_undefined_flag=$allow_undefined_flag_GO
  11780. allow_undefined_flag_GO=
  11781. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11782. (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11783. ac_status=$?
  11784. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11785. test $ac_status = 0; }
  11786. then
  11787. lt_cv_archive_cmds_need_lc_GO=no
  11788. else
  11789. lt_cv_archive_cmds_need_lc_GO=yes
  11790. fi
  11791. allow_undefined_flag_GO=$lt_save_allow_undefined_flag
  11792. else
  11793. cat conftest.err 1>&5
  11794. fi
  11795. $RM conftest*
  11796. fi
  11797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
  11798. $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
  11799. archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
  11800. ;;
  11801. esac
  11802. fi
  11803. ;;
  11804. esac
  11805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11806. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11807. hardcode_action_GO=
  11808. if test -n "$hardcode_libdir_flag_spec_GO" ||
  11809. test -n "$runpath_var_GO" ||
  11810. test "X$hardcode_automatic_GO" = "Xyes" ; then
  11811. # We can hardcode non-existent directories.
  11812. if test "$hardcode_direct_GO" != no &&
  11813. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11814. # have to relink, otherwise we might link with an installed library
  11815. # when we should be linking with a yet-to-be-installed one
  11816. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
  11817. test "$hardcode_minus_L_GO" != no; then
  11818. # Linking always hardcodes the temporary library directory.
  11819. hardcode_action_GO=relink
  11820. else
  11821. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11822. hardcode_action_GO=immediate
  11823. fi
  11824. else
  11825. # We cannot hardcode anything, or else we can only hardcode existing
  11826. # directories.
  11827. hardcode_action_GO=unsupported
  11828. fi
  11829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
  11830. $as_echo "$hardcode_action_GO" >&6; }
  11831. if test "$hardcode_action_GO" = relink ||
  11832. test "$inherit_rpath_GO" = yes; then
  11833. # Fast installation is not supported
  11834. enable_fast_install=no
  11835. elif test "$shlibpath_overrides_runpath" = yes ||
  11836. test "$enable_shared" = no; then
  11837. # Fast installation is not necessary
  11838. enable_fast_install=needless
  11839. fi
  11840. fi
  11841. ac_ext=c
  11842. ac_cpp='$CPP $CPPFLAGS'
  11843. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11844. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11845. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11846. GCC=$lt_save_GCC
  11847. CC="$lt_save_CC"
  11848. ac_config_commands="$ac_config_commands libtool"
  11849. # Only expand once:
  11850. CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
  11851. for ac_prog in gawk mawk nawk awk
  11852. do
  11853. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11854. set dummy $ac_prog; ac_word=$2
  11855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11856. $as_echo_n "checking for $ac_word... " >&6; }
  11857. if ${ac_cv_prog_AWK+:} false; then :
  11858. $as_echo_n "(cached) " >&6
  11859. else
  11860. if test -n "$AWK"; then
  11861. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11862. else
  11863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11864. for as_dir in $PATH
  11865. do
  11866. IFS=$as_save_IFS
  11867. test -z "$as_dir" && as_dir=.
  11868. for ac_exec_ext in '' $ac_executable_extensions; do
  11869. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11870. ac_cv_prog_AWK="$ac_prog"
  11871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11872. break 2
  11873. fi
  11874. done
  11875. done
  11876. IFS=$as_save_IFS
  11877. fi
  11878. fi
  11879. AWK=$ac_cv_prog_AWK
  11880. if test -n "$AWK"; then
  11881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11882. $as_echo "$AWK" >&6; }
  11883. else
  11884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11885. $as_echo "no" >&6; }
  11886. fi
  11887. test -n "$AWK" && break
  11888. done
  11889. WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
  11890. # Check whether --enable-werror was given.
  11891. if test "${enable_werror+set}" = set; then :
  11892. enableval=$enable_werror;
  11893. fi
  11894. if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
  11895. WERROR="-Werror"
  11896. fi
  11897. glibgo_toolexecdir=no
  11898. glibgo_toolexeclibdir=no
  11899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  11900. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  11901. # Check whether --enable-version-specific-runtime-libs was given.
  11902. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  11903. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  11904. yes) version_specific_libs=yes ;;
  11905. no) version_specific_libs=no ;;
  11906. *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  11907. esac
  11908. else
  11909. version_specific_libs=no
  11910. fi
  11911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
  11912. $as_echo "$version_specific_libs" >&6; }
  11913. # Check whether --with-toolexeclibdir was given.
  11914. if test "${with_toolexeclibdir+set}" = set; then :
  11915. withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
  11916. /)
  11917. ;;
  11918. */)
  11919. with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
  11920. ;;
  11921. esac
  11922. else
  11923. with_toolexeclibdir=no
  11924. fi
  11925. # Version-specific runtime libs processing.
  11926. if test $version_specific_libs = yes; then
  11927. glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
  11928. glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
  11929. fi
  11930. # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
  11931. # Install a library built with a cross compiler in tooldir, not libdir.
  11932. if test -n "$with_cross_host" &&
  11933. test x"$with_cross_host" != x"no"; then
  11934. nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
  11935. case ${with_toolexeclibdir} in
  11936. no)
  11937. nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
  11938. ;;
  11939. *)
  11940. nover_glibgo_toolexeclibdir=${with_toolexeclibdir}
  11941. ;;
  11942. esac
  11943. else
  11944. nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
  11945. nover_glibgo_toolexeclibdir='${libdir}'
  11946. fi
  11947. multi_os_directory=`$GOC -print-multi-os-directory`
  11948. case $multi_os_directory in
  11949. .) ;; # Avoid trailing /.
  11950. *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
  11951. esac
  11952. if test x"$glibgo_toolexecdir" = x"no"; then
  11953. glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
  11954. glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
  11955. fi
  11956. # See if the user wants to configure without libffi. Some
  11957. # architectures don't support it. FIXME: We should set a default
  11958. # based on the host.
  11959. # Check whether --with-libffi was given.
  11960. if test "${with_libffi+set}" = set; then :
  11961. withval=$with_libffi; :
  11962. else
  11963. with_libffi=${with_libffi_default-yes}
  11964. fi
  11965. LIBFFI=
  11966. LIBFFIINCS=
  11967. if test "$with_libffi" != no; then
  11968. $as_echo "#define USE_LIBFFI 1" >>confdefs.h
  11969. LIBFFI=../libffi/libffi_convenience.la
  11970. LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
  11971. fi
  11972. if test "$with_libffi" != "no"; then
  11973. USE_LIBFFI_TRUE=
  11974. USE_LIBFFI_FALSE='#'
  11975. else
  11976. USE_LIBFFI_TRUE='#'
  11977. USE_LIBFFI_FALSE=
  11978. fi
  11979. # See if the user wants to configure without libatomic. This is useful if we are
  11980. # on an architecture for which libgo does not need an atomic support library and
  11981. # libatomic does not support our C compiler.
  11982. # Check whether --with-libatomic was given.
  11983. if test "${with_libatomic+set}" = set; then :
  11984. withval=$with_libatomic; :
  11985. else
  11986. with_libatomic=${with_libatomic_default-yes}
  11987. fi
  11988. LIBATOMIC=
  11989. if test "$with_libatomic" != no; then
  11990. LIBATOMIC=../libatomic/libatomic_convenience.la
  11991. fi
  11992. # Used to tell GNU make to include a file without telling automake to
  11993. # include it.
  11994. go_include="-include"
  11995. # All known GOOS values. This is the union of all operating systems
  11996. # supported by the gofrontend and all operating systems supported by
  11997. # the gc toolchain.
  11998. ALLGOOS="aix android darwin dragonfly freebsd hurd illumos ios irix js linux netbsd openbsd plan9 rtems solaris windows zos"
  11999. is_darwin=no
  12000. is_freebsd=no
  12001. is_irix=no
  12002. is_linux=no
  12003. is_netbsd=no
  12004. is_openbsd=no
  12005. is_dragonfly=no
  12006. is_rtems=no
  12007. is_solaris=no
  12008. is_aix=no
  12009. is_hurd=no
  12010. GOOS=unknown
  12011. case ${host} in
  12012. *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
  12013. *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
  12014. *-*-irix6*) is_irix=yes; GOOS=irix ;;
  12015. *-*-linux*) is_linux=yes; GOOS=linux ;;
  12016. *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
  12017. *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
  12018. *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
  12019. *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
  12020. *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
  12021. *-*-aix*) is_aix=yes; GOOS=aix ;;
  12022. *-*-gnu*) is_hurd=yes; GOOS=hurd ;;
  12023. esac
  12024. if test $is_darwin = yes; then
  12025. LIBGO_IS_DARWIN_TRUE=
  12026. LIBGO_IS_DARWIN_FALSE='#'
  12027. else
  12028. LIBGO_IS_DARWIN_TRUE='#'
  12029. LIBGO_IS_DARWIN_FALSE=
  12030. fi
  12031. if test $is_freebsd = yes; then
  12032. LIBGO_IS_FREEBSD_TRUE=
  12033. LIBGO_IS_FREEBSD_FALSE='#'
  12034. else
  12035. LIBGO_IS_FREEBSD_TRUE='#'
  12036. LIBGO_IS_FREEBSD_FALSE=
  12037. fi
  12038. if test $is_irix = yes; then
  12039. LIBGO_IS_IRIX_TRUE=
  12040. LIBGO_IS_IRIX_FALSE='#'
  12041. else
  12042. LIBGO_IS_IRIX_TRUE='#'
  12043. LIBGO_IS_IRIX_FALSE=
  12044. fi
  12045. if test $is_linux = yes; then
  12046. LIBGO_IS_LINUX_TRUE=
  12047. LIBGO_IS_LINUX_FALSE='#'
  12048. else
  12049. LIBGO_IS_LINUX_TRUE='#'
  12050. LIBGO_IS_LINUX_FALSE=
  12051. fi
  12052. if test $is_netbsd = yes; then
  12053. LIBGO_IS_NETBSD_TRUE=
  12054. LIBGO_IS_NETBSD_FALSE='#'
  12055. else
  12056. LIBGO_IS_NETBSD_TRUE='#'
  12057. LIBGO_IS_NETBSD_FALSE=
  12058. fi
  12059. if test $is_openbsd = yes; then
  12060. LIBGO_IS_OPENBSD_TRUE=
  12061. LIBGO_IS_OPENBSD_FALSE='#'
  12062. else
  12063. LIBGO_IS_OPENBSD_TRUE='#'
  12064. LIBGO_IS_OPENBSD_FALSE=
  12065. fi
  12066. if test $is_dragonfly = yes; then
  12067. LIBGO_IS_DRAGONFLY_TRUE=
  12068. LIBGO_IS_DRAGONFLY_FALSE='#'
  12069. else
  12070. LIBGO_IS_DRAGONFLY_TRUE='#'
  12071. LIBGO_IS_DRAGONFLY_FALSE=
  12072. fi
  12073. if test $is_rtems = yes; then
  12074. LIBGO_IS_RTEMS_TRUE=
  12075. LIBGO_IS_RTEMS_FALSE='#'
  12076. else
  12077. LIBGO_IS_RTEMS_TRUE='#'
  12078. LIBGO_IS_RTEMS_FALSE=
  12079. fi
  12080. if test $is_solaris = yes; then
  12081. LIBGO_IS_SOLARIS_TRUE=
  12082. LIBGO_IS_SOLARIS_FALSE='#'
  12083. else
  12084. LIBGO_IS_SOLARIS_TRUE='#'
  12085. LIBGO_IS_SOLARIS_FALSE=
  12086. fi
  12087. if test $is_aix = yes; then
  12088. LIBGO_IS_AIX_TRUE=
  12089. LIBGO_IS_AIX_FALSE='#'
  12090. else
  12091. LIBGO_IS_AIX_TRUE='#'
  12092. LIBGO_IS_AIX_FALSE=
  12093. fi
  12094. if test $is_hurd = yes; then
  12095. LIBGO_IS_HURD_TRUE=
  12096. LIBGO_IS_HURD_FALSE='#'
  12097. else
  12098. LIBGO_IS_HURD_TRUE='#'
  12099. LIBGO_IS_HURD_FALSE=
  12100. fi
  12101. if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
  12102. LIBGO_IS_BSD_TRUE=
  12103. LIBGO_IS_BSD_FALSE='#'
  12104. else
  12105. LIBGO_IS_BSD_TRUE='#'
  12106. LIBGO_IS_BSD_FALSE=
  12107. fi
  12108. USE_DEJAGNU=no
  12109. case ${host} in
  12110. *-*-rtems*) USE_DEJAGNU=yes ;;
  12111. ${build}) ;;
  12112. *) USE_DEJAGNU=yes ;;
  12113. esac
  12114. # All known GOARCH values. This is the union of all architectures
  12115. # supported by the gofrontend and all architectures supported by the
  12116. # gc toolchain.
  12117. # To add a new architecture:
  12118. # - add it to this list
  12119. # - if appropriate, add an entry to ALLGOARCHFAMILY below
  12120. # - add an entry to the case on ${host} below to set GOARCH
  12121. # - update goarchList in libgo/go/go/build/syslist.go
  12122. # - update goarch.sh to report the values for this architecture
  12123. # - update go-set-goarch in gcc/testsuite/go.test/go-test.exp
  12124. # - update ptrSizeMap and intSizeMap in libgo/go/cmd/cgo/main.go
  12125. # - update arch lists in libgo/match.sh
  12126. # - update arch lists in libgo/testsuite/gotest
  12127. # - update +build lines in several places
  12128. # - libgo/go/runtime/lfstack_NNbit.go
  12129. # - libgo/go/runtime/hashNN.go
  12130. # - libgo/go/runtime/unalignedN.go
  12131. # - libgo/go/syscall/endian_XX.go
  12132. # - possibly others
  12133. # - possibly update files in libgo/go/internal/syscall/unix
  12134. ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le nios2 ppc ppc64 ppc64le riscv riscv64 s390 s390x sh shbe sparc sparc64 wasm"
  12135. # All known GOARCH family values.
  12136. ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 NIOS2 PPC PPC64 RISCV RISCV64 S390 S390X SH SPARC SPARC64 WASM"
  12137. GOARCH=unknown
  12138. case ${host} in
  12139. alpha*-*-*)
  12140. GOARCH=alpha
  12141. ;;
  12142. aarch64-*-*)
  12143. GOARCH=arm64
  12144. ;;
  12145. aarch64_be-*-*)
  12146. GOARCH=arm64be
  12147. ;;
  12148. arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
  12149. GOARCH=arm
  12150. case ${host} in
  12151. arm*b*-*-*)
  12152. GOARCH=armbe
  12153. ;;
  12154. esac
  12155. ;;
  12156. i[34567]86-*-* | x86_64-*-*)
  12157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12158. /* end confdefs.h. */
  12159. #ifdef __x86_64__
  12160. #error 64-bit
  12161. #endif
  12162. _ACEOF
  12163. if ac_fn_c_try_compile "$LINENO"; then :
  12164. GOARCH=386
  12165. else
  12166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12167. /* end confdefs.h. */
  12168. #ifdef __ILP32__
  12169. #error x32
  12170. #endif
  12171. _ACEOF
  12172. if ac_fn_c_try_compile "$LINENO"; then :
  12173. GOARCH=amd64
  12174. else
  12175. GOARCH=amd64p32
  12176. fi
  12177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12178. fi
  12179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12180. ;;
  12181. ia64-*-*)
  12182. GOARCH=ia64
  12183. ;;
  12184. m68k*-*-*)
  12185. GOARCH=m68k
  12186. ;;
  12187. mips*-*-*)
  12188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12189. /* end confdefs.h. */
  12190. #if _MIPS_SIM != _ABIO32
  12191. #error not o32
  12192. #endif
  12193. _ACEOF
  12194. if ac_fn_c_try_compile "$LINENO"; then :
  12195. mips_abi="o32"
  12196. else
  12197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12198. /* end confdefs.h. */
  12199. #if _MIPS_SIM != _ABIN32
  12200. #error not n32
  12201. #endif
  12202. _ACEOF
  12203. if ac_fn_c_try_compile "$LINENO"; then :
  12204. mips_abi="n32"
  12205. else
  12206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12207. /* end confdefs.h. */
  12208. #if _MIPS_SIM != _ABI64
  12209. #error not n64
  12210. #endif
  12211. _ACEOF
  12212. if ac_fn_c_try_compile "$LINENO"; then :
  12213. mips_abi="n64"
  12214. else
  12215. as_fn_error $? "unknown MIPS ABI" "$LINENO" 5
  12216. mips_abi="n32"
  12217. fi
  12218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12219. fi
  12220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12221. fi
  12222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12223. case "$mips_abi" in
  12224. "o32") GOARCH=mips ;;
  12225. "n32") GOARCH=mips64p32 ;;
  12226. "n64") GOARCH=mips64 ;;
  12227. esac
  12228. case "${host}" in
  12229. mips*el-*-*)
  12230. GOARCH="${GOARCH}le"
  12231. ;;
  12232. esac
  12233. ;;
  12234. nios2-*-*)
  12235. GOARCH=nios2
  12236. ;;
  12237. rs6000*-*-* | powerpc*-*-*)
  12238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12239. /* end confdefs.h. */
  12240. #ifdef _ARCH_PPC64
  12241. #error 64-bit
  12242. #endif
  12243. _ACEOF
  12244. if ac_fn_c_try_compile "$LINENO"; then :
  12245. GOARCH=ppc
  12246. else
  12247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12248. /* end confdefs.h. */
  12249. #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
  12250. #error 64be
  12251. #endif
  12252. _ACEOF
  12253. if ac_fn_c_try_compile "$LINENO"; then :
  12254. GOARCH=ppc64le
  12255. else
  12256. GOARCH=ppc64
  12257. fi
  12258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12259. fi
  12260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12261. ;;
  12262. riscv*-*-*)
  12263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12264. /* end confdefs.h. */
  12265. #if __riscv_xlen == 64
  12266. #error 64-bit
  12267. #endif
  12268. _ACEOF
  12269. if ac_fn_c_try_compile "$LINENO"; then :
  12270. GOARCH=riscv
  12271. else
  12272. GOARCH=riscv64
  12273. fi
  12274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12275. ;;
  12276. s390*-*-*)
  12277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12278. /* end confdefs.h. */
  12279. #if defined(__s390x__)
  12280. #error 64-bit
  12281. #endif
  12282. _ACEOF
  12283. if ac_fn_c_try_compile "$LINENO"; then :
  12284. GOARCH=s390
  12285. else
  12286. GOARCH=s390x
  12287. fi
  12288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12289. ;;
  12290. sh3eb*-*-* | sh4eb*-*-*)
  12291. GOARCH=shbe
  12292. ;;
  12293. sh3*-*-* | sh4*-*-*)
  12294. GOARCH=sh
  12295. ;;
  12296. sparc*-*-*)
  12297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12298. /* end confdefs.h. */
  12299. #if defined(__sparcv9) || defined(__arch64__)
  12300. #error 64-bit
  12301. #endif
  12302. _ACEOF
  12303. if ac_fn_c_try_compile "$LINENO"; then :
  12304. GOARCH=sparc
  12305. else
  12306. GOARCH=sparc64
  12307. fi
  12308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12309. ;;
  12310. esac
  12311. if test "$GOARCH" = "386" -o "$GOARCH" = "amd64" -o "$GOARCH" = "amd64p32"; then
  12312. LIBGO_IS_X86_TRUE=
  12313. LIBGO_IS_X86_FALSE='#'
  12314. else
  12315. LIBGO_IS_X86_TRUE='#'
  12316. LIBGO_IS_X86_FALSE=
  12317. fi
  12318. FUNCTION_DESCRIPTORS=false
  12319. case ${host} in
  12320. rs6000*-*-* | powerpc*-*-*)
  12321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12322. /* end confdefs.h. */
  12323. #if _CALL_ELF == 1
  12324. #error descriptors
  12325. #endif
  12326. _ACEOF
  12327. if ac_fn_c_try_compile "$LINENO"; then :
  12328. FUNCTION_DESCRIPTORS=false
  12329. else
  12330. FUNCTION_DESCRIPTORS=true
  12331. fi
  12332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12333. ;;
  12334. esac
  12335. GO_LIBCALL_OS_FILE=
  12336. GO_LIBCALL_OS_ARCH_FILE=
  12337. GO_SYSCALL_OS_FILE=
  12338. GO_SYSCALL_OS_ARCH_FILE=
  12339. if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
  12340. GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
  12341. fi
  12342. if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
  12343. GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
  12344. fi
  12345. if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
  12346. GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
  12347. fi
  12348. if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
  12349. GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
  12350. fi
  12351. OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
  12352. case "$target" in
  12353. mips-sgi-irix6.5*)
  12354. # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
  12355. # msghdr in <sys/socket.h>.
  12356. OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
  12357. ;;
  12358. *-*-solaris2.*)
  12359. # Solaris 10+ needs this so struct msghdr gets the msg_control
  12360. # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
  12361. # above doesn't work with C99.
  12362. OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
  12363. ;;
  12364. esac
  12365. test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
  12366. # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
  12367. # with a different meaning.
  12368. case ${target_os} in
  12369. solaris2*)
  12370. ac_save_CFLAGS="$CFLAGS"
  12371. CFLAGS="$CFLAGS -Wa,-nH"
  12372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
  12373. $as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
  12374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12375. /* end confdefs.h. */
  12376. int
  12377. main ()
  12378. {
  12379. return 0;
  12380. ;
  12381. return 0;
  12382. }
  12383. _ACEOF
  12384. if ac_fn_c_try_compile "$LINENO"; then :
  12385. ac_hwcap_flags=yes
  12386. else
  12387. ac_hwcap_flags=no
  12388. fi
  12389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12390. if test "$ac_hwcap_flags" = "yes"; then
  12391. HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
  12392. fi
  12393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
  12394. $as_echo "$ac_hwcap_flags" >&6; }
  12395. CFLAGS="$ac_save_CFLAGS"
  12396. ;;
  12397. esac
  12398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
  12399. $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
  12400. if ${libgo_cv_c_split_stack_supported+:} false; then :
  12401. $as_echo_n "(cached) " >&6
  12402. else
  12403. CFLAGS_hold=$CFLAGS
  12404. CFLAGS="$CFLAGS -fsplit-stack"
  12405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12406. /* end confdefs.h. */
  12407. int i;
  12408. _ACEOF
  12409. if ac_fn_c_try_compile "$LINENO"; then :
  12410. libgo_cv_c_split_stack_supported=yes
  12411. else
  12412. libgo_cv_c_split_stack_supported=no
  12413. fi
  12414. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12415. CFLAGS=$CFLAGS_hold
  12416. fi
  12417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
  12418. $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
  12419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
  12420. $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
  12421. if ${libgo_cv_c_linker_split_non_split+:} false; then :
  12422. $as_echo_n "(cached) " >&6
  12423. else
  12424. cat > conftest1.c << EOF
  12425. extern void f();
  12426. int main() { f(); return 0; }
  12427. EOF
  12428. cat > conftest2.c << EOF
  12429. void f() {}
  12430. EOF
  12431. $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
  12432. $CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
  12433. if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
  12434. libgo_cv_c_linker_split_non_split=yes
  12435. else
  12436. libgo_cv_c_linker_split_non_split=no
  12437. fi
  12438. rm -f conftest1.* conftest2.* conftest
  12439. fi
  12440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
  12441. $as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
  12442. if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
  12443. SPLIT_STACK=-fsplit-stack
  12444. $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
  12445. else
  12446. SPLIT_STACK=
  12447. fi
  12448. if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
  12449. USING_SPLIT_STACK_TRUE=
  12450. USING_SPLIT_STACK_FALSE='#'
  12451. else
  12452. USING_SPLIT_STACK_TRUE='#'
  12453. USING_SPLIT_STACK_FALSE=
  12454. fi
  12455. if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
  12456. GO_SPLIT_STACK=-fno-split-stack
  12457. else
  12458. GO_SPLIT_STACK=
  12459. fi
  12460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
  12461. $as_echo_n "checking whether linker supports split stack... " >&6; }
  12462. if ${libgo_cv_c_linker_supports_split_stack+:} false; then :
  12463. $as_echo_n "(cached) " >&6
  12464. else
  12465. libgo_cv_c_linker_supports_split_stack=no
  12466. if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
  12467. libgo_cv_c_linker_supports_split_stack=yes
  12468. fi
  12469. fi
  12470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
  12471. $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
  12472. if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
  12473. $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
  12474. fi
  12475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
  12476. $as_echo_n "checking whether compiler is llgo... " >&6; }
  12477. if ${libgo_cv_c_goc_is_llgo+:} false; then :
  12478. $as_echo_n "(cached) " >&6
  12479. else
  12480. libgo_cv_c_goc_is_llgo=no
  12481. if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
  12482. libgo_cv_c_goc_is_llgo=yes
  12483. fi
  12484. fi
  12485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
  12486. $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
  12487. if test "$libgo_cv_c_goc_is_llgo" = yes; then
  12488. GOC_IS_LLGO_TRUE=
  12489. GOC_IS_LLGO_FALSE='#'
  12490. else
  12491. GOC_IS_LLGO_TRUE='#'
  12492. GOC_IS_LLGO_FALSE=
  12493. fi
  12494. MATH_LIBS=
  12495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  12496. $as_echo_n "checking for sqrt in -lm... " >&6; }
  12497. if ${ac_cv_lib_m_sqrt+:} false; then :
  12498. $as_echo_n "(cached) " >&6
  12499. else
  12500. ac_check_lib_save_LIBS=$LIBS
  12501. LIBS="-lm $LIBS"
  12502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12503. /* end confdefs.h. */
  12504. /* Override any GCC internal prototype to avoid an error.
  12505. Use char because int might match the return type of a GCC
  12506. builtin and then its argument prototype would still apply. */
  12507. #ifdef __cplusplus
  12508. extern "C"
  12509. #endif
  12510. char sqrt ();
  12511. int
  12512. main ()
  12513. {
  12514. return sqrt ();
  12515. ;
  12516. return 0;
  12517. }
  12518. _ACEOF
  12519. if ac_fn_c_try_link "$LINENO"; then :
  12520. ac_cv_lib_m_sqrt=yes
  12521. else
  12522. ac_cv_lib_m_sqrt=no
  12523. fi
  12524. rm -f core conftest.err conftest.$ac_objext \
  12525. conftest$ac_exeext conftest.$ac_ext
  12526. LIBS=$ac_check_lib_save_LIBS
  12527. fi
  12528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  12529. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  12530. if test "x$ac_cv_lib_m_sqrt" = xyes; then :
  12531. MATH_LIBS=-lm
  12532. fi
  12533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
  12534. $as_echo_n "checking for socket libraries... " >&6; }
  12535. if ${libgo_cv_lib_sockets+:} false; then :
  12536. $as_echo_n "(cached) " >&6
  12537. else
  12538. libgo_cv_lib_sockets=
  12539. libgo_check_both=no
  12540. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  12541. if test "x$ac_cv_func_connect" = xyes; then :
  12542. libgo_check_socket=no
  12543. else
  12544. libgo_check_socket=yes
  12545. fi
  12546. if test "$libgo_check_socket" = "yes"; then
  12547. unset ac_cv_func_connect
  12548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  12549. $as_echo_n "checking for main in -lsocket... " >&6; }
  12550. if ${ac_cv_lib_socket_main+:} false; then :
  12551. $as_echo_n "(cached) " >&6
  12552. else
  12553. ac_check_lib_save_LIBS=$LIBS
  12554. LIBS="-lsocket $LIBS"
  12555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12556. /* end confdefs.h. */
  12557. int
  12558. main ()
  12559. {
  12560. return main ();
  12561. ;
  12562. return 0;
  12563. }
  12564. _ACEOF
  12565. if ac_fn_c_try_link "$LINENO"; then :
  12566. ac_cv_lib_socket_main=yes
  12567. else
  12568. ac_cv_lib_socket_main=no
  12569. fi
  12570. rm -f core conftest.err conftest.$ac_objext \
  12571. conftest$ac_exeext conftest.$ac_ext
  12572. LIBS=$ac_check_lib_save_LIBS
  12573. fi
  12574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  12575. $as_echo "$ac_cv_lib_socket_main" >&6; }
  12576. if test "x$ac_cv_lib_socket_main" = xyes; then :
  12577. libgo_cv_lib_sockets="-lsocket"
  12578. else
  12579. libgo_check_both=yes
  12580. fi
  12581. fi
  12582. if test "$libgo_check_both" = "yes"; then
  12583. libgo_old_libs=$LIBS
  12584. LIBS="$LIBS -lsocket -lnsl"
  12585. unset ac_cv_func_accept
  12586. ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
  12587. if test "x$ac_cv_func_accept" = xyes; then :
  12588. libgo_check_nsl=no
  12589. libgo_cv_lib_sockets="-lsocket -lnsl"
  12590. fi
  12591. unset ac_cv_func_accept
  12592. LIBS=$libgo_old_libs
  12593. fi
  12594. unset ac_cv_func_gethostbyname
  12595. libgo_old_libs="$LIBS"
  12596. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  12597. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  12598. else
  12599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  12600. $as_echo_n "checking for main in -lnsl... " >&6; }
  12601. if ${ac_cv_lib_nsl_main+:} false; then :
  12602. $as_echo_n "(cached) " >&6
  12603. else
  12604. ac_check_lib_save_LIBS=$LIBS
  12605. LIBS="-lnsl $LIBS"
  12606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12607. /* end confdefs.h. */
  12608. int
  12609. main ()
  12610. {
  12611. return main ();
  12612. ;
  12613. return 0;
  12614. }
  12615. _ACEOF
  12616. if ac_fn_c_try_link "$LINENO"; then :
  12617. ac_cv_lib_nsl_main=yes
  12618. else
  12619. ac_cv_lib_nsl_main=no
  12620. fi
  12621. rm -f core conftest.err conftest.$ac_objext \
  12622. conftest$ac_exeext conftest.$ac_ext
  12623. LIBS=$ac_check_lib_save_LIBS
  12624. fi
  12625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  12626. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  12627. if test "x$ac_cv_lib_nsl_main" = xyes; then :
  12628. libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
  12629. fi
  12630. fi
  12631. unset ac_cv_func_gethostbyname
  12632. ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
  12633. if test "x$ac_cv_func_sendfile" = xyes; then :
  12634. else
  12635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
  12636. $as_echo_n "checking for main in -lsendfile... " >&6; }
  12637. if ${ac_cv_lib_sendfile_main+:} false; then :
  12638. $as_echo_n "(cached) " >&6
  12639. else
  12640. ac_check_lib_save_LIBS=$LIBS
  12641. LIBS="-lsendfile $LIBS"
  12642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12643. /* end confdefs.h. */
  12644. int
  12645. main ()
  12646. {
  12647. return main ();
  12648. ;
  12649. return 0;
  12650. }
  12651. _ACEOF
  12652. if ac_fn_c_try_link "$LINENO"; then :
  12653. ac_cv_lib_sendfile_main=yes
  12654. else
  12655. ac_cv_lib_sendfile_main=no
  12656. fi
  12657. rm -f core conftest.err conftest.$ac_objext \
  12658. conftest$ac_exeext conftest.$ac_ext
  12659. LIBS=$ac_check_lib_save_LIBS
  12660. fi
  12661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
  12662. $as_echo "$ac_cv_lib_sendfile_main" >&6; }
  12663. if test "x$ac_cv_lib_sendfile_main" = xyes; then :
  12664. libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
  12665. fi
  12666. fi
  12667. LIBS=$libgo_old_libs
  12668. fi
  12669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
  12670. $as_echo "$libgo_cv_lib_sockets" >&6; }
  12671. NET_LIBS="$libgo_cv_lib_sockets"
  12672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
  12673. $as_echo_n "checking whether -pthread is supported... " >&6; }
  12674. if ${libgo_cv_lib_pthread+:} false; then :
  12675. $as_echo_n "(cached) " >&6
  12676. else
  12677. CFLAGS_hold=$CFLAGS
  12678. CFLAGS="$CFLAGS -pthread -L../libatomic/.libs"
  12679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12680. /* end confdefs.h. */
  12681. int i;
  12682. _ACEOF
  12683. if ac_fn_c_try_compile "$LINENO"; then :
  12684. libgo_cv_lib_pthread=yes
  12685. else
  12686. libgo_cv_lib_pthread=no
  12687. fi
  12688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12689. CFLAGS=$CFLAGS_hold
  12690. fi
  12691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
  12692. $as_echo "$libgo_cv_lib_pthread" >&6; }
  12693. PTHREAD_CFLAGS=
  12694. if test "$libgo_cv_lib_pthread" = yes; then
  12695. # RISC-V apparently adds -latomic when using -pthread.
  12696. PTHREAD_CFLAGS="-pthread -L../libatomic/.libs"
  12697. fi
  12698. PTHREAD_LIBS=
  12699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  12700. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  12701. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  12702. $as_echo_n "(cached) " >&6
  12703. else
  12704. ac_check_lib_save_LIBS=$LIBS
  12705. LIBS="-lpthread $LIBS"
  12706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12707. /* end confdefs.h. */
  12708. /* Override any GCC internal prototype to avoid an error.
  12709. Use char because int might match the return type of a GCC
  12710. builtin and then its argument prototype would still apply. */
  12711. #ifdef __cplusplus
  12712. extern "C"
  12713. #endif
  12714. char pthread_create ();
  12715. int
  12716. main ()
  12717. {
  12718. return pthread_create ();
  12719. ;
  12720. return 0;
  12721. }
  12722. _ACEOF
  12723. if ac_fn_c_try_link "$LINENO"; then :
  12724. ac_cv_lib_pthread_pthread_create=yes
  12725. else
  12726. ac_cv_lib_pthread_pthread_create=no
  12727. fi
  12728. rm -f core conftest.err conftest.$ac_objext \
  12729. conftest$ac_exeext conftest.$ac_ext
  12730. LIBS=$ac_check_lib_save_LIBS
  12731. fi
  12732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  12733. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  12734. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  12735. PTHREAD_LIBS=-lpthread
  12736. fi
  12737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
  12738. $as_echo_n "checking for library containing sched_yield... " >&6; }
  12739. if ${ac_cv_search_sched_yield+:} false; then :
  12740. $as_echo_n "(cached) " >&6
  12741. else
  12742. ac_func_search_save_LIBS=$LIBS
  12743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12744. /* end confdefs.h. */
  12745. /* Override any GCC internal prototype to avoid an error.
  12746. Use char because int might match the return type of a GCC
  12747. builtin and then its argument prototype would still apply. */
  12748. #ifdef __cplusplus
  12749. extern "C"
  12750. #endif
  12751. char sched_yield ();
  12752. int
  12753. main ()
  12754. {
  12755. return sched_yield ();
  12756. ;
  12757. return 0;
  12758. }
  12759. _ACEOF
  12760. for ac_lib in '' rt; do
  12761. if test -z "$ac_lib"; then
  12762. ac_res="none required"
  12763. else
  12764. ac_res=-l$ac_lib
  12765. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12766. fi
  12767. if ac_fn_c_try_link "$LINENO"; then :
  12768. ac_cv_search_sched_yield=$ac_res
  12769. fi
  12770. rm -f core conftest.err conftest.$ac_objext \
  12771. conftest$ac_exeext
  12772. if ${ac_cv_search_sched_yield+:} false; then :
  12773. break
  12774. fi
  12775. done
  12776. if ${ac_cv_search_sched_yield+:} false; then :
  12777. else
  12778. ac_cv_search_sched_yield=no
  12779. fi
  12780. rm conftest.$ac_ext
  12781. LIBS=$ac_func_search_save_LIBS
  12782. fi
  12783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
  12784. $as_echo "$ac_cv_search_sched_yield" >&6; }
  12785. ac_res=$ac_cv_search_sched_yield
  12786. if test "$ac_res" != no; then :
  12787. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12788. fi
  12789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
  12790. $as_echo_n "checking for library containing nanosleep... " >&6; }
  12791. if ${ac_cv_search_nanosleep+:} false; then :
  12792. $as_echo_n "(cached) " >&6
  12793. else
  12794. ac_func_search_save_LIBS=$LIBS
  12795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12796. /* end confdefs.h. */
  12797. /* Override any GCC internal prototype to avoid an error.
  12798. Use char because int might match the return type of a GCC
  12799. builtin and then its argument prototype would still apply. */
  12800. #ifdef __cplusplus
  12801. extern "C"
  12802. #endif
  12803. char nanosleep ();
  12804. int
  12805. main ()
  12806. {
  12807. return nanosleep ();
  12808. ;
  12809. return 0;
  12810. }
  12811. _ACEOF
  12812. for ac_lib in '' rt; do
  12813. if test -z "$ac_lib"; then
  12814. ac_res="none required"
  12815. else
  12816. ac_res=-l$ac_lib
  12817. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12818. fi
  12819. if ac_fn_c_try_link "$LINENO"; then :
  12820. ac_cv_search_nanosleep=$ac_res
  12821. fi
  12822. rm -f core conftest.err conftest.$ac_objext \
  12823. conftest$ac_exeext
  12824. if ${ac_cv_search_nanosleep+:} false; then :
  12825. break
  12826. fi
  12827. done
  12828. if ${ac_cv_search_nanosleep+:} false; then :
  12829. else
  12830. ac_cv_search_nanosleep=no
  12831. fi
  12832. rm conftest.$ac_ext
  12833. LIBS=$ac_func_search_save_LIBS
  12834. fi
  12835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
  12836. $as_echo "$ac_cv_search_nanosleep" >&6; }
  12837. ac_res=$ac_cv_search_nanosleep
  12838. if test "$ac_res" != no; then :
  12839. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12840. fi
  12841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  12842. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  12843. if ${ac_cv_search_clock_gettime+:} false; then :
  12844. $as_echo_n "(cached) " >&6
  12845. else
  12846. ac_func_search_save_LIBS=$LIBS
  12847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12848. /* end confdefs.h. */
  12849. /* Override any GCC internal prototype to avoid an error.
  12850. Use char because int might match the return type of a GCC
  12851. builtin and then its argument prototype would still apply. */
  12852. #ifdef __cplusplus
  12853. extern "C"
  12854. #endif
  12855. char clock_gettime ();
  12856. int
  12857. main ()
  12858. {
  12859. return clock_gettime ();
  12860. ;
  12861. return 0;
  12862. }
  12863. _ACEOF
  12864. for ac_lib in '' rt; do
  12865. if test -z "$ac_lib"; then
  12866. ac_res="none required"
  12867. else
  12868. ac_res=-l$ac_lib
  12869. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12870. fi
  12871. if ac_fn_c_try_link "$LINENO"; then :
  12872. ac_cv_search_clock_gettime=$ac_res
  12873. fi
  12874. rm -f core conftest.err conftest.$ac_objext \
  12875. conftest$ac_exeext
  12876. if ${ac_cv_search_clock_gettime+:} false; then :
  12877. break
  12878. fi
  12879. done
  12880. if ${ac_cv_search_clock_gettime+:} false; then :
  12881. else
  12882. ac_cv_search_clock_gettime=no
  12883. fi
  12884. rm conftest.$ac_ext
  12885. LIBS=$ac_func_search_save_LIBS
  12886. fi
  12887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  12888. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  12889. ac_res=$ac_cv_search_clock_gettime
  12890. if test "$ac_res" != no; then :
  12891. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12892. fi
  12893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  12894. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  12895. if ${ac_cv_c_bigendian+:} false; then :
  12896. $as_echo_n "(cached) " >&6
  12897. else
  12898. ac_cv_c_bigendian=unknown
  12899. # See if we're dealing with a universal compiler.
  12900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12901. /* end confdefs.h. */
  12902. #ifndef __APPLE_CC__
  12903. not a universal capable compiler
  12904. #endif
  12905. typedef int dummy;
  12906. _ACEOF
  12907. if ac_fn_c_try_compile "$LINENO"; then :
  12908. # Check for potential -arch flags. It is not universal unless
  12909. # there are at least two -arch flags with different values.
  12910. ac_arch=
  12911. ac_prev=
  12912. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  12913. if test -n "$ac_prev"; then
  12914. case $ac_word in
  12915. i?86 | x86_64 | ppc | ppc64)
  12916. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  12917. ac_arch=$ac_word
  12918. else
  12919. ac_cv_c_bigendian=universal
  12920. break
  12921. fi
  12922. ;;
  12923. esac
  12924. ac_prev=
  12925. elif test "x$ac_word" = "x-arch"; then
  12926. ac_prev=arch
  12927. fi
  12928. done
  12929. fi
  12930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12931. if test $ac_cv_c_bigendian = unknown; then
  12932. # See if sys/param.h defines the BYTE_ORDER macro.
  12933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12934. /* end confdefs.h. */
  12935. #include <sys/types.h>
  12936. #include <sys/param.h>
  12937. int
  12938. main ()
  12939. {
  12940. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  12941. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  12942. && LITTLE_ENDIAN)
  12943. bogus endian macros
  12944. #endif
  12945. ;
  12946. return 0;
  12947. }
  12948. _ACEOF
  12949. if ac_fn_c_try_compile "$LINENO"; then :
  12950. # It does; now see whether it defined to BIG_ENDIAN or not.
  12951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12952. /* end confdefs.h. */
  12953. #include <sys/types.h>
  12954. #include <sys/param.h>
  12955. int
  12956. main ()
  12957. {
  12958. #if BYTE_ORDER != BIG_ENDIAN
  12959. not big endian
  12960. #endif
  12961. ;
  12962. return 0;
  12963. }
  12964. _ACEOF
  12965. if ac_fn_c_try_compile "$LINENO"; then :
  12966. ac_cv_c_bigendian=yes
  12967. else
  12968. ac_cv_c_bigendian=no
  12969. fi
  12970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12971. fi
  12972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12973. fi
  12974. if test $ac_cv_c_bigendian = unknown; then
  12975. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  12976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12977. /* end confdefs.h. */
  12978. #include <limits.h>
  12979. int
  12980. main ()
  12981. {
  12982. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  12983. bogus endian macros
  12984. #endif
  12985. ;
  12986. return 0;
  12987. }
  12988. _ACEOF
  12989. if ac_fn_c_try_compile "$LINENO"; then :
  12990. # It does; now see whether it defined to _BIG_ENDIAN or not.
  12991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12992. /* end confdefs.h. */
  12993. #include <limits.h>
  12994. int
  12995. main ()
  12996. {
  12997. #ifndef _BIG_ENDIAN
  12998. not big endian
  12999. #endif
  13000. ;
  13001. return 0;
  13002. }
  13003. _ACEOF
  13004. if ac_fn_c_try_compile "$LINENO"; then :
  13005. ac_cv_c_bigendian=yes
  13006. else
  13007. ac_cv_c_bigendian=no
  13008. fi
  13009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13010. fi
  13011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13012. fi
  13013. if test $ac_cv_c_bigendian = unknown; then
  13014. # Compile a test program.
  13015. if test "$cross_compiling" = yes; then :
  13016. # Try to guess by grepping values from an object file.
  13017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13018. /* end confdefs.h. */
  13019. short int ascii_mm[] =
  13020. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  13021. short int ascii_ii[] =
  13022. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  13023. int use_ascii (int i) {
  13024. return ascii_mm[i] + ascii_ii[i];
  13025. }
  13026. short int ebcdic_ii[] =
  13027. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  13028. short int ebcdic_mm[] =
  13029. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  13030. int use_ebcdic (int i) {
  13031. return ebcdic_mm[i] + ebcdic_ii[i];
  13032. }
  13033. extern int foo;
  13034. int
  13035. main ()
  13036. {
  13037. return use_ascii (foo) == use_ebcdic (foo);
  13038. ;
  13039. return 0;
  13040. }
  13041. _ACEOF
  13042. if ac_fn_c_try_compile "$LINENO"; then :
  13043. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  13044. ac_cv_c_bigendian=yes
  13045. fi
  13046. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  13047. if test "$ac_cv_c_bigendian" = unknown; then
  13048. ac_cv_c_bigendian=no
  13049. else
  13050. # finding both strings is unlikely to happen, but who knows?
  13051. ac_cv_c_bigendian=unknown
  13052. fi
  13053. fi
  13054. fi
  13055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13056. else
  13057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13058. /* end confdefs.h. */
  13059. $ac_includes_default
  13060. int
  13061. main ()
  13062. {
  13063. /* Are we little or big endian? From Harbison&Steele. */
  13064. union
  13065. {
  13066. long int l;
  13067. char c[sizeof (long int)];
  13068. } u;
  13069. u.l = 1;
  13070. return u.c[sizeof (long int) - 1] == 1;
  13071. ;
  13072. return 0;
  13073. }
  13074. _ACEOF
  13075. if ac_fn_c_try_run "$LINENO"; then :
  13076. ac_cv_c_bigendian=no
  13077. else
  13078. ac_cv_c_bigendian=yes
  13079. fi
  13080. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13081. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13082. fi
  13083. fi
  13084. fi
  13085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  13086. $as_echo "$ac_cv_c_bigendian" >&6; }
  13087. case $ac_cv_c_bigendian in #(
  13088. yes)
  13089. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  13090. ;; #(
  13091. no)
  13092. ;; #(
  13093. universal)
  13094. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  13095. ;; #(
  13096. *)
  13097. as_fn_error $? "unknown endianness
  13098. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  13099. esac
  13100. # Check whether --with-system-libunwind was given.
  13101. if test "${with_system_libunwind+set}" = set; then :
  13102. withval=$with_system_libunwind;
  13103. fi
  13104. # If system-libunwind was not specifically set, pick a default setting.
  13105. if test x$with_system_libunwind = x; then
  13106. case ${target} in
  13107. ia64-*-hpux*) with_system_libunwind=yes ;;
  13108. *) with_system_libunwind=no ;;
  13109. esac
  13110. fi
  13111. # Based on system-libunwind and target, do we have ipinfo?
  13112. if test x$with_system_libunwind = xyes; then
  13113. case ${target} in
  13114. ia64-*-*) have_unwind_getipinfo=no ;;
  13115. *) have_unwind_getipinfo=yes ;;
  13116. esac
  13117. else
  13118. # Darwin before version 9 does not have _Unwind_GetIPInfo.
  13119. case ${target} in
  13120. *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
  13121. *) have_unwind_getipinfo=yes ;;
  13122. esac
  13123. fi
  13124. if test x$have_unwind_getipinfo = xyes; then
  13125. $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
  13126. fi
  13127. for ac_header in port.h sched.h semaphore.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/event.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/sysctl.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/bpf.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/ptrace.h linux/reboot.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h lwp.h
  13128. do :
  13129. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13130. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13131. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13132. cat >>confdefs.h <<_ACEOF
  13133. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13134. _ACEOF
  13135. fi
  13136. done
  13137. for ac_header in netinet/icmp6.h
  13138. do :
  13139. ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "#include <netinet/in.h>
  13140. "
  13141. if test "x$ac_cv_header_netinet_icmp6_h" = xyes; then :
  13142. cat >>confdefs.h <<_ACEOF
  13143. #define HAVE_NETINET_ICMP6_H 1
  13144. _ACEOF
  13145. fi
  13146. done
  13147. for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h
  13148. do :
  13149. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13150. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
  13151. #include <sys/socket.h>
  13152. #endif
  13153. "
  13154. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13155. cat >>confdefs.h <<_ACEOF
  13156. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13157. _ACEOF
  13158. fi
  13159. done
  13160. if test "$ac_cv_header_sys_mman_h" = yes; then
  13161. HAVE_SYS_MMAN_H_TRUE=
  13162. HAVE_SYS_MMAN_H_FALSE='#'
  13163. else
  13164. HAVE_SYS_MMAN_H_TRUE='#'
  13165. HAVE_SYS_MMAN_H_FALSE=
  13166. fi
  13167. for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr memmem
  13168. do :
  13169. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13170. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13171. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13172. cat >>confdefs.h <<_ACEOF
  13173. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13174. _ACEOF
  13175. fi
  13176. done
  13177. if test "$ac_cv_func_strerror_r" = yes; then
  13178. HAVE_STRERROR_R_TRUE=
  13179. HAVE_STRERROR_R_FALSE='#'
  13180. else
  13181. HAVE_STRERROR_R_TRUE='#'
  13182. HAVE_STRERROR_R_FALSE=
  13183. fi
  13184. if test "$ac_cv_func_wait4" = yes; then
  13185. HAVE_WAIT4_TRUE=
  13186. HAVE_WAIT4_FALSE='#'
  13187. else
  13188. HAVE_WAIT4_TRUE='#'
  13189. HAVE_WAIT4_FALSE=
  13190. fi
  13191. ac_header_dirent=no
  13192. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  13193. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  13194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  13195. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  13196. if eval \${$as_ac_Header+:} false; then :
  13197. $as_echo_n "(cached) " >&6
  13198. else
  13199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13200. /* end confdefs.h. */
  13201. #include <sys/types.h>
  13202. #include <$ac_hdr>
  13203. int
  13204. main ()
  13205. {
  13206. if ((DIR *) 0)
  13207. return 0;
  13208. ;
  13209. return 0;
  13210. }
  13211. _ACEOF
  13212. if ac_fn_c_try_compile "$LINENO"; then :
  13213. eval "$as_ac_Header=yes"
  13214. else
  13215. eval "$as_ac_Header=no"
  13216. fi
  13217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13218. fi
  13219. eval ac_res=\$$as_ac_Header
  13220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13221. $as_echo "$ac_res" >&6; }
  13222. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13223. cat >>confdefs.h <<_ACEOF
  13224. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  13225. _ACEOF
  13226. ac_header_dirent=$ac_hdr; break
  13227. fi
  13228. done
  13229. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  13230. if test $ac_header_dirent = dirent.h; then
  13231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13232. $as_echo_n "checking for library containing opendir... " >&6; }
  13233. if ${ac_cv_search_opendir+:} false; then :
  13234. $as_echo_n "(cached) " >&6
  13235. else
  13236. ac_func_search_save_LIBS=$LIBS
  13237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13238. /* end confdefs.h. */
  13239. /* Override any GCC internal prototype to avoid an error.
  13240. Use char because int might match the return type of a GCC
  13241. builtin and then its argument prototype would still apply. */
  13242. #ifdef __cplusplus
  13243. extern "C"
  13244. #endif
  13245. char opendir ();
  13246. int
  13247. main ()
  13248. {
  13249. return opendir ();
  13250. ;
  13251. return 0;
  13252. }
  13253. _ACEOF
  13254. for ac_lib in '' dir; do
  13255. if test -z "$ac_lib"; then
  13256. ac_res="none required"
  13257. else
  13258. ac_res=-l$ac_lib
  13259. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13260. fi
  13261. if ac_fn_c_try_link "$LINENO"; then :
  13262. ac_cv_search_opendir=$ac_res
  13263. fi
  13264. rm -f core conftest.err conftest.$ac_objext \
  13265. conftest$ac_exeext
  13266. if ${ac_cv_search_opendir+:} false; then :
  13267. break
  13268. fi
  13269. done
  13270. if ${ac_cv_search_opendir+:} false; then :
  13271. else
  13272. ac_cv_search_opendir=no
  13273. fi
  13274. rm conftest.$ac_ext
  13275. LIBS=$ac_func_search_save_LIBS
  13276. fi
  13277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13278. $as_echo "$ac_cv_search_opendir" >&6; }
  13279. ac_res=$ac_cv_search_opendir
  13280. if test "$ac_res" != no; then :
  13281. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13282. fi
  13283. else
  13284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13285. $as_echo_n "checking for library containing opendir... " >&6; }
  13286. if ${ac_cv_search_opendir+:} false; then :
  13287. $as_echo_n "(cached) " >&6
  13288. else
  13289. ac_func_search_save_LIBS=$LIBS
  13290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13291. /* end confdefs.h. */
  13292. /* Override any GCC internal prototype to avoid an error.
  13293. Use char because int might match the return type of a GCC
  13294. builtin and then its argument prototype would still apply. */
  13295. #ifdef __cplusplus
  13296. extern "C"
  13297. #endif
  13298. char opendir ();
  13299. int
  13300. main ()
  13301. {
  13302. return opendir ();
  13303. ;
  13304. return 0;
  13305. }
  13306. _ACEOF
  13307. for ac_lib in '' x; do
  13308. if test -z "$ac_lib"; then
  13309. ac_res="none required"
  13310. else
  13311. ac_res=-l$ac_lib
  13312. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13313. fi
  13314. if ac_fn_c_try_link "$LINENO"; then :
  13315. ac_cv_search_opendir=$ac_res
  13316. fi
  13317. rm -f core conftest.err conftest.$ac_objext \
  13318. conftest$ac_exeext
  13319. if ${ac_cv_search_opendir+:} false; then :
  13320. break
  13321. fi
  13322. done
  13323. if ${ac_cv_search_opendir+:} false; then :
  13324. else
  13325. ac_cv_search_opendir=no
  13326. fi
  13327. rm conftest.$ac_ext
  13328. LIBS=$ac_func_search_save_LIBS
  13329. fi
  13330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13331. $as_echo "$ac_cv_search_opendir" >&6; }
  13332. ac_res=$ac_cv_search_opendir
  13333. if test "$ac_res" != no; then :
  13334. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13335. fi
  13336. fi
  13337. ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
  13338. #include <sys/types.h>
  13339. #ifdef HAVE_DIRENT_H
  13340. # include <dirent.h>
  13341. #else
  13342. # define dirent direct
  13343. # ifdef HAVE_SYS_NDIR_H
  13344. # include <sys/ndir.h>
  13345. # endif
  13346. # ifdef HAVE_SYS_DIR_H
  13347. # include <sys/dir.h>
  13348. # endif
  13349. # ifdef HAVE_NDIR_H
  13350. # include <ndir.h>
  13351. # endif
  13352. #endif
  13353. "
  13354. if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
  13355. cat >>confdefs.h <<_ACEOF
  13356. #define HAVE_STRUCT_DIRENT_D_TYPE 1
  13357. _ACEOF
  13358. fi
  13359. for ac_func in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice syscall tee unlinkat unshare utimensat
  13360. do :
  13361. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13362. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13363. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13364. cat >>confdefs.h <<_ACEOF
  13365. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13366. _ACEOF
  13367. fi
  13368. done
  13369. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  13370. if test "x$ac_cv_type_off_t" = xyes; then :
  13371. else
  13372. cat >>confdefs.h <<_ACEOF
  13373. #define off_t long int
  13374. _ACEOF
  13375. fi
  13376. ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
  13377. if test "x$ac_cv_type_loff_t" = xyes; then :
  13378. cat >>confdefs.h <<_ACEOF
  13379. #define HAVE_LOFF_T 1
  13380. _ACEOF
  13381. fi
  13382. LIBS_hold="$LIBS"
  13383. LIBS="$LIBS -lm"
  13384. for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
  13385. do :
  13386. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13387. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13388. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13389. cat >>confdefs.h <<_ACEOF
  13390. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13391. _ACEOF
  13392. fi
  13393. done
  13394. LIBS="$LIBS_hold"
  13395. CFLAGS_hold="$CFLAGS"
  13396. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  13397. LIBS_hold="$LIBS"
  13398. LIBS="$LIBS $PTHREAD_LIBS"
  13399. for ac_func in sem_timedwait
  13400. do :
  13401. ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
  13402. if test "x$ac_cv_func_sem_timedwait" = xyes; then :
  13403. cat >>confdefs.h <<_ACEOF
  13404. #define HAVE_SEM_TIMEDWAIT 1
  13405. _ACEOF
  13406. fi
  13407. done
  13408. CFLAGS="$CFLAGS_hold"
  13409. LIBS="$LIBS_hold"
  13410. LIBS_hold="$LIBS"
  13411. LIBS="$LIBS $MATH_LIBS"
  13412. for ac_func in matherr
  13413. do :
  13414. ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
  13415. if test "x$ac_cv_func_matherr" = xyes; then :
  13416. cat >>confdefs.h <<_ACEOF
  13417. #define HAVE_MATHERR 1
  13418. _ACEOF
  13419. fi
  13420. done
  13421. LIBS="$LIBS_hold"
  13422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
  13423. $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
  13424. if ${libgo_cv_c_stringops+:} false; then :
  13425. $as_echo_n "(cached) " >&6
  13426. else
  13427. CFLAGS_hold=$CFLAGS
  13428. CFLAGS="$CFLAGS -minline-all-stringops"
  13429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13430. /* end confdefs.h. */
  13431. int i;
  13432. _ACEOF
  13433. if ac_fn_c_try_compile "$LINENO"; then :
  13434. libgo_cv_c_stringops=yes
  13435. else
  13436. libgo_cv_c_stringops=no
  13437. fi
  13438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13439. CFLAGS=$CFLAGS_hold
  13440. fi
  13441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
  13442. $as_echo "$libgo_cv_c_stringops" >&6; }
  13443. STRINGOPS_FLAG=
  13444. if test "$libgo_cv_c_stringops" = yes; then
  13445. STRINGOPS_FLAG=-minline-all-stringops
  13446. fi
  13447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
  13448. $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
  13449. if ${libgo_cv_c_fancymath+:} false; then :
  13450. $as_echo_n "(cached) " >&6
  13451. else
  13452. CFLAGS_hold=$CFLAGS
  13453. CFLAGS="$CFLAGS -mfancy-math-387"
  13454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13455. /* end confdefs.h. */
  13456. int i;
  13457. _ACEOF
  13458. if ac_fn_c_try_compile "$LINENO"; then :
  13459. libgo_cv_c_fancymath=yes
  13460. else
  13461. libgo_cv_c_fancymath=no
  13462. fi
  13463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13464. CFLAGS=$CFLAGS_hold
  13465. fi
  13466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
  13467. $as_echo "$libgo_cv_c_fancymath" >&6; }
  13468. MATH_FLAG=
  13469. if test "$libgo_cv_c_fancymath" = yes; then
  13470. MATH_FLAG="-mfancy-math-387"
  13471. fi
  13472. MATH_FLAG="${MATH_FLAG} -ffp-contract=off -fno-math-errno -fno-trapping-math"
  13473. CFLAGS_hold=$CFLAGS
  13474. CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
  13475. ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
  13476. if test "x$ac_cv_type_off64_t" = xyes; then :
  13477. cat >>confdefs.h <<_ACEOF
  13478. #define HAVE_OFF64_T 1
  13479. _ACEOF
  13480. fi
  13481. CFLAGS=$CFLAGS_hold
  13482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
  13483. $as_echo_n "checking epoll_event size... " >&6; }
  13484. if ${libgo_cv_c_epoll_event_size+:} false; then :
  13485. $as_echo_n "(cached) " >&6
  13486. else
  13487. if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
  13488. else
  13489. libgo_cv_c_epoll_event_size=0
  13490. fi
  13491. fi
  13492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
  13493. $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
  13494. SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
  13495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
  13496. $as_echo_n "checking epoll_event data.fd offset... " >&6; }
  13497. if ${libgo_cv_c_epoll_event_fd_offset+:} false; then :
  13498. $as_echo_n "(cached) " >&6
  13499. else
  13500. if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
  13501. #include <sys/epoll.h>"; then :
  13502. else
  13503. libgo_cv_c_epoll_event_fd_offset=0
  13504. fi
  13505. fi
  13506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
  13507. $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
  13508. STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
  13509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13510. /* end confdefs.h. */
  13511. #include <sys/stat.h>
  13512. _ACEOF
  13513. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13514. $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
  13515. have_stat_timespec=yes
  13516. else
  13517. have_stat_timespec=no
  13518. fi
  13519. rm -f conftest*
  13520. if test $have_stat_timespec = yes; then
  13521. HAVE_STAT_TIMESPEC_TRUE=
  13522. HAVE_STAT_TIMESPEC_FALSE='#'
  13523. else
  13524. HAVE_STAT_TIMESPEC_TRUE='#'
  13525. HAVE_STAT_TIMESPEC_FALSE=
  13526. fi
  13527. ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
  13528. "
  13529. if test "x$ac_cv_type_struct_exception" = xyes; then :
  13530. libgo_has_struct_exception=yes
  13531. else
  13532. libgo_has_struct_exception=no
  13533. fi
  13534. if test "$libgo_has_struct_exception" = "yes"; then
  13535. $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
  13536. fi
  13537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
  13538. $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
  13539. if ${libgo_cv_lib_setcontext_clobbers_tls+:} false; then :
  13540. $as_echo_n "(cached) " >&6
  13541. else
  13542. CFLAGS_hold="$CFLAGS"
  13543. CFLAGS="$PTHREAD_CFLAGS"
  13544. LIBS_hold="$LIBS"
  13545. LIBS="$LIBS $PTHREAD_LIBS"
  13546. # The cast to long int works around a bug in the HP C Compiler
  13547. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13548. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13549. # This bug is HP SR number 8606223364.
  13550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  13551. $as_echo_n "checking size of void *... " >&6; }
  13552. if ${ac_cv_sizeof_void_p+:} false; then :
  13553. $as_echo_n "(cached) " >&6
  13554. else
  13555. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  13556. else
  13557. if test "$ac_cv_type_void_p" = yes; then
  13558. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13559. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13560. as_fn_error 77 "cannot compute sizeof (void *)
  13561. See \`config.log' for more details" "$LINENO" 5; }
  13562. else
  13563. ac_cv_sizeof_void_p=0
  13564. fi
  13565. fi
  13566. fi
  13567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  13568. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  13569. cat >>confdefs.h <<_ACEOF
  13570. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  13571. _ACEOF
  13572. as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
  13573. if test "$cross_compiling" = yes; then :
  13574. case "$target:$ptr_type_size" in
  13575. i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
  13576. libgo_cv_lib_setcontext_clobbers_tls=yes ;;
  13577. *)
  13578. libgo_cv_lib_setcontext_clobbers_tls=no ;;
  13579. esac
  13580. else
  13581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13582. /* end confdefs.h. */
  13583. #include <pthread.h>
  13584. #include <stdlib.h>
  13585. #include <ucontext.h>
  13586. #include <unistd.h>
  13587. __thread int tls;
  13588. static char stack[10 * 1024 * 1024];
  13589. static ucontext_t c;
  13590. /* Called via makecontext/setcontext. */
  13591. static void
  13592. cfn (void)
  13593. {
  13594. exit (tls);
  13595. }
  13596. /* Called via pthread_create. */
  13597. static void *
  13598. tfn (void *dummy)
  13599. {
  13600. /* The thread should still see this value after calling
  13601. setcontext. */
  13602. tls = 0;
  13603. setcontext (&c);
  13604. /* The call to setcontext should not return. */
  13605. abort ();
  13606. }
  13607. int
  13608. main ()
  13609. {
  13610. pthread_t tid;
  13611. /* The thread should not see this value. */
  13612. tls = 1;
  13613. if (getcontext (&c) < 0)
  13614. abort ();
  13615. c.uc_stack.ss_sp = stack;
  13616. #ifdef MAKECONTEXT_STACK_TOP
  13617. c.uc_stack.ss_sp += sizeof stack;
  13618. #endif
  13619. c.uc_stack.ss_flags = 0;
  13620. c.uc_stack.ss_size = sizeof stack;
  13621. c.uc_link = NULL;
  13622. makecontext (&c, cfn, 0);
  13623. if (pthread_create (&tid, NULL, tfn, NULL) != 0)
  13624. abort ();
  13625. if (pthread_join (tid, NULL) != 0)
  13626. abort ();
  13627. /* The thread should have called exit. */
  13628. abort ();
  13629. }
  13630. _ACEOF
  13631. if ac_fn_c_try_run "$LINENO"; then :
  13632. libgo_cv_lib_setcontext_clobbers_tls=no
  13633. else
  13634. libgo_cv_lib_setcontext_clobbers_tls=yes
  13635. fi
  13636. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13637. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13638. fi
  13639. CFLAGS="$CFLAGS_hold"
  13640. LIBS="$LIBS_hold"
  13641. fi
  13642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
  13643. $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
  13644. if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
  13645. $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
  13646. fi
  13647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
  13648. $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
  13649. if ${libgo_cv_ro_eh_frame+:} false; then :
  13650. $as_echo_n "(cached) " >&6
  13651. else
  13652. libgo_cv_ro_eh_frame=no
  13653. echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
  13654. if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
  13655. if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
  13656. libgo_cv_ro_eh_frame=yes
  13657. elif grep '.section.*eh_frame.*#alloc' conftest.c \
  13658. | grep -v '#write' > /dev/null; then
  13659. libgo_cv_ro_eh_frame=yes
  13660. fi
  13661. fi
  13662. rm -f conftest.*
  13663. fi
  13664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
  13665. $as_echo "$libgo_cv_ro_eh_frame" >&6; }
  13666. if test "x$libgo_cv_ro_eh_frame" = xyes; then
  13667. $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
  13668. else
  13669. $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
  13670. fi
  13671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
  13672. $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
  13673. if ${libgo_cv_c_unused_arguments+:} false; then :
  13674. $as_echo_n "(cached) " >&6
  13675. else
  13676. CFLAGS_hold=$CFLAGS
  13677. CFLAGS="$CFLAGS -Qunused-arguments"
  13678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13679. /* end confdefs.h. */
  13680. int i;
  13681. _ACEOF
  13682. if ac_fn_c_try_compile "$LINENO"; then :
  13683. libgo_cv_c_unused_arguments=yes
  13684. else
  13685. libgo_cv_c_unused_arguments=no
  13686. fi
  13687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13688. CFLAGS=$CFLAGS_hold
  13689. fi
  13690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
  13691. $as_echo "$libgo_cv_c_unused_arguments" >&6; }
  13692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
  13693. $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
  13694. if ${libgo_cv_as_comdat_gnu+:} false; then :
  13695. $as_echo_n "(cached) " >&6
  13696. else
  13697. echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
  13698. CFLAGS_hold=$CFLAGS
  13699. if test "$libgo_cv_c_unused_arguments" = yes; then
  13700. CFLAGS="$CFLAGS -Qunused-arguments"
  13701. fi
  13702. if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
  13703. libgo_cv_as_comdat_gnu=yes
  13704. else
  13705. libgo_cv_as_comdat_gnu=no
  13706. fi
  13707. CFLAGS=$CFLAGS_hold
  13708. fi
  13709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
  13710. $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
  13711. if test "x$libgo_cv_as_comdat_gnu" = xyes; then
  13712. $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
  13713. fi
  13714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
  13715. $as_echo_n "checking assembler supports pc related relocs... " >&6; }
  13716. if ${libgo_cv_as_x86_pcrel+:} false; then :
  13717. $as_echo_n "(cached) " >&6
  13718. else
  13719. libgo_cv_as_x86_pcrel=yes
  13720. echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
  13721. CFLAGS_hold=$CFLAGS
  13722. if test "$libgo_cv_c_unused_arguments" = yes; then
  13723. CFLAGS="$CFLAGS -Qunused-arguments"
  13724. fi
  13725. if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
  13726. libgo_cv_as_x86_pcrel=no
  13727. fi
  13728. CFLAGS=$CFLAGS_hold
  13729. fi
  13730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
  13731. $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
  13732. if test "x$libgo_cv_as_x86_pcrel" = xyes; then
  13733. $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
  13734. fi
  13735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
  13736. $as_echo_n "checking assembler supports unwind section type... " >&6; }
  13737. if ${libgo_cv_as_x86_64_unwind_section_type+:} false; then :
  13738. $as_echo_n "(cached) " >&6
  13739. else
  13740. libgo_cv_as_x86_64_unwind_section_type=yes
  13741. echo '.section .eh_frame,"a",@unwind' > conftest.s
  13742. CFLAGS_hold=$CFLAGS
  13743. if test "$libgo_cv_c_unused_arguments" = yes; then
  13744. CFLAGS="$CFLAGS -Qunused-arguments"
  13745. fi
  13746. if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
  13747. libgo_cv_as_x86_64_unwind_section_type=no
  13748. fi
  13749. CFLAGS=$CFLAGS_hold
  13750. fi
  13751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
  13752. $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
  13753. if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
  13754. $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
  13755. fi
  13756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5
  13757. $as_echo_n "checking assembler supports AES instructions... " >&6; }
  13758. if ${libgo_cv_as_x86_aes+:} false; then :
  13759. $as_echo_n "(cached) " >&6
  13760. else
  13761. libgo_cv_as_x86_aes=yes
  13762. echo 'aesenc %xmm0, %xmm1' > conftest.s
  13763. CFLAGS_hold=$CFLAGS
  13764. if test "$libgo_cv_c_unused_arguments" = yes; then
  13765. CFLAGS="$CFLAGS -Qunused-arguments"
  13766. fi
  13767. if $CC $CFLAGS -c conftest.s 2>&1 | grep -i error > /dev/null; then
  13768. libgo_cv_as_x86_aes=no
  13769. fi
  13770. CFLAGS=$CFLAGS_hold
  13771. fi
  13772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5
  13773. $as_echo "$libgo_cv_as_x86_aes" >&6; }
  13774. if test "x$libgo_cv_as_x86_aes" = xyes; then
  13775. $as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h
  13776. fi
  13777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -static is supported" >&5
  13778. $as_echo_n "checking whether -static is supported... " >&6; }
  13779. if ${libgo_cv_ld_static+:} false; then :
  13780. $as_echo_n "(cached) " >&6
  13781. else
  13782. LDFLAGS_hold=$LDFLAGS
  13783. LDFLAGS="$LDFLAGS -static"
  13784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13785. /* end confdefs.h. */
  13786. int
  13787. main ()
  13788. {
  13789. ;
  13790. return 0;
  13791. }
  13792. _ACEOF
  13793. if ac_fn_c_try_link "$LINENO"; then :
  13794. libgo_cv_ld_static=yes
  13795. else
  13796. libgo_cv_ld_static=no
  13797. fi
  13798. rm -f core conftest.err conftest.$ac_objext \
  13799. conftest$ac_exeext conftest.$ac_ext
  13800. LDFLAGS=$LDFLAGS_hold
  13801. fi
  13802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_static" >&5
  13803. $as_echo "$libgo_cv_ld_static" >&6; }
  13804. if test "$libgo_cv_ld_static" = yes; then
  13805. HAVE_STATIC_LINK_TRUE=
  13806. HAVE_STATIC_LINK_FALSE='#'
  13807. else
  13808. HAVE_STATIC_LINK_TRUE='#'
  13809. HAVE_STATIC_LINK_FALSE=
  13810. fi
  13811. cat >confcache <<\_ACEOF
  13812. # This file is a shell script that caches the results of configure
  13813. # tests run on this system so they can be shared between configure
  13814. # scripts and configure runs, see configure's option --config-cache.
  13815. # It is not useful on other systems. If it contains results you don't
  13816. # want to keep, you may remove or edit it.
  13817. #
  13818. # config.status only pays attention to the cache file if you give it
  13819. # the --recheck option to rerun configure.
  13820. #
  13821. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13822. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13823. # following values.
  13824. _ACEOF
  13825. # The following way of writing the cache mishandles newlines in values,
  13826. # but we know of no workaround that is simple, portable, and efficient.
  13827. # So, we kill variables containing newlines.
  13828. # Ultrix sh set writes to stderr and can't be redirected directly,
  13829. # and sets the high bit in the cache file unless we assign to the vars.
  13830. (
  13831. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13832. eval ac_val=\$$ac_var
  13833. case $ac_val in #(
  13834. *${as_nl}*)
  13835. case $ac_var in #(
  13836. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13837. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13838. esac
  13839. case $ac_var in #(
  13840. _ | IFS | as_nl) ;; #(
  13841. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13842. *) { eval $ac_var=; unset $ac_var;} ;;
  13843. esac ;;
  13844. esac
  13845. done
  13846. (set) 2>&1 |
  13847. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13848. *${as_nl}ac_space=\ *)
  13849. # `set' does not quote correctly, so add quotes: double-quote
  13850. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13851. sed -n \
  13852. "s/'/'\\\\''/g;
  13853. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13854. ;; #(
  13855. *)
  13856. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13857. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13858. ;;
  13859. esac |
  13860. sort
  13861. ) |
  13862. sed '
  13863. /^ac_cv_env_/b end
  13864. t clear
  13865. :clear
  13866. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13867. t end
  13868. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13869. :end' >>confcache
  13870. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13871. if test -w "$cache_file"; then
  13872. if test "x$cache_file" != "x/dev/null"; then
  13873. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13874. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13875. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13876. cat confcache >"$cache_file"
  13877. else
  13878. case $cache_file in #(
  13879. */* | ?:*)
  13880. mv -f confcache "$cache_file"$$ &&
  13881. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13882. *)
  13883. mv -f confcache "$cache_file" ;;
  13884. esac
  13885. fi
  13886. fi
  13887. else
  13888. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13889. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13890. fi
  13891. fi
  13892. rm -f confcache
  13893. if test ${multilib} = yes; then
  13894. multilib_arg="--enable-multilib"
  13895. else
  13896. multilib_arg=
  13897. fi
  13898. ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/libgo-test-support.exp"
  13899. ac_config_commands="$ac_config_commands default"
  13900. cat >confcache <<\_ACEOF
  13901. # This file is a shell script that caches the results of configure
  13902. # tests run on this system so they can be shared between configure
  13903. # scripts and configure runs, see configure's option --config-cache.
  13904. # It is not useful on other systems. If it contains results you don't
  13905. # want to keep, you may remove or edit it.
  13906. #
  13907. # config.status only pays attention to the cache file if you give it
  13908. # the --recheck option to rerun configure.
  13909. #
  13910. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13911. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13912. # following values.
  13913. _ACEOF
  13914. # The following way of writing the cache mishandles newlines in values,
  13915. # but we know of no workaround that is simple, portable, and efficient.
  13916. # So, we kill variables containing newlines.
  13917. # Ultrix sh set writes to stderr and can't be redirected directly,
  13918. # and sets the high bit in the cache file unless we assign to the vars.
  13919. (
  13920. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13921. eval ac_val=\$$ac_var
  13922. case $ac_val in #(
  13923. *${as_nl}*)
  13924. case $ac_var in #(
  13925. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13926. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13927. esac
  13928. case $ac_var in #(
  13929. _ | IFS | as_nl) ;; #(
  13930. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13931. *) { eval $ac_var=; unset $ac_var;} ;;
  13932. esac ;;
  13933. esac
  13934. done
  13935. (set) 2>&1 |
  13936. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13937. *${as_nl}ac_space=\ *)
  13938. # `set' does not quote correctly, so add quotes: double-quote
  13939. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13940. sed -n \
  13941. "s/'/'\\\\''/g;
  13942. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13943. ;; #(
  13944. *)
  13945. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13946. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13947. ;;
  13948. esac |
  13949. sort
  13950. ) |
  13951. sed '
  13952. /^ac_cv_env_/b end
  13953. t clear
  13954. :clear
  13955. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13956. t end
  13957. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13958. :end' >>confcache
  13959. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13960. if test -w "$cache_file"; then
  13961. if test "x$cache_file" != "x/dev/null"; then
  13962. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13963. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13964. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13965. cat confcache >"$cache_file"
  13966. else
  13967. case $cache_file in #(
  13968. */* | ?:*)
  13969. mv -f confcache "$cache_file"$$ &&
  13970. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13971. *)
  13972. mv -f confcache "$cache_file" ;;
  13973. esac
  13974. fi
  13975. fi
  13976. else
  13977. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13978. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13979. fi
  13980. fi
  13981. rm -f confcache
  13982. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13983. # Let make expand exec_prefix.
  13984. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13985. DEFS=-DHAVE_CONFIG_H
  13986. ac_libobjs=
  13987. ac_ltlibobjs=
  13988. U=
  13989. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13990. # 1. Remove the extension, and $U if already installed.
  13991. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13992. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13993. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13994. # will be set to the directory where LIBOBJS objects are built.
  13995. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13996. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13997. done
  13998. LIBOBJS=$ac_libobjs
  13999. LTLIBOBJS=$ac_ltlibobjs
  14000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  14001. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  14002. if test -n "$am_sleep_pid"; then
  14003. # Hide warnings about reused PIDs.
  14004. wait $am_sleep_pid 2>/dev/null
  14005. fi
  14006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  14007. $as_echo "done" >&6; }
  14008. if test -n "$EXEEXT"; then
  14009. am__EXEEXT_TRUE=
  14010. am__EXEEXT_FALSE='#'
  14011. else
  14012. am__EXEEXT_TRUE='#'
  14013. am__EXEEXT_FALSE=
  14014. fi
  14015. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14016. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14017. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14018. fi
  14019. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14020. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14021. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14022. fi
  14023. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  14024. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  14025. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14026. fi
  14027. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  14028. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  14029. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14030. fi
  14031. if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
  14032. as_fn_error $? "conditional \"USE_LIBFFI\" was never defined.
  14033. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14034. fi
  14035. if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
  14036. as_fn_error $? "conditional \"LIBGO_IS_DARWIN\" was never defined.
  14037. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14038. fi
  14039. if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
  14040. as_fn_error $? "conditional \"LIBGO_IS_FREEBSD\" was never defined.
  14041. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14042. fi
  14043. if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
  14044. as_fn_error $? "conditional \"LIBGO_IS_IRIX\" was never defined.
  14045. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14046. fi
  14047. if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
  14048. as_fn_error $? "conditional \"LIBGO_IS_LINUX\" was never defined.
  14049. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14050. fi
  14051. if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
  14052. as_fn_error $? "conditional \"LIBGO_IS_NETBSD\" was never defined.
  14053. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14054. fi
  14055. if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
  14056. as_fn_error $? "conditional \"LIBGO_IS_OPENBSD\" was never defined.
  14057. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14058. fi
  14059. if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
  14060. as_fn_error $? "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
  14061. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14062. fi
  14063. if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
  14064. as_fn_error $? "conditional \"LIBGO_IS_RTEMS\" was never defined.
  14065. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14066. fi
  14067. if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
  14068. as_fn_error $? "conditional \"LIBGO_IS_SOLARIS\" was never defined.
  14069. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14070. fi
  14071. if test -z "${LIBGO_IS_AIX_TRUE}" && test -z "${LIBGO_IS_AIX_FALSE}"; then
  14072. as_fn_error $? "conditional \"LIBGO_IS_AIX\" was never defined.
  14073. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14074. fi
  14075. if test -z "${LIBGO_IS_HURD_TRUE}" && test -z "${LIBGO_IS_HURD_FALSE}"; then
  14076. as_fn_error $? "conditional \"LIBGO_IS_HURD\" was never defined.
  14077. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14078. fi
  14079. if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
  14080. as_fn_error $? "conditional \"LIBGO_IS_BSD\" was never defined.
  14081. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14082. fi
  14083. if test -z "${LIBGO_IS_X86_TRUE}" && test -z "${LIBGO_IS_X86_FALSE}"; then
  14084. as_fn_error $? "conditional \"LIBGO_IS_X86\" was never defined.
  14085. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14086. fi
  14087. if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
  14088. as_fn_error $? "conditional \"USING_SPLIT_STACK\" was never defined.
  14089. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14090. fi
  14091. if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
  14092. as_fn_error $? "conditional \"GOC_IS_LLGO\" was never defined.
  14093. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14094. fi
  14095. if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
  14096. as_fn_error $? "conditional \"HAVE_SYS_MMAN_H\" was never defined.
  14097. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14098. fi
  14099. if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
  14100. as_fn_error $? "conditional \"HAVE_STRERROR_R\" was never defined.
  14101. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14102. fi
  14103. if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
  14104. as_fn_error $? "conditional \"HAVE_WAIT4\" was never defined.
  14105. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14106. fi
  14107. if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
  14108. as_fn_error $? "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
  14109. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14110. fi
  14111. if test -z "${HAVE_STATIC_LINK_TRUE}" && test -z "${HAVE_STATIC_LINK_FALSE}"; then
  14112. as_fn_error $? "conditional \"HAVE_STATIC_LINK\" was never defined.
  14113. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14114. fi
  14115. : "${CONFIG_STATUS=./config.status}"
  14116. ac_write_fail=0
  14117. ac_clean_files_save=$ac_clean_files
  14118. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14119. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14120. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14121. as_write_fail=0
  14122. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14123. #! $SHELL
  14124. # Generated by $as_me.
  14125. # Run this file to recreate the current configuration.
  14126. # Compiler output produced by configure, useful for debugging
  14127. # configure, is in config.log if it exists.
  14128. debug=false
  14129. ac_cs_recheck=false
  14130. ac_cs_silent=false
  14131. SHELL=\${CONFIG_SHELL-$SHELL}
  14132. export SHELL
  14133. _ASEOF
  14134. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14135. ## -------------------- ##
  14136. ## M4sh Initialization. ##
  14137. ## -------------------- ##
  14138. # Be more Bourne compatible
  14139. DUALCASE=1; export DUALCASE # for MKS sh
  14140. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14141. emulate sh
  14142. NULLCMD=:
  14143. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14144. # is contrary to our usage. Disable this feature.
  14145. alias -g '${1+"$@"}'='"$@"'
  14146. setopt NO_GLOB_SUBST
  14147. else
  14148. case `(set -o) 2>/dev/null` in #(
  14149. *posix*) :
  14150. set -o posix ;; #(
  14151. *) :
  14152. ;;
  14153. esac
  14154. fi
  14155. as_nl='
  14156. '
  14157. export as_nl
  14158. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14159. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14160. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14161. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14162. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14163. # but without wasting forks for bash or zsh.
  14164. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14165. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14166. as_echo='print -r --'
  14167. as_echo_n='print -rn --'
  14168. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14169. as_echo='printf %s\n'
  14170. as_echo_n='printf %s'
  14171. else
  14172. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14173. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14174. as_echo_n='/usr/ucb/echo -n'
  14175. else
  14176. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14177. as_echo_n_body='eval
  14178. arg=$1;
  14179. case $arg in #(
  14180. *"$as_nl"*)
  14181. expr "X$arg" : "X\\(.*\\)$as_nl";
  14182. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14183. esac;
  14184. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14185. '
  14186. export as_echo_n_body
  14187. as_echo_n='sh -c $as_echo_n_body as_echo'
  14188. fi
  14189. export as_echo_body
  14190. as_echo='sh -c $as_echo_body as_echo'
  14191. fi
  14192. # The user is always right.
  14193. if test "${PATH_SEPARATOR+set}" != set; then
  14194. PATH_SEPARATOR=:
  14195. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14196. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14197. PATH_SEPARATOR=';'
  14198. }
  14199. fi
  14200. # IFS
  14201. # We need space, tab and new line, in precisely that order. Quoting is
  14202. # there to prevent editors from complaining about space-tab.
  14203. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14204. # splitting by setting IFS to empty value.)
  14205. IFS=" "" $as_nl"
  14206. # Find who we are. Look in the path if we contain no directory separator.
  14207. as_myself=
  14208. case $0 in #((
  14209. *[\\/]* ) as_myself=$0 ;;
  14210. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14211. for as_dir in $PATH
  14212. do
  14213. IFS=$as_save_IFS
  14214. test -z "$as_dir" && as_dir=.
  14215. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14216. done
  14217. IFS=$as_save_IFS
  14218. ;;
  14219. esac
  14220. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14221. # in which case we are not to be found in the path.
  14222. if test "x$as_myself" = x; then
  14223. as_myself=$0
  14224. fi
  14225. if test ! -f "$as_myself"; then
  14226. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14227. exit 1
  14228. fi
  14229. # Unset variables that we do not need and which cause bugs (e.g. in
  14230. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14231. # suppresses any "Segmentation fault" message there. '((' could
  14232. # trigger a bug in pdksh 5.2.14.
  14233. for as_var in BASH_ENV ENV MAIL MAILPATH
  14234. do eval test x\${$as_var+set} = xset \
  14235. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14236. done
  14237. PS1='$ '
  14238. PS2='> '
  14239. PS4='+ '
  14240. # NLS nuisances.
  14241. LC_ALL=C
  14242. export LC_ALL
  14243. LANGUAGE=C
  14244. export LANGUAGE
  14245. # CDPATH.
  14246. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14247. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14248. # ----------------------------------------
  14249. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14250. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14251. # script with STATUS, using 1 if that was 0.
  14252. as_fn_error ()
  14253. {
  14254. as_status=$1; test $as_status -eq 0 && as_status=1
  14255. if test "$4"; then
  14256. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14257. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14258. fi
  14259. $as_echo "$as_me: error: $2" >&2
  14260. as_fn_exit $as_status
  14261. } # as_fn_error
  14262. # as_fn_set_status STATUS
  14263. # -----------------------
  14264. # Set $? to STATUS, without forking.
  14265. as_fn_set_status ()
  14266. {
  14267. return $1
  14268. } # as_fn_set_status
  14269. # as_fn_exit STATUS
  14270. # -----------------
  14271. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14272. as_fn_exit ()
  14273. {
  14274. set +e
  14275. as_fn_set_status $1
  14276. exit $1
  14277. } # as_fn_exit
  14278. # as_fn_unset VAR
  14279. # ---------------
  14280. # Portably unset VAR.
  14281. as_fn_unset ()
  14282. {
  14283. { eval $1=; unset $1;}
  14284. }
  14285. as_unset=as_fn_unset
  14286. # as_fn_append VAR VALUE
  14287. # ----------------------
  14288. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14289. # advantage of any shell optimizations that allow amortized linear growth over
  14290. # repeated appends, instead of the typical quadratic growth present in naive
  14291. # implementations.
  14292. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14293. eval 'as_fn_append ()
  14294. {
  14295. eval $1+=\$2
  14296. }'
  14297. else
  14298. as_fn_append ()
  14299. {
  14300. eval $1=\$$1\$2
  14301. }
  14302. fi # as_fn_append
  14303. # as_fn_arith ARG...
  14304. # ------------------
  14305. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14306. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14307. # must be portable across $(()) and expr.
  14308. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14309. eval 'as_fn_arith ()
  14310. {
  14311. as_val=$(( $* ))
  14312. }'
  14313. else
  14314. as_fn_arith ()
  14315. {
  14316. as_val=`expr "$@" || test $? -eq 1`
  14317. }
  14318. fi # as_fn_arith
  14319. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14320. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14321. as_expr=expr
  14322. else
  14323. as_expr=false
  14324. fi
  14325. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14326. as_basename=basename
  14327. else
  14328. as_basename=false
  14329. fi
  14330. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14331. as_dirname=dirname
  14332. else
  14333. as_dirname=false
  14334. fi
  14335. as_me=`$as_basename -- "$0" ||
  14336. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14337. X"$0" : 'X\(//\)$' \| \
  14338. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14339. $as_echo X/"$0" |
  14340. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14341. s//\1/
  14342. q
  14343. }
  14344. /^X\/\(\/\/\)$/{
  14345. s//\1/
  14346. q
  14347. }
  14348. /^X\/\(\/\).*/{
  14349. s//\1/
  14350. q
  14351. }
  14352. s/.*/./; q'`
  14353. # Avoid depending upon Character Ranges.
  14354. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14355. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14356. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14357. as_cr_digits='0123456789'
  14358. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14359. ECHO_C= ECHO_N= ECHO_T=
  14360. case `echo -n x` in #(((((
  14361. -n*)
  14362. case `echo 'xy\c'` in
  14363. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14364. xy) ECHO_C='\c';;
  14365. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14366. ECHO_T=' ';;
  14367. esac;;
  14368. *)
  14369. ECHO_N='-n';;
  14370. esac
  14371. rm -f conf$$ conf$$.exe conf$$.file
  14372. if test -d conf$$.dir; then
  14373. rm -f conf$$.dir/conf$$.file
  14374. else
  14375. rm -f conf$$.dir
  14376. mkdir conf$$.dir 2>/dev/null
  14377. fi
  14378. if (echo >conf$$.file) 2>/dev/null; then
  14379. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14380. as_ln_s='ln -s'
  14381. # ... but there are two gotchas:
  14382. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14383. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14384. # In both cases, we have to default to `cp -pR'.
  14385. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14386. as_ln_s='cp -pR'
  14387. elif ln conf$$.file conf$$ 2>/dev/null; then
  14388. as_ln_s=ln
  14389. else
  14390. as_ln_s='cp -pR'
  14391. fi
  14392. else
  14393. as_ln_s='cp -pR'
  14394. fi
  14395. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14396. rmdir conf$$.dir 2>/dev/null
  14397. # as_fn_mkdir_p
  14398. # -------------
  14399. # Create "$as_dir" as a directory, including parents if necessary.
  14400. as_fn_mkdir_p ()
  14401. {
  14402. case $as_dir in #(
  14403. -*) as_dir=./$as_dir;;
  14404. esac
  14405. test -d "$as_dir" || eval $as_mkdir_p || {
  14406. as_dirs=
  14407. while :; do
  14408. case $as_dir in #(
  14409. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14410. *) as_qdir=$as_dir;;
  14411. esac
  14412. as_dirs="'$as_qdir' $as_dirs"
  14413. as_dir=`$as_dirname -- "$as_dir" ||
  14414. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14415. X"$as_dir" : 'X\(//\)[^/]' \| \
  14416. X"$as_dir" : 'X\(//\)$' \| \
  14417. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14418. $as_echo X"$as_dir" |
  14419. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14420. s//\1/
  14421. q
  14422. }
  14423. /^X\(\/\/\)[^/].*/{
  14424. s//\1/
  14425. q
  14426. }
  14427. /^X\(\/\/\)$/{
  14428. s//\1/
  14429. q
  14430. }
  14431. /^X\(\/\).*/{
  14432. s//\1/
  14433. q
  14434. }
  14435. s/.*/./; q'`
  14436. test -d "$as_dir" && break
  14437. done
  14438. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14439. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14440. } # as_fn_mkdir_p
  14441. if mkdir -p . 2>/dev/null; then
  14442. as_mkdir_p='mkdir -p "$as_dir"'
  14443. else
  14444. test -d ./-p && rmdir ./-p
  14445. as_mkdir_p=false
  14446. fi
  14447. # as_fn_executable_p FILE
  14448. # -----------------------
  14449. # Test if FILE is an executable regular file.
  14450. as_fn_executable_p ()
  14451. {
  14452. test -f "$1" && test -x "$1"
  14453. } # as_fn_executable_p
  14454. as_test_x='test -x'
  14455. as_executable_p=as_fn_executable_p
  14456. # Sed expression to map a string onto a valid CPP name.
  14457. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14458. # Sed expression to map a string onto a valid variable name.
  14459. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14460. exec 6>&1
  14461. ## ----------------------------------- ##
  14462. ## Main body of $CONFIG_STATUS script. ##
  14463. ## ----------------------------------- ##
  14464. _ASEOF
  14465. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14466. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14467. # Save the log message, to keep $0 and so on meaningful, and to
  14468. # report actual input values of CONFIG_FILES etc. instead of their
  14469. # values after options handling.
  14470. ac_log="
  14471. This file was extended by package-unused $as_me version-unused, which was
  14472. generated by GNU Autoconf 2.69. Invocation command line was
  14473. CONFIG_FILES = $CONFIG_FILES
  14474. CONFIG_HEADERS = $CONFIG_HEADERS
  14475. CONFIG_LINKS = $CONFIG_LINKS
  14476. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14477. $ $0 $@
  14478. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14479. "
  14480. _ACEOF
  14481. case $ac_config_files in *"
  14482. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14483. esac
  14484. case $ac_config_headers in *"
  14485. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14486. esac
  14487. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14488. # Files that config.status was made for.
  14489. config_files="$ac_config_files"
  14490. config_headers="$ac_config_headers"
  14491. config_commands="$ac_config_commands"
  14492. _ACEOF
  14493. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14494. ac_cs_usage="\
  14495. \`$as_me' instantiates files and other configuration actions
  14496. from templates according to the current configuration. Unless the files
  14497. and actions are specified as TAGs, all are instantiated by default.
  14498. Usage: $0 [OPTION]... [TAG]...
  14499. -h, --help print this help, then exit
  14500. -V, --version print version number and configuration settings, then exit
  14501. --config print configuration, then exit
  14502. -q, --quiet, --silent
  14503. do not print progress messages
  14504. -d, --debug don't remove temporary files
  14505. --recheck update $as_me by reconfiguring in the same conditions
  14506. --file=FILE[:TEMPLATE]
  14507. instantiate the configuration file FILE
  14508. --header=FILE[:TEMPLATE]
  14509. instantiate the configuration header FILE
  14510. Configuration files:
  14511. $config_files
  14512. Configuration headers:
  14513. $config_headers
  14514. Configuration commands:
  14515. $config_commands
  14516. Report bugs to the package provider."
  14517. _ACEOF
  14518. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14519. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14520. ac_cs_version="\\
  14521. package-unused config.status version-unused
  14522. configured by $0, generated by GNU Autoconf 2.69,
  14523. with options \\"\$ac_cs_config\\"
  14524. Copyright (C) 2012 Free Software Foundation, Inc.
  14525. This config.status script is free software; the Free Software Foundation
  14526. gives unlimited permission to copy, distribute and modify it."
  14527. ac_pwd='$ac_pwd'
  14528. srcdir='$srcdir'
  14529. INSTALL='$INSTALL'
  14530. MKDIR_P='$MKDIR_P'
  14531. AWK='$AWK'
  14532. test -n "\$AWK" || AWK=awk
  14533. _ACEOF
  14534. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14535. # The default lists apply if the user does not specify any file.
  14536. ac_need_defaults=:
  14537. while test $# != 0
  14538. do
  14539. case $1 in
  14540. --*=?*)
  14541. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14542. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14543. ac_shift=:
  14544. ;;
  14545. --*=)
  14546. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14547. ac_optarg=
  14548. ac_shift=:
  14549. ;;
  14550. *)
  14551. ac_option=$1
  14552. ac_optarg=$2
  14553. ac_shift=shift
  14554. ;;
  14555. esac
  14556. case $ac_option in
  14557. # Handling of the options.
  14558. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14559. ac_cs_recheck=: ;;
  14560. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14561. $as_echo "$ac_cs_version"; exit ;;
  14562. --config | --confi | --conf | --con | --co | --c )
  14563. $as_echo "$ac_cs_config"; exit ;;
  14564. --debug | --debu | --deb | --de | --d | -d )
  14565. debug=: ;;
  14566. --file | --fil | --fi | --f )
  14567. $ac_shift
  14568. case $ac_optarg in
  14569. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14570. '') as_fn_error $? "missing file argument" ;;
  14571. esac
  14572. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14573. ac_need_defaults=false;;
  14574. --header | --heade | --head | --hea )
  14575. $ac_shift
  14576. case $ac_optarg in
  14577. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14578. esac
  14579. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14580. ac_need_defaults=false;;
  14581. --he | --h)
  14582. # Conflict between --help and --header
  14583. as_fn_error $? "ambiguous option: \`$1'
  14584. Try \`$0 --help' for more information.";;
  14585. --help | --hel | -h )
  14586. $as_echo "$ac_cs_usage"; exit ;;
  14587. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14588. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14589. ac_cs_silent=: ;;
  14590. # This is an error.
  14591. -*) as_fn_error $? "unrecognized option: \`$1'
  14592. Try \`$0 --help' for more information." ;;
  14593. *) as_fn_append ac_config_targets " $1"
  14594. ac_need_defaults=false ;;
  14595. esac
  14596. shift
  14597. done
  14598. ac_configure_extra_args=
  14599. if $ac_cs_silent; then
  14600. exec 6>/dev/null
  14601. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14602. fi
  14603. _ACEOF
  14604. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14605. if \$ac_cs_recheck; then
  14606. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14607. shift
  14608. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14609. CONFIG_SHELL='$SHELL'
  14610. export CONFIG_SHELL
  14611. exec "\$@"
  14612. fi
  14613. _ACEOF
  14614. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14615. exec 5>>config.log
  14616. {
  14617. echo
  14618. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14619. ## Running $as_me. ##
  14620. _ASBOX
  14621. $as_echo "$ac_log"
  14622. } >&5
  14623. _ACEOF
  14624. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14625. #
  14626. # INIT-COMMANDS
  14627. #
  14628. srcdir="$srcdir"
  14629. host="$host"
  14630. target="$target"
  14631. with_multisubdir="$with_multisubdir"
  14632. with_multisrctop="$with_multisrctop"
  14633. with_target_subdir="$with_target_subdir"
  14634. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  14635. multi_basedir="$multi_basedir"
  14636. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  14637. CC="$CC"
  14638. CXX="$CXX"
  14639. GFORTRAN="$GFORTRAN"
  14640. GDC="$GDC"
  14641. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14642. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14643. # if CDPATH is set.
  14644. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14645. sed_quote_subst='$sed_quote_subst'
  14646. double_quote_subst='$double_quote_subst'
  14647. delay_variable_subst='$delay_variable_subst'
  14648. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14649. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14650. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14651. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14652. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14653. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14654. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14655. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14656. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14657. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14658. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14659. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14660. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14661. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14662. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14663. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14664. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14665. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14666. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14667. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14668. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14669. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14670. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14671. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14672. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14673. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14674. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14675. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14676. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14677. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14678. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14679. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14680. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14681. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14682. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14683. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14684. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14685. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14686. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14687. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14688. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14689. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14690. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14691. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14692. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14693. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14694. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14695. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14696. 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"`'
  14697. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14698. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14699. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14700. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14701. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14702. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14703. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14704. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14705. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14706. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14707. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14708. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14709. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14710. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14711. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14712. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14713. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14714. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14715. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14716. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14717. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14718. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14719. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14720. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14721. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14722. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14723. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14724. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14725. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14726. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14727. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14728. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  14729. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14730. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14731. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14732. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14733. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14734. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14735. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14736. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14737. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  14738. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14739. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14740. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14741. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14742. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14743. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14744. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14745. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14746. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14747. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14748. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14749. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14750. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14751. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14752. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14753. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14754. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14755. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14756. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14757. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14758. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14759. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14760. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14761. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14762. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14763. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14764. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14765. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14766. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14767. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14768. LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
  14769. reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
  14770. reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14771. old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14772. compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
  14773. GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
  14774. lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
  14775. lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
  14776. lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
  14777. lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
  14778. lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
  14779. archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
  14780. enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
  14781. export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
  14782. whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
  14783. compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
  14784. old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14785. old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14786. archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14787. archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14788. module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14789. module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14790. with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
  14791. allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
  14792. no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
  14793. hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
  14794. hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
  14795. hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
  14796. hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
  14797. hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
  14798. hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
  14799. hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
  14800. hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
  14801. inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
  14802. link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
  14803. fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
  14804. always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
  14805. export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14806. exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
  14807. include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
  14808. prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14809. file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
  14810. hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
  14811. LTCC='$LTCC'
  14812. LTCFLAGS='$LTCFLAGS'
  14813. compiler='$compiler_DEFAULT'
  14814. # A function that is used when there is no print builtin or printf.
  14815. func_fallback_echo ()
  14816. {
  14817. eval 'cat <<_LTECHO_EOF
  14818. \$1
  14819. _LTECHO_EOF'
  14820. }
  14821. # Quote evaled strings.
  14822. for var in SED \
  14823. GREP \
  14824. EGREP \
  14825. FGREP \
  14826. SHELL \
  14827. ECHO \
  14828. LD \
  14829. NM \
  14830. LN_S \
  14831. lt_SP2NL \
  14832. lt_NL2SP \
  14833. reload_flag \
  14834. OBJDUMP \
  14835. deplibs_check_method \
  14836. file_magic_cmd \
  14837. AR \
  14838. AR_FLAGS \
  14839. STRIP \
  14840. RANLIB \
  14841. CC \
  14842. CFLAGS \
  14843. compiler \
  14844. lt_cv_sys_global_symbol_pipe \
  14845. lt_cv_sys_global_symbol_to_cdecl \
  14846. lt_cv_sys_global_symbol_to_c_name_address \
  14847. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14848. lt_prog_compiler_no_builtin_flag \
  14849. lt_prog_compiler_wl \
  14850. lt_prog_compiler_pic \
  14851. lt_prog_compiler_static \
  14852. lt_cv_prog_compiler_c_o \
  14853. need_locks \
  14854. DSYMUTIL \
  14855. NMEDIT \
  14856. LIPO \
  14857. OTOOL \
  14858. OTOOL64 \
  14859. shrext_cmds \
  14860. export_dynamic_flag_spec \
  14861. whole_archive_flag_spec \
  14862. compiler_needs_object \
  14863. with_gnu_ld \
  14864. allow_undefined_flag \
  14865. no_undefined_flag \
  14866. hardcode_libdir_flag_spec \
  14867. hardcode_libdir_flag_spec_ld \
  14868. hardcode_libdir_separator \
  14869. fix_srcfile_path \
  14870. exclude_expsyms \
  14871. include_expsyms \
  14872. file_list_spec \
  14873. variables_saved_for_relink \
  14874. libname_spec \
  14875. library_names_spec \
  14876. soname_spec \
  14877. install_override_mode \
  14878. finish_eval \
  14879. old_striplib \
  14880. striplib \
  14881. LD_GO \
  14882. reload_flag_GO \
  14883. compiler_GO \
  14884. lt_prog_compiler_no_builtin_flag_GO \
  14885. lt_prog_compiler_wl_GO \
  14886. lt_prog_compiler_pic_GO \
  14887. lt_prog_compiler_static_GO \
  14888. lt_cv_prog_compiler_c_o_GO \
  14889. export_dynamic_flag_spec_GO \
  14890. whole_archive_flag_spec_GO \
  14891. compiler_needs_object_GO \
  14892. with_gnu_ld_GO \
  14893. allow_undefined_flag_GO \
  14894. no_undefined_flag_GO \
  14895. hardcode_libdir_flag_spec_GO \
  14896. hardcode_libdir_flag_spec_ld_GO \
  14897. hardcode_libdir_separator_GO \
  14898. fix_srcfile_path_GO \
  14899. exclude_expsyms_GO \
  14900. include_expsyms_GO \
  14901. file_list_spec_GO; do
  14902. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14903. *[\\\\\\\`\\"\\\$]*)
  14904. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14905. ;;
  14906. *)
  14907. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14908. ;;
  14909. esac
  14910. done
  14911. # Double-quote double-evaled strings.
  14912. for var in reload_cmds \
  14913. old_postinstall_cmds \
  14914. old_postuninstall_cmds \
  14915. old_archive_cmds \
  14916. extract_expsyms_cmds \
  14917. old_archive_from_new_cmds \
  14918. old_archive_from_expsyms_cmds \
  14919. archive_cmds \
  14920. archive_expsym_cmds \
  14921. module_cmds \
  14922. module_expsym_cmds \
  14923. export_symbols_cmds \
  14924. prelink_cmds \
  14925. postinstall_cmds \
  14926. postuninstall_cmds \
  14927. finish_cmds \
  14928. sys_lib_search_path_spec \
  14929. sys_lib_dlsearch_path_spec \
  14930. reload_cmds_GO \
  14931. old_archive_cmds_GO \
  14932. old_archive_from_new_cmds_GO \
  14933. old_archive_from_expsyms_cmds_GO \
  14934. archive_cmds_GO \
  14935. archive_expsym_cmds_GO \
  14936. module_cmds_GO \
  14937. module_expsym_cmds_GO \
  14938. export_symbols_cmds_GO \
  14939. prelink_cmds_GO; do
  14940. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14941. *[\\\\\\\`\\"\\\$]*)
  14942. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14943. ;;
  14944. *)
  14945. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14946. ;;
  14947. esac
  14948. done
  14949. ac_aux_dir='$ac_aux_dir'
  14950. xsi_shell='$xsi_shell'
  14951. lt_shell_append='$lt_shell_append'
  14952. # See if we are running on zsh, and set the options which allow our
  14953. # commands through without removal of \ escapes INIT.
  14954. if test -n "\${ZSH_VERSION+set}" ; then
  14955. setopt NO_GLOB_SUBST
  14956. fi
  14957. PACKAGE='$PACKAGE'
  14958. VERSION='$VERSION'
  14959. TIMESTAMP='$TIMESTAMP'
  14960. RM='$RM'
  14961. ofile='$ofile'
  14962. # Variables needed in config.status (file generation) which aren't already
  14963. # passed by autoconf.
  14964. SUBDIRS="$SUBDIRS"
  14965. _ACEOF
  14966. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14967. # Handling of arguments.
  14968. for ac_config_target in $ac_config_targets
  14969. do
  14970. case $ac_config_target in
  14971. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14972. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  14973. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14974. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14975. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14976. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  14977. "testsuite/libgo-test-support.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgo-test-support.exp" ;;
  14978. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  14979. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14980. esac
  14981. done
  14982. # If the user did not use the arguments to specify the items to instantiate,
  14983. # then the envvar interface is used. Set only those that are not.
  14984. # We use the long form for the default assignment because of an extremely
  14985. # bizarre bug on SunOS 4.1.3.
  14986. if $ac_need_defaults; then
  14987. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14988. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14989. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14990. fi
  14991. # Have a temporary directory for convenience. Make it in the build tree
  14992. # simply because there is no reason against having it here, and in addition,
  14993. # creating and moving files from /tmp can sometimes cause problems.
  14994. # Hook for its removal unless debugging.
  14995. # Note that there is a small window in which the directory will not be cleaned:
  14996. # after its creation but before its name has been assigned to `$tmp'.
  14997. $debug ||
  14998. {
  14999. tmp= ac_tmp=
  15000. trap 'exit_status=$?
  15001. : "${ac_tmp:=$tmp}"
  15002. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15003. ' 0
  15004. trap 'as_fn_exit 1' 1 2 13 15
  15005. }
  15006. # Create a (secure) tmp directory for tmp files.
  15007. {
  15008. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15009. test -d "$tmp"
  15010. } ||
  15011. {
  15012. tmp=./conf$$-$RANDOM
  15013. (umask 077 && mkdir "$tmp")
  15014. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15015. ac_tmp=$tmp
  15016. # Set up the scripts for CONFIG_FILES section.
  15017. # No need to generate them if there are no CONFIG_FILES.
  15018. # This happens for instance with `./config.status config.h'.
  15019. if test -n "$CONFIG_FILES"; then
  15020. ac_cr=`echo X | tr X '\015'`
  15021. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15022. # But we know of no other shell where ac_cr would be empty at this
  15023. # point, so we can use a bashism as a fallback.
  15024. if test "x$ac_cr" = x; then
  15025. eval ac_cr=\$\'\\r\'
  15026. fi
  15027. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15028. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15029. ac_cs_awk_cr='\\r'
  15030. else
  15031. ac_cs_awk_cr=$ac_cr
  15032. fi
  15033. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15034. _ACEOF
  15035. {
  15036. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15037. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15038. echo "_ACEOF"
  15039. } >conf$$subs.sh ||
  15040. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15041. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15042. ac_delim='%!_!# '
  15043. for ac_last_try in false false false false false :; do
  15044. . ./conf$$subs.sh ||
  15045. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15046. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15047. if test $ac_delim_n = $ac_delim_num; then
  15048. break
  15049. elif $ac_last_try; then
  15050. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15051. else
  15052. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15053. fi
  15054. done
  15055. rm -f conf$$subs.sh
  15056. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15057. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15058. _ACEOF
  15059. sed -n '
  15060. h
  15061. s/^/S["/; s/!.*/"]=/
  15062. p
  15063. g
  15064. s/^[^!]*!//
  15065. :repl
  15066. t repl
  15067. s/'"$ac_delim"'$//
  15068. t delim
  15069. :nl
  15070. h
  15071. s/\(.\{148\}\)..*/\1/
  15072. t more1
  15073. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15074. p
  15075. n
  15076. b repl
  15077. :more1
  15078. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15079. p
  15080. g
  15081. s/.\{148\}//
  15082. t nl
  15083. :delim
  15084. h
  15085. s/\(.\{148\}\)..*/\1/
  15086. t more2
  15087. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15088. p
  15089. b
  15090. :more2
  15091. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15092. p
  15093. g
  15094. s/.\{148\}//
  15095. t delim
  15096. ' <conf$$subs.awk | sed '
  15097. /^[^""]/{
  15098. N
  15099. s/\n//
  15100. }
  15101. ' >>$CONFIG_STATUS || ac_write_fail=1
  15102. rm -f conf$$subs.awk
  15103. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15104. _ACAWK
  15105. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15106. for (key in S) S_is_set[key] = 1
  15107. FS = ""
  15108. }
  15109. {
  15110. line = $ 0
  15111. nfields = split(line, field, "@")
  15112. substed = 0
  15113. len = length(field[1])
  15114. for (i = 2; i < nfields; i++) {
  15115. key = field[i]
  15116. keylen = length(key)
  15117. if (S_is_set[key]) {
  15118. value = S[key]
  15119. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15120. len += length(value) + length(field[++i])
  15121. substed = 1
  15122. } else
  15123. len += 1 + keylen
  15124. }
  15125. print line
  15126. }
  15127. _ACAWK
  15128. _ACEOF
  15129. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15130. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15131. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15132. else
  15133. cat
  15134. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15135. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15136. _ACEOF
  15137. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15138. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15139. # trailing colons and then remove the whole line if VPATH becomes empty
  15140. # (actually we leave an empty line to preserve line numbers).
  15141. if test "x$srcdir" = x.; then
  15142. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15143. h
  15144. s///
  15145. s/^/:/
  15146. s/[ ]*$/:/
  15147. s/:\$(srcdir):/:/g
  15148. s/:\${srcdir}:/:/g
  15149. s/:@srcdir@:/:/g
  15150. s/^:*//
  15151. s/:*$//
  15152. x
  15153. s/\(=[ ]*\).*/\1/
  15154. G
  15155. s/\n//
  15156. s/^[^=]*=[ ]*$//
  15157. }'
  15158. fi
  15159. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15160. fi # test -n "$CONFIG_FILES"
  15161. # Set up the scripts for CONFIG_HEADERS section.
  15162. # No need to generate them if there are no CONFIG_HEADERS.
  15163. # This happens for instance with `./config.status Makefile'.
  15164. if test -n "$CONFIG_HEADERS"; then
  15165. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15166. BEGIN {
  15167. _ACEOF
  15168. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15169. # here-document in config.status, that substitutes the proper values into
  15170. # config.h.in to produce config.h.
  15171. # Create a delimiter string that does not exist in confdefs.h, to ease
  15172. # handling of long lines.
  15173. ac_delim='%!_!# '
  15174. for ac_last_try in false false :; do
  15175. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15176. if test -z "$ac_tt"; then
  15177. break
  15178. elif $ac_last_try; then
  15179. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15180. else
  15181. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15182. fi
  15183. done
  15184. # For the awk script, D is an array of macro values keyed by name,
  15185. # likewise P contains macro parameters if any. Preserve backslash
  15186. # newline sequences.
  15187. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15188. sed -n '
  15189. s/.\{148\}/&'"$ac_delim"'/g
  15190. t rset
  15191. :rset
  15192. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15193. t def
  15194. d
  15195. :def
  15196. s/\\$//
  15197. t bsnl
  15198. s/["\\]/\\&/g
  15199. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15200. D["\1"]=" \3"/p
  15201. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15202. d
  15203. :bsnl
  15204. s/["\\]/\\&/g
  15205. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15206. D["\1"]=" \3\\\\\\n"\\/p
  15207. t cont
  15208. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15209. t cont
  15210. d
  15211. :cont
  15212. n
  15213. s/.\{148\}/&'"$ac_delim"'/g
  15214. t clear
  15215. :clear
  15216. s/\\$//
  15217. t bsnlc
  15218. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15219. d
  15220. :bsnlc
  15221. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15222. b cont
  15223. ' <confdefs.h | sed '
  15224. s/'"$ac_delim"'/"\\\
  15225. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15226. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15227. for (key in D) D_is_set[key] = 1
  15228. FS = ""
  15229. }
  15230. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15231. line = \$ 0
  15232. split(line, arg, " ")
  15233. if (arg[1] == "#") {
  15234. defundef = arg[2]
  15235. mac1 = arg[3]
  15236. } else {
  15237. defundef = substr(arg[1], 2)
  15238. mac1 = arg[2]
  15239. }
  15240. split(mac1, mac2, "(") #)
  15241. macro = mac2[1]
  15242. prefix = substr(line, 1, index(line, defundef) - 1)
  15243. if (D_is_set[macro]) {
  15244. # Preserve the white space surrounding the "#".
  15245. print prefix "define", macro P[macro] D[macro]
  15246. next
  15247. } else {
  15248. # Replace #undef with comments. This is necessary, for example,
  15249. # in the case of _POSIX_SOURCE, which is predefined and required
  15250. # on some systems where configure will not decide to define it.
  15251. if (defundef == "undef") {
  15252. print "/*", prefix defundef, macro, "*/"
  15253. next
  15254. }
  15255. }
  15256. }
  15257. { print }
  15258. _ACAWK
  15259. _ACEOF
  15260. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15261. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15262. fi # test -n "$CONFIG_HEADERS"
  15263. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15264. shift
  15265. for ac_tag
  15266. do
  15267. case $ac_tag in
  15268. :[FHLC]) ac_mode=$ac_tag; continue;;
  15269. esac
  15270. case $ac_mode$ac_tag in
  15271. :[FHL]*:*);;
  15272. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15273. :[FH]-) ac_tag=-:-;;
  15274. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15275. esac
  15276. ac_save_IFS=$IFS
  15277. IFS=:
  15278. set x $ac_tag
  15279. IFS=$ac_save_IFS
  15280. shift
  15281. ac_file=$1
  15282. shift
  15283. case $ac_mode in
  15284. :L) ac_source=$1;;
  15285. :[FH])
  15286. ac_file_inputs=
  15287. for ac_f
  15288. do
  15289. case $ac_f in
  15290. -) ac_f="$ac_tmp/stdin";;
  15291. *) # Look for the file first in the build tree, then in the source tree
  15292. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15293. # because $ac_f cannot contain `:'.
  15294. test -f "$ac_f" ||
  15295. case $ac_f in
  15296. [\\/$]*) false;;
  15297. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15298. esac ||
  15299. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15300. esac
  15301. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15302. as_fn_append ac_file_inputs " '$ac_f'"
  15303. done
  15304. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15305. # use $as_me), people would be surprised to read:
  15306. # /* config.h. Generated by config.status. */
  15307. configure_input='Generated from '`
  15308. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15309. `' by configure.'
  15310. if test x"$ac_file" != x-; then
  15311. configure_input="$ac_file. $configure_input"
  15312. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15313. $as_echo "$as_me: creating $ac_file" >&6;}
  15314. fi
  15315. # Neutralize special characters interpreted by sed in replacement strings.
  15316. case $configure_input in #(
  15317. *\&* | *\|* | *\\* )
  15318. ac_sed_conf_input=`$as_echo "$configure_input" |
  15319. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15320. *) ac_sed_conf_input=$configure_input;;
  15321. esac
  15322. case $ac_tag in
  15323. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15324. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15325. esac
  15326. ;;
  15327. esac
  15328. ac_dir=`$as_dirname -- "$ac_file" ||
  15329. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15330. X"$ac_file" : 'X\(//\)[^/]' \| \
  15331. X"$ac_file" : 'X\(//\)$' \| \
  15332. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15333. $as_echo X"$ac_file" |
  15334. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15335. s//\1/
  15336. q
  15337. }
  15338. /^X\(\/\/\)[^/].*/{
  15339. s//\1/
  15340. q
  15341. }
  15342. /^X\(\/\/\)$/{
  15343. s//\1/
  15344. q
  15345. }
  15346. /^X\(\/\).*/{
  15347. s//\1/
  15348. q
  15349. }
  15350. s/.*/./; q'`
  15351. as_dir="$ac_dir"; as_fn_mkdir_p
  15352. ac_builddir=.
  15353. case "$ac_dir" in
  15354. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15355. *)
  15356. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15357. # A ".." for each directory in $ac_dir_suffix.
  15358. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15359. case $ac_top_builddir_sub in
  15360. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15361. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15362. esac ;;
  15363. esac
  15364. ac_abs_top_builddir=$ac_pwd
  15365. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15366. # for backward compatibility:
  15367. ac_top_builddir=$ac_top_build_prefix
  15368. case $srcdir in
  15369. .) # We are building in place.
  15370. ac_srcdir=.
  15371. ac_top_srcdir=$ac_top_builddir_sub
  15372. ac_abs_top_srcdir=$ac_pwd ;;
  15373. [\\/]* | ?:[\\/]* ) # Absolute name.
  15374. ac_srcdir=$srcdir$ac_dir_suffix;
  15375. ac_top_srcdir=$srcdir
  15376. ac_abs_top_srcdir=$srcdir ;;
  15377. *) # Relative name.
  15378. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15379. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15380. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15381. esac
  15382. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15383. case $ac_mode in
  15384. :F)
  15385. #
  15386. # CONFIG_FILE
  15387. #
  15388. case $INSTALL in
  15389. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15390. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15391. esac
  15392. ac_MKDIR_P=$MKDIR_P
  15393. case $MKDIR_P in
  15394. [\\/$]* | ?:[\\/]* ) ;;
  15395. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15396. esac
  15397. _ACEOF
  15398. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15399. # If the template does not know about datarootdir, expand it.
  15400. # FIXME: This hack should be removed a few years after 2.60.
  15401. ac_datarootdir_hack=; ac_datarootdir_seen=
  15402. ac_sed_dataroot='
  15403. /datarootdir/ {
  15404. p
  15405. q
  15406. }
  15407. /@datadir@/p
  15408. /@docdir@/p
  15409. /@infodir@/p
  15410. /@localedir@/p
  15411. /@mandir@/p'
  15412. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15413. *datarootdir*) ac_datarootdir_seen=yes;;
  15414. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15415. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15416. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15417. _ACEOF
  15418. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15419. ac_datarootdir_hack='
  15420. s&@datadir@&$datadir&g
  15421. s&@docdir@&$docdir&g
  15422. s&@infodir@&$infodir&g
  15423. s&@localedir@&$localedir&g
  15424. s&@mandir@&$mandir&g
  15425. s&\\\${datarootdir}&$datarootdir&g' ;;
  15426. esac
  15427. _ACEOF
  15428. # Neutralize VPATH when `$srcdir' = `.'.
  15429. # Shell code in configure.ac might set extrasub.
  15430. # FIXME: do we really want to maintain this feature?
  15431. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15432. ac_sed_extra="$ac_vpsub
  15433. $extrasub
  15434. _ACEOF
  15435. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15436. :t
  15437. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15438. s|@configure_input@|$ac_sed_conf_input|;t t
  15439. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15440. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15441. s&@srcdir@&$ac_srcdir&;t t
  15442. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15443. s&@top_srcdir@&$ac_top_srcdir&;t t
  15444. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15445. s&@builddir@&$ac_builddir&;t t
  15446. s&@abs_builddir@&$ac_abs_builddir&;t t
  15447. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15448. s&@INSTALL@&$ac_INSTALL&;t t
  15449. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15450. $ac_datarootdir_hack
  15451. "
  15452. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15453. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15454. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15455. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15456. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15457. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15459. which seems to be undefined. Please make sure it is defined" >&5
  15460. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15461. which seems to be undefined. Please make sure it is defined" >&2;}
  15462. rm -f "$ac_tmp/stdin"
  15463. case $ac_file in
  15464. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15465. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15466. esac \
  15467. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15468. ;;
  15469. :H)
  15470. #
  15471. # CONFIG_HEADER
  15472. #
  15473. if test x"$ac_file" != x-; then
  15474. {
  15475. $as_echo "/* $configure_input */" \
  15476. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15477. } >"$ac_tmp/config.h" \
  15478. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15479. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15480. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15481. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15482. else
  15483. rm -f "$ac_file"
  15484. mv "$ac_tmp/config.h" "$ac_file" \
  15485. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15486. fi
  15487. else
  15488. $as_echo "/* $configure_input */" \
  15489. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15490. || as_fn_error $? "could not create -" "$LINENO" 5
  15491. fi
  15492. # Compute "$ac_file"'s index in $config_headers.
  15493. _am_arg="$ac_file"
  15494. _am_stamp_count=1
  15495. for _am_header in $config_headers :; do
  15496. case $_am_header in
  15497. $_am_arg | $_am_arg:* )
  15498. break ;;
  15499. * )
  15500. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15501. esac
  15502. done
  15503. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15504. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15505. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15506. X"$_am_arg" : 'X\(//\)$' \| \
  15507. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15508. $as_echo X"$_am_arg" |
  15509. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15510. s//\1/
  15511. q
  15512. }
  15513. /^X\(\/\/\)[^/].*/{
  15514. s//\1/
  15515. q
  15516. }
  15517. /^X\(\/\/\)$/{
  15518. s//\1/
  15519. q
  15520. }
  15521. /^X\(\/\).*/{
  15522. s//\1/
  15523. q
  15524. }
  15525. s/.*/./; q'`/stamp-h$_am_stamp_count
  15526. ;;
  15527. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15528. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15529. ;;
  15530. esac
  15531. case $ac_file$ac_mode in
  15532. "default-1":C)
  15533. # Only add multilib support code if we just rebuilt the top-level
  15534. # Makefile.
  15535. case " $CONFIG_FILES " in
  15536. *" Makefile "*)
  15537. ac_file=Makefile . ${multi_basedir}/config-ml.in
  15538. ;;
  15539. esac ;;
  15540. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15541. # Older Autoconf quotes --file arguments for eval, but not when files
  15542. # are listed without --file. Let's play safe and only enable the eval
  15543. # if we detect the quoting.
  15544. case $CONFIG_FILES in
  15545. *\'*) eval set x "$CONFIG_FILES" ;;
  15546. *) set x $CONFIG_FILES ;;
  15547. esac
  15548. shift
  15549. for mf
  15550. do
  15551. # Strip MF so we end up with the name of the file.
  15552. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15553. # Check whether this is an Automake generated Makefile or not.
  15554. # We used to match only the files named 'Makefile.in', but
  15555. # some people rename them; so instead we look at the file content.
  15556. # Grep'ing the first line is not enough: some people post-process
  15557. # each Makefile.in and add a new line on top of each file to say so.
  15558. # Grep'ing the whole file is not good either: AIX grep has a line
  15559. # limit of 2048, but all sed's we know have understand at least 4000.
  15560. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15561. dirpart=`$as_dirname -- "$mf" ||
  15562. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15563. X"$mf" : 'X\(//\)[^/]' \| \
  15564. X"$mf" : 'X\(//\)$' \| \
  15565. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15566. $as_echo X"$mf" |
  15567. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15568. s//\1/
  15569. q
  15570. }
  15571. /^X\(\/\/\)[^/].*/{
  15572. s//\1/
  15573. q
  15574. }
  15575. /^X\(\/\/\)$/{
  15576. s//\1/
  15577. q
  15578. }
  15579. /^X\(\/\).*/{
  15580. s//\1/
  15581. q
  15582. }
  15583. s/.*/./; q'`
  15584. else
  15585. continue
  15586. fi
  15587. # Extract the definition of DEPDIR, am__include, and am__quote
  15588. # from the Makefile without running 'make'.
  15589. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15590. test -z "$DEPDIR" && continue
  15591. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15592. test -z "$am__include" && continue
  15593. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15594. # Find all dependency output files, they are included files with
  15595. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15596. # simplest approach to changing $(DEPDIR) to its actual value in the
  15597. # expansion.
  15598. for file in `sed -n "
  15599. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15600. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  15601. # Make sure the directory exists.
  15602. test -f "$dirpart/$file" && continue
  15603. fdir=`$as_dirname -- "$file" ||
  15604. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15605. X"$file" : 'X\(//\)[^/]' \| \
  15606. X"$file" : 'X\(//\)$' \| \
  15607. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15608. $as_echo X"$file" |
  15609. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15610. s//\1/
  15611. q
  15612. }
  15613. /^X\(\/\/\)[^/].*/{
  15614. s//\1/
  15615. q
  15616. }
  15617. /^X\(\/\/\)$/{
  15618. s//\1/
  15619. q
  15620. }
  15621. /^X\(\/\).*/{
  15622. s//\1/
  15623. q
  15624. }
  15625. s/.*/./; q'`
  15626. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15627. # echo "creating $dirpart/$file"
  15628. echo '# dummy' > "$dirpart/$file"
  15629. done
  15630. done
  15631. }
  15632. ;;
  15633. "libtool":C)
  15634. # See if we are running on zsh, and set the options which allow our
  15635. # commands through without removal of \ escapes.
  15636. if test -n "${ZSH_VERSION+set}" ; then
  15637. setopt NO_GLOB_SUBST
  15638. fi
  15639. cfgfile="${ofile}T"
  15640. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15641. $RM "$cfgfile"
  15642. cat <<_LT_EOF >> "$cfgfile"
  15643. #! $SHELL
  15644. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15645. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15646. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15647. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15648. #
  15649. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15650. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  15651. # Written by Gordon Matzigkeit, 1996
  15652. #
  15653. # This file is part of GNU Libtool.
  15654. #
  15655. # GNU Libtool is free software; you can redistribute it and/or
  15656. # modify it under the terms of the GNU General Public License as
  15657. # published by the Free Software Foundation; either version 2 of
  15658. # the License, or (at your option) any later version.
  15659. #
  15660. # As a special exception to the GNU General Public License,
  15661. # if you distribute this file as part of a program or library that
  15662. # is built using GNU Libtool, you may include this file under the
  15663. # same distribution terms that you use for the rest of that program.
  15664. #
  15665. # GNU Libtool is distributed in the hope that it will be useful,
  15666. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15667. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15668. # GNU General Public License for more details.
  15669. #
  15670. # You should have received a copy of the GNU General Public License
  15671. # along with GNU Libtool; see the file COPYING. If not, a copy
  15672. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15673. # obtained by writing to the Free Software Foundation, Inc.,
  15674. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15675. # The names of the tagged configurations supported by this script.
  15676. available_tags="GO "
  15677. # ### BEGIN LIBTOOL CONFIG
  15678. # A sed program that does not truncate output.
  15679. SED=$lt_SED
  15680. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15681. Xsed="\$SED -e 1s/^X//"
  15682. # A grep program that handles long lines.
  15683. GREP=$lt_GREP
  15684. # An ERE matcher.
  15685. EGREP=$lt_EGREP
  15686. # A literal string matcher.
  15687. FGREP=$lt_FGREP
  15688. # Shell to use when invoking shell scripts.
  15689. SHELL=$lt_SHELL
  15690. # An echo program that protects backslashes.
  15691. ECHO=$lt_ECHO
  15692. # Which release of libtool.m4 was used?
  15693. macro_version=$macro_version
  15694. macro_revision=$macro_revision
  15695. # Whether or not to build shared libraries.
  15696. build_libtool_libs=$enable_shared
  15697. # Whether or not to build static libraries.
  15698. build_old_libs=$enable_static
  15699. # What type of objects to build.
  15700. pic_mode=$pic_mode
  15701. # Whether or not to optimize for fast installation.
  15702. fast_install=$enable_fast_install
  15703. # The host system.
  15704. host_alias=$host_alias
  15705. host=$host
  15706. host_os=$host_os
  15707. # The build system.
  15708. build_alias=$build_alias
  15709. build=$build
  15710. build_os=$build_os
  15711. # A BSD- or MS-compatible name lister.
  15712. NM=$lt_NM
  15713. # Whether we need soft or hard links.
  15714. LN_S=$lt_LN_S
  15715. # What is the maximum length of a command?
  15716. max_cmd_len=$max_cmd_len
  15717. # Object file suffix (normally "o").
  15718. objext=$ac_objext
  15719. # Executable file suffix (normally "").
  15720. exeext=$exeext
  15721. # whether the shell understands "unset".
  15722. lt_unset=$lt_unset
  15723. # turn spaces into newlines.
  15724. SP2NL=$lt_lt_SP2NL
  15725. # turn newlines into spaces.
  15726. NL2SP=$lt_lt_NL2SP
  15727. # An object symbol dumper.
  15728. OBJDUMP=$lt_OBJDUMP
  15729. # Method to check whether dependent libraries are shared objects.
  15730. deplibs_check_method=$lt_deplibs_check_method
  15731. # Command to use when deplibs_check_method == "file_magic".
  15732. file_magic_cmd=$lt_file_magic_cmd
  15733. # The archiver.
  15734. AR=$lt_AR
  15735. AR_FLAGS=$lt_AR_FLAGS
  15736. # A symbol stripping program.
  15737. STRIP=$lt_STRIP
  15738. # Commands used to install an old-style archive.
  15739. RANLIB=$lt_RANLIB
  15740. old_postinstall_cmds=$lt_old_postinstall_cmds
  15741. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15742. # Whether to use a lock for old archive extraction.
  15743. lock_old_archive_extraction=$lock_old_archive_extraction
  15744. # A C compiler.
  15745. LTCC=$lt_CC
  15746. # LTCC compiler flags.
  15747. LTCFLAGS=$lt_CFLAGS
  15748. # Take the output of nm and produce a listing of raw symbols and C names.
  15749. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15750. # Transform the output of nm in a proper C declaration.
  15751. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15752. # Transform the output of nm in a C name address pair.
  15753. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15754. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15755. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15756. # The name of the directory that contains temporary libtool files.
  15757. objdir=$objdir
  15758. # Used to examine libraries when file_magic_cmd begins with "file".
  15759. MAGIC_CMD=$MAGIC_CMD
  15760. # Must we lock files when doing compilation?
  15761. need_locks=$lt_need_locks
  15762. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15763. DSYMUTIL=$lt_DSYMUTIL
  15764. # Tool to change global to local symbols on Mac OS X.
  15765. NMEDIT=$lt_NMEDIT
  15766. # Tool to manipulate fat objects and archives on Mac OS X.
  15767. LIPO=$lt_LIPO
  15768. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15769. OTOOL=$lt_OTOOL
  15770. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15771. OTOOL64=$lt_OTOOL64
  15772. # Old archive suffix (normally "a").
  15773. libext=$libext
  15774. # Shared library suffix (normally ".so").
  15775. shrext_cmds=$lt_shrext_cmds
  15776. # The commands to extract the exported symbol list from a shared archive.
  15777. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15778. # Variables whose values should be saved in libtool wrapper scripts and
  15779. # restored at link time.
  15780. variables_saved_for_relink=$lt_variables_saved_for_relink
  15781. # Do we need the "lib" prefix for modules?
  15782. need_lib_prefix=$need_lib_prefix
  15783. # Do we need a version for libraries?
  15784. need_version=$need_version
  15785. # Library versioning type.
  15786. version_type=$version_type
  15787. # Shared library runtime path variable.
  15788. runpath_var=$runpath_var
  15789. # Shared library path variable.
  15790. shlibpath_var=$shlibpath_var
  15791. # Is shlibpath searched before the hard-coded library search path?
  15792. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15793. # Format of library name prefix.
  15794. libname_spec=$lt_libname_spec
  15795. # List of archive names. First name is the real one, the rest are links.
  15796. # The last name is the one that the linker finds with -lNAME
  15797. library_names_spec=$lt_library_names_spec
  15798. # The coded name of the library, if different from the real name.
  15799. soname_spec=$lt_soname_spec
  15800. # Permission mode override for installation of shared libraries.
  15801. install_override_mode=$lt_install_override_mode
  15802. # Command to use after installation of a shared archive.
  15803. postinstall_cmds=$lt_postinstall_cmds
  15804. # Command to use after uninstallation of a shared archive.
  15805. postuninstall_cmds=$lt_postuninstall_cmds
  15806. # Commands used to finish a libtool library installation in a directory.
  15807. finish_cmds=$lt_finish_cmds
  15808. # As "finish_cmds", except a single script fragment to be evaled but
  15809. # not shown.
  15810. finish_eval=$lt_finish_eval
  15811. # Whether we should hardcode library paths into libraries.
  15812. hardcode_into_libs=$hardcode_into_libs
  15813. # Compile-time system search path for libraries.
  15814. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15815. # Run-time system search path for libraries.
  15816. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15817. # Whether dlopen is supported.
  15818. dlopen_support=$enable_dlopen
  15819. # Whether dlopen of programs is supported.
  15820. dlopen_self=$enable_dlopen_self
  15821. # Whether dlopen of statically linked programs is supported.
  15822. dlopen_self_static=$enable_dlopen_self_static
  15823. # Commands to strip libraries.
  15824. old_striplib=$lt_old_striplib
  15825. striplib=$lt_striplib
  15826. # The linker used to build libraries.
  15827. LD=$lt_LD
  15828. # How to create reloadable object files.
  15829. reload_flag=$lt_reload_flag
  15830. reload_cmds=$lt_reload_cmds
  15831. # Commands used to build an old-style archive.
  15832. old_archive_cmds=$lt_old_archive_cmds
  15833. # A language specific compiler.
  15834. CC=$lt_compiler
  15835. # Is the compiler the GNU compiler?
  15836. with_gcc=$GCC
  15837. # Compiler flag to turn off builtin functions.
  15838. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15839. # How to pass a linker flag through the compiler.
  15840. wl=$lt_lt_prog_compiler_wl
  15841. # Additional compiler flags for building library objects.
  15842. pic_flag=$lt_lt_prog_compiler_pic
  15843. # Compiler flag to prevent dynamic linking.
  15844. link_static_flag=$lt_lt_prog_compiler_static
  15845. # Does compiler simultaneously support -c and -o options?
  15846. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15847. # Whether or not to add -lc for building shared libraries.
  15848. build_libtool_need_lc=$archive_cmds_need_lc
  15849. # Whether or not to disallow shared libs when runtime libs are static.
  15850. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15851. # Compiler flag to allow reflexive dlopens.
  15852. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15853. # Compiler flag to generate shared objects directly from archives.
  15854. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15855. # Whether the compiler copes with passing no objects directly.
  15856. compiler_needs_object=$lt_compiler_needs_object
  15857. # Create an old-style archive from a shared archive.
  15858. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15859. # Create a temporary old-style archive to link instead of a shared archive.
  15860. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15861. # Commands used to build a shared archive.
  15862. archive_cmds=$lt_archive_cmds
  15863. archive_expsym_cmds=$lt_archive_expsym_cmds
  15864. # Commands used to build a loadable module if different from building
  15865. # a shared archive.
  15866. module_cmds=$lt_module_cmds
  15867. module_expsym_cmds=$lt_module_expsym_cmds
  15868. # Whether we are building with GNU ld or not.
  15869. with_gnu_ld=$lt_with_gnu_ld
  15870. # Flag that allows shared libraries with undefined symbols to be built.
  15871. allow_undefined_flag=$lt_allow_undefined_flag
  15872. # Flag that enforces no undefined symbols.
  15873. no_undefined_flag=$lt_no_undefined_flag
  15874. # Flag to hardcode \$libdir into a binary during linking.
  15875. # This must work even if \$libdir does not exist
  15876. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15877. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15878. # during linking. This must work even if \$libdir does not exist.
  15879. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15880. # Whether we need a single "-rpath" flag with a separated argument.
  15881. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15882. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15883. # DIR into the resulting binary.
  15884. hardcode_direct=$hardcode_direct
  15885. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15886. # DIR into the resulting binary and the resulting library dependency is
  15887. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15888. # library is relocated.
  15889. hardcode_direct_absolute=$hardcode_direct_absolute
  15890. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15891. # into the resulting binary.
  15892. hardcode_minus_L=$hardcode_minus_L
  15893. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15894. # into the resulting binary.
  15895. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15896. # Set to "yes" if building a shared library automatically hardcodes DIR
  15897. # into the library and all subsequent libraries and executables linked
  15898. # against it.
  15899. hardcode_automatic=$hardcode_automatic
  15900. # Set to yes if linker adds runtime paths of dependent libraries
  15901. # to runtime path list.
  15902. inherit_rpath=$inherit_rpath
  15903. # Whether libtool must link a program against all its dependency libraries.
  15904. link_all_deplibs=$link_all_deplibs
  15905. # Fix the shell variable \$srcfile for the compiler.
  15906. fix_srcfile_path=$lt_fix_srcfile_path
  15907. # Set to "yes" if exported symbols are required.
  15908. always_export_symbols=$always_export_symbols
  15909. # The commands to list exported symbols.
  15910. export_symbols_cmds=$lt_export_symbols_cmds
  15911. # Symbols that should not be listed in the preloaded symbols.
  15912. exclude_expsyms=$lt_exclude_expsyms
  15913. # Symbols that must always be exported.
  15914. include_expsyms=$lt_include_expsyms
  15915. # Commands necessary for linking programs (against libraries) with templates.
  15916. prelink_cmds=$lt_prelink_cmds
  15917. # Specify filename containing input files.
  15918. file_list_spec=$lt_file_list_spec
  15919. # How to hardcode a shared library path into an executable.
  15920. hardcode_action=$hardcode_action
  15921. # ### END LIBTOOL CONFIG
  15922. _LT_EOF
  15923. case $host_os in
  15924. aix3*)
  15925. cat <<\_LT_EOF >> "$cfgfile"
  15926. # AIX sometimes has problems with the GCC collect2 program. For some
  15927. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15928. # vanish in a puff of smoke.
  15929. if test "X${COLLECT_NAMES+set}" != Xset; then
  15930. COLLECT_NAMES=
  15931. export COLLECT_NAMES
  15932. fi
  15933. _LT_EOF
  15934. ;;
  15935. esac
  15936. ltmain="$ac_aux_dir/ltmain.sh"
  15937. # We use sed instead of cat because bash on DJGPP gets confused if
  15938. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15939. # text mode, it properly converts lines to CR/LF. This bash problem
  15940. # is reportedly fixed, but why not run on old versions too?
  15941. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15942. || (rm -f "$cfgfile"; exit 1)
  15943. case $xsi_shell in
  15944. yes)
  15945. cat << \_LT_EOF >> "$cfgfile"
  15946. # func_dirname file append nondir_replacement
  15947. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15948. # otherwise set result to NONDIR_REPLACEMENT.
  15949. func_dirname ()
  15950. {
  15951. case ${1} in
  15952. */*) func_dirname_result="${1%/*}${2}" ;;
  15953. * ) func_dirname_result="${3}" ;;
  15954. esac
  15955. }
  15956. # func_basename file
  15957. func_basename ()
  15958. {
  15959. func_basename_result="${1##*/}"
  15960. }
  15961. # func_dirname_and_basename file append nondir_replacement
  15962. # perform func_basename and func_dirname in a single function
  15963. # call:
  15964. # dirname: Compute the dirname of FILE. If nonempty,
  15965. # add APPEND to the result, otherwise set result
  15966. # to NONDIR_REPLACEMENT.
  15967. # value returned in "$func_dirname_result"
  15968. # basename: Compute filename of FILE.
  15969. # value retuned in "$func_basename_result"
  15970. # Implementation must be kept synchronized with func_dirname
  15971. # and func_basename. For efficiency, we do not delegate to
  15972. # those functions but instead duplicate the functionality here.
  15973. func_dirname_and_basename ()
  15974. {
  15975. case ${1} in
  15976. */*) func_dirname_result="${1%/*}${2}" ;;
  15977. * ) func_dirname_result="${3}" ;;
  15978. esac
  15979. func_basename_result="${1##*/}"
  15980. }
  15981. # func_stripname prefix suffix name
  15982. # strip PREFIX and SUFFIX off of NAME.
  15983. # PREFIX and SUFFIX must not contain globbing or regex special
  15984. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15985. # dot (in which case that matches only a dot).
  15986. func_stripname ()
  15987. {
  15988. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15989. # positional parameters, so assign one to ordinary parameter first.
  15990. func_stripname_result=${3}
  15991. func_stripname_result=${func_stripname_result#"${1}"}
  15992. func_stripname_result=${func_stripname_result%"${2}"}
  15993. }
  15994. # func_opt_split
  15995. func_opt_split ()
  15996. {
  15997. func_opt_split_opt=${1%%=*}
  15998. func_opt_split_arg=${1#*=}
  15999. }
  16000. # func_lo2o object
  16001. func_lo2o ()
  16002. {
  16003. case ${1} in
  16004. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  16005. *) func_lo2o_result=${1} ;;
  16006. esac
  16007. }
  16008. # func_xform libobj-or-source
  16009. func_xform ()
  16010. {
  16011. func_xform_result=${1%.*}.lo
  16012. }
  16013. # func_arith arithmetic-term...
  16014. func_arith ()
  16015. {
  16016. func_arith_result=$(( $* ))
  16017. }
  16018. # func_len string
  16019. # STRING may not start with a hyphen.
  16020. func_len ()
  16021. {
  16022. func_len_result=${#1}
  16023. }
  16024. _LT_EOF
  16025. ;;
  16026. *) # Bourne compatible functions.
  16027. cat << \_LT_EOF >> "$cfgfile"
  16028. # func_dirname file append nondir_replacement
  16029. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16030. # otherwise set result to NONDIR_REPLACEMENT.
  16031. func_dirname ()
  16032. {
  16033. # Extract subdirectory from the argument.
  16034. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  16035. if test "X$func_dirname_result" = "X${1}"; then
  16036. func_dirname_result="${3}"
  16037. else
  16038. func_dirname_result="$func_dirname_result${2}"
  16039. fi
  16040. }
  16041. # func_basename file
  16042. func_basename ()
  16043. {
  16044. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  16045. }
  16046. # func_stripname prefix suffix name
  16047. # strip PREFIX and SUFFIX off of NAME.
  16048. # PREFIX and SUFFIX must not contain globbing or regex special
  16049. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16050. # dot (in which case that matches only a dot).
  16051. # func_strip_suffix prefix name
  16052. func_stripname ()
  16053. {
  16054. case ${2} in
  16055. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  16056. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  16057. esac
  16058. }
  16059. # sed scripts:
  16060. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  16061. my_sed_long_arg='1s/^-[^=]*=//'
  16062. # func_opt_split
  16063. func_opt_split ()
  16064. {
  16065. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  16066. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  16067. }
  16068. # func_lo2o object
  16069. func_lo2o ()
  16070. {
  16071. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  16072. }
  16073. # func_xform libobj-or-source
  16074. func_xform ()
  16075. {
  16076. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  16077. }
  16078. # func_arith arithmetic-term...
  16079. func_arith ()
  16080. {
  16081. func_arith_result=`expr "$@"`
  16082. }
  16083. # func_len string
  16084. # STRING may not start with a hyphen.
  16085. func_len ()
  16086. {
  16087. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  16088. }
  16089. _LT_EOF
  16090. esac
  16091. case $lt_shell_append in
  16092. yes)
  16093. cat << \_LT_EOF >> "$cfgfile"
  16094. # func_append var value
  16095. # Append VALUE to the end of shell variable VAR.
  16096. func_append ()
  16097. {
  16098. eval "$1+=\$2"
  16099. }
  16100. _LT_EOF
  16101. ;;
  16102. *)
  16103. cat << \_LT_EOF >> "$cfgfile"
  16104. # func_append var value
  16105. # Append VALUE to the end of shell variable VAR.
  16106. func_append ()
  16107. {
  16108. eval "$1=\$$1\$2"
  16109. }
  16110. _LT_EOF
  16111. ;;
  16112. esac
  16113. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  16114. || (rm -f "$cfgfile"; exit 1)
  16115. mv -f "$cfgfile" "$ofile" ||
  16116. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16117. chmod +x "$ofile"
  16118. cat <<_LT_EOF >> "$ofile"
  16119. # ### BEGIN LIBTOOL TAG CONFIG: GO
  16120. # The linker used to build libraries.
  16121. LD=$lt_LD_GO
  16122. # How to create reloadable object files.
  16123. reload_flag=$lt_reload_flag_GO
  16124. reload_cmds=$lt_reload_cmds_GO
  16125. # Commands used to build an old-style archive.
  16126. old_archive_cmds=$lt_old_archive_cmds_GO
  16127. # A language specific compiler.
  16128. CC=$lt_compiler_GO
  16129. # Is the compiler the GNU compiler?
  16130. with_gcc=$GCC_GO
  16131. # Compiler flag to turn off builtin functions.
  16132. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
  16133. # How to pass a linker flag through the compiler.
  16134. wl=$lt_lt_prog_compiler_wl_GO
  16135. # Additional compiler flags for building library objects.
  16136. pic_flag=$lt_lt_prog_compiler_pic_GO
  16137. # Compiler flag to prevent dynamic linking.
  16138. link_static_flag=$lt_lt_prog_compiler_static_GO
  16139. # Does compiler simultaneously support -c and -o options?
  16140. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
  16141. # Whether or not to add -lc for building shared libraries.
  16142. build_libtool_need_lc=$archive_cmds_need_lc_GO
  16143. # Whether or not to disallow shared libs when runtime libs are static.
  16144. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
  16145. # Compiler flag to allow reflexive dlopens.
  16146. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
  16147. # Compiler flag to generate shared objects directly from archives.
  16148. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
  16149. # Whether the compiler copes with passing no objects directly.
  16150. compiler_needs_object=$lt_compiler_needs_object_GO
  16151. # Create an old-style archive from a shared archive.
  16152. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
  16153. # Create a temporary old-style archive to link instead of a shared archive.
  16154. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
  16155. # Commands used to build a shared archive.
  16156. archive_cmds=$lt_archive_cmds_GO
  16157. archive_expsym_cmds=$lt_archive_expsym_cmds_GO
  16158. # Commands used to build a loadable module if different from building
  16159. # a shared archive.
  16160. module_cmds=$lt_module_cmds_GO
  16161. module_expsym_cmds=$lt_module_expsym_cmds_GO
  16162. # Whether we are building with GNU ld or not.
  16163. with_gnu_ld=$lt_with_gnu_ld_GO
  16164. # Flag that allows shared libraries with undefined symbols to be built.
  16165. allow_undefined_flag=$lt_allow_undefined_flag_GO
  16166. # Flag that enforces no undefined symbols.
  16167. no_undefined_flag=$lt_no_undefined_flag_GO
  16168. # Flag to hardcode \$libdir into a binary during linking.
  16169. # This must work even if \$libdir does not exist
  16170. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
  16171. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16172. # during linking. This must work even if \$libdir does not exist.
  16173. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
  16174. # Whether we need a single "-rpath" flag with a separated argument.
  16175. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
  16176. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16177. # DIR into the resulting binary.
  16178. hardcode_direct=$hardcode_direct_GO
  16179. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16180. # DIR into the resulting binary and the resulting library dependency is
  16181. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16182. # library is relocated.
  16183. hardcode_direct_absolute=$hardcode_direct_absolute_GO
  16184. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16185. # into the resulting binary.
  16186. hardcode_minus_L=$hardcode_minus_L_GO
  16187. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16188. # into the resulting binary.
  16189. hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
  16190. # Set to "yes" if building a shared library automatically hardcodes DIR
  16191. # into the library and all subsequent libraries and executables linked
  16192. # against it.
  16193. hardcode_automatic=$hardcode_automatic_GO
  16194. # Set to yes if linker adds runtime paths of dependent libraries
  16195. # to runtime path list.
  16196. inherit_rpath=$inherit_rpath_GO
  16197. # Whether libtool must link a program against all its dependency libraries.
  16198. link_all_deplibs=$link_all_deplibs_GO
  16199. # Fix the shell variable \$srcfile for the compiler.
  16200. fix_srcfile_path=$lt_fix_srcfile_path_GO
  16201. # Set to "yes" if exported symbols are required.
  16202. always_export_symbols=$always_export_symbols_GO
  16203. # The commands to list exported symbols.
  16204. export_symbols_cmds=$lt_export_symbols_cmds_GO
  16205. # Symbols that should not be listed in the preloaded symbols.
  16206. exclude_expsyms=$lt_exclude_expsyms_GO
  16207. # Symbols that must always be exported.
  16208. include_expsyms=$lt_include_expsyms_GO
  16209. # Commands necessary for linking programs (against libraries) with templates.
  16210. prelink_cmds=$lt_prelink_cmds_GO
  16211. # Specify filename containing input files.
  16212. file_list_spec=$lt_file_list_spec_GO
  16213. # How to hardcode a shared library path into an executable.
  16214. hardcode_action=$hardcode_action_GO
  16215. # ### END LIBTOOL TAG CONFIG: GO
  16216. _LT_EOF
  16217. ;;
  16218. "default":C) if test -n "$CONFIG_FILES"; then
  16219. # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
  16220. # that multilib installs will end up installed in the correct place.
  16221. # The testsuite needs it for multilib-aware ABI baseline files.
  16222. # To work around this not being passed down from config-ml.in ->
  16223. # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
  16224. # append it here. Only modify Makefiles that have just been created.
  16225. #
  16226. # Also, get rid of this simulated-VPATH thing that automake does.
  16227. cat > vpsed << \_EOF
  16228. s!`test -f '$<' || echo '$(srcdir)/'`!!
  16229. _EOF
  16230. for i in $SUBDIRS; do
  16231. case $CONFIG_FILES in
  16232. *${i}/Makefile*)
  16233. #echo "Adding MULTISUBDIR to $i/Makefile"
  16234. sed -f vpsed $i/Makefile > tmp
  16235. grep '^MULTISUBDIR =' Makefile >> tmp
  16236. mv tmp $i/Makefile
  16237. ;;
  16238. esac
  16239. done
  16240. rm vpsed
  16241. fi
  16242. ;;
  16243. esac
  16244. done # for ac_tag
  16245. as_fn_exit 0
  16246. _ACEOF
  16247. ac_clean_files=$ac_clean_files_save
  16248. test $ac_write_fail = 0 ||
  16249. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16250. # configure is writing to config.log, and then calls config.status.
  16251. # config.status does its own redirection, appending to config.log.
  16252. # Unfortunately, on DOS this fails, as config.log is still kept open
  16253. # by configure, so config.status won't be able to write to it; its
  16254. # output is simply discarded. So we exec the FD to /dev/null,
  16255. # effectively closing config.log, so it can be properly (re)opened and
  16256. # appended to by config.status. When coming back to configure, we
  16257. # need to make the FD available again.
  16258. if test "$no_create" != yes; then
  16259. ac_cs_success=:
  16260. ac_config_status_args=
  16261. test "$silent" = yes &&
  16262. ac_config_status_args="$ac_config_status_args --quiet"
  16263. exec 5>/dev/null
  16264. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16265. exec 5>>config.log
  16266. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16267. # would make configure fail if this is the last instruction.
  16268. $ac_cs_success || as_fn_exit 1
  16269. fi
  16270. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16271. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16272. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16273. fi