configure 585 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for ld 2.38.50.
  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='ld'
  539. PACKAGE_TARNAME='ld'
  540. PACKAGE_VERSION='2.38.50'
  541. PACKAGE_STRING='ld 2.38.50'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="ldmain.c"
  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_header_list=
  581. ac_subst_vars='am__EXEEXT_FALSE
  582. am__EXEEXT_TRUE
  583. LTLIBOBJS
  584. LIBOBJS
  585. TESTCTFLIB
  586. TESTBFDLIB
  587. EMULATION_LIBPATH
  588. LIB_PATH
  589. EMUL_EXTRA_OFILES
  590. EMULATION_OFILES
  591. TDIRS
  592. EMUL
  593. elf_plt_unwind_list_options
  594. elf_shlib_list_options
  595. elf_list_options
  596. STRINGIFY
  597. zlibinc
  598. zlibdir
  599. NATIVE_LIB_DIRS
  600. HDEFINES
  601. do_compare
  602. GENINSRC_NEVER_FALSE
  603. GENINSRC_NEVER_TRUE
  604. LEXLIB
  605. LEX_OUTPUT_ROOT
  606. LEX
  607. YFLAGS
  608. YACC
  609. MSGMERGE
  610. MSGFMT
  611. MKINSTALLDIRS
  612. CATOBJEXT
  613. GENCAT
  614. INSTOBJEXT
  615. DATADIRNAME
  616. CATALOGS
  617. POSUB
  618. GMSGFMT
  619. XGETTEXT
  620. INCINTL
  621. LIBINTL_DEP
  622. LIBINTL
  623. USE_NLS
  624. WARN_WRITE_STRINGS
  625. NO_WERROR
  626. WARN_CFLAGS_FOR_BUILD
  627. WARN_CFLAGS
  628. enable_libctf
  629. ENABLE_LIBCTF_FALSE
  630. ENABLE_LIBCTF_TRUE
  631. enable_initfini_array
  632. installed_linker
  633. install_as_default
  634. TARGET_SYSTEM_ROOT_DEFINE
  635. TARGET_SYSTEM_ROOT
  636. use_sysroot
  637. ENABLE_BFD_64_BIT_FALSE
  638. ENABLE_BFD_64_BIT_TRUE
  639. LARGEFILE_CPPFLAGS
  640. CXXCPP
  641. OTOOL64
  642. OTOOL
  643. LIPO
  644. NMEDIT
  645. DSYMUTIL
  646. RANLIB
  647. AR
  648. OBJDUMP
  649. LN_S
  650. NM
  651. ac_ct_DUMPBIN
  652. DUMPBIN
  653. LD
  654. FGREP
  655. SED
  656. LIBTOOL
  657. EGREP
  658. CPP
  659. GREP
  660. am__fastdepCXX_FALSE
  661. am__fastdepCXX_TRUE
  662. CXXDEPMODE
  663. ac_ct_CXX
  664. CXXFLAGS
  665. CXX
  666. am__fastdepCC_FALSE
  667. am__fastdepCC_TRUE
  668. CCDEPMODE
  669. am__nodep
  670. AMDEPBACKSLASH
  671. AMDEP_FALSE
  672. AMDEP_TRUE
  673. am__quote
  674. am__include
  675. DEPDIR
  676. OBJEXT
  677. EXEEXT
  678. ac_ct_CC
  679. CPPFLAGS
  680. LDFLAGS
  681. CFLAGS
  682. CC
  683. MAINT
  684. MAINTAINER_MODE_FALSE
  685. MAINTAINER_MODE_TRUE
  686. AM_BACKSLASH
  687. AM_DEFAULT_VERBOSITY
  688. AM_DEFAULT_V
  689. AM_V
  690. am__untar
  691. am__tar
  692. AMTAR
  693. am__leading_dot
  694. SET_MAKE
  695. AWK
  696. mkdir_p
  697. MKDIR_P
  698. INSTALL_STRIP_PROGRAM
  699. STRIP
  700. install_sh
  701. MAKEINFO
  702. AUTOHEADER
  703. AUTOMAKE
  704. AUTOCONF
  705. ACLOCAL
  706. VERSION
  707. PACKAGE
  708. CYGPATH_W
  709. am__isrc
  710. INSTALL_DATA
  711. INSTALL_SCRIPT
  712. INSTALL_PROGRAM
  713. target_os
  714. target_vendor
  715. target_cpu
  716. target
  717. host_os
  718. host_vendor
  719. host_cpu
  720. host
  721. build_os
  722. build_vendor
  723. build_cpu
  724. build
  725. target_alias
  726. host_alias
  727. build_alias
  728. LIBS
  729. ECHO_T
  730. ECHO_N
  731. ECHO_C
  732. DEFS
  733. mandir
  734. localedir
  735. libdir
  736. psdir
  737. pdfdir
  738. dvidir
  739. htmldir
  740. infodir
  741. docdir
  742. oldincludedir
  743. includedir
  744. localstatedir
  745. sharedstatedir
  746. sysconfdir
  747. datadir
  748. datarootdir
  749. libexecdir
  750. sbindir
  751. bindir
  752. program_transform_name
  753. prefix
  754. exec_prefix
  755. PACKAGE_URL
  756. PACKAGE_BUGREPORT
  757. PACKAGE_STRING
  758. PACKAGE_VERSION
  759. PACKAGE_TARNAME
  760. PACKAGE_NAME
  761. PATH_SEPARATOR
  762. SHELL'
  763. ac_subst_files=''
  764. ac_user_opts='
  765. enable_option_checking
  766. enable_silent_rules
  767. enable_maintainer_mode
  768. enable_dependency_tracking
  769. enable_shared
  770. enable_static
  771. with_pic
  772. enable_fast_install
  773. with_gnu_ld
  774. enable_libtool_lock
  775. enable_plugins
  776. enable_largefile
  777. enable_checking
  778. with_lib_path
  779. enable_targets
  780. enable_64_bit_bfd
  781. with_sysroot
  782. enable_gold
  783. enable_got
  784. enable_compressed_debug_sections
  785. enable_new_dtags
  786. enable_relro
  787. enable_textrel_check
  788. enable_separate_code
  789. enable_error_handling_script
  790. enable_default_hash_style
  791. enable_initfini_array
  792. enable_libctf
  793. enable_werror
  794. enable_build_warnings
  795. enable_nls
  796. with_system_zlib
  797. '
  798. ac_precious_vars='build_alias
  799. host_alias
  800. target_alias
  801. CC
  802. CFLAGS
  803. LDFLAGS
  804. LIBS
  805. CPPFLAGS
  806. CXX
  807. CXXFLAGS
  808. CCC
  809. CPP
  810. CXXCPP
  811. YACC
  812. YFLAGS'
  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 ld 2.38.50 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/ld]
  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 ld 2.38.50:";;
  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-silent-rules less verbose build output (undo: "make V=1")
  1351. --disable-silent-rules verbose build output (undo: "make V=0")
  1352. --enable-maintainer-mode
  1353. enable make rules and dependencies not useful (and
  1354. sometimes confusing) to the casual installer
  1355. --enable-dependency-tracking
  1356. do not reject slow dependency extractors
  1357. --disable-dependency-tracking
  1358. speeds up one-time build
  1359. --enable-shared[=PKGS] build shared libraries [default=yes]
  1360. --enable-static[=PKGS] build static libraries [default=yes]
  1361. --enable-fast-install[=PKGS]
  1362. optimize for fast installation [default=yes]
  1363. --disable-libtool-lock avoid locking (might break parallel builds)
  1364. --enable-plugins Enable support for plugins
  1365. --disable-largefile omit support for large files
  1366. --enable-checking enable run-time checks
  1367. --enable-targets alternative target configurations
  1368. --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
  1369. --enable-gold[=ARG] build gold [ARG={default,yes,no}]
  1370. --enable-got=<type> GOT handling scheme (target, single, negative,
  1371. multigot)
  1372. --enable-compressed-debug-sections={all,ld,none}
  1373. compress debug sections by default]
  1374. --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default]
  1375. --enable-relro enable -z relro in ELF linker by default
  1376. --enable-textrel-check=[yes|no|warning|error]
  1377. enable DT_TEXTREL check in ELF linker
  1378. --enable-separate-code enable -z separate-code in ELF linker by default
  1379. --enable-error-handling-script
  1380. enable/disable support for the
  1381. --error-handling-script option
  1382. --enable-default-hash-style={sysv,gnu,both}
  1383. use this default hash style
  1384. --disable-initfini-array do not use .init_array/.fini_array sections
  1385. --enable-libctf Handle .ctf type-info sections [default=yes]
  1386. --enable-werror treat compile warnings as errors
  1387. --enable-build-warnings enable build-time compiler warnings
  1388. --disable-nls do not use Native Language Support
  1389. Optional Packages:
  1390. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1391. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1392. --with-pic try to use only PIC/non-PIC objects [default=use
  1393. both]
  1394. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1395. --with-lib-path=dir1:dir2... set default LIB_PATH
  1396. --with-sysroot=DIR Search for usr/lib et al within DIR.
  1397. --with-system-zlib use installed libz
  1398. Some influential environment variables:
  1399. CC C compiler command
  1400. CFLAGS C compiler flags
  1401. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1402. nonstandard directory <lib dir>
  1403. LIBS libraries to pass to the linker, e.g. -l<library>
  1404. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1405. you have headers in a nonstandard directory <include dir>
  1406. CXX C++ compiler command
  1407. CXXFLAGS C++ compiler flags
  1408. CPP C preprocessor
  1409. CXXCPP C++ preprocessor
  1410. YACC The `Yet Another Compiler Compiler' implementation to use.
  1411. Defaults to the first program found out of: `bison -y', `byacc',
  1412. `yacc'.
  1413. YFLAGS The list of arguments that will be passed by default to $YACC.
  1414. This script will default YFLAGS to the empty string to avoid a
  1415. default value of `-d' given by some make applications.
  1416. Use these variables to override the choices made by `configure' or to help
  1417. it to find libraries and programs with nonstandard names/locations.
  1418. Report bugs to the package provider.
  1419. _ACEOF
  1420. ac_status=$?
  1421. fi
  1422. if test "$ac_init_help" = "recursive"; then
  1423. # If there are subdirs, report their specific --help.
  1424. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1425. test -d "$ac_dir" ||
  1426. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1427. continue
  1428. ac_builddir=.
  1429. case "$ac_dir" in
  1430. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1431. *)
  1432. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1433. # A ".." for each directory in $ac_dir_suffix.
  1434. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1435. case $ac_top_builddir_sub in
  1436. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1437. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1438. esac ;;
  1439. esac
  1440. ac_abs_top_builddir=$ac_pwd
  1441. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1442. # for backward compatibility:
  1443. ac_top_builddir=$ac_top_build_prefix
  1444. case $srcdir in
  1445. .) # We are building in place.
  1446. ac_srcdir=.
  1447. ac_top_srcdir=$ac_top_builddir_sub
  1448. ac_abs_top_srcdir=$ac_pwd ;;
  1449. [\\/]* | ?:[\\/]* ) # Absolute name.
  1450. ac_srcdir=$srcdir$ac_dir_suffix;
  1451. ac_top_srcdir=$srcdir
  1452. ac_abs_top_srcdir=$srcdir ;;
  1453. *) # Relative name.
  1454. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1455. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1456. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1457. esac
  1458. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1459. cd "$ac_dir" || { ac_status=$?; continue; }
  1460. # Check for guested configure.
  1461. if test -f "$ac_srcdir/configure.gnu"; then
  1462. echo &&
  1463. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1464. elif test -f "$ac_srcdir/configure"; then
  1465. echo &&
  1466. $SHELL "$ac_srcdir/configure" --help=recursive
  1467. else
  1468. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1469. fi || ac_status=$?
  1470. cd "$ac_pwd" || { ac_status=$?; break; }
  1471. done
  1472. fi
  1473. test -n "$ac_init_help" && exit $ac_status
  1474. if $ac_init_version; then
  1475. cat <<\_ACEOF
  1476. ld configure 2.38.50
  1477. generated by GNU Autoconf 2.69
  1478. Copyright (C) 2012 Free Software Foundation, Inc.
  1479. This configure script is free software; the Free Software Foundation
  1480. gives unlimited permission to copy, distribute and modify it.
  1481. _ACEOF
  1482. exit
  1483. fi
  1484. ## ------------------------ ##
  1485. ## Autoconf initialization. ##
  1486. ## ------------------------ ##
  1487. # ac_fn_c_try_compile LINENO
  1488. # --------------------------
  1489. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1490. ac_fn_c_try_compile ()
  1491. {
  1492. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1493. rm -f conftest.$ac_objext
  1494. if { { ac_try="$ac_compile"
  1495. case "(($ac_try" in
  1496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1497. *) ac_try_echo=$ac_try;;
  1498. esac
  1499. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1500. $as_echo "$ac_try_echo"; } >&5
  1501. (eval "$ac_compile") 2>conftest.err
  1502. ac_status=$?
  1503. if test -s conftest.err; then
  1504. grep -v '^ *+' conftest.err >conftest.er1
  1505. cat conftest.er1 >&5
  1506. mv -f conftest.er1 conftest.err
  1507. fi
  1508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1509. test $ac_status = 0; } && {
  1510. test -z "$ac_c_werror_flag" ||
  1511. test ! -s conftest.err
  1512. } && test -s conftest.$ac_objext; then :
  1513. ac_retval=0
  1514. else
  1515. $as_echo "$as_me: failed program was:" >&5
  1516. sed 's/^/| /' conftest.$ac_ext >&5
  1517. ac_retval=1
  1518. fi
  1519. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1520. as_fn_set_status $ac_retval
  1521. } # ac_fn_c_try_compile
  1522. # ac_fn_cxx_try_compile LINENO
  1523. # ----------------------------
  1524. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1525. ac_fn_cxx_try_compile ()
  1526. {
  1527. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1528. rm -f conftest.$ac_objext
  1529. if { { ac_try="$ac_compile"
  1530. case "(($ac_try" in
  1531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1532. *) ac_try_echo=$ac_try;;
  1533. esac
  1534. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1535. $as_echo "$ac_try_echo"; } >&5
  1536. (eval "$ac_compile") 2>conftest.err
  1537. ac_status=$?
  1538. if test -s conftest.err; then
  1539. grep -v '^ *+' conftest.err >conftest.er1
  1540. cat conftest.er1 >&5
  1541. mv -f conftest.er1 conftest.err
  1542. fi
  1543. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1544. test $ac_status = 0; } && {
  1545. test -z "$ac_cxx_werror_flag" ||
  1546. test ! -s conftest.err
  1547. } && test -s conftest.$ac_objext; then :
  1548. ac_retval=0
  1549. else
  1550. $as_echo "$as_me: failed program was:" >&5
  1551. sed 's/^/| /' conftest.$ac_ext >&5
  1552. ac_retval=1
  1553. fi
  1554. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1555. as_fn_set_status $ac_retval
  1556. } # ac_fn_cxx_try_compile
  1557. # ac_fn_c_try_cpp LINENO
  1558. # ----------------------
  1559. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1560. ac_fn_c_try_cpp ()
  1561. {
  1562. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1563. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1564. case "(($ac_try" in
  1565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1566. *) ac_try_echo=$ac_try;;
  1567. esac
  1568. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1569. $as_echo "$ac_try_echo"; } >&5
  1570. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1571. ac_status=$?
  1572. if test -s conftest.err; then
  1573. grep -v '^ *+' conftest.err >conftest.er1
  1574. cat conftest.er1 >&5
  1575. mv -f conftest.er1 conftest.err
  1576. fi
  1577. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1578. test $ac_status = 0; } > conftest.i && {
  1579. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1580. test ! -s conftest.err
  1581. }; then :
  1582. ac_retval=0
  1583. else
  1584. $as_echo "$as_me: failed program was:" >&5
  1585. sed 's/^/| /' conftest.$ac_ext >&5
  1586. ac_retval=1
  1587. fi
  1588. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1589. as_fn_set_status $ac_retval
  1590. } # ac_fn_c_try_cpp
  1591. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1592. # -------------------------------------------------------
  1593. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1594. # the include files in INCLUDES and setting the cache variable VAR
  1595. # accordingly.
  1596. ac_fn_c_check_header_mongrel ()
  1597. {
  1598. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1599. if eval \${$3+:} false; then :
  1600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1601. $as_echo_n "checking for $2... " >&6; }
  1602. if eval \${$3+:} false; then :
  1603. $as_echo_n "(cached) " >&6
  1604. fi
  1605. eval ac_res=\$$3
  1606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1607. $as_echo "$ac_res" >&6; }
  1608. else
  1609. # Is the header compilable?
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1611. $as_echo_n "checking $2 usability... " >&6; }
  1612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1613. /* end confdefs.h. */
  1614. $4
  1615. #include <$2>
  1616. _ACEOF
  1617. if ac_fn_c_try_compile "$LINENO"; then :
  1618. ac_header_compiler=yes
  1619. else
  1620. ac_header_compiler=no
  1621. fi
  1622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1624. $as_echo "$ac_header_compiler" >&6; }
  1625. # Is the header present?
  1626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1627. $as_echo_n "checking $2 presence... " >&6; }
  1628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1629. /* end confdefs.h. */
  1630. #include <$2>
  1631. _ACEOF
  1632. if ac_fn_c_try_cpp "$LINENO"; then :
  1633. ac_header_preproc=yes
  1634. else
  1635. ac_header_preproc=no
  1636. fi
  1637. rm -f conftest.err conftest.i conftest.$ac_ext
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1639. $as_echo "$ac_header_preproc" >&6; }
  1640. # So? What about this header?
  1641. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1642. yes:no: )
  1643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1644. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1646. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1647. ;;
  1648. no:yes:* )
  1649. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1650. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1652. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1653. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1654. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1655. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1656. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1657. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1658. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1659. ;;
  1660. esac
  1661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1662. $as_echo_n "checking for $2... " >&6; }
  1663. if eval \${$3+:} false; then :
  1664. $as_echo_n "(cached) " >&6
  1665. else
  1666. eval "$3=\$ac_header_compiler"
  1667. fi
  1668. eval ac_res=\$$3
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1670. $as_echo "$ac_res" >&6; }
  1671. fi
  1672. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1673. } # ac_fn_c_check_header_mongrel
  1674. # ac_fn_c_try_run LINENO
  1675. # ----------------------
  1676. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1677. # that executables *can* be run.
  1678. ac_fn_c_try_run ()
  1679. {
  1680. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1681. if { { ac_try="$ac_link"
  1682. case "(($ac_try" in
  1683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1684. *) ac_try_echo=$ac_try;;
  1685. esac
  1686. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1687. $as_echo "$ac_try_echo"; } >&5
  1688. (eval "$ac_link") 2>&5
  1689. ac_status=$?
  1690. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1691. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1692. { { case "(($ac_try" in
  1693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1694. *) ac_try_echo=$ac_try;;
  1695. esac
  1696. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1697. $as_echo "$ac_try_echo"; } >&5
  1698. (eval "$ac_try") 2>&5
  1699. ac_status=$?
  1700. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1701. test $ac_status = 0; }; }; then :
  1702. ac_retval=0
  1703. else
  1704. $as_echo "$as_me: program exited with status $ac_status" >&5
  1705. $as_echo "$as_me: failed program was:" >&5
  1706. sed 's/^/| /' conftest.$ac_ext >&5
  1707. ac_retval=$ac_status
  1708. fi
  1709. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1710. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1711. as_fn_set_status $ac_retval
  1712. } # ac_fn_c_try_run
  1713. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1714. # -------------------------------------------------------
  1715. # Tests whether HEADER exists and can be compiled using the include files in
  1716. # INCLUDES, setting the cache variable VAR accordingly.
  1717. ac_fn_c_check_header_compile ()
  1718. {
  1719. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1721. $as_echo_n "checking for $2... " >&6; }
  1722. if eval \${$3+:} false; then :
  1723. $as_echo_n "(cached) " >&6
  1724. else
  1725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1726. /* end confdefs.h. */
  1727. $4
  1728. #include <$2>
  1729. _ACEOF
  1730. if ac_fn_c_try_compile "$LINENO"; then :
  1731. eval "$3=yes"
  1732. else
  1733. eval "$3=no"
  1734. fi
  1735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1736. fi
  1737. eval ac_res=\$$3
  1738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1739. $as_echo "$ac_res" >&6; }
  1740. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1741. } # ac_fn_c_check_header_compile
  1742. # ac_fn_c_try_link LINENO
  1743. # -----------------------
  1744. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1745. ac_fn_c_try_link ()
  1746. {
  1747. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1748. rm -f conftest.$ac_objext conftest$ac_exeext
  1749. if { { ac_try="$ac_link"
  1750. case "(($ac_try" in
  1751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1752. *) ac_try_echo=$ac_try;;
  1753. esac
  1754. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1755. $as_echo "$ac_try_echo"; } >&5
  1756. (eval "$ac_link") 2>conftest.err
  1757. ac_status=$?
  1758. if test -s conftest.err; then
  1759. grep -v '^ *+' conftest.err >conftest.er1
  1760. cat conftest.er1 >&5
  1761. mv -f conftest.er1 conftest.err
  1762. fi
  1763. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1764. test $ac_status = 0; } && {
  1765. test -z "$ac_c_werror_flag" ||
  1766. test ! -s conftest.err
  1767. } && test -s conftest$ac_exeext && {
  1768. test "$cross_compiling" = yes ||
  1769. test -x conftest$ac_exeext
  1770. }; then :
  1771. ac_retval=0
  1772. else
  1773. $as_echo "$as_me: failed program was:" >&5
  1774. sed 's/^/| /' conftest.$ac_ext >&5
  1775. ac_retval=1
  1776. fi
  1777. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1778. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1779. # interfere with the next link command; also delete a directory that is
  1780. # left behind by Apple's compiler. We do this before executing the actions.
  1781. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1782. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1783. as_fn_set_status $ac_retval
  1784. } # ac_fn_c_try_link
  1785. # ac_fn_c_check_func LINENO FUNC VAR
  1786. # ----------------------------------
  1787. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1788. ac_fn_c_check_func ()
  1789. {
  1790. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1792. $as_echo_n "checking for $2... " >&6; }
  1793. if eval \${$3+:} false; then :
  1794. $as_echo_n "(cached) " >&6
  1795. else
  1796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1797. /* end confdefs.h. */
  1798. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1799. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1800. #define $2 innocuous_$2
  1801. /* System header to define __stub macros and hopefully few prototypes,
  1802. which can conflict with char $2 (); below.
  1803. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1804. <limits.h> exists even on freestanding compilers. */
  1805. #ifdef __STDC__
  1806. # include <limits.h>
  1807. #else
  1808. # include <assert.h>
  1809. #endif
  1810. #undef $2
  1811. /* Override any GCC internal prototype to avoid an error.
  1812. Use char because int might match the return type of a GCC
  1813. builtin and then its argument prototype would still apply. */
  1814. #ifdef __cplusplus
  1815. extern "C"
  1816. #endif
  1817. char $2 ();
  1818. /* The GNU C library defines this for functions which it implements
  1819. to always fail with ENOSYS. Some functions are actually named
  1820. something starting with __ and the normal name is an alias. */
  1821. #if defined __stub_$2 || defined __stub___$2
  1822. choke me
  1823. #endif
  1824. int
  1825. main ()
  1826. {
  1827. return $2 ();
  1828. ;
  1829. return 0;
  1830. }
  1831. _ACEOF
  1832. if ac_fn_c_try_link "$LINENO"; then :
  1833. eval "$3=yes"
  1834. else
  1835. eval "$3=no"
  1836. fi
  1837. rm -f core conftest.err conftest.$ac_objext \
  1838. conftest$ac_exeext conftest.$ac_ext
  1839. fi
  1840. eval ac_res=\$$3
  1841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1842. $as_echo "$ac_res" >&6; }
  1843. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1844. } # ac_fn_c_check_func
  1845. # ac_fn_cxx_try_cpp LINENO
  1846. # ------------------------
  1847. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1848. ac_fn_cxx_try_cpp ()
  1849. {
  1850. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1851. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1852. case "(($ac_try" in
  1853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1854. *) ac_try_echo=$ac_try;;
  1855. esac
  1856. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1857. $as_echo "$ac_try_echo"; } >&5
  1858. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1859. ac_status=$?
  1860. if test -s conftest.err; then
  1861. grep -v '^ *+' conftest.err >conftest.er1
  1862. cat conftest.er1 >&5
  1863. mv -f conftest.er1 conftest.err
  1864. fi
  1865. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1866. test $ac_status = 0; } > conftest.i && {
  1867. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1868. test ! -s conftest.err
  1869. }; then :
  1870. ac_retval=0
  1871. else
  1872. $as_echo "$as_me: failed program was:" >&5
  1873. sed 's/^/| /' conftest.$ac_ext >&5
  1874. ac_retval=1
  1875. fi
  1876. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1877. as_fn_set_status $ac_retval
  1878. } # ac_fn_cxx_try_cpp
  1879. # ac_fn_cxx_try_link LINENO
  1880. # -------------------------
  1881. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1882. ac_fn_cxx_try_link ()
  1883. {
  1884. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1885. rm -f conftest.$ac_objext conftest$ac_exeext
  1886. if { { ac_try="$ac_link"
  1887. case "(($ac_try" in
  1888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1889. *) ac_try_echo=$ac_try;;
  1890. esac
  1891. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1892. $as_echo "$ac_try_echo"; } >&5
  1893. (eval "$ac_link") 2>conftest.err
  1894. ac_status=$?
  1895. if test -s conftest.err; then
  1896. grep -v '^ *+' conftest.err >conftest.er1
  1897. cat conftest.er1 >&5
  1898. mv -f conftest.er1 conftest.err
  1899. fi
  1900. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1901. test $ac_status = 0; } && {
  1902. test -z "$ac_cxx_werror_flag" ||
  1903. test ! -s conftest.err
  1904. } && test -s conftest$ac_exeext && {
  1905. test "$cross_compiling" = yes ||
  1906. test -x conftest$ac_exeext
  1907. }; then :
  1908. ac_retval=0
  1909. else
  1910. $as_echo "$as_me: failed program was:" >&5
  1911. sed 's/^/| /' conftest.$ac_ext >&5
  1912. ac_retval=1
  1913. fi
  1914. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1915. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1916. # interfere with the next link command; also delete a directory that is
  1917. # left behind by Apple's compiler. We do this before executing the actions.
  1918. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1919. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1920. as_fn_set_status $ac_retval
  1921. } # ac_fn_cxx_try_link
  1922. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1923. # --------------------------------------------
  1924. # Tries to find the compile-time value of EXPR in a program that includes
  1925. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1926. # computed
  1927. ac_fn_c_compute_int ()
  1928. {
  1929. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1930. if test "$cross_compiling" = yes; then
  1931. # Depending upon the size, compute the lo and hi bounds.
  1932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1933. /* end confdefs.h. */
  1934. $4
  1935. int
  1936. main ()
  1937. {
  1938. static int test_array [1 - 2 * !(($2) >= 0)];
  1939. test_array [0] = 0;
  1940. return test_array [0];
  1941. ;
  1942. return 0;
  1943. }
  1944. _ACEOF
  1945. if ac_fn_c_try_compile "$LINENO"; then :
  1946. ac_lo=0 ac_mid=0
  1947. while :; do
  1948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1949. /* end confdefs.h. */
  1950. $4
  1951. int
  1952. main ()
  1953. {
  1954. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1955. test_array [0] = 0;
  1956. return test_array [0];
  1957. ;
  1958. return 0;
  1959. }
  1960. _ACEOF
  1961. if ac_fn_c_try_compile "$LINENO"; then :
  1962. ac_hi=$ac_mid; break
  1963. else
  1964. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1965. if test $ac_lo -le $ac_mid; then
  1966. ac_lo= ac_hi=
  1967. break
  1968. fi
  1969. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1970. fi
  1971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1972. done
  1973. else
  1974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1975. /* end confdefs.h. */
  1976. $4
  1977. int
  1978. main ()
  1979. {
  1980. static int test_array [1 - 2 * !(($2) < 0)];
  1981. test_array [0] = 0;
  1982. return test_array [0];
  1983. ;
  1984. return 0;
  1985. }
  1986. _ACEOF
  1987. if ac_fn_c_try_compile "$LINENO"; then :
  1988. ac_hi=-1 ac_mid=-1
  1989. while :; do
  1990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1991. /* end confdefs.h. */
  1992. $4
  1993. int
  1994. main ()
  1995. {
  1996. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1997. test_array [0] = 0;
  1998. return test_array [0];
  1999. ;
  2000. return 0;
  2001. }
  2002. _ACEOF
  2003. if ac_fn_c_try_compile "$LINENO"; then :
  2004. ac_lo=$ac_mid; break
  2005. else
  2006. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2007. if test $ac_mid -le $ac_hi; then
  2008. ac_lo= ac_hi=
  2009. break
  2010. fi
  2011. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2012. fi
  2013. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2014. done
  2015. else
  2016. ac_lo= ac_hi=
  2017. fi
  2018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2019. fi
  2020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2021. # Binary search between lo and hi bounds.
  2022. while test "x$ac_lo" != "x$ac_hi"; do
  2023. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2025. /* end confdefs.h. */
  2026. $4
  2027. int
  2028. main ()
  2029. {
  2030. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2031. test_array [0] = 0;
  2032. return test_array [0];
  2033. ;
  2034. return 0;
  2035. }
  2036. _ACEOF
  2037. if ac_fn_c_try_compile "$LINENO"; then :
  2038. ac_hi=$ac_mid
  2039. else
  2040. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2041. fi
  2042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2043. done
  2044. case $ac_lo in #((
  2045. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2046. '') ac_retval=1 ;;
  2047. esac
  2048. else
  2049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2050. /* end confdefs.h. */
  2051. $4
  2052. static long int longval () { return $2; }
  2053. static unsigned long int ulongval () { return $2; }
  2054. #include <stdio.h>
  2055. #include <stdlib.h>
  2056. int
  2057. main ()
  2058. {
  2059. FILE *f = fopen ("conftest.val", "w");
  2060. if (! f)
  2061. return 1;
  2062. if (($2) < 0)
  2063. {
  2064. long int i = longval ();
  2065. if (i != ($2))
  2066. return 1;
  2067. fprintf (f, "%ld", i);
  2068. }
  2069. else
  2070. {
  2071. unsigned long int i = ulongval ();
  2072. if (i != ($2))
  2073. return 1;
  2074. fprintf (f, "%lu", i);
  2075. }
  2076. /* Do not output a trailing newline, as this causes \r\n confusion
  2077. on some platforms. */
  2078. return ferror (f) || fclose (f) != 0;
  2079. ;
  2080. return 0;
  2081. }
  2082. _ACEOF
  2083. if ac_fn_c_try_run "$LINENO"; then :
  2084. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2085. else
  2086. ac_retval=1
  2087. fi
  2088. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2089. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2090. rm -f conftest.val
  2091. fi
  2092. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2093. as_fn_set_status $ac_retval
  2094. } # ac_fn_c_compute_int
  2095. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2096. # ---------------------------------------------
  2097. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2098. # accordingly.
  2099. ac_fn_c_check_decl ()
  2100. {
  2101. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2102. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2103. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2105. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2106. if eval \${$3+:} false; then :
  2107. $as_echo_n "(cached) " >&6
  2108. else
  2109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2110. /* end confdefs.h. */
  2111. $4
  2112. int
  2113. main ()
  2114. {
  2115. #ifndef $as_decl_name
  2116. #ifdef __cplusplus
  2117. (void) $as_decl_use;
  2118. #else
  2119. (void) $as_decl_name;
  2120. #endif
  2121. #endif
  2122. ;
  2123. return 0;
  2124. }
  2125. _ACEOF
  2126. if ac_fn_c_try_compile "$LINENO"; then :
  2127. eval "$3=yes"
  2128. else
  2129. eval "$3=no"
  2130. fi
  2131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2132. fi
  2133. eval ac_res=\$$3
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2135. $as_echo "$ac_res" >&6; }
  2136. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2137. } # ac_fn_c_check_decl
  2138. cat >config.log <<_ACEOF
  2139. This file contains any messages produced by compilers while
  2140. running configure, to aid debugging if configure makes a mistake.
  2141. It was created by ld $as_me 2.38.50, which was
  2142. generated by GNU Autoconf 2.69. Invocation command line was
  2143. $ $0 $@
  2144. _ACEOF
  2145. exec 5>>config.log
  2146. {
  2147. cat <<_ASUNAME
  2148. ## --------- ##
  2149. ## Platform. ##
  2150. ## --------- ##
  2151. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2152. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2153. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2154. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2155. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2156. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2157. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2158. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2159. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2160. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2161. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2162. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2163. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2164. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2165. _ASUNAME
  2166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2167. for as_dir in $PATH
  2168. do
  2169. IFS=$as_save_IFS
  2170. test -z "$as_dir" && as_dir=.
  2171. $as_echo "PATH: $as_dir"
  2172. done
  2173. IFS=$as_save_IFS
  2174. } >&5
  2175. cat >&5 <<_ACEOF
  2176. ## ----------- ##
  2177. ## Core tests. ##
  2178. ## ----------- ##
  2179. _ACEOF
  2180. # Keep a trace of the command line.
  2181. # Strip out --no-create and --no-recursion so they do not pile up.
  2182. # Strip out --silent because we don't want to record it for future runs.
  2183. # Also quote any args containing shell meta-characters.
  2184. # Make two passes to allow for proper duplicate-argument suppression.
  2185. ac_configure_args=
  2186. ac_configure_args0=
  2187. ac_configure_args1=
  2188. ac_must_keep_next=false
  2189. for ac_pass in 1 2
  2190. do
  2191. for ac_arg
  2192. do
  2193. case $ac_arg in
  2194. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2195. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2196. | -silent | --silent | --silen | --sile | --sil)
  2197. continue ;;
  2198. *\'*)
  2199. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2200. esac
  2201. case $ac_pass in
  2202. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2203. 2)
  2204. as_fn_append ac_configure_args1 " '$ac_arg'"
  2205. if test $ac_must_keep_next = true; then
  2206. ac_must_keep_next=false # Got value, back to normal.
  2207. else
  2208. case $ac_arg in
  2209. *=* | --config-cache | -C | -disable-* | --disable-* \
  2210. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2211. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2212. | -with-* | --with-* | -without-* | --without-* | --x)
  2213. case "$ac_configure_args0 " in
  2214. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2215. esac
  2216. ;;
  2217. -* ) ac_must_keep_next=true ;;
  2218. esac
  2219. fi
  2220. as_fn_append ac_configure_args " '$ac_arg'"
  2221. ;;
  2222. esac
  2223. done
  2224. done
  2225. { ac_configure_args0=; unset ac_configure_args0;}
  2226. { ac_configure_args1=; unset ac_configure_args1;}
  2227. # When interrupted or exit'd, cleanup temporary files, and complete
  2228. # config.log. We remove comments because anyway the quotes in there
  2229. # would cause problems or look ugly.
  2230. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2231. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2232. trap 'exit_status=$?
  2233. # Save into config.log some information that might help in debugging.
  2234. {
  2235. echo
  2236. $as_echo "## ---------------- ##
  2237. ## Cache variables. ##
  2238. ## ---------------- ##"
  2239. echo
  2240. # The following way of writing the cache mishandles newlines in values,
  2241. (
  2242. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2243. eval ac_val=\$$ac_var
  2244. case $ac_val in #(
  2245. *${as_nl}*)
  2246. case $ac_var in #(
  2247. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2248. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2249. esac
  2250. case $ac_var in #(
  2251. _ | IFS | as_nl) ;; #(
  2252. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2253. *) { eval $ac_var=; unset $ac_var;} ;;
  2254. esac ;;
  2255. esac
  2256. done
  2257. (set) 2>&1 |
  2258. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2259. *${as_nl}ac_space=\ *)
  2260. sed -n \
  2261. "s/'\''/'\''\\\\'\'''\''/g;
  2262. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2263. ;; #(
  2264. *)
  2265. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2266. ;;
  2267. esac |
  2268. sort
  2269. )
  2270. echo
  2271. $as_echo "## ----------------- ##
  2272. ## Output variables. ##
  2273. ## ----------------- ##"
  2274. echo
  2275. for ac_var in $ac_subst_vars
  2276. do
  2277. eval ac_val=\$$ac_var
  2278. case $ac_val in
  2279. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2280. esac
  2281. $as_echo "$ac_var='\''$ac_val'\''"
  2282. done | sort
  2283. echo
  2284. if test -n "$ac_subst_files"; then
  2285. $as_echo "## ------------------- ##
  2286. ## File substitutions. ##
  2287. ## ------------------- ##"
  2288. echo
  2289. for ac_var in $ac_subst_files
  2290. do
  2291. eval ac_val=\$$ac_var
  2292. case $ac_val in
  2293. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2294. esac
  2295. $as_echo "$ac_var='\''$ac_val'\''"
  2296. done | sort
  2297. echo
  2298. fi
  2299. if test -s confdefs.h; then
  2300. $as_echo "## ----------- ##
  2301. ## confdefs.h. ##
  2302. ## ----------- ##"
  2303. echo
  2304. cat confdefs.h
  2305. echo
  2306. fi
  2307. test "$ac_signal" != 0 &&
  2308. $as_echo "$as_me: caught signal $ac_signal"
  2309. $as_echo "$as_me: exit $exit_status"
  2310. } >&5
  2311. rm -f core *.core core.conftest.* &&
  2312. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2313. exit $exit_status
  2314. ' 0
  2315. for ac_signal in 1 2 13 15; do
  2316. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2317. done
  2318. ac_signal=0
  2319. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2320. rm -f -r conftest* confdefs.h
  2321. $as_echo "/* confdefs.h */" > confdefs.h
  2322. # Predefined preprocessor variables.
  2323. cat >>confdefs.h <<_ACEOF
  2324. #define PACKAGE_NAME "$PACKAGE_NAME"
  2325. _ACEOF
  2326. cat >>confdefs.h <<_ACEOF
  2327. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2328. _ACEOF
  2329. cat >>confdefs.h <<_ACEOF
  2330. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2331. _ACEOF
  2332. cat >>confdefs.h <<_ACEOF
  2333. #define PACKAGE_STRING "$PACKAGE_STRING"
  2334. _ACEOF
  2335. cat >>confdefs.h <<_ACEOF
  2336. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2337. _ACEOF
  2338. cat >>confdefs.h <<_ACEOF
  2339. #define PACKAGE_URL "$PACKAGE_URL"
  2340. _ACEOF
  2341. # Let the site file select an alternate cache file if it wants to.
  2342. # Prefer an explicitly selected file to automatically selected ones.
  2343. ac_site_file1=NONE
  2344. ac_site_file2=NONE
  2345. if test -n "$CONFIG_SITE"; then
  2346. # We do not want a PATH search for config.site.
  2347. case $CONFIG_SITE in #((
  2348. -*) ac_site_file1=./$CONFIG_SITE;;
  2349. */*) ac_site_file1=$CONFIG_SITE;;
  2350. *) ac_site_file1=./$CONFIG_SITE;;
  2351. esac
  2352. elif test "x$prefix" != xNONE; then
  2353. ac_site_file1=$prefix/share/config.site
  2354. ac_site_file2=$prefix/etc/config.site
  2355. else
  2356. ac_site_file1=$ac_default_prefix/share/config.site
  2357. ac_site_file2=$ac_default_prefix/etc/config.site
  2358. fi
  2359. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2360. do
  2361. test "x$ac_site_file" = xNONE && continue
  2362. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2364. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2365. sed 's/^/| /' "$ac_site_file" >&5
  2366. . "$ac_site_file" \
  2367. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2368. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2369. as_fn_error $? "failed to load site script $ac_site_file
  2370. See \`config.log' for more details" "$LINENO" 5; }
  2371. fi
  2372. done
  2373. if test -r "$cache_file"; then
  2374. # Some versions of bash will fail to source /dev/null (special files
  2375. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2376. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2377. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2378. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2379. case $cache_file in
  2380. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2381. *) . "./$cache_file";;
  2382. esac
  2383. fi
  2384. else
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2386. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2387. >$cache_file
  2388. fi
  2389. as_fn_append ac_header_list " stdlib.h"
  2390. as_fn_append ac_header_list " unistd.h"
  2391. as_fn_append ac_header_list " sys/param.h"
  2392. # Check that the precious variables saved in the cache have kept the same
  2393. # value.
  2394. ac_cache_corrupted=false
  2395. for ac_var in $ac_precious_vars; do
  2396. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2397. eval ac_new_set=\$ac_env_${ac_var}_set
  2398. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2399. eval ac_new_val=\$ac_env_${ac_var}_value
  2400. case $ac_old_set,$ac_new_set in
  2401. set,)
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2403. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2404. ac_cache_corrupted=: ;;
  2405. ,set)
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2407. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2408. ac_cache_corrupted=: ;;
  2409. ,);;
  2410. *)
  2411. if test "x$ac_old_val" != "x$ac_new_val"; then
  2412. # differences in whitespace do not lead to failure.
  2413. ac_old_val_w=`echo x $ac_old_val`
  2414. ac_new_val_w=`echo x $ac_new_val`
  2415. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2416. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2417. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2418. ac_cache_corrupted=:
  2419. else
  2420. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2421. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2422. eval $ac_var=\$ac_old_val
  2423. fi
  2424. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2425. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2426. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2427. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2428. fi;;
  2429. esac
  2430. # Pass precious variables to config.status.
  2431. if test "$ac_new_set" = set; then
  2432. case $ac_new_val in
  2433. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2434. *) ac_arg=$ac_var=$ac_new_val ;;
  2435. esac
  2436. case " $ac_configure_args " in
  2437. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2438. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2439. esac
  2440. fi
  2441. done
  2442. if $ac_cache_corrupted; then
  2443. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2444. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2445. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2446. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2447. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2448. fi
  2449. ## -------------------- ##
  2450. ## Main body of script. ##
  2451. ## -------------------- ##
  2452. ac_ext=c
  2453. ac_cpp='$CPP $CPPFLAGS'
  2454. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2455. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2456. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2457. ac_aux_dir=
  2458. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2459. if test -f "$ac_dir/install-sh"; then
  2460. ac_aux_dir=$ac_dir
  2461. ac_install_sh="$ac_aux_dir/install-sh -c"
  2462. break
  2463. elif test -f "$ac_dir/install.sh"; then
  2464. ac_aux_dir=$ac_dir
  2465. ac_install_sh="$ac_aux_dir/install.sh -c"
  2466. break
  2467. elif test -f "$ac_dir/shtool"; then
  2468. ac_aux_dir=$ac_dir
  2469. ac_install_sh="$ac_aux_dir/shtool install -c"
  2470. break
  2471. fi
  2472. done
  2473. if test -z "$ac_aux_dir"; then
  2474. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2475. fi
  2476. # These three variables are undocumented and unsupported,
  2477. # and are intended to be withdrawn in a future Autoconf release.
  2478. # They can cause serious problems if a builder's source tree is in a directory
  2479. # whose full name contains unusual characters.
  2480. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2481. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2482. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2483. # Make sure we can run config.sub.
  2484. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2485. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2487. $as_echo_n "checking build system type... " >&6; }
  2488. if ${ac_cv_build+:} false; then :
  2489. $as_echo_n "(cached) " >&6
  2490. else
  2491. ac_build_alias=$build_alias
  2492. test "x$ac_build_alias" = x &&
  2493. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2494. test "x$ac_build_alias" = x &&
  2495. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2496. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2497. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2498. fi
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2500. $as_echo "$ac_cv_build" >&6; }
  2501. case $ac_cv_build in
  2502. *-*-*) ;;
  2503. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2504. esac
  2505. build=$ac_cv_build
  2506. ac_save_IFS=$IFS; IFS='-'
  2507. set x $ac_cv_build
  2508. shift
  2509. build_cpu=$1
  2510. build_vendor=$2
  2511. shift; shift
  2512. # Remember, the first character of IFS is used to create $*,
  2513. # except with old shells:
  2514. build_os=$*
  2515. IFS=$ac_save_IFS
  2516. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2518. $as_echo_n "checking host system type... " >&6; }
  2519. if ${ac_cv_host+:} false; then :
  2520. $as_echo_n "(cached) " >&6
  2521. else
  2522. if test "x$host_alias" = x; then
  2523. ac_cv_host=$ac_cv_build
  2524. else
  2525. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2526. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2527. fi
  2528. fi
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2530. $as_echo "$ac_cv_host" >&6; }
  2531. case $ac_cv_host in
  2532. *-*-*) ;;
  2533. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2534. esac
  2535. host=$ac_cv_host
  2536. ac_save_IFS=$IFS; IFS='-'
  2537. set x $ac_cv_host
  2538. shift
  2539. host_cpu=$1
  2540. host_vendor=$2
  2541. shift; shift
  2542. # Remember, the first character of IFS is used to create $*,
  2543. # except with old shells:
  2544. host_os=$*
  2545. IFS=$ac_save_IFS
  2546. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2548. $as_echo_n "checking target system type... " >&6; }
  2549. if ${ac_cv_target+:} false; then :
  2550. $as_echo_n "(cached) " >&6
  2551. else
  2552. if test "x$target_alias" = x; then
  2553. ac_cv_target=$ac_cv_host
  2554. else
  2555. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2556. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2557. fi
  2558. fi
  2559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2560. $as_echo "$ac_cv_target" >&6; }
  2561. case $ac_cv_target in
  2562. *-*-*) ;;
  2563. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2564. esac
  2565. target=$ac_cv_target
  2566. ac_save_IFS=$IFS; IFS='-'
  2567. set x $ac_cv_target
  2568. shift
  2569. target_cpu=$1
  2570. target_vendor=$2
  2571. shift; shift
  2572. # Remember, the first character of IFS is used to create $*,
  2573. # except with old shells:
  2574. target_os=$*
  2575. IFS=$ac_save_IFS
  2576. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2577. # The aliases save the names the user supplied, while $host etc.
  2578. # will get canonicalized.
  2579. test -n "$target_alias" &&
  2580. test "$program_prefix$program_suffix$program_transform_name" = \
  2581. NONENONEs,x,x, &&
  2582. program_prefix=${target_alias}-
  2583. am__api_version='1.15'
  2584. # Find a good install program. We prefer a C program (faster),
  2585. # so one script is as good as another. But avoid the broken or
  2586. # incompatible versions:
  2587. # SysV /etc/install, /usr/sbin/install
  2588. # SunOS /usr/etc/install
  2589. # IRIX /sbin/install
  2590. # AIX /bin/install
  2591. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2592. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2593. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2594. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2595. # OS/2's system install, which has a completely different semantic
  2596. # ./install, which can be erroneously created by make from ./install.sh.
  2597. # Reject install programs that cannot install multiple files.
  2598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2599. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2600. if test -z "$INSTALL"; then
  2601. if ${ac_cv_path_install+:} false; then :
  2602. $as_echo_n "(cached) " >&6
  2603. else
  2604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2605. for as_dir in $PATH
  2606. do
  2607. IFS=$as_save_IFS
  2608. test -z "$as_dir" && as_dir=.
  2609. # Account for people who put trailing slashes in PATH elements.
  2610. case $as_dir/ in #((
  2611. ./ | .// | /[cC]/* | \
  2612. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2613. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2614. /usr/ucb/* ) ;;
  2615. *)
  2616. # OSF1 and SCO ODT 3.0 have their own names for install.
  2617. # Don't use installbsd from OSF since it installs stuff as root
  2618. # by default.
  2619. for ac_prog in ginstall scoinst install; do
  2620. for ac_exec_ext in '' $ac_executable_extensions; do
  2621. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2622. if test $ac_prog = install &&
  2623. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2624. # AIX install. It has an incompatible calling convention.
  2625. :
  2626. elif test $ac_prog = install &&
  2627. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2628. # program-specific install script used by HP pwplus--don't use.
  2629. :
  2630. else
  2631. rm -rf conftest.one conftest.two conftest.dir
  2632. echo one > conftest.one
  2633. echo two > conftest.two
  2634. mkdir conftest.dir
  2635. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2636. test -s conftest.one && test -s conftest.two &&
  2637. test -s conftest.dir/conftest.one &&
  2638. test -s conftest.dir/conftest.two
  2639. then
  2640. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2641. break 3
  2642. fi
  2643. fi
  2644. fi
  2645. done
  2646. done
  2647. ;;
  2648. esac
  2649. done
  2650. IFS=$as_save_IFS
  2651. rm -rf conftest.one conftest.two conftest.dir
  2652. fi
  2653. if test "${ac_cv_path_install+set}" = set; then
  2654. INSTALL=$ac_cv_path_install
  2655. else
  2656. # As a last resort, use the slow shell script. Don't cache a
  2657. # value for INSTALL within a source directory, because that will
  2658. # break other packages using the cache if that directory is
  2659. # removed, or if the value is a relative name.
  2660. INSTALL=$ac_install_sh
  2661. fi
  2662. fi
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2664. $as_echo "$INSTALL" >&6; }
  2665. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2666. # It thinks the first close brace ends the variable substitution.
  2667. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2668. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2669. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2671. $as_echo_n "checking whether build environment is sane... " >&6; }
  2672. # Reject unsafe characters in $srcdir or the absolute working directory
  2673. # name. Accept space and tab only in the latter.
  2674. am_lf='
  2675. '
  2676. case `pwd` in
  2677. *[\\\"\#\$\&\'\`$am_lf]*)
  2678. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2679. esac
  2680. case $srcdir in
  2681. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2682. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2683. esac
  2684. # Do 'set' in a subshell so we don't clobber the current shell's
  2685. # arguments. Must try -L first in case configure is actually a
  2686. # symlink; some systems play weird games with the mod time of symlinks
  2687. # (eg FreeBSD returns the mod time of the symlink's containing
  2688. # directory).
  2689. if (
  2690. am_has_slept=no
  2691. for am_try in 1 2; do
  2692. echo "timestamp, slept: $am_has_slept" > conftest.file
  2693. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2694. if test "$*" = "X"; then
  2695. # -L didn't work.
  2696. set X `ls -t "$srcdir/configure" conftest.file`
  2697. fi
  2698. if test "$*" != "X $srcdir/configure conftest.file" \
  2699. && test "$*" != "X conftest.file $srcdir/configure"; then
  2700. # If neither matched, then we have a broken ls. This can happen
  2701. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2702. # broken ls alias from the environment. This has actually
  2703. # happened. Such a system could not be considered "sane".
  2704. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2705. alias in your environment" "$LINENO" 5
  2706. fi
  2707. if test "$2" = conftest.file || test $am_try -eq 2; then
  2708. break
  2709. fi
  2710. # Just in case.
  2711. sleep 1
  2712. am_has_slept=yes
  2713. done
  2714. test "$2" = conftest.file
  2715. )
  2716. then
  2717. # Ok.
  2718. :
  2719. else
  2720. as_fn_error $? "newly created file is older than distributed files!
  2721. Check your system clock" "$LINENO" 5
  2722. fi
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2724. $as_echo "yes" >&6; }
  2725. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2726. # generated files are strictly newer.
  2727. am_sleep_pid=
  2728. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2729. ( sleep 1 ) &
  2730. am_sleep_pid=$!
  2731. fi
  2732. rm -f conftest.file
  2733. test "$program_prefix" != NONE &&
  2734. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2735. # Use a double $ so make ignores it.
  2736. test "$program_suffix" != NONE &&
  2737. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2738. # Double any \ or $.
  2739. # By default was `s,x,x', remove it if useless.
  2740. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2741. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2742. # Expand $ac_aux_dir to an absolute path.
  2743. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2744. if test x"${MISSING+set}" != xset; then
  2745. case $am_aux_dir in
  2746. *\ * | *\ *)
  2747. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2748. *)
  2749. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2750. esac
  2751. fi
  2752. # Use eval to expand $SHELL
  2753. if eval "$MISSING --is-lightweight"; then
  2754. am_missing_run="$MISSING "
  2755. else
  2756. am_missing_run=
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2758. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2759. fi
  2760. if test x"${install_sh+set}" != xset; then
  2761. case $am_aux_dir in
  2762. *\ * | *\ *)
  2763. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2764. *)
  2765. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2766. esac
  2767. fi
  2768. # Installed binaries are usually stripped using 'strip' when the user
  2769. # run "make install-strip". However 'strip' might not be the right
  2770. # tool to use in cross-compilation environments, therefore Automake
  2771. # will honor the 'STRIP' environment variable to overrule this program.
  2772. if test "$cross_compiling" != no; then
  2773. if test -n "$ac_tool_prefix"; then
  2774. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2775. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2777. $as_echo_n "checking for $ac_word... " >&6; }
  2778. if ${ac_cv_prog_STRIP+:} false; then :
  2779. $as_echo_n "(cached) " >&6
  2780. else
  2781. if test -n "$STRIP"; then
  2782. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2783. else
  2784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2785. for as_dir in $PATH
  2786. do
  2787. IFS=$as_save_IFS
  2788. test -z "$as_dir" && as_dir=.
  2789. for ac_exec_ext in '' $ac_executable_extensions; do
  2790. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2791. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2792. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2793. break 2
  2794. fi
  2795. done
  2796. done
  2797. IFS=$as_save_IFS
  2798. fi
  2799. fi
  2800. STRIP=$ac_cv_prog_STRIP
  2801. if test -n "$STRIP"; then
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2803. $as_echo "$STRIP" >&6; }
  2804. else
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2806. $as_echo "no" >&6; }
  2807. fi
  2808. fi
  2809. if test -z "$ac_cv_prog_STRIP"; then
  2810. ac_ct_STRIP=$STRIP
  2811. # Extract the first word of "strip", so it can be a program name with args.
  2812. set dummy strip; ac_word=$2
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2814. $as_echo_n "checking for $ac_word... " >&6; }
  2815. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2816. $as_echo_n "(cached) " >&6
  2817. else
  2818. if test -n "$ac_ct_STRIP"; then
  2819. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2820. else
  2821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2822. for as_dir in $PATH
  2823. do
  2824. IFS=$as_save_IFS
  2825. test -z "$as_dir" && as_dir=.
  2826. for ac_exec_ext in '' $ac_executable_extensions; do
  2827. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2828. ac_cv_prog_ac_ct_STRIP="strip"
  2829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2830. break 2
  2831. fi
  2832. done
  2833. done
  2834. IFS=$as_save_IFS
  2835. fi
  2836. fi
  2837. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2838. if test -n "$ac_ct_STRIP"; then
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2840. $as_echo "$ac_ct_STRIP" >&6; }
  2841. else
  2842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2843. $as_echo "no" >&6; }
  2844. fi
  2845. if test "x$ac_ct_STRIP" = x; then
  2846. STRIP=":"
  2847. else
  2848. case $cross_compiling:$ac_tool_warned in
  2849. yes:)
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2851. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2852. ac_tool_warned=yes ;;
  2853. esac
  2854. STRIP=$ac_ct_STRIP
  2855. fi
  2856. else
  2857. STRIP="$ac_cv_prog_STRIP"
  2858. fi
  2859. fi
  2860. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2862. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2863. if test -z "$MKDIR_P"; then
  2864. if ${ac_cv_path_mkdir+:} false; then :
  2865. $as_echo_n "(cached) " >&6
  2866. else
  2867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2868. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2869. do
  2870. IFS=$as_save_IFS
  2871. test -z "$as_dir" && as_dir=.
  2872. for ac_prog in mkdir gmkdir; do
  2873. for ac_exec_ext in '' $ac_executable_extensions; do
  2874. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2875. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2876. 'mkdir (GNU coreutils) '* | \
  2877. 'mkdir (coreutils) '* | \
  2878. 'mkdir (fileutils) '4.1*)
  2879. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2880. break 3;;
  2881. esac
  2882. done
  2883. done
  2884. done
  2885. IFS=$as_save_IFS
  2886. fi
  2887. test -d ./--version && rmdir ./--version
  2888. if test "${ac_cv_path_mkdir+set}" = set; then
  2889. MKDIR_P="$ac_cv_path_mkdir -p"
  2890. else
  2891. # As a last resort, use the slow shell script. Don't cache a
  2892. # value for MKDIR_P within a source directory, because that will
  2893. # break other packages using the cache if that directory is
  2894. # removed, or if the value is a relative name.
  2895. MKDIR_P="$ac_install_sh -d"
  2896. fi
  2897. fi
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2899. $as_echo "$MKDIR_P" >&6; }
  2900. for ac_prog in gawk mawk nawk awk
  2901. do
  2902. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2903. set dummy $ac_prog; ac_word=$2
  2904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2905. $as_echo_n "checking for $ac_word... " >&6; }
  2906. if ${ac_cv_prog_AWK+:} false; then :
  2907. $as_echo_n "(cached) " >&6
  2908. else
  2909. if test -n "$AWK"; then
  2910. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2911. else
  2912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2913. for as_dir in $PATH
  2914. do
  2915. IFS=$as_save_IFS
  2916. test -z "$as_dir" && as_dir=.
  2917. for ac_exec_ext in '' $ac_executable_extensions; do
  2918. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2919. ac_cv_prog_AWK="$ac_prog"
  2920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2921. break 2
  2922. fi
  2923. done
  2924. done
  2925. IFS=$as_save_IFS
  2926. fi
  2927. fi
  2928. AWK=$ac_cv_prog_AWK
  2929. if test -n "$AWK"; then
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2931. $as_echo "$AWK" >&6; }
  2932. else
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2934. $as_echo "no" >&6; }
  2935. fi
  2936. test -n "$AWK" && break
  2937. done
  2938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2939. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2940. set x ${MAKE-make}
  2941. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2942. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2943. $as_echo_n "(cached) " >&6
  2944. else
  2945. cat >conftest.make <<\_ACEOF
  2946. SHELL = /bin/sh
  2947. all:
  2948. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2949. _ACEOF
  2950. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2951. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2952. *@@@%%%=?*=@@@%%%*)
  2953. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2954. *)
  2955. eval ac_cv_prog_make_${ac_make}_set=no;;
  2956. esac
  2957. rm -f conftest.make
  2958. fi
  2959. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2961. $as_echo "yes" >&6; }
  2962. SET_MAKE=
  2963. else
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2965. $as_echo "no" >&6; }
  2966. SET_MAKE="MAKE=${MAKE-make}"
  2967. fi
  2968. rm -rf .tst 2>/dev/null
  2969. mkdir .tst 2>/dev/null
  2970. if test -d .tst; then
  2971. am__leading_dot=.
  2972. else
  2973. am__leading_dot=_
  2974. fi
  2975. rmdir .tst 2>/dev/null
  2976. # Check whether --enable-silent-rules was given.
  2977. if test "${enable_silent_rules+set}" = set; then :
  2978. enableval=$enable_silent_rules;
  2979. fi
  2980. case $enable_silent_rules in # (((
  2981. yes) AM_DEFAULT_VERBOSITY=0;;
  2982. no) AM_DEFAULT_VERBOSITY=1;;
  2983. *) AM_DEFAULT_VERBOSITY=1;;
  2984. esac
  2985. am_make=${MAKE-make}
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2987. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2988. if ${am_cv_make_support_nested_variables+:} false; then :
  2989. $as_echo_n "(cached) " >&6
  2990. else
  2991. if $as_echo 'TRUE=$(BAR$(V))
  2992. BAR0=false
  2993. BAR1=true
  2994. V=1
  2995. am__doit:
  2996. @$(TRUE)
  2997. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2998. am_cv_make_support_nested_variables=yes
  2999. else
  3000. am_cv_make_support_nested_variables=no
  3001. fi
  3002. fi
  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3004. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3005. if test $am_cv_make_support_nested_variables = yes; then
  3006. AM_V='$(V)'
  3007. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3008. else
  3009. AM_V=$AM_DEFAULT_VERBOSITY
  3010. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3011. fi
  3012. AM_BACKSLASH='\'
  3013. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3014. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3015. # is not polluted with repeated "-I."
  3016. am__isrc=' -I$(srcdir)'
  3017. # test to see if srcdir already configured
  3018. if test -f $srcdir/config.status; then
  3019. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3020. fi
  3021. fi
  3022. # test whether we have cygpath
  3023. if test -z "$CYGPATH_W"; then
  3024. if (cygpath --version) >/dev/null 2>/dev/null; then
  3025. CYGPATH_W='cygpath -w'
  3026. else
  3027. CYGPATH_W=echo
  3028. fi
  3029. fi
  3030. # Define the identity of the package.
  3031. PACKAGE='ld'
  3032. VERSION='2.38.50'
  3033. cat >>confdefs.h <<_ACEOF
  3034. #define PACKAGE "$PACKAGE"
  3035. _ACEOF
  3036. cat >>confdefs.h <<_ACEOF
  3037. #define VERSION "$VERSION"
  3038. _ACEOF
  3039. # Some tools Automake needs.
  3040. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3041. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3042. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3043. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3044. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3045. # For better backward compatibility. To be removed once Automake 1.9.x
  3046. # dies out for good. For more background, see:
  3047. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3048. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3049. mkdir_p='$(MKDIR_P)'
  3050. # We need awk for the "check" target (and possibly the TAP driver). The
  3051. # system "awk" is bad on some platforms.
  3052. # Always define AMTAR for backward compatibility. Yes, it's still used
  3053. # in the wild :-( We should find a proper way to deprecate it ...
  3054. AMTAR='$${TAR-tar}'
  3055. # We'll loop over all known methods to create a tar archive until one works.
  3056. _am_tools='gnutar pax cpio none'
  3057. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3058. # POSIX will say in a future version that running "rm -f" with no argument
  3059. # is OK; and we want to be able to make that assumption in our Makefile
  3060. # recipes. So use an aggressive probe to check that the usage we want is
  3061. # actually supported "in the wild" to an acceptable degree.
  3062. # See automake bug#10828.
  3063. # To make any issue more visible, cause the running configure to be aborted
  3064. # by default if the 'rm' program in use doesn't match our expectations; the
  3065. # user can still override this though.
  3066. if rm -f && rm -fr && rm -rf; then : OK; else
  3067. cat >&2 <<'END'
  3068. Oops!
  3069. Your 'rm' program seems unable to run without file operands specified
  3070. on the command line, even when the '-f' option is present. This is contrary
  3071. to the behaviour of most rm programs out there, and not conforming with
  3072. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3073. Please tell bug-automake@gnu.org about your system, including the value
  3074. of your $PATH and any error possibly output before this message. This
  3075. can help us improve future automake versions.
  3076. END
  3077. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3078. echo 'Configuration will proceed anyway, since you have set the' >&2
  3079. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3080. echo >&2
  3081. else
  3082. cat >&2 <<'END'
  3083. Aborting the configuration process, to ensure you take notice of the issue.
  3084. You can download and install GNU coreutils to get an 'rm' implementation
  3085. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3086. If you want to complete the configuration process using your problematic
  3087. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3088. to "yes", and re-run configure.
  3089. END
  3090. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3091. fi
  3092. fi
  3093. # Check whether --enable-silent-rules was given.
  3094. if test "${enable_silent_rules+set}" = set; then :
  3095. enableval=$enable_silent_rules;
  3096. fi
  3097. case $enable_silent_rules in # (((
  3098. yes) AM_DEFAULT_VERBOSITY=0;;
  3099. no) AM_DEFAULT_VERBOSITY=1;;
  3100. *) AM_DEFAULT_VERBOSITY=0;;
  3101. esac
  3102. am_make=${MAKE-make}
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3104. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3105. if ${am_cv_make_support_nested_variables+:} false; then :
  3106. $as_echo_n "(cached) " >&6
  3107. else
  3108. if $as_echo 'TRUE=$(BAR$(V))
  3109. BAR0=false
  3110. BAR1=true
  3111. V=1
  3112. am__doit:
  3113. @$(TRUE)
  3114. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3115. am_cv_make_support_nested_variables=yes
  3116. else
  3117. am_cv_make_support_nested_variables=no
  3118. fi
  3119. fi
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3121. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3122. if test $am_cv_make_support_nested_variables = yes; then
  3123. AM_V='$(V)'
  3124. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3125. else
  3126. AM_V=$AM_DEFAULT_VERBOSITY
  3127. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3128. fi
  3129. AM_BACKSLASH='\'
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3131. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3132. # Check whether --enable-maintainer-mode was given.
  3133. if test "${enable_maintainer_mode+set}" = set; then :
  3134. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3135. else
  3136. USE_MAINTAINER_MODE=no
  3137. fi
  3138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3139. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3140. if test $USE_MAINTAINER_MODE = yes; then
  3141. MAINTAINER_MODE_TRUE=
  3142. MAINTAINER_MODE_FALSE='#'
  3143. else
  3144. MAINTAINER_MODE_TRUE='#'
  3145. MAINTAINER_MODE_FALSE=
  3146. fi
  3147. MAINT=$MAINTAINER_MODE_TRUE
  3148. ac_ext=c
  3149. ac_cpp='$CPP $CPPFLAGS'
  3150. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3151. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3152. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3153. if test -n "$ac_tool_prefix"; then
  3154. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3155. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3157. $as_echo_n "checking for $ac_word... " >&6; }
  3158. if ${ac_cv_prog_CC+:} false; then :
  3159. $as_echo_n "(cached) " >&6
  3160. else
  3161. if test -n "$CC"; then
  3162. ac_cv_prog_CC="$CC" # Let the user override the test.
  3163. else
  3164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3165. for as_dir in $PATH
  3166. do
  3167. IFS=$as_save_IFS
  3168. test -z "$as_dir" && as_dir=.
  3169. for ac_exec_ext in '' $ac_executable_extensions; do
  3170. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3171. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3172. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3173. break 2
  3174. fi
  3175. done
  3176. done
  3177. IFS=$as_save_IFS
  3178. fi
  3179. fi
  3180. CC=$ac_cv_prog_CC
  3181. if test -n "$CC"; then
  3182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3183. $as_echo "$CC" >&6; }
  3184. else
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3186. $as_echo "no" >&6; }
  3187. fi
  3188. fi
  3189. if test -z "$ac_cv_prog_CC"; then
  3190. ac_ct_CC=$CC
  3191. # Extract the first word of "gcc", so it can be a program name with args.
  3192. set dummy gcc; ac_word=$2
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3194. $as_echo_n "checking for $ac_word... " >&6; }
  3195. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3196. $as_echo_n "(cached) " >&6
  3197. else
  3198. if test -n "$ac_ct_CC"; then
  3199. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3200. else
  3201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3202. for as_dir in $PATH
  3203. do
  3204. IFS=$as_save_IFS
  3205. test -z "$as_dir" && as_dir=.
  3206. for ac_exec_ext in '' $ac_executable_extensions; do
  3207. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3208. ac_cv_prog_ac_ct_CC="gcc"
  3209. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3210. break 2
  3211. fi
  3212. done
  3213. done
  3214. IFS=$as_save_IFS
  3215. fi
  3216. fi
  3217. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3218. if test -n "$ac_ct_CC"; then
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3220. $as_echo "$ac_ct_CC" >&6; }
  3221. else
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3223. $as_echo "no" >&6; }
  3224. fi
  3225. if test "x$ac_ct_CC" = x; then
  3226. CC=""
  3227. else
  3228. case $cross_compiling:$ac_tool_warned in
  3229. yes:)
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3231. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3232. ac_tool_warned=yes ;;
  3233. esac
  3234. CC=$ac_ct_CC
  3235. fi
  3236. else
  3237. CC="$ac_cv_prog_CC"
  3238. fi
  3239. if test -z "$CC"; then
  3240. if test -n "$ac_tool_prefix"; then
  3241. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3242. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3244. $as_echo_n "checking for $ac_word... " >&6; }
  3245. if ${ac_cv_prog_CC+:} false; then :
  3246. $as_echo_n "(cached) " >&6
  3247. else
  3248. if test -n "$CC"; then
  3249. ac_cv_prog_CC="$CC" # Let the user override the test.
  3250. else
  3251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3252. for as_dir in $PATH
  3253. do
  3254. IFS=$as_save_IFS
  3255. test -z "$as_dir" && as_dir=.
  3256. for ac_exec_ext in '' $ac_executable_extensions; do
  3257. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3258. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3260. break 2
  3261. fi
  3262. done
  3263. done
  3264. IFS=$as_save_IFS
  3265. fi
  3266. fi
  3267. CC=$ac_cv_prog_CC
  3268. if test -n "$CC"; then
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3270. $as_echo "$CC" >&6; }
  3271. else
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3273. $as_echo "no" >&6; }
  3274. fi
  3275. fi
  3276. fi
  3277. if test -z "$CC"; then
  3278. # Extract the first word of "cc", so it can be a program name with args.
  3279. set dummy cc; ac_word=$2
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3281. $as_echo_n "checking for $ac_word... " >&6; }
  3282. if ${ac_cv_prog_CC+:} false; then :
  3283. $as_echo_n "(cached) " >&6
  3284. else
  3285. if test -n "$CC"; then
  3286. ac_cv_prog_CC="$CC" # Let the user override the test.
  3287. else
  3288. ac_prog_rejected=no
  3289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3290. for as_dir in $PATH
  3291. do
  3292. IFS=$as_save_IFS
  3293. test -z "$as_dir" && as_dir=.
  3294. for ac_exec_ext in '' $ac_executable_extensions; do
  3295. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3296. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3297. ac_prog_rejected=yes
  3298. continue
  3299. fi
  3300. ac_cv_prog_CC="cc"
  3301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3302. break 2
  3303. fi
  3304. done
  3305. done
  3306. IFS=$as_save_IFS
  3307. if test $ac_prog_rejected = yes; then
  3308. # We found a bogon in the path, so make sure we never use it.
  3309. set dummy $ac_cv_prog_CC
  3310. shift
  3311. if test $# != 0; then
  3312. # We chose a different compiler from the bogus one.
  3313. # However, it has the same basename, so the bogon will be chosen
  3314. # first if we set CC to just the basename; use the full file name.
  3315. shift
  3316. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3317. fi
  3318. fi
  3319. fi
  3320. fi
  3321. CC=$ac_cv_prog_CC
  3322. if test -n "$CC"; then
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3324. $as_echo "$CC" >&6; }
  3325. else
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3327. $as_echo "no" >&6; }
  3328. fi
  3329. fi
  3330. if test -z "$CC"; then
  3331. if test -n "$ac_tool_prefix"; then
  3332. for ac_prog in cl.exe
  3333. do
  3334. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3335. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3337. $as_echo_n "checking for $ac_word... " >&6; }
  3338. if ${ac_cv_prog_CC+:} false; then :
  3339. $as_echo_n "(cached) " >&6
  3340. else
  3341. if test -n "$CC"; then
  3342. ac_cv_prog_CC="$CC" # Let the user override the test.
  3343. else
  3344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3345. for as_dir in $PATH
  3346. do
  3347. IFS=$as_save_IFS
  3348. test -z "$as_dir" && as_dir=.
  3349. for ac_exec_ext in '' $ac_executable_extensions; do
  3350. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3351. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3352. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3353. break 2
  3354. fi
  3355. done
  3356. done
  3357. IFS=$as_save_IFS
  3358. fi
  3359. fi
  3360. CC=$ac_cv_prog_CC
  3361. if test -n "$CC"; then
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3363. $as_echo "$CC" >&6; }
  3364. else
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3366. $as_echo "no" >&6; }
  3367. fi
  3368. test -n "$CC" && break
  3369. done
  3370. fi
  3371. if test -z "$CC"; then
  3372. ac_ct_CC=$CC
  3373. for ac_prog in cl.exe
  3374. do
  3375. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3376. set dummy $ac_prog; ac_word=$2
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3378. $as_echo_n "checking for $ac_word... " >&6; }
  3379. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3380. $as_echo_n "(cached) " >&6
  3381. else
  3382. if test -n "$ac_ct_CC"; then
  3383. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3384. else
  3385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3386. for as_dir in $PATH
  3387. do
  3388. IFS=$as_save_IFS
  3389. test -z "$as_dir" && as_dir=.
  3390. for ac_exec_ext in '' $ac_executable_extensions; do
  3391. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3392. ac_cv_prog_ac_ct_CC="$ac_prog"
  3393. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3394. break 2
  3395. fi
  3396. done
  3397. done
  3398. IFS=$as_save_IFS
  3399. fi
  3400. fi
  3401. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3402. if test -n "$ac_ct_CC"; then
  3403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3404. $as_echo "$ac_ct_CC" >&6; }
  3405. else
  3406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3407. $as_echo "no" >&6; }
  3408. fi
  3409. test -n "$ac_ct_CC" && break
  3410. done
  3411. if test "x$ac_ct_CC" = x; then
  3412. CC=""
  3413. else
  3414. case $cross_compiling:$ac_tool_warned in
  3415. yes:)
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3417. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3418. ac_tool_warned=yes ;;
  3419. esac
  3420. CC=$ac_ct_CC
  3421. fi
  3422. fi
  3423. fi
  3424. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3425. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3426. as_fn_error $? "no acceptable C compiler found in \$PATH
  3427. See \`config.log' for more details" "$LINENO" 5; }
  3428. # Provide some information about the compiler.
  3429. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3430. set X $ac_compile
  3431. ac_compiler=$2
  3432. for ac_option in --version -v -V -qversion; do
  3433. { { ac_try="$ac_compiler $ac_option >&5"
  3434. case "(($ac_try" in
  3435. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3436. *) ac_try_echo=$ac_try;;
  3437. esac
  3438. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3439. $as_echo "$ac_try_echo"; } >&5
  3440. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3441. ac_status=$?
  3442. if test -s conftest.err; then
  3443. sed '10a\
  3444. ... rest of stderr output deleted ...
  3445. 10q' conftest.err >conftest.er1
  3446. cat conftest.er1 >&5
  3447. fi
  3448. rm -f conftest.er1 conftest.err
  3449. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3450. test $ac_status = 0; }
  3451. done
  3452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3453. /* end confdefs.h. */
  3454. int
  3455. main ()
  3456. {
  3457. ;
  3458. return 0;
  3459. }
  3460. _ACEOF
  3461. ac_clean_files_save=$ac_clean_files
  3462. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3463. # Try to create an executable without -o first, disregard a.out.
  3464. # It will help us diagnose broken compilers, and finding out an intuition
  3465. # of exeext.
  3466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3467. $as_echo_n "checking whether the C compiler works... " >&6; }
  3468. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3469. # The possible output files:
  3470. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3471. ac_rmfiles=
  3472. for ac_file in $ac_files
  3473. do
  3474. case $ac_file in
  3475. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3476. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3477. esac
  3478. done
  3479. rm -f $ac_rmfiles
  3480. if { { ac_try="$ac_link_default"
  3481. case "(($ac_try" in
  3482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3483. *) ac_try_echo=$ac_try;;
  3484. esac
  3485. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3486. $as_echo "$ac_try_echo"; } >&5
  3487. (eval "$ac_link_default") 2>&5
  3488. ac_status=$?
  3489. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3490. test $ac_status = 0; }; then :
  3491. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3492. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3493. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3494. # so that the user can short-circuit this test for compilers unknown to
  3495. # Autoconf.
  3496. for ac_file in $ac_files ''
  3497. do
  3498. test -f "$ac_file" || continue
  3499. case $ac_file in
  3500. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3501. ;;
  3502. [ab].out )
  3503. # We found the default executable, but exeext='' is most
  3504. # certainly right.
  3505. break;;
  3506. *.* )
  3507. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3508. then :; else
  3509. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3510. fi
  3511. # We set ac_cv_exeext here because the later test for it is not
  3512. # safe: cross compilers may not add the suffix if given an `-o'
  3513. # argument, so we may need to know it at that point already.
  3514. # Even if this section looks crufty: it has the advantage of
  3515. # actually working.
  3516. break;;
  3517. * )
  3518. break;;
  3519. esac
  3520. done
  3521. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3522. else
  3523. ac_file=''
  3524. fi
  3525. if test -z "$ac_file"; then :
  3526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3527. $as_echo "no" >&6; }
  3528. $as_echo "$as_me: failed program was:" >&5
  3529. sed 's/^/| /' conftest.$ac_ext >&5
  3530. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3531. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3532. as_fn_error 77 "C compiler cannot create executables
  3533. See \`config.log' for more details" "$LINENO" 5; }
  3534. else
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3536. $as_echo "yes" >&6; }
  3537. fi
  3538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3539. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3541. $as_echo "$ac_file" >&6; }
  3542. ac_exeext=$ac_cv_exeext
  3543. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3544. ac_clean_files=$ac_clean_files_save
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3546. $as_echo_n "checking for suffix of executables... " >&6; }
  3547. if { { ac_try="$ac_link"
  3548. case "(($ac_try" in
  3549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3550. *) ac_try_echo=$ac_try;;
  3551. esac
  3552. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3553. $as_echo "$ac_try_echo"; } >&5
  3554. (eval "$ac_link") 2>&5
  3555. ac_status=$?
  3556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3557. test $ac_status = 0; }; then :
  3558. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3559. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3560. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3561. # `rm'.
  3562. for ac_file in conftest.exe conftest conftest.*; do
  3563. test -f "$ac_file" || continue
  3564. case $ac_file in
  3565. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3566. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3567. break;;
  3568. * ) break;;
  3569. esac
  3570. done
  3571. else
  3572. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3573. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3574. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3575. See \`config.log' for more details" "$LINENO" 5; }
  3576. fi
  3577. rm -f conftest conftest$ac_cv_exeext
  3578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3579. $as_echo "$ac_cv_exeext" >&6; }
  3580. rm -f conftest.$ac_ext
  3581. EXEEXT=$ac_cv_exeext
  3582. ac_exeext=$EXEEXT
  3583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3584. /* end confdefs.h. */
  3585. #include <stdio.h>
  3586. int
  3587. main ()
  3588. {
  3589. FILE *f = fopen ("conftest.out", "w");
  3590. return ferror (f) || fclose (f) != 0;
  3591. ;
  3592. return 0;
  3593. }
  3594. _ACEOF
  3595. ac_clean_files="$ac_clean_files conftest.out"
  3596. # Check that the compiler produces executables we can run. If not, either
  3597. # the compiler is broken, or we cross compile.
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3599. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3600. if test "$cross_compiling" != yes; then
  3601. { { ac_try="$ac_link"
  3602. case "(($ac_try" in
  3603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3604. *) ac_try_echo=$ac_try;;
  3605. esac
  3606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3607. $as_echo "$ac_try_echo"; } >&5
  3608. (eval "$ac_link") 2>&5
  3609. ac_status=$?
  3610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3611. test $ac_status = 0; }
  3612. if { ac_try='./conftest$ac_cv_exeext'
  3613. { { case "(($ac_try" in
  3614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3615. *) ac_try_echo=$ac_try;;
  3616. esac
  3617. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3618. $as_echo "$ac_try_echo"; } >&5
  3619. (eval "$ac_try") 2>&5
  3620. ac_status=$?
  3621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3622. test $ac_status = 0; }; }; then
  3623. cross_compiling=no
  3624. else
  3625. if test "$cross_compiling" = maybe; then
  3626. cross_compiling=yes
  3627. else
  3628. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3629. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3630. as_fn_error $? "cannot run C compiled programs.
  3631. If you meant to cross compile, use \`--host'.
  3632. See \`config.log' for more details" "$LINENO" 5; }
  3633. fi
  3634. fi
  3635. fi
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3637. $as_echo "$cross_compiling" >&6; }
  3638. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3639. ac_clean_files=$ac_clean_files_save
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3641. $as_echo_n "checking for suffix of object files... " >&6; }
  3642. if ${ac_cv_objext+:} false; then :
  3643. $as_echo_n "(cached) " >&6
  3644. else
  3645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3646. /* end confdefs.h. */
  3647. int
  3648. main ()
  3649. {
  3650. ;
  3651. return 0;
  3652. }
  3653. _ACEOF
  3654. rm -f conftest.o conftest.obj
  3655. if { { ac_try="$ac_compile"
  3656. case "(($ac_try" in
  3657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3658. *) ac_try_echo=$ac_try;;
  3659. esac
  3660. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3661. $as_echo "$ac_try_echo"; } >&5
  3662. (eval "$ac_compile") 2>&5
  3663. ac_status=$?
  3664. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3665. test $ac_status = 0; }; then :
  3666. for ac_file in conftest.o conftest.obj conftest.*; do
  3667. test -f "$ac_file" || continue;
  3668. case $ac_file in
  3669. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3670. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3671. break;;
  3672. esac
  3673. done
  3674. else
  3675. $as_echo "$as_me: failed program was:" >&5
  3676. sed 's/^/| /' conftest.$ac_ext >&5
  3677. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3678. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3679. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3680. See \`config.log' for more details" "$LINENO" 5; }
  3681. fi
  3682. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3683. fi
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3685. $as_echo "$ac_cv_objext" >&6; }
  3686. OBJEXT=$ac_cv_objext
  3687. ac_objext=$OBJEXT
  3688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3689. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3690. if ${ac_cv_c_compiler_gnu+:} false; then :
  3691. $as_echo_n "(cached) " >&6
  3692. else
  3693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3694. /* end confdefs.h. */
  3695. int
  3696. main ()
  3697. {
  3698. #ifndef __GNUC__
  3699. choke me
  3700. #endif
  3701. ;
  3702. return 0;
  3703. }
  3704. _ACEOF
  3705. if ac_fn_c_try_compile "$LINENO"; then :
  3706. ac_compiler_gnu=yes
  3707. else
  3708. ac_compiler_gnu=no
  3709. fi
  3710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3711. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3712. fi
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3714. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3715. if test $ac_compiler_gnu = yes; then
  3716. GCC=yes
  3717. else
  3718. GCC=
  3719. fi
  3720. ac_test_CFLAGS=${CFLAGS+set}
  3721. ac_save_CFLAGS=$CFLAGS
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3723. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3724. if ${ac_cv_prog_cc_g+:} false; then :
  3725. $as_echo_n "(cached) " >&6
  3726. else
  3727. ac_save_c_werror_flag=$ac_c_werror_flag
  3728. ac_c_werror_flag=yes
  3729. ac_cv_prog_cc_g=no
  3730. CFLAGS="-g"
  3731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3732. /* end confdefs.h. */
  3733. int
  3734. main ()
  3735. {
  3736. ;
  3737. return 0;
  3738. }
  3739. _ACEOF
  3740. if ac_fn_c_try_compile "$LINENO"; then :
  3741. ac_cv_prog_cc_g=yes
  3742. else
  3743. CFLAGS=""
  3744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3745. /* end confdefs.h. */
  3746. int
  3747. main ()
  3748. {
  3749. ;
  3750. return 0;
  3751. }
  3752. _ACEOF
  3753. if ac_fn_c_try_compile "$LINENO"; then :
  3754. else
  3755. ac_c_werror_flag=$ac_save_c_werror_flag
  3756. CFLAGS="-g"
  3757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3758. /* end confdefs.h. */
  3759. int
  3760. main ()
  3761. {
  3762. ;
  3763. return 0;
  3764. }
  3765. _ACEOF
  3766. if ac_fn_c_try_compile "$LINENO"; then :
  3767. ac_cv_prog_cc_g=yes
  3768. fi
  3769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3770. fi
  3771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3772. fi
  3773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3774. ac_c_werror_flag=$ac_save_c_werror_flag
  3775. fi
  3776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3777. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3778. if test "$ac_test_CFLAGS" = set; then
  3779. CFLAGS=$ac_save_CFLAGS
  3780. elif test $ac_cv_prog_cc_g = yes; then
  3781. if test "$GCC" = yes; then
  3782. CFLAGS="-g -O2"
  3783. else
  3784. CFLAGS="-g"
  3785. fi
  3786. else
  3787. if test "$GCC" = yes; then
  3788. CFLAGS="-O2"
  3789. else
  3790. CFLAGS=
  3791. fi
  3792. fi
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3794. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3795. if ${ac_cv_prog_cc_c89+:} false; then :
  3796. $as_echo_n "(cached) " >&6
  3797. else
  3798. ac_cv_prog_cc_c89=no
  3799. ac_save_CC=$CC
  3800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3801. /* end confdefs.h. */
  3802. #include <stdarg.h>
  3803. #include <stdio.h>
  3804. struct stat;
  3805. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3806. struct buf { int x; };
  3807. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3808. static char *e (p, i)
  3809. char **p;
  3810. int i;
  3811. {
  3812. return p[i];
  3813. }
  3814. static char *f (char * (*g) (char **, int), char **p, ...)
  3815. {
  3816. char *s;
  3817. va_list v;
  3818. va_start (v,p);
  3819. s = g (p, va_arg (v,int));
  3820. va_end (v);
  3821. return s;
  3822. }
  3823. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3824. function prototypes and stuff, but not '\xHH' hex character constants.
  3825. These don't provoke an error unfortunately, instead are silently treated
  3826. as 'x'. The following induces an error, until -std is added to get
  3827. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3828. array size at least. It's necessary to write '\x00'==0 to get something
  3829. that's true only with -std. */
  3830. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3831. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3832. inside strings and character constants. */
  3833. #define FOO(x) 'x'
  3834. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3835. int test (int i, double x);
  3836. struct s1 {int (*f) (int a);};
  3837. struct s2 {int (*f) (double a);};
  3838. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3839. int argc;
  3840. char **argv;
  3841. int
  3842. main ()
  3843. {
  3844. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3845. ;
  3846. return 0;
  3847. }
  3848. _ACEOF
  3849. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3850. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3851. do
  3852. CC="$ac_save_CC $ac_arg"
  3853. if ac_fn_c_try_compile "$LINENO"; then :
  3854. ac_cv_prog_cc_c89=$ac_arg
  3855. fi
  3856. rm -f core conftest.err conftest.$ac_objext
  3857. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3858. done
  3859. rm -f conftest.$ac_ext
  3860. CC=$ac_save_CC
  3861. fi
  3862. # AC_CACHE_VAL
  3863. case "x$ac_cv_prog_cc_c89" in
  3864. x)
  3865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3866. $as_echo "none needed" >&6; } ;;
  3867. xno)
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3869. $as_echo "unsupported" >&6; } ;;
  3870. *)
  3871. CC="$CC $ac_cv_prog_cc_c89"
  3872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3873. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3874. esac
  3875. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3876. fi
  3877. ac_ext=c
  3878. ac_cpp='$CPP $CPPFLAGS'
  3879. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3880. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3881. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3882. ac_ext=c
  3883. ac_cpp='$CPP $CPPFLAGS'
  3884. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3885. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3886. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3888. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3889. if ${am_cv_prog_cc_c_o+:} false; then :
  3890. $as_echo_n "(cached) " >&6
  3891. else
  3892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3893. /* end confdefs.h. */
  3894. int
  3895. main ()
  3896. {
  3897. ;
  3898. return 0;
  3899. }
  3900. _ACEOF
  3901. # Make sure it works both with $CC and with simple cc.
  3902. # Following AC_PROG_CC_C_O, we do the test twice because some
  3903. # compilers refuse to overwrite an existing .o file with -o,
  3904. # though they will create one.
  3905. am_cv_prog_cc_c_o=yes
  3906. for am_i in 1 2; do
  3907. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3908. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3909. ac_status=$?
  3910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3911. (exit $ac_status); } \
  3912. && test -f conftest2.$ac_objext; then
  3913. : OK
  3914. else
  3915. am_cv_prog_cc_c_o=no
  3916. break
  3917. fi
  3918. done
  3919. rm -f core conftest*
  3920. unset am_i
  3921. fi
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3923. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3924. if test "$am_cv_prog_cc_c_o" != yes; then
  3925. # Losing compiler, so override with the script.
  3926. # FIXME: It is wrong to rewrite CC.
  3927. # But if we don't then we get into trouble of one sort or another.
  3928. # A longer-term fix would be to have automake use am__CC in this case,
  3929. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3930. CC="$am_aux_dir/compile $CC"
  3931. fi
  3932. ac_ext=c
  3933. ac_cpp='$CPP $CPPFLAGS'
  3934. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3935. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3936. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3937. DEPDIR="${am__leading_dot}deps"
  3938. ac_config_commands="$ac_config_commands depfiles"
  3939. am_make=${MAKE-make}
  3940. cat > confinc << 'END'
  3941. am__doit:
  3942. @echo this is the am__doit target
  3943. .PHONY: am__doit
  3944. END
  3945. # If we don't find an include directive, just comment out the code.
  3946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3947. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3948. am__include="#"
  3949. am__quote=
  3950. _am_result=none
  3951. # First try GNU make style include.
  3952. echo "include confinc" > confmf
  3953. # Ignore all kinds of additional output from 'make'.
  3954. case `$am_make -s -f confmf 2> /dev/null` in #(
  3955. *the\ am__doit\ target*)
  3956. am__include=include
  3957. am__quote=
  3958. _am_result=GNU
  3959. ;;
  3960. esac
  3961. # Now try BSD make style include.
  3962. if test "$am__include" = "#"; then
  3963. echo '.include "confinc"' > confmf
  3964. case `$am_make -s -f confmf 2> /dev/null` in #(
  3965. *the\ am__doit\ target*)
  3966. am__include=.include
  3967. am__quote="\""
  3968. _am_result=BSD
  3969. ;;
  3970. esac
  3971. fi
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3973. $as_echo "$_am_result" >&6; }
  3974. rm -f confinc confmf
  3975. # Check whether --enable-dependency-tracking was given.
  3976. if test "${enable_dependency_tracking+set}" = set; then :
  3977. enableval=$enable_dependency_tracking;
  3978. fi
  3979. if test "x$enable_dependency_tracking" != xno; then
  3980. am_depcomp="$ac_aux_dir/depcomp"
  3981. AMDEPBACKSLASH='\'
  3982. am__nodep='_no'
  3983. fi
  3984. if test "x$enable_dependency_tracking" != xno; then
  3985. AMDEP_TRUE=
  3986. AMDEP_FALSE='#'
  3987. else
  3988. AMDEP_TRUE='#'
  3989. AMDEP_FALSE=
  3990. fi
  3991. depcc="$CC" am_compiler_list=
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3993. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3994. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3995. $as_echo_n "(cached) " >&6
  3996. else
  3997. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3998. # We make a subdir and do the tests there. Otherwise we can end up
  3999. # making bogus files that we don't know about and never remove. For
  4000. # instance it was reported that on HP-UX the gcc test will end up
  4001. # making a dummy file named 'D' -- because '-MD' means "put the output
  4002. # in D".
  4003. rm -rf conftest.dir
  4004. mkdir conftest.dir
  4005. # Copy depcomp to subdir because otherwise we won't find it if we're
  4006. # using a relative directory.
  4007. cp "$am_depcomp" conftest.dir
  4008. cd conftest.dir
  4009. # We will build objects and dependencies in a subdirectory because
  4010. # it helps to detect inapplicable dependency modes. For instance
  4011. # both Tru64's cc and ICC support -MD to output dependencies as a
  4012. # side effect of compilation, but ICC will put the dependencies in
  4013. # the current directory while Tru64 will put them in the object
  4014. # directory.
  4015. mkdir sub
  4016. am_cv_CC_dependencies_compiler_type=none
  4017. if test "$am_compiler_list" = ""; then
  4018. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4019. fi
  4020. am__universal=false
  4021. case " $depcc " in #(
  4022. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4023. esac
  4024. for depmode in $am_compiler_list; do
  4025. # Setup a source with many dependencies, because some compilers
  4026. # like to wrap large dependency lists on column 80 (with \), and
  4027. # we should not choose a depcomp mode which is confused by this.
  4028. #
  4029. # We need to recreate these files for each test, as the compiler may
  4030. # overwrite some of them when testing with obscure command lines.
  4031. # This happens at least with the AIX C compiler.
  4032. : > sub/conftest.c
  4033. for i in 1 2 3 4 5 6; do
  4034. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4035. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4036. # Solaris 10 /bin/sh.
  4037. echo '/* dummy */' > sub/conftst$i.h
  4038. done
  4039. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4040. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4041. # mode. It turns out that the SunPro C++ compiler does not properly
  4042. # handle '-M -o', and we need to detect this. Also, some Intel
  4043. # versions had trouble with output in subdirs.
  4044. am__obj=sub/conftest.${OBJEXT-o}
  4045. am__minus_obj="-o $am__obj"
  4046. case $depmode in
  4047. gcc)
  4048. # This depmode causes a compiler race in universal mode.
  4049. test "$am__universal" = false || continue
  4050. ;;
  4051. nosideeffect)
  4052. # After this tag, mechanisms are not by side-effect, so they'll
  4053. # only be used when explicitly requested.
  4054. if test "x$enable_dependency_tracking" = xyes; then
  4055. continue
  4056. else
  4057. break
  4058. fi
  4059. ;;
  4060. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4061. # This compiler won't grok '-c -o', but also, the minuso test has
  4062. # not run yet. These depmodes are late enough in the game, and
  4063. # so weak that their functioning should not be impacted.
  4064. am__obj=conftest.${OBJEXT-o}
  4065. am__minus_obj=
  4066. ;;
  4067. none) break ;;
  4068. esac
  4069. if depmode=$depmode \
  4070. source=sub/conftest.c object=$am__obj \
  4071. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4072. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4073. >/dev/null 2>conftest.err &&
  4074. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4075. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4076. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4077. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4078. # icc doesn't choke on unknown options, it will just issue warnings
  4079. # or remarks (even with -Werror). So we grep stderr for any message
  4080. # that says an option was ignored or not supported.
  4081. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4082. # icc: Command line warning: ignoring option '-M'; no argument required
  4083. # The diagnosis changed in icc 8.0:
  4084. # icc: Command line remark: option '-MP' not supported
  4085. if (grep 'ignoring option' conftest.err ||
  4086. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4087. am_cv_CC_dependencies_compiler_type=$depmode
  4088. break
  4089. fi
  4090. fi
  4091. done
  4092. cd ..
  4093. rm -rf conftest.dir
  4094. else
  4095. am_cv_CC_dependencies_compiler_type=none
  4096. fi
  4097. fi
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4099. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4100. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4101. if
  4102. test "x$enable_dependency_tracking" != xno \
  4103. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4104. am__fastdepCC_TRUE=
  4105. am__fastdepCC_FALSE='#'
  4106. else
  4107. am__fastdepCC_TRUE='#'
  4108. am__fastdepCC_FALSE=
  4109. fi
  4110. ac_ext=cpp
  4111. ac_cpp='$CXXCPP $CPPFLAGS'
  4112. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4113. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4114. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4115. if test -z "$CXX"; then
  4116. if test -n "$CCC"; then
  4117. CXX=$CCC
  4118. else
  4119. if test -n "$ac_tool_prefix"; then
  4120. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4121. do
  4122. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4123. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4125. $as_echo_n "checking for $ac_word... " >&6; }
  4126. if ${ac_cv_prog_CXX+:} false; then :
  4127. $as_echo_n "(cached) " >&6
  4128. else
  4129. if test -n "$CXX"; then
  4130. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4131. else
  4132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4133. for as_dir in $PATH
  4134. do
  4135. IFS=$as_save_IFS
  4136. test -z "$as_dir" && as_dir=.
  4137. for ac_exec_ext in '' $ac_executable_extensions; do
  4138. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4139. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4140. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4141. break 2
  4142. fi
  4143. done
  4144. done
  4145. IFS=$as_save_IFS
  4146. fi
  4147. fi
  4148. CXX=$ac_cv_prog_CXX
  4149. if test -n "$CXX"; then
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4151. $as_echo "$CXX" >&6; }
  4152. else
  4153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4154. $as_echo "no" >&6; }
  4155. fi
  4156. test -n "$CXX" && break
  4157. done
  4158. fi
  4159. if test -z "$CXX"; then
  4160. ac_ct_CXX=$CXX
  4161. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4162. do
  4163. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4164. set dummy $ac_prog; ac_word=$2
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4166. $as_echo_n "checking for $ac_word... " >&6; }
  4167. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4168. $as_echo_n "(cached) " >&6
  4169. else
  4170. if test -n "$ac_ct_CXX"; then
  4171. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4172. else
  4173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4174. for as_dir in $PATH
  4175. do
  4176. IFS=$as_save_IFS
  4177. test -z "$as_dir" && as_dir=.
  4178. for ac_exec_ext in '' $ac_executable_extensions; do
  4179. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4180. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4181. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4182. break 2
  4183. fi
  4184. done
  4185. done
  4186. IFS=$as_save_IFS
  4187. fi
  4188. fi
  4189. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4190. if test -n "$ac_ct_CXX"; then
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4192. $as_echo "$ac_ct_CXX" >&6; }
  4193. else
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4195. $as_echo "no" >&6; }
  4196. fi
  4197. test -n "$ac_ct_CXX" && break
  4198. done
  4199. if test "x$ac_ct_CXX" = x; then
  4200. CXX="g++"
  4201. else
  4202. case $cross_compiling:$ac_tool_warned in
  4203. yes:)
  4204. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4205. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4206. ac_tool_warned=yes ;;
  4207. esac
  4208. CXX=$ac_ct_CXX
  4209. fi
  4210. fi
  4211. fi
  4212. fi
  4213. # Provide some information about the compiler.
  4214. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4215. set X $ac_compile
  4216. ac_compiler=$2
  4217. for ac_option in --version -v -V -qversion; do
  4218. { { ac_try="$ac_compiler $ac_option >&5"
  4219. case "(($ac_try" in
  4220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4221. *) ac_try_echo=$ac_try;;
  4222. esac
  4223. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4224. $as_echo "$ac_try_echo"; } >&5
  4225. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4226. ac_status=$?
  4227. if test -s conftest.err; then
  4228. sed '10a\
  4229. ... rest of stderr output deleted ...
  4230. 10q' conftest.err >conftest.er1
  4231. cat conftest.er1 >&5
  4232. fi
  4233. rm -f conftest.er1 conftest.err
  4234. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4235. test $ac_status = 0; }
  4236. done
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4238. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4239. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4240. $as_echo_n "(cached) " >&6
  4241. else
  4242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4243. /* end confdefs.h. */
  4244. int
  4245. main ()
  4246. {
  4247. #ifndef __GNUC__
  4248. choke me
  4249. #endif
  4250. ;
  4251. return 0;
  4252. }
  4253. _ACEOF
  4254. if ac_fn_cxx_try_compile "$LINENO"; then :
  4255. ac_compiler_gnu=yes
  4256. else
  4257. ac_compiler_gnu=no
  4258. fi
  4259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4260. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4261. fi
  4262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4263. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4264. if test $ac_compiler_gnu = yes; then
  4265. GXX=yes
  4266. else
  4267. GXX=
  4268. fi
  4269. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4270. ac_save_CXXFLAGS=$CXXFLAGS
  4271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4272. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4273. if ${ac_cv_prog_cxx_g+:} false; then :
  4274. $as_echo_n "(cached) " >&6
  4275. else
  4276. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4277. ac_cxx_werror_flag=yes
  4278. ac_cv_prog_cxx_g=no
  4279. CXXFLAGS="-g"
  4280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4281. /* end confdefs.h. */
  4282. int
  4283. main ()
  4284. {
  4285. ;
  4286. return 0;
  4287. }
  4288. _ACEOF
  4289. if ac_fn_cxx_try_compile "$LINENO"; then :
  4290. ac_cv_prog_cxx_g=yes
  4291. else
  4292. CXXFLAGS=""
  4293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4294. /* end confdefs.h. */
  4295. int
  4296. main ()
  4297. {
  4298. ;
  4299. return 0;
  4300. }
  4301. _ACEOF
  4302. if ac_fn_cxx_try_compile "$LINENO"; then :
  4303. else
  4304. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4305. CXXFLAGS="-g"
  4306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4307. /* end confdefs.h. */
  4308. int
  4309. main ()
  4310. {
  4311. ;
  4312. return 0;
  4313. }
  4314. _ACEOF
  4315. if ac_fn_cxx_try_compile "$LINENO"; then :
  4316. ac_cv_prog_cxx_g=yes
  4317. fi
  4318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4319. fi
  4320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4321. fi
  4322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4323. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4324. fi
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4326. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4327. if test "$ac_test_CXXFLAGS" = set; then
  4328. CXXFLAGS=$ac_save_CXXFLAGS
  4329. elif test $ac_cv_prog_cxx_g = yes; then
  4330. if test "$GXX" = yes; then
  4331. CXXFLAGS="-g -O2"
  4332. else
  4333. CXXFLAGS="-g"
  4334. fi
  4335. else
  4336. if test "$GXX" = yes; then
  4337. CXXFLAGS="-O2"
  4338. else
  4339. CXXFLAGS=
  4340. fi
  4341. fi
  4342. ac_ext=c
  4343. ac_cpp='$CPP $CPPFLAGS'
  4344. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4345. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4346. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4347. depcc="$CXX" am_compiler_list=
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4349. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4350. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  4351. $as_echo_n "(cached) " >&6
  4352. else
  4353. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4354. # We make a subdir and do the tests there. Otherwise we can end up
  4355. # making bogus files that we don't know about and never remove. For
  4356. # instance it was reported that on HP-UX the gcc test will end up
  4357. # making a dummy file named 'D' -- because '-MD' means "put the output
  4358. # in D".
  4359. rm -rf conftest.dir
  4360. mkdir conftest.dir
  4361. # Copy depcomp to subdir because otherwise we won't find it if we're
  4362. # using a relative directory.
  4363. cp "$am_depcomp" conftest.dir
  4364. cd conftest.dir
  4365. # We will build objects and dependencies in a subdirectory because
  4366. # it helps to detect inapplicable dependency modes. For instance
  4367. # both Tru64's cc and ICC support -MD to output dependencies as a
  4368. # side effect of compilation, but ICC will put the dependencies in
  4369. # the current directory while Tru64 will put them in the object
  4370. # directory.
  4371. mkdir sub
  4372. am_cv_CXX_dependencies_compiler_type=none
  4373. if test "$am_compiler_list" = ""; then
  4374. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4375. fi
  4376. am__universal=false
  4377. case " $depcc " in #(
  4378. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4379. esac
  4380. for depmode in $am_compiler_list; do
  4381. # Setup a source with many dependencies, because some compilers
  4382. # like to wrap large dependency lists on column 80 (with \), and
  4383. # we should not choose a depcomp mode which is confused by this.
  4384. #
  4385. # We need to recreate these files for each test, as the compiler may
  4386. # overwrite some of them when testing with obscure command lines.
  4387. # This happens at least with the AIX C compiler.
  4388. : > sub/conftest.c
  4389. for i in 1 2 3 4 5 6; do
  4390. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4391. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4392. # Solaris 10 /bin/sh.
  4393. echo '/* dummy */' > sub/conftst$i.h
  4394. done
  4395. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4396. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4397. # mode. It turns out that the SunPro C++ compiler does not properly
  4398. # handle '-M -o', and we need to detect this. Also, some Intel
  4399. # versions had trouble with output in subdirs.
  4400. am__obj=sub/conftest.${OBJEXT-o}
  4401. am__minus_obj="-o $am__obj"
  4402. case $depmode in
  4403. gcc)
  4404. # This depmode causes a compiler race in universal mode.
  4405. test "$am__universal" = false || continue
  4406. ;;
  4407. nosideeffect)
  4408. # After this tag, mechanisms are not by side-effect, so they'll
  4409. # only be used when explicitly requested.
  4410. if test "x$enable_dependency_tracking" = xyes; then
  4411. continue
  4412. else
  4413. break
  4414. fi
  4415. ;;
  4416. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4417. # This compiler won't grok '-c -o', but also, the minuso test has
  4418. # not run yet. These depmodes are late enough in the game, and
  4419. # so weak that their functioning should not be impacted.
  4420. am__obj=conftest.${OBJEXT-o}
  4421. am__minus_obj=
  4422. ;;
  4423. none) break ;;
  4424. esac
  4425. if depmode=$depmode \
  4426. source=sub/conftest.c object=$am__obj \
  4427. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4428. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4429. >/dev/null 2>conftest.err &&
  4430. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4431. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4432. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4433. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4434. # icc doesn't choke on unknown options, it will just issue warnings
  4435. # or remarks (even with -Werror). So we grep stderr for any message
  4436. # that says an option was ignored or not supported.
  4437. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4438. # icc: Command line warning: ignoring option '-M'; no argument required
  4439. # The diagnosis changed in icc 8.0:
  4440. # icc: Command line remark: option '-MP' not supported
  4441. if (grep 'ignoring option' conftest.err ||
  4442. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4443. am_cv_CXX_dependencies_compiler_type=$depmode
  4444. break
  4445. fi
  4446. fi
  4447. done
  4448. cd ..
  4449. rm -rf conftest.dir
  4450. else
  4451. am_cv_CXX_dependencies_compiler_type=none
  4452. fi
  4453. fi
  4454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4455. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4456. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4457. if
  4458. test "x$enable_dependency_tracking" != xno \
  4459. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4460. am__fastdepCXX_TRUE=
  4461. am__fastdepCXX_FALSE='#'
  4462. else
  4463. am__fastdepCXX_TRUE='#'
  4464. am__fastdepCXX_FALSE=
  4465. fi
  4466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4467. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4468. if ${ac_cv_path_GREP+:} false; then :
  4469. $as_echo_n "(cached) " >&6
  4470. else
  4471. if test -z "$GREP"; then
  4472. ac_path_GREP_found=false
  4473. # Loop through the user's path and test for each of PROGNAME-LIST
  4474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4475. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4476. do
  4477. IFS=$as_save_IFS
  4478. test -z "$as_dir" && as_dir=.
  4479. for ac_prog in grep ggrep; do
  4480. for ac_exec_ext in '' $ac_executable_extensions; do
  4481. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4482. as_fn_executable_p "$ac_path_GREP" || continue
  4483. # Check for GNU ac_path_GREP and select it if it is found.
  4484. # Check for GNU $ac_path_GREP
  4485. case `"$ac_path_GREP" --version 2>&1` in
  4486. *GNU*)
  4487. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4488. *)
  4489. ac_count=0
  4490. $as_echo_n 0123456789 >"conftest.in"
  4491. while :
  4492. do
  4493. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4494. mv "conftest.tmp" "conftest.in"
  4495. cp "conftest.in" "conftest.nl"
  4496. $as_echo 'GREP' >> "conftest.nl"
  4497. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4498. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4499. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4500. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4501. # Best one so far, save it but keep looking for a better one
  4502. ac_cv_path_GREP="$ac_path_GREP"
  4503. ac_path_GREP_max=$ac_count
  4504. fi
  4505. # 10*(2^10) chars as input seems more than enough
  4506. test $ac_count -gt 10 && break
  4507. done
  4508. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4509. esac
  4510. $ac_path_GREP_found && break 3
  4511. done
  4512. done
  4513. done
  4514. IFS=$as_save_IFS
  4515. if test -z "$ac_cv_path_GREP"; then
  4516. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4517. fi
  4518. else
  4519. ac_cv_path_GREP=$GREP
  4520. fi
  4521. fi
  4522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4523. $as_echo "$ac_cv_path_GREP" >&6; }
  4524. GREP="$ac_cv_path_GREP"
  4525. ac_ext=c
  4526. ac_cpp='$CPP $CPPFLAGS'
  4527. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4528. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4529. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4531. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4532. # On Suns, sometimes $CPP names a directory.
  4533. if test -n "$CPP" && test -d "$CPP"; then
  4534. CPP=
  4535. fi
  4536. if test -z "$CPP"; then
  4537. if ${ac_cv_prog_CPP+:} false; then :
  4538. $as_echo_n "(cached) " >&6
  4539. else
  4540. # Double quotes because CPP needs to be expanded
  4541. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4542. do
  4543. ac_preproc_ok=false
  4544. for ac_c_preproc_warn_flag in '' yes
  4545. do
  4546. # Use a header file that comes with gcc, so configuring glibc
  4547. # with a fresh cross-compiler works.
  4548. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4549. # <limits.h> exists even on freestanding compilers.
  4550. # On the NeXT, cc -E runs the code through the compiler's parser,
  4551. # not just through cpp. "Syntax error" is here to catch this case.
  4552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4553. /* end confdefs.h. */
  4554. #ifdef __STDC__
  4555. # include <limits.h>
  4556. #else
  4557. # include <assert.h>
  4558. #endif
  4559. Syntax error
  4560. _ACEOF
  4561. if ac_fn_c_try_cpp "$LINENO"; then :
  4562. else
  4563. # Broken: fails on valid input.
  4564. continue
  4565. fi
  4566. rm -f conftest.err conftest.i conftest.$ac_ext
  4567. # OK, works on sane cases. Now check whether nonexistent headers
  4568. # can be detected and how.
  4569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4570. /* end confdefs.h. */
  4571. #include <ac_nonexistent.h>
  4572. _ACEOF
  4573. if ac_fn_c_try_cpp "$LINENO"; then :
  4574. # Broken: success on invalid input.
  4575. continue
  4576. else
  4577. # Passes both tests.
  4578. ac_preproc_ok=:
  4579. break
  4580. fi
  4581. rm -f conftest.err conftest.i conftest.$ac_ext
  4582. done
  4583. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4584. rm -f conftest.i conftest.err conftest.$ac_ext
  4585. if $ac_preproc_ok; then :
  4586. break
  4587. fi
  4588. done
  4589. ac_cv_prog_CPP=$CPP
  4590. fi
  4591. CPP=$ac_cv_prog_CPP
  4592. else
  4593. ac_cv_prog_CPP=$CPP
  4594. fi
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4596. $as_echo "$CPP" >&6; }
  4597. ac_preproc_ok=false
  4598. for ac_c_preproc_warn_flag in '' yes
  4599. do
  4600. # Use a header file that comes with gcc, so configuring glibc
  4601. # with a fresh cross-compiler works.
  4602. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4603. # <limits.h> exists even on freestanding compilers.
  4604. # On the NeXT, cc -E runs the code through the compiler's parser,
  4605. # not just through cpp. "Syntax error" is here to catch this case.
  4606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4607. /* end confdefs.h. */
  4608. #ifdef __STDC__
  4609. # include <limits.h>
  4610. #else
  4611. # include <assert.h>
  4612. #endif
  4613. Syntax error
  4614. _ACEOF
  4615. if ac_fn_c_try_cpp "$LINENO"; then :
  4616. else
  4617. # Broken: fails on valid input.
  4618. continue
  4619. fi
  4620. rm -f conftest.err conftest.i conftest.$ac_ext
  4621. # OK, works on sane cases. Now check whether nonexistent headers
  4622. # can be detected and how.
  4623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4624. /* end confdefs.h. */
  4625. #include <ac_nonexistent.h>
  4626. _ACEOF
  4627. if ac_fn_c_try_cpp "$LINENO"; then :
  4628. # Broken: success on invalid input.
  4629. continue
  4630. else
  4631. # Passes both tests.
  4632. ac_preproc_ok=:
  4633. break
  4634. fi
  4635. rm -f conftest.err conftest.i conftest.$ac_ext
  4636. done
  4637. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4638. rm -f conftest.i conftest.err conftest.$ac_ext
  4639. if $ac_preproc_ok; then :
  4640. else
  4641. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4642. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4643. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4644. See \`config.log' for more details" "$LINENO" 5; }
  4645. fi
  4646. ac_ext=c
  4647. ac_cpp='$CPP $CPPFLAGS'
  4648. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4649. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4650. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4652. $as_echo_n "checking for egrep... " >&6; }
  4653. if ${ac_cv_path_EGREP+:} false; then :
  4654. $as_echo_n "(cached) " >&6
  4655. else
  4656. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4657. then ac_cv_path_EGREP="$GREP -E"
  4658. else
  4659. if test -z "$EGREP"; then
  4660. ac_path_EGREP_found=false
  4661. # Loop through the user's path and test for each of PROGNAME-LIST
  4662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4663. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4664. do
  4665. IFS=$as_save_IFS
  4666. test -z "$as_dir" && as_dir=.
  4667. for ac_prog in egrep; do
  4668. for ac_exec_ext in '' $ac_executable_extensions; do
  4669. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4670. as_fn_executable_p "$ac_path_EGREP" || continue
  4671. # Check for GNU ac_path_EGREP and select it if it is found.
  4672. # Check for GNU $ac_path_EGREP
  4673. case `"$ac_path_EGREP" --version 2>&1` in
  4674. *GNU*)
  4675. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4676. *)
  4677. ac_count=0
  4678. $as_echo_n 0123456789 >"conftest.in"
  4679. while :
  4680. do
  4681. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4682. mv "conftest.tmp" "conftest.in"
  4683. cp "conftest.in" "conftest.nl"
  4684. $as_echo 'EGREP' >> "conftest.nl"
  4685. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4686. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4687. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4688. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4689. # Best one so far, save it but keep looking for a better one
  4690. ac_cv_path_EGREP="$ac_path_EGREP"
  4691. ac_path_EGREP_max=$ac_count
  4692. fi
  4693. # 10*(2^10) chars as input seems more than enough
  4694. test $ac_count -gt 10 && break
  4695. done
  4696. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4697. esac
  4698. $ac_path_EGREP_found && break 3
  4699. done
  4700. done
  4701. done
  4702. IFS=$as_save_IFS
  4703. if test -z "$ac_cv_path_EGREP"; then
  4704. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4705. fi
  4706. else
  4707. ac_cv_path_EGREP=$EGREP
  4708. fi
  4709. fi
  4710. fi
  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4712. $as_echo "$ac_cv_path_EGREP" >&6; }
  4713. EGREP="$ac_cv_path_EGREP"
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4715. $as_echo_n "checking for ANSI C header files... " >&6; }
  4716. if ${ac_cv_header_stdc+:} false; then :
  4717. $as_echo_n "(cached) " >&6
  4718. else
  4719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4720. /* end confdefs.h. */
  4721. #include <stdlib.h>
  4722. #include <stdarg.h>
  4723. #include <string.h>
  4724. #include <float.h>
  4725. int
  4726. main ()
  4727. {
  4728. ;
  4729. return 0;
  4730. }
  4731. _ACEOF
  4732. if ac_fn_c_try_compile "$LINENO"; then :
  4733. ac_cv_header_stdc=yes
  4734. else
  4735. ac_cv_header_stdc=no
  4736. fi
  4737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4738. if test $ac_cv_header_stdc = yes; then
  4739. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4741. /* end confdefs.h. */
  4742. #include <string.h>
  4743. _ACEOF
  4744. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4745. $EGREP "memchr" >/dev/null 2>&1; then :
  4746. else
  4747. ac_cv_header_stdc=no
  4748. fi
  4749. rm -f conftest*
  4750. fi
  4751. if test $ac_cv_header_stdc = yes; then
  4752. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4754. /* end confdefs.h. */
  4755. #include <stdlib.h>
  4756. _ACEOF
  4757. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4758. $EGREP "free" >/dev/null 2>&1; then :
  4759. else
  4760. ac_cv_header_stdc=no
  4761. fi
  4762. rm -f conftest*
  4763. fi
  4764. if test $ac_cv_header_stdc = yes; then
  4765. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4766. if test "$cross_compiling" = yes; then :
  4767. :
  4768. else
  4769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4770. /* end confdefs.h. */
  4771. #include <ctype.h>
  4772. #include <stdlib.h>
  4773. #if ((' ' & 0x0FF) == 0x020)
  4774. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4775. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4776. #else
  4777. # define ISLOWER(c) \
  4778. (('a' <= (c) && (c) <= 'i') \
  4779. || ('j' <= (c) && (c) <= 'r') \
  4780. || ('s' <= (c) && (c) <= 'z'))
  4781. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4782. #endif
  4783. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4784. int
  4785. main ()
  4786. {
  4787. int i;
  4788. for (i = 0; i < 256; i++)
  4789. if (XOR (islower (i), ISLOWER (i))
  4790. || toupper (i) != TOUPPER (i))
  4791. return 2;
  4792. return 0;
  4793. }
  4794. _ACEOF
  4795. if ac_fn_c_try_run "$LINENO"; then :
  4796. else
  4797. ac_cv_header_stdc=no
  4798. fi
  4799. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4800. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4801. fi
  4802. fi
  4803. fi
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4805. $as_echo "$ac_cv_header_stdc" >&6; }
  4806. if test $ac_cv_header_stdc = yes; then
  4807. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4808. fi
  4809. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4810. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4811. inttypes.h stdint.h unistd.h
  4812. do :
  4813. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4814. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4815. "
  4816. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4817. cat >>confdefs.h <<_ACEOF
  4818. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4819. _ACEOF
  4820. fi
  4821. done
  4822. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4823. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4824. MINIX=yes
  4825. else
  4826. MINIX=
  4827. fi
  4828. if test "$MINIX" = yes; then
  4829. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4830. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4831. $as_echo "#define _MINIX 1" >>confdefs.h
  4832. fi
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4834. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4835. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4836. $as_echo_n "(cached) " >&6
  4837. else
  4838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4839. /* end confdefs.h. */
  4840. # define __EXTENSIONS__ 1
  4841. $ac_includes_default
  4842. int
  4843. main ()
  4844. {
  4845. ;
  4846. return 0;
  4847. }
  4848. _ACEOF
  4849. if ac_fn_c_try_compile "$LINENO"; then :
  4850. ac_cv_safe_to_define___extensions__=yes
  4851. else
  4852. ac_cv_safe_to_define___extensions__=no
  4853. fi
  4854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4855. fi
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4857. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4858. test $ac_cv_safe_to_define___extensions__ = yes &&
  4859. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4860. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4861. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4862. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4863. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4864. case `pwd` in
  4865. *\ * | *\ *)
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4867. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4868. esac
  4869. macro_version='2.2.7a'
  4870. macro_revision='1.3134'
  4871. ltmain="$ac_aux_dir/ltmain.sh"
  4872. # Backslashify metacharacters that are still active within
  4873. # double-quoted strings.
  4874. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4875. # Same as above, but do not quote variable references.
  4876. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4877. # Sed substitution to delay expansion of an escaped shell variable in a
  4878. # double_quote_subst'ed string.
  4879. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4880. # Sed substitution to delay expansion of an escaped single quote.
  4881. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4882. # Sed substitution to avoid accidental globbing in evaled expressions
  4883. no_glob_subst='s/\*/\\\*/g'
  4884. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4885. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4886. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4888. $as_echo_n "checking how to print strings... " >&6; }
  4889. # Test print first, because it will be a builtin if present.
  4890. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4891. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4892. ECHO='print -r --'
  4893. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4894. ECHO='printf %s\n'
  4895. else
  4896. # Use this function as a fallback that always works.
  4897. func_fallback_echo ()
  4898. {
  4899. eval 'cat <<_LTECHO_EOF
  4900. $1
  4901. _LTECHO_EOF'
  4902. }
  4903. ECHO='func_fallback_echo'
  4904. fi
  4905. # func_echo_all arg...
  4906. # Invoke $ECHO with all args, space-separated.
  4907. func_echo_all ()
  4908. {
  4909. $ECHO ""
  4910. }
  4911. case "$ECHO" in
  4912. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4913. $as_echo "printf" >&6; } ;;
  4914. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4915. $as_echo "print -r" >&6; } ;;
  4916. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4917. $as_echo "cat" >&6; } ;;
  4918. esac
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4920. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4921. if ${ac_cv_path_SED+:} false; then :
  4922. $as_echo_n "(cached) " >&6
  4923. else
  4924. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4925. for ac_i in 1 2 3 4 5 6 7; do
  4926. ac_script="$ac_script$as_nl$ac_script"
  4927. done
  4928. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4929. { ac_script=; unset ac_script;}
  4930. if test -z "$SED"; then
  4931. ac_path_SED_found=false
  4932. # Loop through the user's path and test for each of PROGNAME-LIST
  4933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4934. for as_dir in $PATH
  4935. do
  4936. IFS=$as_save_IFS
  4937. test -z "$as_dir" && as_dir=.
  4938. for ac_prog in sed gsed; do
  4939. for ac_exec_ext in '' $ac_executable_extensions; do
  4940. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4941. as_fn_executable_p "$ac_path_SED" || continue
  4942. # Check for GNU ac_path_SED and select it if it is found.
  4943. # Check for GNU $ac_path_SED
  4944. case `"$ac_path_SED" --version 2>&1` in
  4945. *GNU*)
  4946. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4947. *)
  4948. ac_count=0
  4949. $as_echo_n 0123456789 >"conftest.in"
  4950. while :
  4951. do
  4952. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4953. mv "conftest.tmp" "conftest.in"
  4954. cp "conftest.in" "conftest.nl"
  4955. $as_echo '' >> "conftest.nl"
  4956. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4957. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4958. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4959. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4960. # Best one so far, save it but keep looking for a better one
  4961. ac_cv_path_SED="$ac_path_SED"
  4962. ac_path_SED_max=$ac_count
  4963. fi
  4964. # 10*(2^10) chars as input seems more than enough
  4965. test $ac_count -gt 10 && break
  4966. done
  4967. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4968. esac
  4969. $ac_path_SED_found && break 3
  4970. done
  4971. done
  4972. done
  4973. IFS=$as_save_IFS
  4974. if test -z "$ac_cv_path_SED"; then
  4975. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4976. fi
  4977. else
  4978. ac_cv_path_SED=$SED
  4979. fi
  4980. fi
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4982. $as_echo "$ac_cv_path_SED" >&6; }
  4983. SED="$ac_cv_path_SED"
  4984. rm -f conftest.sed
  4985. test -z "$SED" && SED=sed
  4986. Xsed="$SED -e 1s/^X//"
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4988. $as_echo_n "checking for fgrep... " >&6; }
  4989. if ${ac_cv_path_FGREP+:} false; then :
  4990. $as_echo_n "(cached) " >&6
  4991. else
  4992. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4993. then ac_cv_path_FGREP="$GREP -F"
  4994. else
  4995. if test -z "$FGREP"; then
  4996. ac_path_FGREP_found=false
  4997. # Loop through the user's path and test for each of PROGNAME-LIST
  4998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4999. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5000. do
  5001. IFS=$as_save_IFS
  5002. test -z "$as_dir" && as_dir=.
  5003. for ac_prog in fgrep; do
  5004. for ac_exec_ext in '' $ac_executable_extensions; do
  5005. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5006. as_fn_executable_p "$ac_path_FGREP" || continue
  5007. # Check for GNU ac_path_FGREP and select it if it is found.
  5008. # Check for GNU $ac_path_FGREP
  5009. case `"$ac_path_FGREP" --version 2>&1` in
  5010. *GNU*)
  5011. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5012. *)
  5013. ac_count=0
  5014. $as_echo_n 0123456789 >"conftest.in"
  5015. while :
  5016. do
  5017. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5018. mv "conftest.tmp" "conftest.in"
  5019. cp "conftest.in" "conftest.nl"
  5020. $as_echo 'FGREP' >> "conftest.nl"
  5021. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5022. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5023. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5024. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5025. # Best one so far, save it but keep looking for a better one
  5026. ac_cv_path_FGREP="$ac_path_FGREP"
  5027. ac_path_FGREP_max=$ac_count
  5028. fi
  5029. # 10*(2^10) chars as input seems more than enough
  5030. test $ac_count -gt 10 && break
  5031. done
  5032. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5033. esac
  5034. $ac_path_FGREP_found && break 3
  5035. done
  5036. done
  5037. done
  5038. IFS=$as_save_IFS
  5039. if test -z "$ac_cv_path_FGREP"; then
  5040. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5041. fi
  5042. else
  5043. ac_cv_path_FGREP=$FGREP
  5044. fi
  5045. fi
  5046. fi
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5048. $as_echo "$ac_cv_path_FGREP" >&6; }
  5049. FGREP="$ac_cv_path_FGREP"
  5050. test -z "$GREP" && GREP=grep
  5051. # Check whether --with-gnu-ld was given.
  5052. if test "${with_gnu_ld+set}" = set; then :
  5053. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5054. else
  5055. with_gnu_ld=no
  5056. fi
  5057. ac_prog=ld
  5058. if test "$GCC" = yes; then
  5059. # Check if gcc -print-prog-name=ld gives a path.
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5061. $as_echo_n "checking for ld used by $CC... " >&6; }
  5062. case $host in
  5063. *-*-mingw*)
  5064. # gcc leaves a trailing carriage return which upsets mingw
  5065. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5066. *)
  5067. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5068. esac
  5069. case $ac_prog in
  5070. # Accept absolute paths.
  5071. [\\/]* | ?:[\\/]*)
  5072. re_direlt='/[^/][^/]*/\.\./'
  5073. # Canonicalize the pathname of ld
  5074. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5075. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5076. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5077. done
  5078. test -z "$LD" && LD="$ac_prog"
  5079. ;;
  5080. "")
  5081. # If it fails, then pretend we aren't using GCC.
  5082. ac_prog=ld
  5083. ;;
  5084. *)
  5085. # If it is relative, then search for the first ld in PATH.
  5086. with_gnu_ld=unknown
  5087. ;;
  5088. esac
  5089. elif test "$with_gnu_ld" = yes; then
  5090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5091. $as_echo_n "checking for GNU ld... " >&6; }
  5092. else
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5094. $as_echo_n "checking for non-GNU ld... " >&6; }
  5095. fi
  5096. if ${lt_cv_path_LD+:} false; then :
  5097. $as_echo_n "(cached) " >&6
  5098. else
  5099. if test -z "$LD"; then
  5100. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5101. for ac_dir in $PATH; do
  5102. IFS="$lt_save_ifs"
  5103. test -z "$ac_dir" && ac_dir=.
  5104. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5105. lt_cv_path_LD="$ac_dir/$ac_prog"
  5106. # Check to see if the program is GNU ld. I'd rather use --version,
  5107. # but apparently some variants of GNU ld only accept -v.
  5108. # Break only if it was the GNU/non-GNU ld that we prefer.
  5109. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5110. *GNU* | *'with BFD'*)
  5111. test "$with_gnu_ld" != no && break
  5112. ;;
  5113. *)
  5114. test "$with_gnu_ld" != yes && break
  5115. ;;
  5116. esac
  5117. fi
  5118. done
  5119. IFS="$lt_save_ifs"
  5120. else
  5121. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5122. fi
  5123. fi
  5124. LD="$lt_cv_path_LD"
  5125. if test -n "$LD"; then
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5127. $as_echo "$LD" >&6; }
  5128. else
  5129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5130. $as_echo "no" >&6; }
  5131. fi
  5132. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5134. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5135. if ${lt_cv_prog_gnu_ld+:} false; then :
  5136. $as_echo_n "(cached) " >&6
  5137. else
  5138. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5139. case `$LD -v 2>&1 </dev/null` in
  5140. *GNU* | *'with BFD'*)
  5141. lt_cv_prog_gnu_ld=yes
  5142. ;;
  5143. *)
  5144. lt_cv_prog_gnu_ld=no
  5145. ;;
  5146. esac
  5147. fi
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5149. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5150. with_gnu_ld=$lt_cv_prog_gnu_ld
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5152. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5153. if ${lt_cv_path_NM+:} false; then :
  5154. $as_echo_n "(cached) " >&6
  5155. else
  5156. if test -n "$NM"; then
  5157. # Let the user override the nm to test.
  5158. lt_nm_to_check="$NM"
  5159. else
  5160. lt_nm_to_check="${ac_tool_prefix}nm"
  5161. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5162. lt_nm_to_check="$lt_nm_to_check nm"
  5163. fi
  5164. fi
  5165. for lt_tmp_nm in "$lt_nm_to_check"; do
  5166. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5167. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5168. IFS="$lt_save_ifs"
  5169. test -z "$ac_dir" && ac_dir=.
  5170. # Strip out any user-provided options from the nm to test twice,
  5171. # the first time to test to see if nm (rather than its options) has
  5172. # an explicit path, the second time to yield a file which can be
  5173. # nm'ed itself.
  5174. tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
  5175. case "$tmp_nm_path" in
  5176. */*|*\\*) tmp_nm="$lt_tmp_nm";;
  5177. *) tmp_nm="$ac_dir/$lt_tmp_nm";;
  5178. esac
  5179. tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
  5180. if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
  5181. # Check to see if the nm accepts a BSD-compat flag.
  5182. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5183. # nm: unknown option "B" ignored
  5184. case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
  5185. *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
  5186. break
  5187. ;;
  5188. *)
  5189. case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
  5190. *$tmp_nm*)
  5191. lt_cv_path_NM="$tmp_nm -p"
  5192. break
  5193. ;;
  5194. *)
  5195. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5196. continue # so that we can try to find one that supports BSD flags
  5197. ;;
  5198. esac
  5199. ;;
  5200. esac
  5201. fi
  5202. done
  5203. IFS="$lt_save_ifs"
  5204. done
  5205. : ${lt_cv_path_NM=no}
  5206. fi
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5208. $as_echo "$lt_cv_path_NM" >&6; }
  5209. if test "$lt_cv_path_NM" != "no"; then
  5210. NM="$lt_cv_path_NM"
  5211. else
  5212. # Didn't find any BSD compatible name lister, look for dumpbin.
  5213. if test -n "$DUMPBIN"; then :
  5214. # Let the user override the test.
  5215. else
  5216. if test -n "$ac_tool_prefix"; then
  5217. for ac_prog in dumpbin "link -dump"
  5218. do
  5219. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5220. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5222. $as_echo_n "checking for $ac_word... " >&6; }
  5223. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5224. $as_echo_n "(cached) " >&6
  5225. else
  5226. if test -n "$DUMPBIN"; then
  5227. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5228. else
  5229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5230. for as_dir in $PATH
  5231. do
  5232. IFS=$as_save_IFS
  5233. test -z "$as_dir" && as_dir=.
  5234. for ac_exec_ext in '' $ac_executable_extensions; do
  5235. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5236. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5237. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5238. break 2
  5239. fi
  5240. done
  5241. done
  5242. IFS=$as_save_IFS
  5243. fi
  5244. fi
  5245. DUMPBIN=$ac_cv_prog_DUMPBIN
  5246. if test -n "$DUMPBIN"; then
  5247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5248. $as_echo "$DUMPBIN" >&6; }
  5249. else
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5251. $as_echo "no" >&6; }
  5252. fi
  5253. test -n "$DUMPBIN" && break
  5254. done
  5255. fi
  5256. if test -z "$DUMPBIN"; then
  5257. ac_ct_DUMPBIN=$DUMPBIN
  5258. for ac_prog in dumpbin "link -dump"
  5259. do
  5260. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5261. set dummy $ac_prog; ac_word=$2
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5263. $as_echo_n "checking for $ac_word... " >&6; }
  5264. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5265. $as_echo_n "(cached) " >&6
  5266. else
  5267. if test -n "$ac_ct_DUMPBIN"; then
  5268. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5269. else
  5270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5271. for as_dir in $PATH
  5272. do
  5273. IFS=$as_save_IFS
  5274. test -z "$as_dir" && as_dir=.
  5275. for ac_exec_ext in '' $ac_executable_extensions; do
  5276. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5277. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5278. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5279. break 2
  5280. fi
  5281. done
  5282. done
  5283. IFS=$as_save_IFS
  5284. fi
  5285. fi
  5286. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5287. if test -n "$ac_ct_DUMPBIN"; then
  5288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5289. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5290. else
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5292. $as_echo "no" >&6; }
  5293. fi
  5294. test -n "$ac_ct_DUMPBIN" && break
  5295. done
  5296. if test "x$ac_ct_DUMPBIN" = x; then
  5297. DUMPBIN=":"
  5298. else
  5299. case $cross_compiling:$ac_tool_warned in
  5300. yes:)
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5302. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5303. ac_tool_warned=yes ;;
  5304. esac
  5305. DUMPBIN=$ac_ct_DUMPBIN
  5306. fi
  5307. fi
  5308. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5309. *COFF*)
  5310. DUMPBIN="$DUMPBIN -symbols"
  5311. ;;
  5312. *)
  5313. DUMPBIN=:
  5314. ;;
  5315. esac
  5316. fi
  5317. if test "$DUMPBIN" != ":"; then
  5318. NM="$DUMPBIN"
  5319. fi
  5320. fi
  5321. test -z "$NM" && NM=nm
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5323. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5324. if ${lt_cv_nm_interface+:} false; then :
  5325. $as_echo_n "(cached) " >&6
  5326. else
  5327. lt_cv_nm_interface="BSD nm"
  5328. echo "int some_variable = 0;" > conftest.$ac_ext
  5329. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5330. (eval "$ac_compile" 2>conftest.err)
  5331. cat conftest.err >&5
  5332. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5333. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5334. cat conftest.err >&5
  5335. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5336. cat conftest.out >&5
  5337. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5338. lt_cv_nm_interface="MS dumpbin"
  5339. fi
  5340. rm -f conftest*
  5341. fi
  5342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5343. $as_echo "$lt_cv_nm_interface" >&6; }
  5344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5345. $as_echo_n "checking whether ln -s works... " >&6; }
  5346. LN_S=$as_ln_s
  5347. if test "$LN_S" = "ln -s"; then
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5349. $as_echo "yes" >&6; }
  5350. else
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5352. $as_echo "no, using $LN_S" >&6; }
  5353. fi
  5354. # find the maximum length of command line arguments
  5355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5356. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5357. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5358. $as_echo_n "(cached) " >&6
  5359. else
  5360. i=0
  5361. teststring="ABCD"
  5362. case $build_os in
  5363. msdosdjgpp*)
  5364. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5365. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5366. # during glob expansion). Even if it were fixed, the result of this
  5367. # check would be larger than it should be.
  5368. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5369. ;;
  5370. gnu*)
  5371. # Under GNU Hurd, this test is not required because there is
  5372. # no limit to the length of command line arguments.
  5373. # Libtool will interpret -1 as no limit whatsoever
  5374. lt_cv_sys_max_cmd_len=-1;
  5375. ;;
  5376. cygwin* | mingw* | cegcc*)
  5377. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5378. # about 5 minutes as the teststring grows exponentially.
  5379. # Worse, since 9x/ME are not pre-emptively multitasking,
  5380. # you end up with a "frozen" computer, even though with patience
  5381. # the test eventually succeeds (with a max line length of 256k).
  5382. # Instead, let's just punt: use the minimum linelength reported by
  5383. # all of the supported platforms: 8192 (on NT/2K/XP).
  5384. lt_cv_sys_max_cmd_len=8192;
  5385. ;;
  5386. mint*)
  5387. # On MiNT this can take a long time and run out of memory.
  5388. lt_cv_sys_max_cmd_len=8192;
  5389. ;;
  5390. amigaos*)
  5391. # On AmigaOS with pdksh, this test takes hours, literally.
  5392. # So we just punt and use a minimum line length of 8192.
  5393. lt_cv_sys_max_cmd_len=8192;
  5394. ;;
  5395. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5396. # This has been around since 386BSD, at least. Likely further.
  5397. if test -x /sbin/sysctl; then
  5398. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5399. elif test -x /usr/sbin/sysctl; then
  5400. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5401. else
  5402. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5403. fi
  5404. # And add a safety zone
  5405. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5406. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5407. ;;
  5408. interix*)
  5409. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5410. lt_cv_sys_max_cmd_len=196608
  5411. ;;
  5412. osf*)
  5413. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5414. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5415. # nice to cause kernel panics so lets avoid the loop below.
  5416. # First set a reasonable default.
  5417. lt_cv_sys_max_cmd_len=16384
  5418. #
  5419. if test -x /sbin/sysconfig; then
  5420. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5421. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5422. esac
  5423. fi
  5424. ;;
  5425. sco3.2v5*)
  5426. lt_cv_sys_max_cmd_len=102400
  5427. ;;
  5428. sysv5* | sco5v6* | sysv4.2uw2*)
  5429. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5430. if test -n "$kargmax"; then
  5431. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5432. else
  5433. lt_cv_sys_max_cmd_len=32768
  5434. fi
  5435. ;;
  5436. *)
  5437. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5438. if test -n "$lt_cv_sys_max_cmd_len"; then
  5439. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5440. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5441. else
  5442. # Make teststring a little bigger before we do anything with it.
  5443. # a 1K string should be a reasonable start.
  5444. for i in 1 2 3 4 5 6 7 8 ; do
  5445. teststring=$teststring$teststring
  5446. done
  5447. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5448. # If test is not a shell built-in, we'll probably end up computing a
  5449. # maximum length that is only half of the actual maximum length, but
  5450. # we can't tell.
  5451. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5452. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5453. test $i != 17 # 1/2 MB should be enough
  5454. do
  5455. i=`expr $i + 1`
  5456. teststring=$teststring$teststring
  5457. done
  5458. # Only check the string length outside the loop.
  5459. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5460. teststring=
  5461. # Add a significant safety factor because C++ compilers can tack on
  5462. # massive amounts of additional arguments before passing them to the
  5463. # linker. It appears as though 1/2 is a usable value.
  5464. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5465. fi
  5466. ;;
  5467. esac
  5468. fi
  5469. if test -n $lt_cv_sys_max_cmd_len ; then
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5471. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5472. else
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5474. $as_echo "none" >&6; }
  5475. fi
  5476. max_cmd_len=$lt_cv_sys_max_cmd_len
  5477. : ${CP="cp -f"}
  5478. : ${MV="mv -f"}
  5479. : ${RM="rm -f"}
  5480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5481. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5482. # Try some XSI features
  5483. xsi_shell=no
  5484. ( _lt_dummy="a/b/c"
  5485. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5486. = c,a/b,, \
  5487. && eval 'test $(( 1 + 1 )) -eq 2 \
  5488. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5489. && xsi_shell=yes
  5490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5491. $as_echo "$xsi_shell" >&6; }
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5493. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5494. lt_shell_append=no
  5495. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5496. >/dev/null 2>&1 \
  5497. && lt_shell_append=yes
  5498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5499. $as_echo "$lt_shell_append" >&6; }
  5500. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5501. lt_unset=unset
  5502. else
  5503. lt_unset=false
  5504. fi
  5505. # test EBCDIC or ASCII
  5506. case `echo X|tr X '\101'` in
  5507. A) # ASCII based system
  5508. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5509. lt_SP2NL='tr \040 \012'
  5510. lt_NL2SP='tr \015\012 \040\040'
  5511. ;;
  5512. *) # EBCDIC based system
  5513. lt_SP2NL='tr \100 \n'
  5514. lt_NL2SP='tr \r\n \100\100'
  5515. ;;
  5516. esac
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5518. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5519. if ${lt_cv_ld_reload_flag+:} false; then :
  5520. $as_echo_n "(cached) " >&6
  5521. else
  5522. lt_cv_ld_reload_flag='-r'
  5523. fi
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5525. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5526. reload_flag=$lt_cv_ld_reload_flag
  5527. case $reload_flag in
  5528. "" | " "*) ;;
  5529. *) reload_flag=" $reload_flag" ;;
  5530. esac
  5531. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5532. case $host_os in
  5533. darwin*)
  5534. if test "$GCC" = yes; then
  5535. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5536. else
  5537. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5538. fi
  5539. ;;
  5540. esac
  5541. if test -n "$ac_tool_prefix"; then
  5542. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5543. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5545. $as_echo_n "checking for $ac_word... " >&6; }
  5546. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5547. $as_echo_n "(cached) " >&6
  5548. else
  5549. if test -n "$OBJDUMP"; then
  5550. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5551. else
  5552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5553. for as_dir in $PATH
  5554. do
  5555. IFS=$as_save_IFS
  5556. test -z "$as_dir" && as_dir=.
  5557. for ac_exec_ext in '' $ac_executable_extensions; do
  5558. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5559. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5560. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5561. break 2
  5562. fi
  5563. done
  5564. done
  5565. IFS=$as_save_IFS
  5566. fi
  5567. fi
  5568. OBJDUMP=$ac_cv_prog_OBJDUMP
  5569. if test -n "$OBJDUMP"; then
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5571. $as_echo "$OBJDUMP" >&6; }
  5572. else
  5573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5574. $as_echo "no" >&6; }
  5575. fi
  5576. fi
  5577. if test -z "$ac_cv_prog_OBJDUMP"; then
  5578. ac_ct_OBJDUMP=$OBJDUMP
  5579. # Extract the first word of "objdump", so it can be a program name with args.
  5580. set dummy objdump; ac_word=$2
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5582. $as_echo_n "checking for $ac_word... " >&6; }
  5583. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5584. $as_echo_n "(cached) " >&6
  5585. else
  5586. if test -n "$ac_ct_OBJDUMP"; then
  5587. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5588. else
  5589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5590. for as_dir in $PATH
  5591. do
  5592. IFS=$as_save_IFS
  5593. test -z "$as_dir" && as_dir=.
  5594. for ac_exec_ext in '' $ac_executable_extensions; do
  5595. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5596. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5598. break 2
  5599. fi
  5600. done
  5601. done
  5602. IFS=$as_save_IFS
  5603. fi
  5604. fi
  5605. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5606. if test -n "$ac_ct_OBJDUMP"; then
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5608. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5609. else
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5611. $as_echo "no" >&6; }
  5612. fi
  5613. if test "x$ac_ct_OBJDUMP" = x; then
  5614. OBJDUMP="false"
  5615. else
  5616. case $cross_compiling:$ac_tool_warned in
  5617. yes:)
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5619. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5620. ac_tool_warned=yes ;;
  5621. esac
  5622. OBJDUMP=$ac_ct_OBJDUMP
  5623. fi
  5624. else
  5625. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5626. fi
  5627. test -z "$OBJDUMP" && OBJDUMP=objdump
  5628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5629. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5630. if ${lt_cv_deplibs_check_method+:} false; then :
  5631. $as_echo_n "(cached) " >&6
  5632. else
  5633. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5634. lt_cv_file_magic_test_file=
  5635. lt_cv_deplibs_check_method='unknown'
  5636. # Need to set the preceding variable on all platforms that support
  5637. # interlibrary dependencies.
  5638. # 'none' -- dependencies not supported.
  5639. # `unknown' -- same as none, but documents that we really don't know.
  5640. # 'pass_all' -- all dependencies passed with no checks.
  5641. # 'test_compile' -- check by making test program.
  5642. # 'file_magic [[regex]]' -- check by looking for files in library path
  5643. # which responds to the $file_magic_cmd with a given extended regex.
  5644. # If you have `file' or equivalent on your system and you're not sure
  5645. # whether `pass_all' will *always* work, you probably want this one.
  5646. case $host_os in
  5647. aix[4-9]*)
  5648. lt_cv_deplibs_check_method=pass_all
  5649. ;;
  5650. beos*)
  5651. lt_cv_deplibs_check_method=pass_all
  5652. ;;
  5653. bsdi[45]*)
  5654. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5655. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5656. lt_cv_file_magic_test_file=/shlib/libc.so
  5657. ;;
  5658. cygwin*)
  5659. # func_win32_libid is a shell function defined in ltmain.sh
  5660. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5661. lt_cv_file_magic_cmd='func_win32_libid'
  5662. ;;
  5663. mingw* | pw32*)
  5664. # Base MSYS/MinGW do not provide the 'file' command needed by
  5665. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5666. # unless we find 'file', for example because we are cross-compiling.
  5667. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5668. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5669. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5670. lt_cv_file_magic_cmd='func_win32_libid'
  5671. else
  5672. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5673. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5674. fi
  5675. ;;
  5676. cegcc*)
  5677. # use the weaker test based on 'objdump'. See mingw*.
  5678. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5679. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5680. ;;
  5681. darwin* | rhapsody*)
  5682. lt_cv_deplibs_check_method=pass_all
  5683. ;;
  5684. freebsd* | dragonfly*)
  5685. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5686. case $host_cpu in
  5687. i*86 )
  5688. # Not sure whether the presence of OpenBSD here was a mistake.
  5689. # Let's accept both of them until this is cleared up.
  5690. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5691. lt_cv_file_magic_cmd=/usr/bin/file
  5692. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5693. ;;
  5694. esac
  5695. else
  5696. lt_cv_deplibs_check_method=pass_all
  5697. fi
  5698. ;;
  5699. gnu*)
  5700. lt_cv_deplibs_check_method=pass_all
  5701. ;;
  5702. haiku*)
  5703. lt_cv_deplibs_check_method=pass_all
  5704. ;;
  5705. hpux10.20* | hpux11*)
  5706. lt_cv_file_magic_cmd=/usr/bin/file
  5707. case $host_cpu in
  5708. ia64*)
  5709. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5710. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5711. ;;
  5712. hppa*64*)
  5713. 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]'
  5714. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5715. ;;
  5716. *)
  5717. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5718. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5719. ;;
  5720. esac
  5721. ;;
  5722. interix[3-9]*)
  5723. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5724. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5725. ;;
  5726. irix5* | irix6* | nonstopux*)
  5727. case $LD in
  5728. *-32|*"-32 ") libmagic=32-bit;;
  5729. *-n32|*"-n32 ") libmagic=N32;;
  5730. *-64|*"-64 ") libmagic=64-bit;;
  5731. *) libmagic=never-match;;
  5732. esac
  5733. lt_cv_deplibs_check_method=pass_all
  5734. ;;
  5735. # This must be Linux ELF.
  5736. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5737. lt_cv_deplibs_check_method=pass_all
  5738. ;;
  5739. netbsd*)
  5740. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5741. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5742. else
  5743. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5744. fi
  5745. ;;
  5746. newos6*)
  5747. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5748. lt_cv_file_magic_cmd=/usr/bin/file
  5749. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5750. ;;
  5751. *nto* | *qnx*)
  5752. lt_cv_deplibs_check_method=pass_all
  5753. ;;
  5754. openbsd*)
  5755. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5756. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5757. else
  5758. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5759. fi
  5760. ;;
  5761. osf3* | osf4* | osf5*)
  5762. lt_cv_deplibs_check_method=pass_all
  5763. ;;
  5764. rdos*)
  5765. lt_cv_deplibs_check_method=pass_all
  5766. ;;
  5767. solaris*)
  5768. lt_cv_deplibs_check_method=pass_all
  5769. ;;
  5770. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5771. lt_cv_deplibs_check_method=pass_all
  5772. ;;
  5773. sysv4 | sysv4.3*)
  5774. case $host_vendor in
  5775. motorola)
  5776. 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]'
  5777. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5778. ;;
  5779. ncr)
  5780. lt_cv_deplibs_check_method=pass_all
  5781. ;;
  5782. sequent)
  5783. lt_cv_file_magic_cmd='/bin/file'
  5784. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5785. ;;
  5786. sni)
  5787. lt_cv_file_magic_cmd='/bin/file'
  5788. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5789. lt_cv_file_magic_test_file=/lib/libc.so
  5790. ;;
  5791. siemens)
  5792. lt_cv_deplibs_check_method=pass_all
  5793. ;;
  5794. pc)
  5795. lt_cv_deplibs_check_method=pass_all
  5796. ;;
  5797. esac
  5798. ;;
  5799. tpf*)
  5800. lt_cv_deplibs_check_method=pass_all
  5801. ;;
  5802. esac
  5803. fi
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5805. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5806. file_magic_cmd=$lt_cv_file_magic_cmd
  5807. deplibs_check_method=$lt_cv_deplibs_check_method
  5808. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5809. plugin_option=
  5810. plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
  5811. for plugin in $plugin_names; do
  5812. plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
  5813. if test x$plugin_so = x$plugin; then
  5814. plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
  5815. fi
  5816. if test x$plugin_so != x$plugin; then
  5817. plugin_option="--plugin $plugin_so"
  5818. break
  5819. fi
  5820. done
  5821. if test -n "$ac_tool_prefix"; then
  5822. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5823. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5825. $as_echo_n "checking for $ac_word... " >&6; }
  5826. if ${ac_cv_prog_AR+:} false; then :
  5827. $as_echo_n "(cached) " >&6
  5828. else
  5829. if test -n "$AR"; then
  5830. ac_cv_prog_AR="$AR" # Let the user override the test.
  5831. else
  5832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5833. for as_dir in $PATH
  5834. do
  5835. IFS=$as_save_IFS
  5836. test -z "$as_dir" && as_dir=.
  5837. for ac_exec_ext in '' $ac_executable_extensions; do
  5838. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5839. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5841. break 2
  5842. fi
  5843. done
  5844. done
  5845. IFS=$as_save_IFS
  5846. fi
  5847. fi
  5848. AR=$ac_cv_prog_AR
  5849. if test -n "$AR"; then
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5851. $as_echo "$AR" >&6; }
  5852. else
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5854. $as_echo "no" >&6; }
  5855. fi
  5856. fi
  5857. if test -z "$ac_cv_prog_AR"; then
  5858. ac_ct_AR=$AR
  5859. # Extract the first word of "ar", so it can be a program name with args.
  5860. set dummy ar; ac_word=$2
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5862. $as_echo_n "checking for $ac_word... " >&6; }
  5863. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5864. $as_echo_n "(cached) " >&6
  5865. else
  5866. if test -n "$ac_ct_AR"; then
  5867. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5868. else
  5869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5870. for as_dir in $PATH
  5871. do
  5872. IFS=$as_save_IFS
  5873. test -z "$as_dir" && as_dir=.
  5874. for ac_exec_ext in '' $ac_executable_extensions; do
  5875. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5876. ac_cv_prog_ac_ct_AR="ar"
  5877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5878. break 2
  5879. fi
  5880. done
  5881. done
  5882. IFS=$as_save_IFS
  5883. fi
  5884. fi
  5885. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5886. if test -n "$ac_ct_AR"; then
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5888. $as_echo "$ac_ct_AR" >&6; }
  5889. else
  5890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5891. $as_echo "no" >&6; }
  5892. fi
  5893. if test "x$ac_ct_AR" = x; then
  5894. AR="false"
  5895. else
  5896. case $cross_compiling:$ac_tool_warned in
  5897. yes:)
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5899. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5900. ac_tool_warned=yes ;;
  5901. esac
  5902. AR=$ac_ct_AR
  5903. fi
  5904. else
  5905. AR="$ac_cv_prog_AR"
  5906. fi
  5907. test -z "$AR" && AR=ar
  5908. if test -n "$plugin_option"; then
  5909. if $AR --help 2>&1 | grep -q "\--plugin"; then
  5910. touch conftest.c
  5911. $AR $plugin_option rc conftest.a conftest.c
  5912. if test "$?" != 0; then
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
  5914. $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
  5915. else
  5916. AR="$AR $plugin_option"
  5917. fi
  5918. rm -f conftest.*
  5919. fi
  5920. fi
  5921. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5922. if test -n "$ac_tool_prefix"; then
  5923. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5924. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5926. $as_echo_n "checking for $ac_word... " >&6; }
  5927. if ${ac_cv_prog_STRIP+:} false; then :
  5928. $as_echo_n "(cached) " >&6
  5929. else
  5930. if test -n "$STRIP"; then
  5931. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5932. else
  5933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5934. for as_dir in $PATH
  5935. do
  5936. IFS=$as_save_IFS
  5937. test -z "$as_dir" && as_dir=.
  5938. for ac_exec_ext in '' $ac_executable_extensions; do
  5939. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5940. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5941. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5942. break 2
  5943. fi
  5944. done
  5945. done
  5946. IFS=$as_save_IFS
  5947. fi
  5948. fi
  5949. STRIP=$ac_cv_prog_STRIP
  5950. if test -n "$STRIP"; then
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5952. $as_echo "$STRIP" >&6; }
  5953. else
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5955. $as_echo "no" >&6; }
  5956. fi
  5957. fi
  5958. if test -z "$ac_cv_prog_STRIP"; then
  5959. ac_ct_STRIP=$STRIP
  5960. # Extract the first word of "strip", so it can be a program name with args.
  5961. set dummy strip; ac_word=$2
  5962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5963. $as_echo_n "checking for $ac_word... " >&6; }
  5964. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5965. $as_echo_n "(cached) " >&6
  5966. else
  5967. if test -n "$ac_ct_STRIP"; then
  5968. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5969. else
  5970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5971. for as_dir in $PATH
  5972. do
  5973. IFS=$as_save_IFS
  5974. test -z "$as_dir" && as_dir=.
  5975. for ac_exec_ext in '' $ac_executable_extensions; do
  5976. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5977. ac_cv_prog_ac_ct_STRIP="strip"
  5978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5979. break 2
  5980. fi
  5981. done
  5982. done
  5983. IFS=$as_save_IFS
  5984. fi
  5985. fi
  5986. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5987. if test -n "$ac_ct_STRIP"; then
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5989. $as_echo "$ac_ct_STRIP" >&6; }
  5990. else
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5992. $as_echo "no" >&6; }
  5993. fi
  5994. if test "x$ac_ct_STRIP" = x; then
  5995. STRIP=":"
  5996. else
  5997. case $cross_compiling:$ac_tool_warned in
  5998. yes:)
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6000. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6001. ac_tool_warned=yes ;;
  6002. esac
  6003. STRIP=$ac_ct_STRIP
  6004. fi
  6005. else
  6006. STRIP="$ac_cv_prog_STRIP"
  6007. fi
  6008. test -z "$STRIP" && STRIP=:
  6009. if test -n "$ac_tool_prefix"; then
  6010. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6011. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6013. $as_echo_n "checking for $ac_word... " >&6; }
  6014. if ${ac_cv_prog_RANLIB+:} false; then :
  6015. $as_echo_n "(cached) " >&6
  6016. else
  6017. if test -n "$RANLIB"; then
  6018. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6019. else
  6020. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6021. for as_dir in $PATH
  6022. do
  6023. IFS=$as_save_IFS
  6024. test -z "$as_dir" && as_dir=.
  6025. for ac_exec_ext in '' $ac_executable_extensions; do
  6026. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6027. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6028. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6029. break 2
  6030. fi
  6031. done
  6032. done
  6033. IFS=$as_save_IFS
  6034. fi
  6035. fi
  6036. RANLIB=$ac_cv_prog_RANLIB
  6037. if test -n "$RANLIB"; then
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6039. $as_echo "$RANLIB" >&6; }
  6040. else
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6042. $as_echo "no" >&6; }
  6043. fi
  6044. fi
  6045. if test -z "$ac_cv_prog_RANLIB"; then
  6046. ac_ct_RANLIB=$RANLIB
  6047. # Extract the first word of "ranlib", so it can be a program name with args.
  6048. set dummy ranlib; ac_word=$2
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6050. $as_echo_n "checking for $ac_word... " >&6; }
  6051. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6052. $as_echo_n "(cached) " >&6
  6053. else
  6054. if test -n "$ac_ct_RANLIB"; then
  6055. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6056. else
  6057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6058. for as_dir in $PATH
  6059. do
  6060. IFS=$as_save_IFS
  6061. test -z "$as_dir" && as_dir=.
  6062. for ac_exec_ext in '' $ac_executable_extensions; do
  6063. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6064. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6065. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6066. break 2
  6067. fi
  6068. done
  6069. done
  6070. IFS=$as_save_IFS
  6071. fi
  6072. fi
  6073. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6074. if test -n "$ac_ct_RANLIB"; then
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6076. $as_echo "$ac_ct_RANLIB" >&6; }
  6077. else
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6079. $as_echo "no" >&6; }
  6080. fi
  6081. if test "x$ac_ct_RANLIB" = x; then
  6082. RANLIB=":"
  6083. else
  6084. case $cross_compiling:$ac_tool_warned in
  6085. yes:)
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6087. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6088. ac_tool_warned=yes ;;
  6089. esac
  6090. RANLIB=$ac_ct_RANLIB
  6091. fi
  6092. else
  6093. RANLIB="$ac_cv_prog_RANLIB"
  6094. fi
  6095. test -z "$RANLIB" && RANLIB=:
  6096. if test -n "$plugin_option" && test "$RANLIB" != ":"; then
  6097. if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
  6098. RANLIB="$RANLIB $plugin_option"
  6099. fi
  6100. fi
  6101. # Determine commands to create old-style static archives.
  6102. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6103. old_postinstall_cmds='chmod 644 $oldlib'
  6104. old_postuninstall_cmds=
  6105. if test -n "$RANLIB"; then
  6106. case $host_os in
  6107. openbsd*)
  6108. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6109. ;;
  6110. *)
  6111. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6112. ;;
  6113. esac
  6114. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6115. fi
  6116. case $host_os in
  6117. darwin*)
  6118. lock_old_archive_extraction=yes ;;
  6119. *)
  6120. lock_old_archive_extraction=no ;;
  6121. esac
  6122. # If no C compiler was specified, use CC.
  6123. LTCC=${LTCC-"$CC"}
  6124. # If no C compiler flags were specified, use CFLAGS.
  6125. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6126. # Allow CC to be a program name with arguments.
  6127. compiler=$CC
  6128. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6130. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6131. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6132. $as_echo_n "(cached) " >&6
  6133. else
  6134. # These are sane defaults that work on at least a few old systems.
  6135. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6136. # Character class describing NM global symbol codes.
  6137. symcode='[BCDEGRST]'
  6138. # Regexp to match symbols that can be accessed directly from C.
  6139. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6140. # Define system-specific variables.
  6141. case $host_os in
  6142. aix*)
  6143. symcode='[BCDT]'
  6144. ;;
  6145. cygwin* | mingw* | pw32* | cegcc*)
  6146. symcode='[ABCDGISTW]'
  6147. ;;
  6148. hpux*)
  6149. if test "$host_cpu" = ia64; then
  6150. symcode='[ABCDEGRST]'
  6151. fi
  6152. ;;
  6153. irix* | nonstopux*)
  6154. symcode='[BCDEGRST]'
  6155. ;;
  6156. osf*)
  6157. symcode='[BCDEGQRST]'
  6158. ;;
  6159. solaris*)
  6160. symcode='[BCDRT]'
  6161. ;;
  6162. sco3.2v5*)
  6163. symcode='[DT]'
  6164. ;;
  6165. sysv4.2uw2*)
  6166. symcode='[DT]'
  6167. ;;
  6168. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6169. symcode='[ABDT]'
  6170. ;;
  6171. sysv4)
  6172. symcode='[DFNSTU]'
  6173. ;;
  6174. esac
  6175. # If we're using GNU nm, then use its standard symbol codes.
  6176. case `$NM -V 2>&1` in
  6177. *GNU* | *'with BFD'*)
  6178. symcode='[ABCDGIRSTW]' ;;
  6179. esac
  6180. # Transform an extracted symbol line into a proper C declaration.
  6181. # Some systems (esp. on ia64) link data and code symbols differently,
  6182. # so use this general approach.
  6183. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6184. # Transform an extracted symbol line into symbol name and symbol address
  6185. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6186. 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'"
  6187. # Handle CRLF in mingw tool chain
  6188. opt_cr=
  6189. case $build_os in
  6190. mingw*)
  6191. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6192. ;;
  6193. esac
  6194. # Try without a prefix underscore, then with it.
  6195. for ac_symprfx in "" "_"; do
  6196. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6197. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6198. # Write the raw and C identifiers.
  6199. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6200. # Fake it for dumpbin and say T for any non-static function
  6201. # and D for any global variable.
  6202. # Also find C++ and __fastcall symbols from MSVC++,
  6203. # which start with @ or ?.
  6204. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6205. " {last_section=section; section=\$ 3};"\
  6206. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6207. " \$ 0!~/External *\|/{next};"\
  6208. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6209. " {if(hide[section]) next};"\
  6210. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6211. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6212. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6213. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6214. " ' prfx=^$ac_symprfx"
  6215. else
  6216. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6217. fi
  6218. # Check to see that the pipe works correctly.
  6219. pipe_works=no
  6220. rm -f conftest*
  6221. cat > conftest.$ac_ext <<_LT_EOF
  6222. #ifdef __cplusplus
  6223. extern "C" {
  6224. #endif
  6225. char nm_test_var;
  6226. void nm_test_func(void);
  6227. void nm_test_func(void){}
  6228. #ifdef __cplusplus
  6229. }
  6230. #endif
  6231. int main(){nm_test_var='a';nm_test_func();return(0);}
  6232. _LT_EOF
  6233. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6234. (eval $ac_compile) 2>&5
  6235. ac_status=$?
  6236. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6237. test $ac_status = 0; }; then
  6238. # Now try to grab the symbols.
  6239. nlist=conftest.nm
  6240. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6241. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6242. ac_status=$?
  6243. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6244. test $ac_status = 0; } && test -s "$nlist"; then
  6245. # Try sorting and uniquifying the output.
  6246. if sort "$nlist" | uniq > "$nlist"T; then
  6247. mv -f "$nlist"T "$nlist"
  6248. else
  6249. rm -f "$nlist"T
  6250. fi
  6251. # Make sure that we snagged all the symbols we need.
  6252. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6253. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6254. cat <<_LT_EOF > conftest.$ac_ext
  6255. #ifdef __cplusplus
  6256. extern "C" {
  6257. #endif
  6258. _LT_EOF
  6259. # Now generate the symbol file.
  6260. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6261. cat <<_LT_EOF >> conftest.$ac_ext
  6262. /* The mapping between symbol names and symbols. */
  6263. const struct {
  6264. const char *name;
  6265. void *address;
  6266. }
  6267. lt__PROGRAM__LTX_preloaded_symbols[] =
  6268. {
  6269. { "@PROGRAM@", (void *) 0 },
  6270. _LT_EOF
  6271. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6272. cat <<\_LT_EOF >> conftest.$ac_ext
  6273. {0, (void *) 0}
  6274. };
  6275. /* This works around a problem in FreeBSD linker */
  6276. #ifdef FREEBSD_WORKAROUND
  6277. static const void *lt_preloaded_setup() {
  6278. return lt__PROGRAM__LTX_preloaded_symbols;
  6279. }
  6280. #endif
  6281. #ifdef __cplusplus
  6282. }
  6283. #endif
  6284. _LT_EOF
  6285. # Now try linking the two files.
  6286. mv conftest.$ac_objext conftstm.$ac_objext
  6287. lt_save_LIBS="$LIBS"
  6288. lt_save_CFLAGS="$CFLAGS"
  6289. LIBS="conftstm.$ac_objext"
  6290. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6291. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6292. (eval $ac_link) 2>&5
  6293. ac_status=$?
  6294. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6295. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6296. pipe_works=yes
  6297. fi
  6298. LIBS="$lt_save_LIBS"
  6299. CFLAGS="$lt_save_CFLAGS"
  6300. else
  6301. echo "cannot find nm_test_func in $nlist" >&5
  6302. fi
  6303. else
  6304. echo "cannot find nm_test_var in $nlist" >&5
  6305. fi
  6306. else
  6307. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6308. fi
  6309. else
  6310. echo "$progname: failed program was:" >&5
  6311. cat conftest.$ac_ext >&5
  6312. fi
  6313. rm -rf conftest* conftst*
  6314. # Do not use the global_symbol_pipe unless it works.
  6315. if test "$pipe_works" = yes; then
  6316. break
  6317. else
  6318. lt_cv_sys_global_symbol_pipe=
  6319. fi
  6320. done
  6321. fi
  6322. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6323. lt_cv_sys_global_symbol_to_cdecl=
  6324. fi
  6325. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6327. $as_echo "failed" >&6; }
  6328. else
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6330. $as_echo "ok" >&6; }
  6331. fi
  6332. # Check whether --enable-libtool-lock was given.
  6333. if test "${enable_libtool_lock+set}" = set; then :
  6334. enableval=$enable_libtool_lock;
  6335. fi
  6336. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6337. # Some flags need to be propagated to the compiler or linker for good
  6338. # libtool support.
  6339. case $host in
  6340. ia64-*-hpux*)
  6341. # Find out which ABI we are using.
  6342. echo 'int i;' > conftest.$ac_ext
  6343. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6344. (eval $ac_compile) 2>&5
  6345. ac_status=$?
  6346. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6347. test $ac_status = 0; }; then
  6348. case `/usr/bin/file conftest.$ac_objext` in
  6349. *ELF-32*)
  6350. HPUX_IA64_MODE="32"
  6351. ;;
  6352. *ELF-64*)
  6353. HPUX_IA64_MODE="64"
  6354. ;;
  6355. esac
  6356. fi
  6357. rm -rf conftest*
  6358. ;;
  6359. *-*-irix6*)
  6360. # Find out which ABI we are using.
  6361. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6362. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6363. (eval $ac_compile) 2>&5
  6364. ac_status=$?
  6365. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6366. test $ac_status = 0; }; then
  6367. if test "$lt_cv_prog_gnu_ld" = yes; then
  6368. case `/usr/bin/file conftest.$ac_objext` in
  6369. *32-bit*)
  6370. LD="${LD-ld} -melf32bsmip"
  6371. ;;
  6372. *N32*)
  6373. LD="${LD-ld} -melf32bmipn32"
  6374. ;;
  6375. *64-bit*)
  6376. LD="${LD-ld} -melf64bmip"
  6377. ;;
  6378. esac
  6379. else
  6380. case `/usr/bin/file conftest.$ac_objext` in
  6381. *32-bit*)
  6382. LD="${LD-ld} -32"
  6383. ;;
  6384. *N32*)
  6385. LD="${LD-ld} -n32"
  6386. ;;
  6387. *64-bit*)
  6388. LD="${LD-ld} -64"
  6389. ;;
  6390. esac
  6391. fi
  6392. fi
  6393. rm -rf conftest*
  6394. ;;
  6395. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6396. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6397. # Find out which ABI we are using.
  6398. echo 'int i;' > conftest.$ac_ext
  6399. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6400. (eval $ac_compile) 2>&5
  6401. ac_status=$?
  6402. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6403. test $ac_status = 0; }; then
  6404. case `/usr/bin/file conftest.o` in
  6405. *32-bit*)
  6406. case $host in
  6407. x86_64-*kfreebsd*-gnu)
  6408. LD="${LD-ld} -m elf_i386_fbsd"
  6409. ;;
  6410. x86_64-*linux*)
  6411. case `/usr/bin/file conftest.o` in
  6412. *x86-64*)
  6413. LD="${LD-ld} -m elf32_x86_64"
  6414. ;;
  6415. *)
  6416. LD="${LD-ld} -m elf_i386"
  6417. ;;
  6418. esac
  6419. ;;
  6420. powerpc64le-*linux*)
  6421. LD="${LD-ld} -m elf32lppclinux"
  6422. ;;
  6423. powerpc64-*linux*)
  6424. LD="${LD-ld} -m elf32ppclinux"
  6425. ;;
  6426. s390x-*linux*)
  6427. LD="${LD-ld} -m elf_s390"
  6428. ;;
  6429. sparc64-*linux*)
  6430. LD="${LD-ld} -m elf32_sparc"
  6431. ;;
  6432. esac
  6433. ;;
  6434. *64-bit*)
  6435. case $host in
  6436. x86_64-*kfreebsd*-gnu)
  6437. LD="${LD-ld} -m elf_x86_64_fbsd"
  6438. ;;
  6439. x86_64-*linux*)
  6440. LD="${LD-ld} -m elf_x86_64"
  6441. ;;
  6442. powerpcle-*linux*)
  6443. LD="${LD-ld} -m elf64lppc"
  6444. ;;
  6445. powerpc-*linux*)
  6446. LD="${LD-ld} -m elf64ppc"
  6447. ;;
  6448. s390*-*linux*|s390*-*tpf*)
  6449. LD="${LD-ld} -m elf64_s390"
  6450. ;;
  6451. sparc*-*linux*)
  6452. LD="${LD-ld} -m elf64_sparc"
  6453. ;;
  6454. esac
  6455. ;;
  6456. esac
  6457. fi
  6458. rm -rf conftest*
  6459. ;;
  6460. *-*-sco3.2v5*)
  6461. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6462. SAVE_CFLAGS="$CFLAGS"
  6463. CFLAGS="$CFLAGS -belf"
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6465. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6466. if ${lt_cv_cc_needs_belf+:} false; then :
  6467. $as_echo_n "(cached) " >&6
  6468. else
  6469. ac_ext=c
  6470. ac_cpp='$CPP $CPPFLAGS'
  6471. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6472. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6473. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6475. /* end confdefs.h. */
  6476. int
  6477. main ()
  6478. {
  6479. ;
  6480. return 0;
  6481. }
  6482. _ACEOF
  6483. if ac_fn_c_try_link "$LINENO"; then :
  6484. lt_cv_cc_needs_belf=yes
  6485. else
  6486. lt_cv_cc_needs_belf=no
  6487. fi
  6488. rm -f core conftest.err conftest.$ac_objext \
  6489. conftest$ac_exeext conftest.$ac_ext
  6490. ac_ext=c
  6491. ac_cpp='$CPP $CPPFLAGS'
  6492. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6493. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6494. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6495. fi
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6497. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6498. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6499. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6500. CFLAGS="$SAVE_CFLAGS"
  6501. fi
  6502. ;;
  6503. sparc*-*solaris*)
  6504. # Find out which ABI we are using.
  6505. echo 'int i;' > conftest.$ac_ext
  6506. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6507. (eval $ac_compile) 2>&5
  6508. ac_status=$?
  6509. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6510. test $ac_status = 0; }; then
  6511. case `/usr/bin/file conftest.o` in
  6512. *64-bit*)
  6513. case $lt_cv_prog_gnu_ld in
  6514. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6515. *)
  6516. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6517. LD="${LD-ld} -64"
  6518. fi
  6519. ;;
  6520. esac
  6521. ;;
  6522. esac
  6523. fi
  6524. rm -rf conftest*
  6525. ;;
  6526. esac
  6527. need_locks="$enable_libtool_lock"
  6528. case $host_os in
  6529. rhapsody* | darwin*)
  6530. if test -n "$ac_tool_prefix"; then
  6531. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6532. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6534. $as_echo_n "checking for $ac_word... " >&6; }
  6535. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6536. $as_echo_n "(cached) " >&6
  6537. else
  6538. if test -n "$DSYMUTIL"; then
  6539. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6540. else
  6541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6542. for as_dir in $PATH
  6543. do
  6544. IFS=$as_save_IFS
  6545. test -z "$as_dir" && as_dir=.
  6546. for ac_exec_ext in '' $ac_executable_extensions; do
  6547. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6548. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6550. break 2
  6551. fi
  6552. done
  6553. done
  6554. IFS=$as_save_IFS
  6555. fi
  6556. fi
  6557. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6558. if test -n "$DSYMUTIL"; then
  6559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6560. $as_echo "$DSYMUTIL" >&6; }
  6561. else
  6562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6563. $as_echo "no" >&6; }
  6564. fi
  6565. fi
  6566. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6567. ac_ct_DSYMUTIL=$DSYMUTIL
  6568. # Extract the first word of "dsymutil", so it can be a program name with args.
  6569. set dummy dsymutil; ac_word=$2
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6571. $as_echo_n "checking for $ac_word... " >&6; }
  6572. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6573. $as_echo_n "(cached) " >&6
  6574. else
  6575. if test -n "$ac_ct_DSYMUTIL"; then
  6576. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6577. else
  6578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6579. for as_dir in $PATH
  6580. do
  6581. IFS=$as_save_IFS
  6582. test -z "$as_dir" && as_dir=.
  6583. for ac_exec_ext in '' $ac_executable_extensions; do
  6584. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6585. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6586. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6587. break 2
  6588. fi
  6589. done
  6590. done
  6591. IFS=$as_save_IFS
  6592. fi
  6593. fi
  6594. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6595. if test -n "$ac_ct_DSYMUTIL"; then
  6596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6597. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6598. else
  6599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6600. $as_echo "no" >&6; }
  6601. fi
  6602. if test "x$ac_ct_DSYMUTIL" = x; then
  6603. DSYMUTIL=":"
  6604. else
  6605. case $cross_compiling:$ac_tool_warned in
  6606. yes:)
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6608. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6609. ac_tool_warned=yes ;;
  6610. esac
  6611. DSYMUTIL=$ac_ct_DSYMUTIL
  6612. fi
  6613. else
  6614. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6615. fi
  6616. if test -n "$ac_tool_prefix"; then
  6617. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6618. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6620. $as_echo_n "checking for $ac_word... " >&6; }
  6621. if ${ac_cv_prog_NMEDIT+:} false; then :
  6622. $as_echo_n "(cached) " >&6
  6623. else
  6624. if test -n "$NMEDIT"; then
  6625. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6626. else
  6627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6628. for as_dir in $PATH
  6629. do
  6630. IFS=$as_save_IFS
  6631. test -z "$as_dir" && as_dir=.
  6632. for ac_exec_ext in '' $ac_executable_extensions; do
  6633. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6634. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6636. break 2
  6637. fi
  6638. done
  6639. done
  6640. IFS=$as_save_IFS
  6641. fi
  6642. fi
  6643. NMEDIT=$ac_cv_prog_NMEDIT
  6644. if test -n "$NMEDIT"; then
  6645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6646. $as_echo "$NMEDIT" >&6; }
  6647. else
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6649. $as_echo "no" >&6; }
  6650. fi
  6651. fi
  6652. if test -z "$ac_cv_prog_NMEDIT"; then
  6653. ac_ct_NMEDIT=$NMEDIT
  6654. # Extract the first word of "nmedit", so it can be a program name with args.
  6655. set dummy nmedit; ac_word=$2
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6657. $as_echo_n "checking for $ac_word... " >&6; }
  6658. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6659. $as_echo_n "(cached) " >&6
  6660. else
  6661. if test -n "$ac_ct_NMEDIT"; then
  6662. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6663. else
  6664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6665. for as_dir in $PATH
  6666. do
  6667. IFS=$as_save_IFS
  6668. test -z "$as_dir" && as_dir=.
  6669. for ac_exec_ext in '' $ac_executable_extensions; do
  6670. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6671. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6672. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6673. break 2
  6674. fi
  6675. done
  6676. done
  6677. IFS=$as_save_IFS
  6678. fi
  6679. fi
  6680. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6681. if test -n "$ac_ct_NMEDIT"; then
  6682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6683. $as_echo "$ac_ct_NMEDIT" >&6; }
  6684. else
  6685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6686. $as_echo "no" >&6; }
  6687. fi
  6688. if test "x$ac_ct_NMEDIT" = x; then
  6689. NMEDIT=":"
  6690. else
  6691. case $cross_compiling:$ac_tool_warned in
  6692. yes:)
  6693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6694. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6695. ac_tool_warned=yes ;;
  6696. esac
  6697. NMEDIT=$ac_ct_NMEDIT
  6698. fi
  6699. else
  6700. NMEDIT="$ac_cv_prog_NMEDIT"
  6701. fi
  6702. if test -n "$ac_tool_prefix"; then
  6703. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6704. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6706. $as_echo_n "checking for $ac_word... " >&6; }
  6707. if ${ac_cv_prog_LIPO+:} false; then :
  6708. $as_echo_n "(cached) " >&6
  6709. else
  6710. if test -n "$LIPO"; then
  6711. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6712. else
  6713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6714. for as_dir in $PATH
  6715. do
  6716. IFS=$as_save_IFS
  6717. test -z "$as_dir" && as_dir=.
  6718. for ac_exec_ext in '' $ac_executable_extensions; do
  6719. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6720. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6722. break 2
  6723. fi
  6724. done
  6725. done
  6726. IFS=$as_save_IFS
  6727. fi
  6728. fi
  6729. LIPO=$ac_cv_prog_LIPO
  6730. if test -n "$LIPO"; then
  6731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6732. $as_echo "$LIPO" >&6; }
  6733. else
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6735. $as_echo "no" >&6; }
  6736. fi
  6737. fi
  6738. if test -z "$ac_cv_prog_LIPO"; then
  6739. ac_ct_LIPO=$LIPO
  6740. # Extract the first word of "lipo", so it can be a program name with args.
  6741. set dummy lipo; ac_word=$2
  6742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6743. $as_echo_n "checking for $ac_word... " >&6; }
  6744. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6745. $as_echo_n "(cached) " >&6
  6746. else
  6747. if test -n "$ac_ct_LIPO"; then
  6748. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6749. else
  6750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6751. for as_dir in $PATH
  6752. do
  6753. IFS=$as_save_IFS
  6754. test -z "$as_dir" && as_dir=.
  6755. for ac_exec_ext in '' $ac_executable_extensions; do
  6756. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6757. ac_cv_prog_ac_ct_LIPO="lipo"
  6758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6759. break 2
  6760. fi
  6761. done
  6762. done
  6763. IFS=$as_save_IFS
  6764. fi
  6765. fi
  6766. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6767. if test -n "$ac_ct_LIPO"; then
  6768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6769. $as_echo "$ac_ct_LIPO" >&6; }
  6770. else
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6772. $as_echo "no" >&6; }
  6773. fi
  6774. if test "x$ac_ct_LIPO" = x; then
  6775. LIPO=":"
  6776. else
  6777. case $cross_compiling:$ac_tool_warned in
  6778. yes:)
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6780. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6781. ac_tool_warned=yes ;;
  6782. esac
  6783. LIPO=$ac_ct_LIPO
  6784. fi
  6785. else
  6786. LIPO="$ac_cv_prog_LIPO"
  6787. fi
  6788. if test -n "$ac_tool_prefix"; then
  6789. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6790. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6792. $as_echo_n "checking for $ac_word... " >&6; }
  6793. if ${ac_cv_prog_OTOOL+:} false; then :
  6794. $as_echo_n "(cached) " >&6
  6795. else
  6796. if test -n "$OTOOL"; then
  6797. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6798. else
  6799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6800. for as_dir in $PATH
  6801. do
  6802. IFS=$as_save_IFS
  6803. test -z "$as_dir" && as_dir=.
  6804. for ac_exec_ext in '' $ac_executable_extensions; do
  6805. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6806. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6807. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6808. break 2
  6809. fi
  6810. done
  6811. done
  6812. IFS=$as_save_IFS
  6813. fi
  6814. fi
  6815. OTOOL=$ac_cv_prog_OTOOL
  6816. if test -n "$OTOOL"; then
  6817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6818. $as_echo "$OTOOL" >&6; }
  6819. else
  6820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6821. $as_echo "no" >&6; }
  6822. fi
  6823. fi
  6824. if test -z "$ac_cv_prog_OTOOL"; then
  6825. ac_ct_OTOOL=$OTOOL
  6826. # Extract the first word of "otool", so it can be a program name with args.
  6827. set dummy otool; ac_word=$2
  6828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6829. $as_echo_n "checking for $ac_word... " >&6; }
  6830. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6831. $as_echo_n "(cached) " >&6
  6832. else
  6833. if test -n "$ac_ct_OTOOL"; then
  6834. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6835. else
  6836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6837. for as_dir in $PATH
  6838. do
  6839. IFS=$as_save_IFS
  6840. test -z "$as_dir" && as_dir=.
  6841. for ac_exec_ext in '' $ac_executable_extensions; do
  6842. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6843. ac_cv_prog_ac_ct_OTOOL="otool"
  6844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6845. break 2
  6846. fi
  6847. done
  6848. done
  6849. IFS=$as_save_IFS
  6850. fi
  6851. fi
  6852. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6853. if test -n "$ac_ct_OTOOL"; then
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6855. $as_echo "$ac_ct_OTOOL" >&6; }
  6856. else
  6857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6858. $as_echo "no" >&6; }
  6859. fi
  6860. if test "x$ac_ct_OTOOL" = x; then
  6861. OTOOL=":"
  6862. else
  6863. case $cross_compiling:$ac_tool_warned in
  6864. yes:)
  6865. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6866. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6867. ac_tool_warned=yes ;;
  6868. esac
  6869. OTOOL=$ac_ct_OTOOL
  6870. fi
  6871. else
  6872. OTOOL="$ac_cv_prog_OTOOL"
  6873. fi
  6874. if test -n "$ac_tool_prefix"; then
  6875. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6876. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6878. $as_echo_n "checking for $ac_word... " >&6; }
  6879. if ${ac_cv_prog_OTOOL64+:} false; then :
  6880. $as_echo_n "(cached) " >&6
  6881. else
  6882. if test -n "$OTOOL64"; then
  6883. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6884. else
  6885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6886. for as_dir in $PATH
  6887. do
  6888. IFS=$as_save_IFS
  6889. test -z "$as_dir" && as_dir=.
  6890. for ac_exec_ext in '' $ac_executable_extensions; do
  6891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6892. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6894. break 2
  6895. fi
  6896. done
  6897. done
  6898. IFS=$as_save_IFS
  6899. fi
  6900. fi
  6901. OTOOL64=$ac_cv_prog_OTOOL64
  6902. if test -n "$OTOOL64"; then
  6903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6904. $as_echo "$OTOOL64" >&6; }
  6905. else
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6907. $as_echo "no" >&6; }
  6908. fi
  6909. fi
  6910. if test -z "$ac_cv_prog_OTOOL64"; then
  6911. ac_ct_OTOOL64=$OTOOL64
  6912. # Extract the first word of "otool64", so it can be a program name with args.
  6913. set dummy otool64; ac_word=$2
  6914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6915. $as_echo_n "checking for $ac_word... " >&6; }
  6916. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6917. $as_echo_n "(cached) " >&6
  6918. else
  6919. if test -n "$ac_ct_OTOOL64"; then
  6920. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6921. else
  6922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6923. for as_dir in $PATH
  6924. do
  6925. IFS=$as_save_IFS
  6926. test -z "$as_dir" && as_dir=.
  6927. for ac_exec_ext in '' $ac_executable_extensions; do
  6928. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6929. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6931. break 2
  6932. fi
  6933. done
  6934. done
  6935. IFS=$as_save_IFS
  6936. fi
  6937. fi
  6938. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6939. if test -n "$ac_ct_OTOOL64"; then
  6940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6941. $as_echo "$ac_ct_OTOOL64" >&6; }
  6942. else
  6943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6944. $as_echo "no" >&6; }
  6945. fi
  6946. if test "x$ac_ct_OTOOL64" = x; then
  6947. OTOOL64=":"
  6948. else
  6949. case $cross_compiling:$ac_tool_warned in
  6950. yes:)
  6951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6953. ac_tool_warned=yes ;;
  6954. esac
  6955. OTOOL64=$ac_ct_OTOOL64
  6956. fi
  6957. else
  6958. OTOOL64="$ac_cv_prog_OTOOL64"
  6959. fi
  6960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6961. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6962. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6963. $as_echo_n "(cached) " >&6
  6964. else
  6965. lt_cv_apple_cc_single_mod=no
  6966. if test -z "${LT_MULTI_MODULE}"; then
  6967. # By default we will add the -single_module flag. You can override
  6968. # by either setting the environment variable LT_MULTI_MODULE
  6969. # non-empty at configure time, or by adding -multi_module to the
  6970. # link flags.
  6971. rm -rf libconftest.dylib*
  6972. echo "int foo(void){return 1;}" > conftest.c
  6973. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6974. -dynamiclib -Wl,-single_module conftest.c" >&5
  6975. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6976. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6977. _lt_result=$?
  6978. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6979. lt_cv_apple_cc_single_mod=yes
  6980. else
  6981. cat conftest.err >&5
  6982. fi
  6983. rm -rf libconftest.dylib*
  6984. rm -f conftest.*
  6985. fi
  6986. fi
  6987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6988. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6990. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6991. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6992. $as_echo_n "(cached) " >&6
  6993. else
  6994. lt_cv_ld_exported_symbols_list=no
  6995. save_LDFLAGS=$LDFLAGS
  6996. echo "_main" > conftest.sym
  6997. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6999. /* end confdefs.h. */
  7000. int
  7001. main ()
  7002. {
  7003. ;
  7004. return 0;
  7005. }
  7006. _ACEOF
  7007. if ac_fn_c_try_link "$LINENO"; then :
  7008. lt_cv_ld_exported_symbols_list=yes
  7009. else
  7010. lt_cv_ld_exported_symbols_list=no
  7011. fi
  7012. rm -f core conftest.err conftest.$ac_objext \
  7013. conftest$ac_exeext conftest.$ac_ext
  7014. LDFLAGS="$save_LDFLAGS"
  7015. fi
  7016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7017. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7019. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7020. if ${lt_cv_ld_force_load+:} false; then :
  7021. $as_echo_n "(cached) " >&6
  7022. else
  7023. lt_cv_ld_force_load=no
  7024. cat > conftest.c << _LT_EOF
  7025. int forced_loaded() { return 2;}
  7026. _LT_EOF
  7027. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7028. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7029. echo "$AR cru libconftest.a conftest.o" >&5
  7030. $AR cru libconftest.a conftest.o 2>&5
  7031. cat > conftest.c << _LT_EOF
  7032. int main() { return 0;}
  7033. _LT_EOF
  7034. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7035. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7036. _lt_result=$?
  7037. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7038. lt_cv_ld_force_load=yes
  7039. else
  7040. cat conftest.err >&5
  7041. fi
  7042. rm -f conftest.err libconftest.a conftest conftest.c
  7043. rm -rf conftest.dSYM
  7044. fi
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7046. $as_echo "$lt_cv_ld_force_load" >&6; }
  7047. case $host_os in
  7048. rhapsody* | darwin1.[012])
  7049. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7050. darwin1.*)
  7051. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7052. darwin*) # darwin 5.x on
  7053. # if running on 10.5 or later, the deployment target defaults
  7054. # to the OS version, if on x86, and 10.4, the deployment
  7055. # target defaults to 10.4. Don't you love it?
  7056. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7057. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7058. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7059. 10.[012][,.]*)
  7060. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7061. 10.*)
  7062. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7063. esac
  7064. ;;
  7065. esac
  7066. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7067. _lt_dar_single_mod='$single_module'
  7068. fi
  7069. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7070. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7071. else
  7072. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7073. fi
  7074. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7075. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7076. else
  7077. _lt_dsymutil=
  7078. fi
  7079. ;;
  7080. esac
  7081. for ac_header in dlfcn.h
  7082. do :
  7083. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7084. "
  7085. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7086. cat >>confdefs.h <<_ACEOF
  7087. #define HAVE_DLFCN_H 1
  7088. _ACEOF
  7089. fi
  7090. done
  7091. # Set options
  7092. enable_dlopen=no
  7093. enable_win32_dll=no
  7094. # Check whether --enable-shared was given.
  7095. if test "${enable_shared+set}" = set; then :
  7096. enableval=$enable_shared; p=${PACKAGE-default}
  7097. case $enableval in
  7098. yes) enable_shared=yes ;;
  7099. no) enable_shared=no ;;
  7100. *)
  7101. enable_shared=no
  7102. # Look at the argument we got. We use all the common list separators.
  7103. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7104. for pkg in $enableval; do
  7105. IFS="$lt_save_ifs"
  7106. if test "X$pkg" = "X$p"; then
  7107. enable_shared=yes
  7108. fi
  7109. done
  7110. IFS="$lt_save_ifs"
  7111. ;;
  7112. esac
  7113. else
  7114. enable_shared=yes
  7115. fi
  7116. # Check whether --enable-static was given.
  7117. if test "${enable_static+set}" = set; then :
  7118. enableval=$enable_static; p=${PACKAGE-default}
  7119. case $enableval in
  7120. yes) enable_static=yes ;;
  7121. no) enable_static=no ;;
  7122. *)
  7123. enable_static=no
  7124. # Look at the argument we got. We use all the common list separators.
  7125. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7126. for pkg in $enableval; do
  7127. IFS="$lt_save_ifs"
  7128. if test "X$pkg" = "X$p"; then
  7129. enable_static=yes
  7130. fi
  7131. done
  7132. IFS="$lt_save_ifs"
  7133. ;;
  7134. esac
  7135. else
  7136. enable_static=yes
  7137. fi
  7138. # Check whether --with-pic was given.
  7139. if test "${with_pic+set}" = set; then :
  7140. withval=$with_pic; pic_mode="$withval"
  7141. else
  7142. pic_mode=default
  7143. fi
  7144. test -z "$pic_mode" && pic_mode=default
  7145. # Check whether --enable-fast-install was given.
  7146. if test "${enable_fast_install+set}" = set; then :
  7147. enableval=$enable_fast_install; p=${PACKAGE-default}
  7148. case $enableval in
  7149. yes) enable_fast_install=yes ;;
  7150. no) enable_fast_install=no ;;
  7151. *)
  7152. enable_fast_install=no
  7153. # Look at the argument we got. We use all the common list separators.
  7154. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7155. for pkg in $enableval; do
  7156. IFS="$lt_save_ifs"
  7157. if test "X$pkg" = "X$p"; then
  7158. enable_fast_install=yes
  7159. fi
  7160. done
  7161. IFS="$lt_save_ifs"
  7162. ;;
  7163. esac
  7164. else
  7165. enable_fast_install=yes
  7166. fi
  7167. # This can be used to rebuild libtool when needed
  7168. LIBTOOL_DEPS="$ltmain"
  7169. # Always use our own libtool.
  7170. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7171. test -z "$LN_S" && LN_S="ln -s"
  7172. if test -n "${ZSH_VERSION+set}" ; then
  7173. setopt NO_GLOB_SUBST
  7174. fi
  7175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7176. $as_echo_n "checking for objdir... " >&6; }
  7177. if ${lt_cv_objdir+:} false; then :
  7178. $as_echo_n "(cached) " >&6
  7179. else
  7180. rm -f .libs 2>/dev/null
  7181. mkdir .libs 2>/dev/null
  7182. if test -d .libs; then
  7183. lt_cv_objdir=.libs
  7184. else
  7185. # MS-DOS does not allow filenames that begin with a dot.
  7186. lt_cv_objdir=_libs
  7187. fi
  7188. rmdir .libs 2>/dev/null
  7189. fi
  7190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7191. $as_echo "$lt_cv_objdir" >&6; }
  7192. objdir=$lt_cv_objdir
  7193. cat >>confdefs.h <<_ACEOF
  7194. #define LT_OBJDIR "$lt_cv_objdir/"
  7195. _ACEOF
  7196. case $host_os in
  7197. aix3*)
  7198. # AIX sometimes has problems with the GCC collect2 program. For some
  7199. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7200. # vanish in a puff of smoke.
  7201. if test "X${COLLECT_NAMES+set}" != Xset; then
  7202. COLLECT_NAMES=
  7203. export COLLECT_NAMES
  7204. fi
  7205. ;;
  7206. esac
  7207. # Global variables:
  7208. ofile=libtool
  7209. can_build_shared=yes
  7210. # All known linkers require a `.a' archive for static linking (except MSVC,
  7211. # which needs '.lib').
  7212. libext=a
  7213. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7214. old_CC="$CC"
  7215. old_CFLAGS="$CFLAGS"
  7216. # Set sane defaults for various variables
  7217. test -z "$CC" && CC=cc
  7218. test -z "$LTCC" && LTCC=$CC
  7219. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7220. test -z "$LD" && LD=ld
  7221. test -z "$ac_objext" && ac_objext=o
  7222. for cc_temp in $compiler""; do
  7223. case $cc_temp in
  7224. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7225. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7226. \-*) ;;
  7227. *) break;;
  7228. esac
  7229. done
  7230. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7231. # Only perform the check for file, if the check method requires it
  7232. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7233. case $deplibs_check_method in
  7234. file_magic*)
  7235. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7237. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7238. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7239. $as_echo_n "(cached) " >&6
  7240. else
  7241. case $MAGIC_CMD in
  7242. [\\/*] | ?:[\\/]*)
  7243. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7244. ;;
  7245. *)
  7246. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7247. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7248. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7249. for ac_dir in $ac_dummy; do
  7250. IFS="$lt_save_ifs"
  7251. test -z "$ac_dir" && ac_dir=.
  7252. if test -f $ac_dir/${ac_tool_prefix}file; then
  7253. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7254. if test -n "$file_magic_test_file"; then
  7255. case $deplibs_check_method in
  7256. "file_magic "*)
  7257. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7258. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7259. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7260. $EGREP "$file_magic_regex" > /dev/null; then
  7261. :
  7262. else
  7263. cat <<_LT_EOF 1>&2
  7264. *** Warning: the command libtool uses to detect shared libraries,
  7265. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7266. *** The result is that libtool may fail to recognize shared libraries
  7267. *** as such. This will affect the creation of libtool libraries that
  7268. *** depend on shared libraries, but programs linked with such libtool
  7269. *** libraries will work regardless of this problem. Nevertheless, you
  7270. *** may want to report the problem to your system manager and/or to
  7271. *** bug-libtool@gnu.org
  7272. _LT_EOF
  7273. fi ;;
  7274. esac
  7275. fi
  7276. break
  7277. fi
  7278. done
  7279. IFS="$lt_save_ifs"
  7280. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7281. ;;
  7282. esac
  7283. fi
  7284. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7285. if test -n "$MAGIC_CMD"; then
  7286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7287. $as_echo "$MAGIC_CMD" >&6; }
  7288. else
  7289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7290. $as_echo "no" >&6; }
  7291. fi
  7292. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7293. if test -n "$ac_tool_prefix"; then
  7294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7295. $as_echo_n "checking for file... " >&6; }
  7296. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7297. $as_echo_n "(cached) " >&6
  7298. else
  7299. case $MAGIC_CMD in
  7300. [\\/*] | ?:[\\/]*)
  7301. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7302. ;;
  7303. *)
  7304. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7305. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7306. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7307. for ac_dir in $ac_dummy; do
  7308. IFS="$lt_save_ifs"
  7309. test -z "$ac_dir" && ac_dir=.
  7310. if test -f $ac_dir/file; then
  7311. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7312. if test -n "$file_magic_test_file"; then
  7313. case $deplibs_check_method in
  7314. "file_magic "*)
  7315. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7316. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7317. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7318. $EGREP "$file_magic_regex" > /dev/null; then
  7319. :
  7320. else
  7321. cat <<_LT_EOF 1>&2
  7322. *** Warning: the command libtool uses to detect shared libraries,
  7323. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7324. *** The result is that libtool may fail to recognize shared libraries
  7325. *** as such. This will affect the creation of libtool libraries that
  7326. *** depend on shared libraries, but programs linked with such libtool
  7327. *** libraries will work regardless of this problem. Nevertheless, you
  7328. *** may want to report the problem to your system manager and/or to
  7329. *** bug-libtool@gnu.org
  7330. _LT_EOF
  7331. fi ;;
  7332. esac
  7333. fi
  7334. break
  7335. fi
  7336. done
  7337. IFS="$lt_save_ifs"
  7338. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7339. ;;
  7340. esac
  7341. fi
  7342. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7343. if test -n "$MAGIC_CMD"; then
  7344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7345. $as_echo "$MAGIC_CMD" >&6; }
  7346. else
  7347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7348. $as_echo "no" >&6; }
  7349. fi
  7350. else
  7351. MAGIC_CMD=:
  7352. fi
  7353. fi
  7354. fi
  7355. ;;
  7356. esac
  7357. # Use C for the default configuration in the libtool script
  7358. lt_save_CC="$CC"
  7359. ac_ext=c
  7360. ac_cpp='$CPP $CPPFLAGS'
  7361. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7362. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7363. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7364. # Source file extension for C test sources.
  7365. ac_ext=c
  7366. # Object file extension for compiled C test sources.
  7367. objext=o
  7368. objext=$objext
  7369. # Code to be used in simple compile tests
  7370. lt_simple_compile_test_code="int some_variable = 0;"
  7371. # Code to be used in simple link tests
  7372. lt_simple_link_test_code='int main(){return(0);}'
  7373. # If no C compiler was specified, use CC.
  7374. LTCC=${LTCC-"$CC"}
  7375. # If no C compiler flags were specified, use CFLAGS.
  7376. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7377. # Allow CC to be a program name with arguments.
  7378. compiler=$CC
  7379. # Save the default compiler, since it gets overwritten when the other
  7380. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7381. compiler_DEFAULT=$CC
  7382. # save warnings/boilerplate of simple test code
  7383. ac_outfile=conftest.$ac_objext
  7384. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7385. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7386. _lt_compiler_boilerplate=`cat conftest.err`
  7387. $RM conftest*
  7388. ac_outfile=conftest.$ac_objext
  7389. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7390. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7391. _lt_linker_boilerplate=`cat conftest.err`
  7392. $RM -r conftest*
  7393. ## CAVEAT EMPTOR:
  7394. ## There is no encapsulation within the following macros, do not change
  7395. ## the running order or otherwise move them around unless you know exactly
  7396. ## what you are doing...
  7397. if test -n "$compiler"; then
  7398. lt_prog_compiler_no_builtin_flag=
  7399. if test "$GCC" = yes; then
  7400. case $cc_basename in
  7401. nvcc*)
  7402. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7403. *)
  7404. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7405. esac
  7406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7407. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7408. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7409. $as_echo_n "(cached) " >&6
  7410. else
  7411. lt_cv_prog_compiler_rtti_exceptions=no
  7412. ac_outfile=conftest.$ac_objext
  7413. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7414. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7415. # Insert the option either (1) after the last *FLAGS variable, or
  7416. # (2) before a word containing "conftest.", or (3) at the end.
  7417. # Note that $ac_compile itself does not contain backslashes and begins
  7418. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7419. # The option is referenced via a variable to avoid confusing sed.
  7420. lt_compile=`echo "$ac_compile" | $SED \
  7421. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7422. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7423. -e 's:$: $lt_compiler_flag:'`
  7424. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7425. (eval "$lt_compile" 2>conftest.err)
  7426. ac_status=$?
  7427. cat conftest.err >&5
  7428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7429. if (exit $ac_status) && test -s "$ac_outfile"; then
  7430. # The compiler can only warn and ignore the option if not recognized
  7431. # So say no if there are warnings other than the usual output.
  7432. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7433. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7434. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7435. lt_cv_prog_compiler_rtti_exceptions=yes
  7436. fi
  7437. fi
  7438. $RM conftest*
  7439. fi
  7440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7441. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7442. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7443. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7444. else
  7445. :
  7446. fi
  7447. fi
  7448. lt_prog_compiler_wl=
  7449. lt_prog_compiler_pic=
  7450. lt_prog_compiler_static=
  7451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7452. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7453. if test "$GCC" = yes; then
  7454. lt_prog_compiler_wl='-Wl,'
  7455. lt_prog_compiler_static='-static'
  7456. case $host_os in
  7457. aix*)
  7458. # All AIX code is PIC.
  7459. if test "$host_cpu" = ia64; then
  7460. # AIX 5 now supports IA64 processor
  7461. lt_prog_compiler_static='-Bstatic'
  7462. fi
  7463. lt_prog_compiler_pic='-fPIC'
  7464. ;;
  7465. amigaos*)
  7466. case $host_cpu in
  7467. powerpc)
  7468. # see comment about AmigaOS4 .so support
  7469. lt_prog_compiler_pic='-fPIC'
  7470. ;;
  7471. m68k)
  7472. # FIXME: we need at least 68020 code to build shared libraries, but
  7473. # adding the `-m68020' flag to GCC prevents building anything better,
  7474. # like `-m68040'.
  7475. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7476. ;;
  7477. esac
  7478. ;;
  7479. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7480. # PIC is the default for these OSes.
  7481. ;;
  7482. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7483. # This hack is so that the source file can tell whether it is being
  7484. # built for inclusion in a dll (and should export symbols for example).
  7485. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7486. # (--disable-auto-import) libraries
  7487. lt_prog_compiler_pic='-DDLL_EXPORT'
  7488. ;;
  7489. darwin* | rhapsody*)
  7490. # PIC is the default on this platform
  7491. # Common symbols not allowed in MH_DYLIB files
  7492. lt_prog_compiler_pic='-fno-common'
  7493. ;;
  7494. haiku*)
  7495. # PIC is the default for Haiku.
  7496. # The "-static" flag exists, but is broken.
  7497. lt_prog_compiler_static=
  7498. ;;
  7499. hpux*)
  7500. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7501. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7502. # sets the default TLS model and affects inlining.
  7503. case $host_cpu in
  7504. hppa*64*)
  7505. # +Z the default
  7506. ;;
  7507. *)
  7508. lt_prog_compiler_pic='-fPIC'
  7509. ;;
  7510. esac
  7511. ;;
  7512. interix[3-9]*)
  7513. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7514. # Instead, we relocate shared libraries at runtime.
  7515. ;;
  7516. msdosdjgpp*)
  7517. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7518. # on systems that don't support them.
  7519. lt_prog_compiler_can_build_shared=no
  7520. enable_shared=no
  7521. ;;
  7522. *nto* | *qnx*)
  7523. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7524. # it will coredump.
  7525. lt_prog_compiler_pic='-fPIC -shared'
  7526. ;;
  7527. sysv4*MP*)
  7528. if test -d /usr/nec; then
  7529. lt_prog_compiler_pic=-Kconform_pic
  7530. fi
  7531. ;;
  7532. *)
  7533. lt_prog_compiler_pic='-fPIC'
  7534. ;;
  7535. esac
  7536. case $cc_basename in
  7537. nvcc*) # Cuda Compiler Driver 2.2
  7538. lt_prog_compiler_wl='-Xlinker '
  7539. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7540. ;;
  7541. esac
  7542. else
  7543. # PORTME Check for flag to pass linker flags through the system compiler.
  7544. case $host_os in
  7545. aix*)
  7546. lt_prog_compiler_wl='-Wl,'
  7547. if test "$host_cpu" = ia64; then
  7548. # AIX 5 now supports IA64 processor
  7549. lt_prog_compiler_static='-Bstatic'
  7550. else
  7551. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7552. fi
  7553. ;;
  7554. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7555. # This hack is so that the source file can tell whether it is being
  7556. # built for inclusion in a dll (and should export symbols for example).
  7557. lt_prog_compiler_pic='-DDLL_EXPORT'
  7558. ;;
  7559. hpux9* | hpux10* | hpux11*)
  7560. lt_prog_compiler_wl='-Wl,'
  7561. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7562. # not for PA HP-UX.
  7563. case $host_cpu in
  7564. hppa*64*|ia64*)
  7565. # +Z the default
  7566. ;;
  7567. *)
  7568. lt_prog_compiler_pic='+Z'
  7569. ;;
  7570. esac
  7571. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7572. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7573. ;;
  7574. irix5* | irix6* | nonstopux*)
  7575. lt_prog_compiler_wl='-Wl,'
  7576. # PIC (with -KPIC) is the default.
  7577. lt_prog_compiler_static='-non_shared'
  7578. ;;
  7579. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7580. case $cc_basename in
  7581. # old Intel for x86_64 which still supported -KPIC.
  7582. ecc*)
  7583. lt_prog_compiler_wl='-Wl,'
  7584. lt_prog_compiler_pic='-KPIC'
  7585. lt_prog_compiler_static='-static'
  7586. ;;
  7587. # icc used to be incompatible with GCC.
  7588. # ICC 10 doesn't accept -KPIC any more.
  7589. icc* | ifort*)
  7590. lt_prog_compiler_wl='-Wl,'
  7591. lt_prog_compiler_pic='-fPIC'
  7592. lt_prog_compiler_static='-static'
  7593. ;;
  7594. # Lahey Fortran 8.1.
  7595. lf95*)
  7596. lt_prog_compiler_wl='-Wl,'
  7597. lt_prog_compiler_pic='--shared'
  7598. lt_prog_compiler_static='--static'
  7599. ;;
  7600. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7601. # Portland Group compilers (*not* the Pentium gcc compiler,
  7602. # which looks to be a dead project)
  7603. lt_prog_compiler_wl='-Wl,'
  7604. lt_prog_compiler_pic='-fpic'
  7605. lt_prog_compiler_static='-Bstatic'
  7606. ;;
  7607. ccc*)
  7608. lt_prog_compiler_wl='-Wl,'
  7609. # All Alpha code is PIC.
  7610. lt_prog_compiler_static='-non_shared'
  7611. ;;
  7612. xl* | bgxl* | bgf* | mpixl*)
  7613. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7614. lt_prog_compiler_wl='-Wl,'
  7615. lt_prog_compiler_pic='-qpic'
  7616. lt_prog_compiler_static='-qstaticlink'
  7617. ;;
  7618. *)
  7619. case `$CC -V 2>&1 | sed 5q` in
  7620. *Sun\ F* | *Sun*Fortran*)
  7621. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7622. lt_prog_compiler_pic='-KPIC'
  7623. lt_prog_compiler_static='-Bstatic'
  7624. lt_prog_compiler_wl=''
  7625. ;;
  7626. *Sun\ C*)
  7627. # Sun C 5.9
  7628. lt_prog_compiler_pic='-KPIC'
  7629. lt_prog_compiler_static='-Bstatic'
  7630. lt_prog_compiler_wl='-Wl,'
  7631. ;;
  7632. esac
  7633. ;;
  7634. esac
  7635. ;;
  7636. newsos6)
  7637. lt_prog_compiler_pic='-KPIC'
  7638. lt_prog_compiler_static='-Bstatic'
  7639. ;;
  7640. *nto* | *qnx*)
  7641. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7642. # it will coredump.
  7643. lt_prog_compiler_pic='-fPIC -shared'
  7644. ;;
  7645. osf3* | osf4* | osf5*)
  7646. lt_prog_compiler_wl='-Wl,'
  7647. # All OSF/1 code is PIC.
  7648. lt_prog_compiler_static='-non_shared'
  7649. ;;
  7650. rdos*)
  7651. lt_prog_compiler_static='-non_shared'
  7652. ;;
  7653. solaris*)
  7654. lt_prog_compiler_pic='-KPIC'
  7655. lt_prog_compiler_static='-Bstatic'
  7656. case $cc_basename in
  7657. f77* | f90* | f95*)
  7658. lt_prog_compiler_wl='-Qoption ld ';;
  7659. *)
  7660. lt_prog_compiler_wl='-Wl,';;
  7661. esac
  7662. ;;
  7663. sunos4*)
  7664. lt_prog_compiler_wl='-Qoption ld '
  7665. lt_prog_compiler_pic='-PIC'
  7666. lt_prog_compiler_static='-Bstatic'
  7667. ;;
  7668. sysv4 | sysv4.2uw2* | sysv4.3*)
  7669. lt_prog_compiler_wl='-Wl,'
  7670. lt_prog_compiler_pic='-KPIC'
  7671. lt_prog_compiler_static='-Bstatic'
  7672. ;;
  7673. sysv4*MP*)
  7674. if test -d /usr/nec ;then
  7675. lt_prog_compiler_pic='-Kconform_pic'
  7676. lt_prog_compiler_static='-Bstatic'
  7677. fi
  7678. ;;
  7679. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7680. lt_prog_compiler_wl='-Wl,'
  7681. lt_prog_compiler_pic='-KPIC'
  7682. lt_prog_compiler_static='-Bstatic'
  7683. ;;
  7684. unicos*)
  7685. lt_prog_compiler_wl='-Wl,'
  7686. lt_prog_compiler_can_build_shared=no
  7687. ;;
  7688. uts4*)
  7689. lt_prog_compiler_pic='-pic'
  7690. lt_prog_compiler_static='-Bstatic'
  7691. ;;
  7692. *)
  7693. lt_prog_compiler_can_build_shared=no
  7694. ;;
  7695. esac
  7696. fi
  7697. case $host_os in
  7698. # For platforms which do not support PIC, -DPIC is meaningless:
  7699. *djgpp*)
  7700. lt_prog_compiler_pic=
  7701. ;;
  7702. *)
  7703. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7704. ;;
  7705. esac
  7706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7707. $as_echo "$lt_prog_compiler_pic" >&6; }
  7708. #
  7709. # Check to make sure the PIC flag actually works.
  7710. #
  7711. if test -n "$lt_prog_compiler_pic"; then
  7712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7713. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7714. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7715. $as_echo_n "(cached) " >&6
  7716. else
  7717. lt_cv_prog_compiler_pic_works=no
  7718. ac_outfile=conftest.$ac_objext
  7719. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7720. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7721. # Insert the option either (1) after the last *FLAGS variable, or
  7722. # (2) before a word containing "conftest.", or (3) at the end.
  7723. # Note that $ac_compile itself does not contain backslashes and begins
  7724. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7725. # The option is referenced via a variable to avoid confusing sed.
  7726. lt_compile=`echo "$ac_compile" | $SED \
  7727. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7728. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7729. -e 's:$: $lt_compiler_flag:'`
  7730. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7731. (eval "$lt_compile" 2>conftest.err)
  7732. ac_status=$?
  7733. cat conftest.err >&5
  7734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7735. if (exit $ac_status) && test -s "$ac_outfile"; then
  7736. # The compiler can only warn and ignore the option if not recognized
  7737. # So say no if there are warnings other than the usual output.
  7738. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7739. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7740. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7741. lt_cv_prog_compiler_pic_works=yes
  7742. fi
  7743. fi
  7744. $RM conftest*
  7745. fi
  7746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7747. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7748. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7749. case $lt_prog_compiler_pic in
  7750. "" | " "*) ;;
  7751. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7752. esac
  7753. else
  7754. lt_prog_compiler_pic=
  7755. lt_prog_compiler_can_build_shared=no
  7756. fi
  7757. fi
  7758. #
  7759. # Check to make sure the static flag actually works.
  7760. #
  7761. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7763. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7764. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7765. $as_echo_n "(cached) " >&6
  7766. else
  7767. lt_cv_prog_compiler_static_works=no
  7768. save_LDFLAGS="$LDFLAGS"
  7769. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7770. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7771. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7772. # The linker can only warn and ignore the option if not recognized
  7773. # So say no if there are warnings
  7774. if test -s conftest.err; then
  7775. # Append any errors to the config.log.
  7776. cat conftest.err 1>&5
  7777. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7778. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7779. if diff conftest.exp conftest.er2 >/dev/null; then
  7780. lt_cv_prog_compiler_static_works=yes
  7781. fi
  7782. else
  7783. lt_cv_prog_compiler_static_works=yes
  7784. fi
  7785. fi
  7786. $RM -r conftest*
  7787. LDFLAGS="$save_LDFLAGS"
  7788. fi
  7789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7790. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7791. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7792. :
  7793. else
  7794. lt_prog_compiler_static=
  7795. fi
  7796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7797. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7798. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7799. $as_echo_n "(cached) " >&6
  7800. else
  7801. lt_cv_prog_compiler_c_o=no
  7802. $RM -r conftest 2>/dev/null
  7803. mkdir conftest
  7804. cd conftest
  7805. mkdir out
  7806. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7807. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7808. # Insert the option either (1) after the last *FLAGS variable, or
  7809. # (2) before a word containing "conftest.", or (3) at the end.
  7810. # Note that $ac_compile itself does not contain backslashes and begins
  7811. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7812. lt_compile=`echo "$ac_compile" | $SED \
  7813. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7814. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7815. -e 's:$: $lt_compiler_flag:'`
  7816. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7817. (eval "$lt_compile" 2>out/conftest.err)
  7818. ac_status=$?
  7819. cat out/conftest.err >&5
  7820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7821. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7822. then
  7823. # The compiler can only warn and ignore the option if not recognized
  7824. # So say no if there are warnings
  7825. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7826. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7827. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7828. lt_cv_prog_compiler_c_o=yes
  7829. fi
  7830. fi
  7831. chmod u+w . 2>&5
  7832. $RM conftest*
  7833. # SGI C++ compiler will create directory out/ii_files/ for
  7834. # template instantiation
  7835. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7836. $RM out/* && rmdir out
  7837. cd ..
  7838. $RM -r conftest
  7839. $RM conftest*
  7840. fi
  7841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7842. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7844. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7845. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7846. $as_echo_n "(cached) " >&6
  7847. else
  7848. lt_cv_prog_compiler_c_o=no
  7849. $RM -r conftest 2>/dev/null
  7850. mkdir conftest
  7851. cd conftest
  7852. mkdir out
  7853. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7854. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7855. # Insert the option either (1) after the last *FLAGS variable, or
  7856. # (2) before a word containing "conftest.", or (3) at the end.
  7857. # Note that $ac_compile itself does not contain backslashes and begins
  7858. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7859. lt_compile=`echo "$ac_compile" | $SED \
  7860. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7861. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7862. -e 's:$: $lt_compiler_flag:'`
  7863. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7864. (eval "$lt_compile" 2>out/conftest.err)
  7865. ac_status=$?
  7866. cat out/conftest.err >&5
  7867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7868. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7869. then
  7870. # The compiler can only warn and ignore the option if not recognized
  7871. # So say no if there are warnings
  7872. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7873. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7874. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7875. lt_cv_prog_compiler_c_o=yes
  7876. fi
  7877. fi
  7878. chmod u+w . 2>&5
  7879. $RM conftest*
  7880. # SGI C++ compiler will create directory out/ii_files/ for
  7881. # template instantiation
  7882. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7883. $RM out/* && rmdir out
  7884. cd ..
  7885. $RM -r conftest
  7886. $RM conftest*
  7887. fi
  7888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7889. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7890. hard_links="nottested"
  7891. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7892. # do not overwrite the value of need_locks provided by the user
  7893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7894. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7895. hard_links=yes
  7896. $RM conftest*
  7897. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7898. touch conftest.a
  7899. ln conftest.a conftest.b 2>&5 || hard_links=no
  7900. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7902. $as_echo "$hard_links" >&6; }
  7903. if test "$hard_links" = no; then
  7904. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7905. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7906. need_locks=warn
  7907. fi
  7908. else
  7909. need_locks=no
  7910. fi
  7911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7912. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7913. runpath_var=
  7914. allow_undefined_flag=
  7915. always_export_symbols=no
  7916. archive_cmds=
  7917. archive_expsym_cmds=
  7918. compiler_needs_object=no
  7919. enable_shared_with_static_runtimes=no
  7920. export_dynamic_flag_spec=
  7921. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7922. hardcode_automatic=no
  7923. hardcode_direct=no
  7924. hardcode_direct_absolute=no
  7925. hardcode_libdir_flag_spec=
  7926. hardcode_libdir_flag_spec_ld=
  7927. hardcode_libdir_separator=
  7928. hardcode_minus_L=no
  7929. hardcode_shlibpath_var=unsupported
  7930. inherit_rpath=no
  7931. link_all_deplibs=unknown
  7932. module_cmds=
  7933. module_expsym_cmds=
  7934. old_archive_from_new_cmds=
  7935. old_archive_from_expsyms_cmds=
  7936. thread_safe_flag_spec=
  7937. whole_archive_flag_spec=
  7938. # include_expsyms should be a list of space-separated symbols to be *always*
  7939. # included in the symbol list
  7940. include_expsyms=
  7941. # exclude_expsyms can be an extended regexp of symbols to exclude
  7942. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7943. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7944. # as well as any symbol that contains `d'.
  7945. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7946. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7947. # platforms (ab)use it in PIC code, but their linkers get confused if
  7948. # the symbol is explicitly referenced. Since portable code cannot
  7949. # rely on this symbol name, it's probably fine to never include it in
  7950. # preloaded symbol tables.
  7951. # Exclude shared library initialization/finalization symbols.
  7952. extract_expsyms_cmds=
  7953. case $host_os in
  7954. cygwin* | mingw* | pw32* | cegcc*)
  7955. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7956. # When not using gcc, we currently assume that we are using
  7957. # Microsoft Visual C++.
  7958. if test "$GCC" != yes; then
  7959. with_gnu_ld=no
  7960. fi
  7961. ;;
  7962. interix*)
  7963. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7964. with_gnu_ld=yes
  7965. ;;
  7966. openbsd*)
  7967. with_gnu_ld=no
  7968. ;;
  7969. esac
  7970. ld_shlibs=yes
  7971. # On some targets, GNU ld is compatible enough with the native linker
  7972. # that we're better off using the native interface for both.
  7973. lt_use_gnu_ld_interface=no
  7974. if test "$with_gnu_ld" = yes; then
  7975. case $host_os in
  7976. aix*)
  7977. # The AIX port of GNU ld has always aspired to compatibility
  7978. # with the native linker. However, as the warning in the GNU ld
  7979. # block says, versions before 2.19.5* couldn't really create working
  7980. # shared libraries, regardless of the interface used.
  7981. case `$LD -v 2>&1` in
  7982. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7983. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7984. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7985. *)
  7986. lt_use_gnu_ld_interface=yes
  7987. ;;
  7988. esac
  7989. ;;
  7990. *)
  7991. lt_use_gnu_ld_interface=yes
  7992. ;;
  7993. esac
  7994. fi
  7995. if test "$lt_use_gnu_ld_interface" = yes; then
  7996. # If archive_cmds runs LD, not CC, wlarc should be empty
  7997. wlarc='${wl}'
  7998. # Set some defaults for GNU ld with shared library support. These
  7999. # are reset later if shared libraries are not supported. Putting them
  8000. # here allows them to be overridden if necessary.
  8001. runpath_var=LD_RUN_PATH
  8002. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8003. export_dynamic_flag_spec='${wl}--export-dynamic'
  8004. # ancient GNU ld didn't support --whole-archive et. al.
  8005. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8006. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8007. else
  8008. whole_archive_flag_spec=
  8009. fi
  8010. supports_anon_versioning=no
  8011. case `$LD -v 2>&1` in
  8012. *GNU\ gold*) supports_anon_versioning=yes ;;
  8013. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8014. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8015. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8016. *\ 2.11.*) ;; # other 2.11 versions
  8017. *) supports_anon_versioning=yes ;;
  8018. esac
  8019. # See if GNU ld supports shared libraries.
  8020. case $host_os in
  8021. aix[3-9]*)
  8022. # On AIX/PPC, the GNU linker is very broken
  8023. if test "$host_cpu" != ia64; then
  8024. ld_shlibs=no
  8025. cat <<_LT_EOF 1>&2
  8026. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8027. *** to be unable to reliably create shared libraries on AIX.
  8028. *** Therefore, libtool is disabling shared libraries support. If you
  8029. *** really care for shared libraries, you may want to install binutils
  8030. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8031. *** You will then need to restart the configuration process.
  8032. _LT_EOF
  8033. fi
  8034. ;;
  8035. amigaos*)
  8036. case $host_cpu in
  8037. powerpc)
  8038. # see comment about AmigaOS4 .so support
  8039. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8040. archive_expsym_cmds=''
  8041. ;;
  8042. m68k)
  8043. 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)'
  8044. hardcode_libdir_flag_spec='-L$libdir'
  8045. hardcode_minus_L=yes
  8046. ;;
  8047. esac
  8048. ;;
  8049. beos*)
  8050. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8051. allow_undefined_flag=unsupported
  8052. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8053. # support --undefined. This deserves some investigation. FIXME
  8054. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8055. else
  8056. ld_shlibs=no
  8057. fi
  8058. ;;
  8059. cygwin* | mingw* | pw32* | cegcc*)
  8060. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8061. # as there is no search path for DLLs.
  8062. hardcode_libdir_flag_spec='-L$libdir'
  8063. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8064. allow_undefined_flag=unsupported
  8065. always_export_symbols=no
  8066. enable_shared_with_static_runtimes=yes
  8067. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8068. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8069. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8070. # If the export-symbols file already is a .def file (1st line
  8071. # is EXPORTS), use it as is; otherwise, prepend...
  8072. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8073. cp $export_symbols $output_objdir/$soname.def;
  8074. else
  8075. echo EXPORTS > $output_objdir/$soname.def;
  8076. cat $export_symbols >> $output_objdir/$soname.def;
  8077. fi~
  8078. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8079. else
  8080. ld_shlibs=no
  8081. fi
  8082. ;;
  8083. haiku*)
  8084. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8085. link_all_deplibs=yes
  8086. ;;
  8087. interix[3-9]*)
  8088. hardcode_direct=no
  8089. hardcode_shlibpath_var=no
  8090. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8091. export_dynamic_flag_spec='${wl}-E'
  8092. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8093. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8094. # default) and relocated if they conflict, which is a slow very memory
  8095. # consuming and fragmenting process. To avoid this, we pick a random,
  8096. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8097. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8098. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8099. 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'
  8100. ;;
  8101. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8102. tmp_diet=no
  8103. if test "$host_os" = linux-dietlibc; then
  8104. case $cc_basename in
  8105. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8106. esac
  8107. fi
  8108. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8109. && test "$tmp_diet" = no
  8110. then
  8111. tmp_addflag=' $pic_flag'
  8112. tmp_sharedflag='-shared'
  8113. case $cc_basename,$host_cpu in
  8114. pgcc*) # Portland Group C compiler
  8115. 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'
  8116. tmp_addflag=' $pic_flag'
  8117. ;;
  8118. pgf77* | pgf90* | pgf95* | pgfortran*)
  8119. # Portland Group f77 and f90 compilers
  8120. 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'
  8121. tmp_addflag=' $pic_flag -Mnomain' ;;
  8122. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8123. tmp_addflag=' -i_dynamic' ;;
  8124. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8125. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8126. ifc* | ifort*) # Intel Fortran compiler
  8127. tmp_addflag=' -nofor_main' ;;
  8128. lf95*) # Lahey Fortran 8.1
  8129. whole_archive_flag_spec=
  8130. tmp_sharedflag='--shared' ;;
  8131. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8132. tmp_sharedflag='-qmkshrobj'
  8133. tmp_addflag= ;;
  8134. nvcc*) # Cuda Compiler Driver 2.2
  8135. 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'
  8136. compiler_needs_object=yes
  8137. ;;
  8138. esac
  8139. case `$CC -V 2>&1 | sed 5q` in
  8140. *Sun\ C*) # Sun C 5.9
  8141. 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'
  8142. compiler_needs_object=yes
  8143. tmp_sharedflag='-G' ;;
  8144. *Sun\ F*) # Sun Fortran 8.3
  8145. tmp_sharedflag='-G' ;;
  8146. esac
  8147. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8148. if test "x$supports_anon_versioning" = xyes; then
  8149. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8150. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8151. echo "local: *; };" >> $output_objdir/$libname.ver~
  8152. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8153. fi
  8154. case $cc_basename in
  8155. xlf* | bgf* | bgxlf* | mpixlf*)
  8156. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8157. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8158. hardcode_libdir_flag_spec=
  8159. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8160. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8161. if test "x$supports_anon_versioning" = xyes; then
  8162. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8163. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8164. echo "local: *; };" >> $output_objdir/$libname.ver~
  8165. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8166. fi
  8167. ;;
  8168. esac
  8169. else
  8170. ld_shlibs=no
  8171. fi
  8172. ;;
  8173. netbsd*)
  8174. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8175. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8176. wlarc=
  8177. else
  8178. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8179. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8180. fi
  8181. ;;
  8182. solaris*)
  8183. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8184. ld_shlibs=no
  8185. cat <<_LT_EOF 1>&2
  8186. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8187. *** create shared libraries on Solaris systems. Therefore, libtool
  8188. *** is disabling shared libraries support. We urge you to upgrade GNU
  8189. *** binutils to release 2.9.1 or newer. Another option is to modify
  8190. *** your PATH or compiler configuration so that the native linker is
  8191. *** used, and then restart.
  8192. _LT_EOF
  8193. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8194. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8195. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8196. else
  8197. ld_shlibs=no
  8198. fi
  8199. ;;
  8200. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8201. case `$LD -v 2>&1` in
  8202. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8203. ld_shlibs=no
  8204. cat <<_LT_EOF 1>&2
  8205. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8206. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8207. *** is disabling shared libraries support. We urge you to upgrade GNU
  8208. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8209. *** your PATH or compiler configuration so that the native linker is
  8210. *** used, and then restart.
  8211. _LT_EOF
  8212. ;;
  8213. *)
  8214. # For security reasons, it is highly recommended that you always
  8215. # use absolute paths for naming shared libraries, and exclude the
  8216. # DT_RUNPATH tag from executables and libraries. But doing so
  8217. # requires that you compile everything twice, which is a pain.
  8218. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8219. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8220. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8221. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8222. else
  8223. ld_shlibs=no
  8224. fi
  8225. ;;
  8226. esac
  8227. ;;
  8228. sunos4*)
  8229. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8230. wlarc=
  8231. hardcode_direct=yes
  8232. hardcode_shlibpath_var=no
  8233. ;;
  8234. *)
  8235. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8236. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8237. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8238. else
  8239. ld_shlibs=no
  8240. fi
  8241. ;;
  8242. esac
  8243. if test "$ld_shlibs" = no; then
  8244. runpath_var=
  8245. hardcode_libdir_flag_spec=
  8246. export_dynamic_flag_spec=
  8247. whole_archive_flag_spec=
  8248. fi
  8249. else
  8250. # PORTME fill in a description of your system's linker (not GNU ld)
  8251. case $host_os in
  8252. aix3*)
  8253. allow_undefined_flag=unsupported
  8254. always_export_symbols=yes
  8255. 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'
  8256. # Note: this linker hardcodes the directories in LIBPATH if there
  8257. # are no directories specified by -L.
  8258. hardcode_minus_L=yes
  8259. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8260. # Neither direct hardcoding nor static linking is supported with a
  8261. # broken collect2.
  8262. hardcode_direct=unsupported
  8263. fi
  8264. ;;
  8265. aix[4-9]*)
  8266. if test "$host_cpu" = ia64; then
  8267. # On IA64, the linker does run time linking by default, so we don't
  8268. # have to do anything special.
  8269. aix_use_runtimelinking=no
  8270. exp_sym_flag='-Bexport'
  8271. no_entry_flag=""
  8272. else
  8273. # If we're using GNU nm, then we don't want the "-C" option.
  8274. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8275. # Also, AIX nm treats weak defined symbols like other global
  8276. # defined symbols, whereas GNU nm marks them as "W".
  8277. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8278. 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'
  8279. else
  8280. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8281. fi
  8282. aix_use_runtimelinking=no
  8283. # Test if we are trying to use run time linking or normal
  8284. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8285. # need to do runtime linking.
  8286. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8287. for ld_flag in $LDFLAGS; do
  8288. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8289. aix_use_runtimelinking=yes
  8290. break
  8291. fi
  8292. done
  8293. ;;
  8294. esac
  8295. exp_sym_flag='-bexport'
  8296. no_entry_flag='-bnoentry'
  8297. fi
  8298. # When large executables or shared objects are built, AIX ld can
  8299. # have problems creating the table of contents. If linking a library
  8300. # or program results in "error TOC overflow" add -mminimal-toc to
  8301. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8302. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8303. archive_cmds=''
  8304. hardcode_direct=yes
  8305. hardcode_direct_absolute=yes
  8306. hardcode_libdir_separator=':'
  8307. link_all_deplibs=yes
  8308. file_list_spec='${wl}-f,'
  8309. if test "$GCC" = yes; then
  8310. case $host_os in aix4.[012]|aix4.[012].*)
  8311. # We only want to do this on AIX 4.2 and lower, the check
  8312. # below for broken collect2 doesn't work under 4.3+
  8313. collect2name=`${CC} -print-prog-name=collect2`
  8314. if test -f "$collect2name" &&
  8315. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8316. then
  8317. # We have reworked collect2
  8318. :
  8319. else
  8320. # We have old collect2
  8321. hardcode_direct=unsupported
  8322. # It fails to find uninstalled libraries when the uninstalled
  8323. # path is not listed in the libpath. Setting hardcode_minus_L
  8324. # to unsupported forces relinking
  8325. hardcode_minus_L=yes
  8326. hardcode_libdir_flag_spec='-L$libdir'
  8327. hardcode_libdir_separator=
  8328. fi
  8329. ;;
  8330. esac
  8331. shared_flag='-shared'
  8332. if test "$aix_use_runtimelinking" = yes; then
  8333. shared_flag="$shared_flag "'${wl}-G'
  8334. fi
  8335. else
  8336. # not using gcc
  8337. if test "$host_cpu" = ia64; then
  8338. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8339. # chokes on -Wl,-G. The following line is correct:
  8340. shared_flag='-G'
  8341. else
  8342. if test "$aix_use_runtimelinking" = yes; then
  8343. shared_flag='${wl}-G'
  8344. else
  8345. shared_flag='${wl}-bM:SRE'
  8346. fi
  8347. fi
  8348. fi
  8349. export_dynamic_flag_spec='${wl}-bexpall'
  8350. # It seems that -bexpall does not export symbols beginning with
  8351. # underscore (_), so it is better to generate a list of symbols to export.
  8352. always_export_symbols=yes
  8353. if test "$aix_use_runtimelinking" = yes; then
  8354. # Warning - without using the other runtime loading flags (-brtl),
  8355. # -berok will link without error, but may produce a broken library.
  8356. allow_undefined_flag='-berok'
  8357. # Determine the default libpath from the value encoded in an
  8358. # empty executable.
  8359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8360. /* end confdefs.h. */
  8361. int
  8362. main ()
  8363. {
  8364. ;
  8365. return 0;
  8366. }
  8367. _ACEOF
  8368. if ac_fn_c_try_link "$LINENO"; then :
  8369. lt_aix_libpath_sed='
  8370. /Import File Strings/,/^$/ {
  8371. /^0/ {
  8372. s/^0 *\(.*\)$/\1/
  8373. p
  8374. }
  8375. }'
  8376. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8377. # Check for a 64-bit object if we didn't find anything.
  8378. if test -z "$aix_libpath"; then
  8379. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8380. fi
  8381. fi
  8382. rm -f core conftest.err conftest.$ac_objext \
  8383. conftest$ac_exeext conftest.$ac_ext
  8384. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8385. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8386. 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"
  8387. else
  8388. if test "$host_cpu" = ia64; then
  8389. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8390. allow_undefined_flag="-z nodefs"
  8391. 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"
  8392. else
  8393. # Determine the default libpath from the value encoded in an
  8394. # empty executable.
  8395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8396. /* end confdefs.h. */
  8397. int
  8398. main ()
  8399. {
  8400. ;
  8401. return 0;
  8402. }
  8403. _ACEOF
  8404. if ac_fn_c_try_link "$LINENO"; then :
  8405. lt_aix_libpath_sed='
  8406. /Import File Strings/,/^$/ {
  8407. /^0/ {
  8408. s/^0 *\(.*\)$/\1/
  8409. p
  8410. }
  8411. }'
  8412. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8413. # Check for a 64-bit object if we didn't find anything.
  8414. if test -z "$aix_libpath"; then
  8415. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8416. fi
  8417. fi
  8418. rm -f core conftest.err conftest.$ac_objext \
  8419. conftest$ac_exeext conftest.$ac_ext
  8420. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8421. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8422. # Warning - without using the other run time loading flags,
  8423. # -berok will link without error, but may produce a broken library.
  8424. no_undefined_flag=' ${wl}-bernotok'
  8425. allow_undefined_flag=' ${wl}-berok'
  8426. if test "$with_gnu_ld" = yes; then
  8427. # We only use this code for GNU lds that support --whole-archive.
  8428. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8429. else
  8430. # Exported symbols can be pulled into shared objects from archives
  8431. whole_archive_flag_spec='$convenience'
  8432. fi
  8433. archive_cmds_need_lc=yes
  8434. # This is similar to how AIX traditionally builds its shared libraries.
  8435. 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'
  8436. fi
  8437. fi
  8438. ;;
  8439. amigaos*)
  8440. case $host_cpu in
  8441. powerpc)
  8442. # see comment about AmigaOS4 .so support
  8443. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8444. archive_expsym_cmds=''
  8445. ;;
  8446. m68k)
  8447. 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)'
  8448. hardcode_libdir_flag_spec='-L$libdir'
  8449. hardcode_minus_L=yes
  8450. ;;
  8451. esac
  8452. ;;
  8453. bsdi[45]*)
  8454. export_dynamic_flag_spec=-rdynamic
  8455. ;;
  8456. cygwin* | mingw* | pw32* | cegcc*)
  8457. # When not using gcc, we currently assume that we are using
  8458. # Microsoft Visual C++.
  8459. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8460. # no search path for DLLs.
  8461. hardcode_libdir_flag_spec=' '
  8462. allow_undefined_flag=unsupported
  8463. # Tell ltmain to make .lib files, not .a files.
  8464. libext=lib
  8465. # Tell ltmain to make .dll files, not .so files.
  8466. shrext_cmds=".dll"
  8467. # FIXME: Setting linknames here is a bad hack.
  8468. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8469. # The linker will automatically build a .lib file if we build a DLL.
  8470. old_archive_from_new_cmds='true'
  8471. # FIXME: Should let the user specify the lib program.
  8472. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8473. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8474. enable_shared_with_static_runtimes=yes
  8475. ;;
  8476. darwin* | rhapsody*)
  8477. archive_cmds_need_lc=no
  8478. hardcode_direct=no
  8479. hardcode_automatic=yes
  8480. hardcode_shlibpath_var=unsupported
  8481. if test "$lt_cv_ld_force_load" = "yes"; then
  8482. 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\"`'
  8483. else
  8484. whole_archive_flag_spec=''
  8485. fi
  8486. link_all_deplibs=yes
  8487. allow_undefined_flag="$_lt_dar_allow_undefined"
  8488. case $cc_basename in
  8489. ifort*) _lt_dar_can_shared=yes ;;
  8490. *) _lt_dar_can_shared=$GCC ;;
  8491. esac
  8492. if test "$_lt_dar_can_shared" = "yes"; then
  8493. output_verbose_link_cmd=func_echo_all
  8494. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8495. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8496. 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}"
  8497. 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}"
  8498. else
  8499. ld_shlibs=no
  8500. fi
  8501. ;;
  8502. dgux*)
  8503. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8504. hardcode_libdir_flag_spec='-L$libdir'
  8505. hardcode_shlibpath_var=no
  8506. ;;
  8507. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8508. # support. Future versions do this automatically, but an explicit c++rt0.o
  8509. # does not break anything, and helps significantly (at the cost of a little
  8510. # extra space).
  8511. freebsd2.2*)
  8512. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8513. hardcode_libdir_flag_spec='-R$libdir'
  8514. hardcode_direct=yes
  8515. hardcode_shlibpath_var=no
  8516. ;;
  8517. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8518. freebsd2.*)
  8519. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8520. hardcode_direct=yes
  8521. hardcode_minus_L=yes
  8522. hardcode_shlibpath_var=no
  8523. ;;
  8524. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8525. freebsd* | dragonfly*)
  8526. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8527. hardcode_libdir_flag_spec='-R$libdir'
  8528. hardcode_direct=yes
  8529. hardcode_shlibpath_var=no
  8530. ;;
  8531. hpux9*)
  8532. if test "$GCC" = yes; then
  8533. 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'
  8534. else
  8535. 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'
  8536. fi
  8537. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8538. hardcode_libdir_separator=:
  8539. hardcode_direct=yes
  8540. # hardcode_minus_L: Not really in the search PATH,
  8541. # but as the default location of the library.
  8542. hardcode_minus_L=yes
  8543. export_dynamic_flag_spec='${wl}-E'
  8544. ;;
  8545. hpux10*)
  8546. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8547. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8548. else
  8549. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8550. fi
  8551. if test "$with_gnu_ld" = no; then
  8552. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8553. hardcode_libdir_flag_spec_ld='+b $libdir'
  8554. hardcode_libdir_separator=:
  8555. hardcode_direct=yes
  8556. hardcode_direct_absolute=yes
  8557. export_dynamic_flag_spec='${wl}-E'
  8558. # hardcode_minus_L: Not really in the search PATH,
  8559. # but as the default location of the library.
  8560. hardcode_minus_L=yes
  8561. fi
  8562. ;;
  8563. hpux11*)
  8564. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8565. case $host_cpu in
  8566. hppa*64*)
  8567. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8568. ;;
  8569. ia64*)
  8570. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8571. ;;
  8572. *)
  8573. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8574. ;;
  8575. esac
  8576. else
  8577. case $host_cpu in
  8578. hppa*64*)
  8579. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8580. ;;
  8581. ia64*)
  8582. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8583. ;;
  8584. *)
  8585. # Older versions of the 11.00 compiler do not understand -b yet
  8586. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8588. $as_echo_n "checking if $CC understands -b... " >&6; }
  8589. if ${lt_cv_prog_compiler__b+:} false; then :
  8590. $as_echo_n "(cached) " >&6
  8591. else
  8592. lt_cv_prog_compiler__b=no
  8593. save_LDFLAGS="$LDFLAGS"
  8594. LDFLAGS="$LDFLAGS -b"
  8595. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8596. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8597. # The linker can only warn and ignore the option if not recognized
  8598. # So say no if there are warnings
  8599. if test -s conftest.err; then
  8600. # Append any errors to the config.log.
  8601. cat conftest.err 1>&5
  8602. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8603. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8604. if diff conftest.exp conftest.er2 >/dev/null; then
  8605. lt_cv_prog_compiler__b=yes
  8606. fi
  8607. else
  8608. lt_cv_prog_compiler__b=yes
  8609. fi
  8610. fi
  8611. $RM -r conftest*
  8612. LDFLAGS="$save_LDFLAGS"
  8613. fi
  8614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8615. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8616. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8617. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8618. else
  8619. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8620. fi
  8621. ;;
  8622. esac
  8623. fi
  8624. if test "$with_gnu_ld" = no; then
  8625. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8626. hardcode_libdir_separator=:
  8627. case $host_cpu in
  8628. hppa*64*|ia64*)
  8629. hardcode_direct=no
  8630. hardcode_shlibpath_var=no
  8631. ;;
  8632. *)
  8633. hardcode_direct=yes
  8634. hardcode_direct_absolute=yes
  8635. export_dynamic_flag_spec='${wl}-E'
  8636. # hardcode_minus_L: Not really in the search PATH,
  8637. # but as the default location of the library.
  8638. hardcode_minus_L=yes
  8639. ;;
  8640. esac
  8641. fi
  8642. ;;
  8643. irix5* | irix6* | nonstopux*)
  8644. if test "$GCC" = yes; then
  8645. 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'
  8646. # Try to use the -exported_symbol ld option, if it does not
  8647. # work, assume that -exports_file does not work either and
  8648. # implicitly export all symbols.
  8649. save_LDFLAGS="$LDFLAGS"
  8650. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8652. /* end confdefs.h. */
  8653. int foo(void) {}
  8654. _ACEOF
  8655. if ac_fn_c_try_link "$LINENO"; then :
  8656. 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'
  8657. fi
  8658. rm -f core conftest.err conftest.$ac_objext \
  8659. conftest$ac_exeext conftest.$ac_ext
  8660. LDFLAGS="$save_LDFLAGS"
  8661. else
  8662. 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'
  8663. 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'
  8664. fi
  8665. archive_cmds_need_lc='no'
  8666. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8667. hardcode_libdir_separator=:
  8668. inherit_rpath=yes
  8669. link_all_deplibs=yes
  8670. ;;
  8671. netbsd*)
  8672. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8673. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8674. else
  8675. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8676. fi
  8677. hardcode_libdir_flag_spec='-R$libdir'
  8678. hardcode_direct=yes
  8679. hardcode_shlibpath_var=no
  8680. ;;
  8681. newsos6)
  8682. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8683. hardcode_direct=yes
  8684. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8685. hardcode_libdir_separator=:
  8686. hardcode_shlibpath_var=no
  8687. ;;
  8688. *nto* | *qnx*)
  8689. ;;
  8690. openbsd*)
  8691. if test -f /usr/libexec/ld.so; then
  8692. hardcode_direct=yes
  8693. hardcode_shlibpath_var=no
  8694. hardcode_direct_absolute=yes
  8695. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8696. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8697. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8698. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8699. export_dynamic_flag_spec='${wl}-E'
  8700. else
  8701. case $host_os in
  8702. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8703. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8704. hardcode_libdir_flag_spec='-R$libdir'
  8705. ;;
  8706. *)
  8707. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8708. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8709. ;;
  8710. esac
  8711. fi
  8712. else
  8713. ld_shlibs=no
  8714. fi
  8715. ;;
  8716. os2*)
  8717. hardcode_libdir_flag_spec='-L$libdir'
  8718. hardcode_minus_L=yes
  8719. allow_undefined_flag=unsupported
  8720. 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'
  8721. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8722. ;;
  8723. osf3*)
  8724. if test "$GCC" = yes; then
  8725. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8726. 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'
  8727. else
  8728. allow_undefined_flag=' -expect_unresolved \*'
  8729. 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'
  8730. fi
  8731. archive_cmds_need_lc='no'
  8732. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8733. hardcode_libdir_separator=:
  8734. ;;
  8735. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8736. if test "$GCC" = yes; then
  8737. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8738. 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'
  8739. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8740. else
  8741. allow_undefined_flag=' -expect_unresolved \*'
  8742. 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'
  8743. 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~
  8744. $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'
  8745. # Both c and cxx compiler support -rpath directly
  8746. hardcode_libdir_flag_spec='-rpath $libdir'
  8747. fi
  8748. archive_cmds_need_lc='no'
  8749. hardcode_libdir_separator=:
  8750. ;;
  8751. solaris*)
  8752. no_undefined_flag=' -z defs'
  8753. if test "$GCC" = yes; then
  8754. wlarc='${wl}'
  8755. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8756. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8757. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8758. else
  8759. case `$CC -V 2>&1` in
  8760. *"Compilers 5.0"*)
  8761. wlarc=''
  8762. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8763. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8764. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8765. ;;
  8766. *)
  8767. wlarc='${wl}'
  8768. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8769. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8770. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8771. ;;
  8772. esac
  8773. fi
  8774. hardcode_libdir_flag_spec='-R$libdir'
  8775. hardcode_shlibpath_var=no
  8776. case $host_os in
  8777. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8778. *)
  8779. # The compiler driver will combine and reorder linker options,
  8780. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8781. # but is careful enough not to reorder.
  8782. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8783. if test "$GCC" = yes; then
  8784. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8785. else
  8786. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8787. fi
  8788. ;;
  8789. esac
  8790. link_all_deplibs=yes
  8791. ;;
  8792. sunos4*)
  8793. if test "x$host_vendor" = xsequent; then
  8794. # Use $CC to link under sequent, because it throws in some extra .o
  8795. # files that make .init and .fini sections work.
  8796. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8797. else
  8798. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8799. fi
  8800. hardcode_libdir_flag_spec='-L$libdir'
  8801. hardcode_direct=yes
  8802. hardcode_minus_L=yes
  8803. hardcode_shlibpath_var=no
  8804. ;;
  8805. sysv4)
  8806. case $host_vendor in
  8807. sni)
  8808. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8809. hardcode_direct=yes # is this really true???
  8810. ;;
  8811. siemens)
  8812. ## LD is ld it makes a PLAMLIB
  8813. ## CC just makes a GrossModule.
  8814. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8815. reload_cmds='$CC -r -o $output$reload_objs'
  8816. hardcode_direct=no
  8817. ;;
  8818. motorola)
  8819. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8820. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8821. ;;
  8822. esac
  8823. runpath_var='LD_RUN_PATH'
  8824. hardcode_shlibpath_var=no
  8825. ;;
  8826. sysv4.3*)
  8827. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8828. hardcode_shlibpath_var=no
  8829. export_dynamic_flag_spec='-Bexport'
  8830. ;;
  8831. sysv4*MP*)
  8832. if test -d /usr/nec; then
  8833. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8834. hardcode_shlibpath_var=no
  8835. runpath_var=LD_RUN_PATH
  8836. hardcode_runpath_var=yes
  8837. ld_shlibs=yes
  8838. fi
  8839. ;;
  8840. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8841. no_undefined_flag='${wl}-z,text'
  8842. archive_cmds_need_lc=no
  8843. hardcode_shlibpath_var=no
  8844. runpath_var='LD_RUN_PATH'
  8845. if test "$GCC" = yes; then
  8846. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8847. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8848. else
  8849. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8850. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8851. fi
  8852. ;;
  8853. sysv5* | sco3.2v5* | sco5v6*)
  8854. # Note: We can NOT use -z defs as we might desire, because we do not
  8855. # link with -lc, and that would cause any symbols used from libc to
  8856. # always be unresolved, which means just about no library would
  8857. # ever link correctly. If we're not using GNU ld we use -z text
  8858. # though, which does catch some bad symbols but isn't as heavy-handed
  8859. # as -z defs.
  8860. no_undefined_flag='${wl}-z,text'
  8861. allow_undefined_flag='${wl}-z,nodefs'
  8862. archive_cmds_need_lc=no
  8863. hardcode_shlibpath_var=no
  8864. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8865. hardcode_libdir_separator=':'
  8866. link_all_deplibs=yes
  8867. export_dynamic_flag_spec='${wl}-Bexport'
  8868. runpath_var='LD_RUN_PATH'
  8869. if test "$GCC" = yes; then
  8870. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8871. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8872. else
  8873. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8874. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8875. fi
  8876. ;;
  8877. uts4*)
  8878. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8879. hardcode_libdir_flag_spec='-L$libdir'
  8880. hardcode_shlibpath_var=no
  8881. ;;
  8882. *)
  8883. ld_shlibs=no
  8884. ;;
  8885. esac
  8886. if test x$host_vendor = xsni; then
  8887. case $host in
  8888. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8889. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8890. ;;
  8891. esac
  8892. fi
  8893. fi
  8894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8895. $as_echo "$ld_shlibs" >&6; }
  8896. test "$ld_shlibs" = no && can_build_shared=no
  8897. with_gnu_ld=$with_gnu_ld
  8898. #
  8899. # Do we need to explicitly link libc?
  8900. #
  8901. case "x$archive_cmds_need_lc" in
  8902. x|xyes)
  8903. # Assume -lc should be added
  8904. archive_cmds_need_lc=yes
  8905. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8906. case $archive_cmds in
  8907. *'~'*)
  8908. # FIXME: we may have to deal with multi-command sequences.
  8909. ;;
  8910. '$CC '*)
  8911. # Test whether the compiler implicitly links with -lc since on some
  8912. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8913. # to ld, don't add -lc before -lgcc.
  8914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8915. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8916. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8917. $as_echo_n "(cached) " >&6
  8918. else
  8919. $RM conftest*
  8920. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8921. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8922. (eval $ac_compile) 2>&5
  8923. ac_status=$?
  8924. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8925. test $ac_status = 0; } 2>conftest.err; then
  8926. soname=conftest
  8927. lib=conftest
  8928. libobjs=conftest.$ac_objext
  8929. deplibs=
  8930. wl=$lt_prog_compiler_wl
  8931. pic_flag=$lt_prog_compiler_pic
  8932. compiler_flags=-v
  8933. linker_flags=-v
  8934. verstring=
  8935. output_objdir=.
  8936. libname=conftest
  8937. lt_save_allow_undefined_flag=$allow_undefined_flag
  8938. allow_undefined_flag=
  8939. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8940. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8941. ac_status=$?
  8942. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8943. test $ac_status = 0; }
  8944. then
  8945. lt_cv_archive_cmds_need_lc=no
  8946. else
  8947. lt_cv_archive_cmds_need_lc=yes
  8948. fi
  8949. allow_undefined_flag=$lt_save_allow_undefined_flag
  8950. else
  8951. cat conftest.err 1>&5
  8952. fi
  8953. $RM conftest*
  8954. fi
  8955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8956. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8957. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8958. ;;
  8959. esac
  8960. fi
  8961. ;;
  8962. esac
  8963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8964. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8965. if test "$GCC" = yes; then
  8966. case $host_os in
  8967. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8968. *) lt_awk_arg="/^libraries:/" ;;
  8969. esac
  8970. case $host_os in
  8971. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8972. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8973. esac
  8974. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8975. case $lt_search_path_spec in
  8976. *\;*)
  8977. # if the path contains ";" then we assume it to be the separator
  8978. # otherwise default to the standard path separator (i.e. ":") - it is
  8979. # assumed that no part of a normal pathname contains ";" but that should
  8980. # okay in the real world where ";" in dirpaths is itself problematic.
  8981. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8982. ;;
  8983. *)
  8984. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8985. ;;
  8986. esac
  8987. # Ok, now we have the path, separated by spaces, we can step through it
  8988. # and add multilib dir if necessary.
  8989. lt_tmp_lt_search_path_spec=
  8990. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8991. for lt_sys_path in $lt_search_path_spec; do
  8992. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8993. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8994. else
  8995. test -d "$lt_sys_path" && \
  8996. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8997. fi
  8998. done
  8999. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9000. BEGIN {RS=" "; FS="/|\n";} {
  9001. lt_foo="";
  9002. lt_count=0;
  9003. for (lt_i = NF; lt_i > 0; lt_i--) {
  9004. if ($lt_i != "" && $lt_i != ".") {
  9005. if ($lt_i == "..") {
  9006. lt_count++;
  9007. } else {
  9008. if (lt_count == 0) {
  9009. lt_foo="/" $lt_i lt_foo;
  9010. } else {
  9011. lt_count--;
  9012. }
  9013. }
  9014. }
  9015. }
  9016. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9017. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9018. }'`
  9019. # AWK program above erroneously prepends '/' to C:/dos/paths
  9020. # for these hosts.
  9021. case $host_os in
  9022. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9023. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9024. esac
  9025. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9026. else
  9027. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9028. fi
  9029. library_names_spec=
  9030. libname_spec='lib$name'
  9031. soname_spec=
  9032. shrext_cmds=".so"
  9033. postinstall_cmds=
  9034. postuninstall_cmds=
  9035. finish_cmds=
  9036. finish_eval=
  9037. shlibpath_var=
  9038. shlibpath_overrides_runpath=unknown
  9039. version_type=none
  9040. dynamic_linker="$host_os ld.so"
  9041. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9042. need_lib_prefix=unknown
  9043. hardcode_into_libs=no
  9044. # when you set need_version to no, make sure it does not cause -set_version
  9045. # flags to be left without arguments
  9046. need_version=unknown
  9047. case $host_os in
  9048. aix3*)
  9049. version_type=linux
  9050. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9051. shlibpath_var=LIBPATH
  9052. # AIX 3 has no versioning support, so we append a major version to the name.
  9053. soname_spec='${libname}${release}${shared_ext}$major'
  9054. ;;
  9055. aix[4-9]*)
  9056. version_type=linux
  9057. need_lib_prefix=no
  9058. need_version=no
  9059. hardcode_into_libs=yes
  9060. if test "$host_cpu" = ia64; then
  9061. # AIX 5 supports IA64
  9062. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9063. shlibpath_var=LD_LIBRARY_PATH
  9064. else
  9065. # With GCC up to 2.95.x, collect2 would create an import file
  9066. # for dependence libraries. The import file would start with
  9067. # the line `#! .'. This would cause the generated library to
  9068. # depend on `.', always an invalid library. This was fixed in
  9069. # development snapshots of GCC prior to 3.0.
  9070. case $host_os in
  9071. aix4 | aix4.[01] | aix4.[01].*)
  9072. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9073. echo ' yes '
  9074. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9075. :
  9076. else
  9077. can_build_shared=no
  9078. fi
  9079. ;;
  9080. esac
  9081. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9082. # soname into executable. Probably we can add versioning support to
  9083. # collect2, so additional links can be useful in future.
  9084. if test "$aix_use_runtimelinking" = yes; then
  9085. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9086. # instead of lib<name>.a to let people know that these are not
  9087. # typical AIX shared libraries.
  9088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9089. else
  9090. # We preserve .a as extension for shared libraries through AIX4.2
  9091. # and later when we are not doing run time linking.
  9092. library_names_spec='${libname}${release}.a $libname.a'
  9093. soname_spec='${libname}${release}${shared_ext}$major'
  9094. fi
  9095. shlibpath_var=LIBPATH
  9096. fi
  9097. ;;
  9098. amigaos*)
  9099. case $host_cpu in
  9100. powerpc)
  9101. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9102. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9104. ;;
  9105. m68k)
  9106. library_names_spec='$libname.ixlibrary $libname.a'
  9107. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9108. 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'
  9109. ;;
  9110. esac
  9111. ;;
  9112. beos*)
  9113. library_names_spec='${libname}${shared_ext}'
  9114. dynamic_linker="$host_os ld.so"
  9115. shlibpath_var=LIBRARY_PATH
  9116. ;;
  9117. bsdi[45]*)
  9118. version_type=linux
  9119. need_version=no
  9120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9121. soname_spec='${libname}${release}${shared_ext}$major'
  9122. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9123. shlibpath_var=LD_LIBRARY_PATH
  9124. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9125. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9126. # the default ld.so.conf also contains /usr/contrib/lib and
  9127. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9128. # libtool to hard-code these into programs
  9129. ;;
  9130. cygwin* | mingw* | pw32* | cegcc*)
  9131. version_type=windows
  9132. shrext_cmds=".dll"
  9133. need_version=no
  9134. need_lib_prefix=no
  9135. case $GCC,$host_os in
  9136. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9137. library_names_spec='$libname.dll.a'
  9138. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9139. postinstall_cmds='base_file=`basename \${file}`~
  9140. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9141. dldir=$destdir/`dirname \$dlpath`~
  9142. test -d \$dldir || mkdir -p \$dldir~
  9143. $install_prog $dir/$dlname \$dldir/$dlname~
  9144. chmod a+x \$dldir/$dlname~
  9145. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9146. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9147. fi'
  9148. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9149. dlpath=$dir/\$dldll~
  9150. $RM \$dlpath'
  9151. shlibpath_overrides_runpath=yes
  9152. case $host_os in
  9153. cygwin*)
  9154. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9155. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9156. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9157. ;;
  9158. mingw* | cegcc*)
  9159. # MinGW DLLs use traditional 'lib' prefix
  9160. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9161. ;;
  9162. pw32*)
  9163. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9164. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9165. ;;
  9166. esac
  9167. ;;
  9168. *)
  9169. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9170. ;;
  9171. esac
  9172. dynamic_linker='Win32 ld.exe'
  9173. # FIXME: first we should search . and the directory the executable is in
  9174. shlibpath_var=PATH
  9175. ;;
  9176. darwin* | rhapsody*)
  9177. dynamic_linker="$host_os dyld"
  9178. version_type=darwin
  9179. need_lib_prefix=no
  9180. need_version=no
  9181. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9182. soname_spec='${libname}${release}${major}$shared_ext'
  9183. shlibpath_overrides_runpath=yes
  9184. shlibpath_var=DYLD_LIBRARY_PATH
  9185. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9186. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9187. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9188. ;;
  9189. dgux*)
  9190. version_type=linux
  9191. need_lib_prefix=no
  9192. need_version=no
  9193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9194. soname_spec='${libname}${release}${shared_ext}$major'
  9195. shlibpath_var=LD_LIBRARY_PATH
  9196. ;;
  9197. freebsd* | dragonfly*)
  9198. # DragonFly does not have aout. When/if they implement a new
  9199. # versioning mechanism, adjust this.
  9200. if test -x /usr/bin/objformat; then
  9201. objformat=`/usr/bin/objformat`
  9202. else
  9203. case $host_os in
  9204. freebsd[23].*) objformat=aout ;;
  9205. *) objformat=elf ;;
  9206. esac
  9207. fi
  9208. version_type=freebsd-$objformat
  9209. case $version_type in
  9210. freebsd-elf*)
  9211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9212. need_version=no
  9213. need_lib_prefix=no
  9214. ;;
  9215. freebsd-*)
  9216. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9217. need_version=yes
  9218. ;;
  9219. esac
  9220. shlibpath_var=LD_LIBRARY_PATH
  9221. case $host_os in
  9222. freebsd2.*)
  9223. shlibpath_overrides_runpath=yes
  9224. ;;
  9225. freebsd3.[01]* | freebsdelf3.[01]*)
  9226. shlibpath_overrides_runpath=yes
  9227. hardcode_into_libs=yes
  9228. ;;
  9229. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9230. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9231. shlibpath_overrides_runpath=no
  9232. hardcode_into_libs=yes
  9233. ;;
  9234. *) # from 4.6 on, and DragonFly
  9235. shlibpath_overrides_runpath=yes
  9236. hardcode_into_libs=yes
  9237. ;;
  9238. esac
  9239. ;;
  9240. haiku*)
  9241. version_type=linux
  9242. need_lib_prefix=no
  9243. need_version=no
  9244. dynamic_linker="$host_os runtime_loader"
  9245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9246. soname_spec='${libname}${release}${shared_ext}$major'
  9247. shlibpath_var=LIBRARY_PATH
  9248. shlibpath_overrides_runpath=yes
  9249. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9250. hardcode_into_libs=yes
  9251. ;;
  9252. hpux9* | hpux10* | hpux11*)
  9253. # Give a soname corresponding to the major version so that dld.sl refuses to
  9254. # link against other versions.
  9255. version_type=sunos
  9256. need_lib_prefix=no
  9257. need_version=no
  9258. case $host_cpu in
  9259. ia64*)
  9260. shrext_cmds='.so'
  9261. hardcode_into_libs=yes
  9262. dynamic_linker="$host_os dld.so"
  9263. shlibpath_var=LD_LIBRARY_PATH
  9264. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9266. soname_spec='${libname}${release}${shared_ext}$major'
  9267. if test "X$HPUX_IA64_MODE" = X32; then
  9268. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9269. else
  9270. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9271. fi
  9272. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9273. ;;
  9274. hppa*64*)
  9275. shrext_cmds='.sl'
  9276. hardcode_into_libs=yes
  9277. dynamic_linker="$host_os dld.sl"
  9278. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9279. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9281. soname_spec='${libname}${release}${shared_ext}$major'
  9282. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9283. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9284. ;;
  9285. *)
  9286. shrext_cmds='.sl'
  9287. dynamic_linker="$host_os dld.sl"
  9288. shlibpath_var=SHLIB_PATH
  9289. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9291. soname_spec='${libname}${release}${shared_ext}$major'
  9292. ;;
  9293. esac
  9294. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9295. postinstall_cmds='chmod 555 $lib'
  9296. # or fails outright, so override atomically:
  9297. install_override_mode=555
  9298. ;;
  9299. interix[3-9]*)
  9300. version_type=linux
  9301. need_lib_prefix=no
  9302. need_version=no
  9303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9304. soname_spec='${libname}${release}${shared_ext}$major'
  9305. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9306. shlibpath_var=LD_LIBRARY_PATH
  9307. shlibpath_overrides_runpath=no
  9308. hardcode_into_libs=yes
  9309. ;;
  9310. irix5* | irix6* | nonstopux*)
  9311. case $host_os in
  9312. nonstopux*) version_type=nonstopux ;;
  9313. *)
  9314. if test "$lt_cv_prog_gnu_ld" = yes; then
  9315. version_type=linux
  9316. else
  9317. version_type=irix
  9318. fi ;;
  9319. esac
  9320. need_lib_prefix=no
  9321. need_version=no
  9322. soname_spec='${libname}${release}${shared_ext}$major'
  9323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9324. case $host_os in
  9325. irix5* | nonstopux*)
  9326. libsuff= shlibsuff=
  9327. ;;
  9328. *)
  9329. case $LD in # libtool.m4 will add one of these switches to LD
  9330. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9331. libsuff= shlibsuff= libmagic=32-bit;;
  9332. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9333. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9334. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9335. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9336. *) libsuff= shlibsuff= libmagic=never-match;;
  9337. esac
  9338. ;;
  9339. esac
  9340. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9341. shlibpath_overrides_runpath=no
  9342. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9343. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9344. hardcode_into_libs=yes
  9345. ;;
  9346. # No shared lib support for Linux oldld, aout, or coff.
  9347. linux*oldld* | linux*aout* | linux*coff*)
  9348. dynamic_linker=no
  9349. ;;
  9350. # This must be Linux ELF.
  9351. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9352. version_type=linux
  9353. need_lib_prefix=no
  9354. need_version=no
  9355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9356. soname_spec='${libname}${release}${shared_ext}$major'
  9357. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9358. shlibpath_var=LD_LIBRARY_PATH
  9359. shlibpath_overrides_runpath=no
  9360. # Some binutils ld are patched to set DT_RUNPATH
  9361. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9362. $as_echo_n "(cached) " >&6
  9363. else
  9364. lt_cv_shlibpath_overrides_runpath=no
  9365. save_LDFLAGS=$LDFLAGS
  9366. save_libdir=$libdir
  9367. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9368. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9370. /* end confdefs.h. */
  9371. int
  9372. main ()
  9373. {
  9374. ;
  9375. return 0;
  9376. }
  9377. _ACEOF
  9378. if ac_fn_c_try_link "$LINENO"; then :
  9379. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9380. lt_cv_shlibpath_overrides_runpath=yes
  9381. fi
  9382. fi
  9383. rm -f core conftest.err conftest.$ac_objext \
  9384. conftest$ac_exeext conftest.$ac_ext
  9385. LDFLAGS=$save_LDFLAGS
  9386. libdir=$save_libdir
  9387. fi
  9388. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9389. # This implies no fast_install, which is unacceptable.
  9390. # Some rework will be needed to allow for fast_install
  9391. # before this can be enabled.
  9392. hardcode_into_libs=yes
  9393. # Append ld.so.conf contents to the search path
  9394. if test -f /etc/ld.so.conf; then
  9395. 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' ' '`
  9396. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9397. fi
  9398. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9399. # powerpc, because MkLinux only supported shared libraries with the
  9400. # GNU dynamic linker. Since this was broken with cross compilers,
  9401. # most powerpc-linux boxes support dynamic linking these days and
  9402. # people can always --disable-shared, the test was removed, and we
  9403. # assume the GNU/Linux dynamic linker is in use.
  9404. dynamic_linker='GNU/Linux ld.so'
  9405. ;;
  9406. netbsd*)
  9407. version_type=sunos
  9408. need_lib_prefix=no
  9409. need_version=no
  9410. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9411. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9412. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9413. dynamic_linker='NetBSD (a.out) ld.so'
  9414. else
  9415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9416. soname_spec='${libname}${release}${shared_ext}$major'
  9417. dynamic_linker='NetBSD ld.elf_so'
  9418. fi
  9419. shlibpath_var=LD_LIBRARY_PATH
  9420. shlibpath_overrides_runpath=yes
  9421. hardcode_into_libs=yes
  9422. ;;
  9423. newsos6)
  9424. version_type=linux
  9425. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9426. shlibpath_var=LD_LIBRARY_PATH
  9427. shlibpath_overrides_runpath=yes
  9428. ;;
  9429. *nto* | *qnx*)
  9430. version_type=qnx
  9431. need_lib_prefix=no
  9432. need_version=no
  9433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9434. soname_spec='${libname}${release}${shared_ext}$major'
  9435. shlibpath_var=LD_LIBRARY_PATH
  9436. shlibpath_overrides_runpath=no
  9437. hardcode_into_libs=yes
  9438. dynamic_linker='ldqnx.so'
  9439. ;;
  9440. openbsd*)
  9441. version_type=sunos
  9442. sys_lib_dlsearch_path_spec="/usr/lib"
  9443. need_lib_prefix=no
  9444. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9445. case $host_os in
  9446. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9447. *) need_version=no ;;
  9448. esac
  9449. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9450. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9451. shlibpath_var=LD_LIBRARY_PATH
  9452. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9453. case $host_os in
  9454. openbsd2.[89] | openbsd2.[89].*)
  9455. shlibpath_overrides_runpath=no
  9456. ;;
  9457. *)
  9458. shlibpath_overrides_runpath=yes
  9459. ;;
  9460. esac
  9461. else
  9462. shlibpath_overrides_runpath=yes
  9463. fi
  9464. ;;
  9465. os2*)
  9466. libname_spec='$name'
  9467. shrext_cmds=".dll"
  9468. need_lib_prefix=no
  9469. library_names_spec='$libname${shared_ext} $libname.a'
  9470. dynamic_linker='OS/2 ld.exe'
  9471. shlibpath_var=LIBPATH
  9472. ;;
  9473. osf3* | osf4* | osf5*)
  9474. version_type=osf
  9475. need_lib_prefix=no
  9476. need_version=no
  9477. soname_spec='${libname}${release}${shared_ext}$major'
  9478. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9479. shlibpath_var=LD_LIBRARY_PATH
  9480. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9481. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9482. ;;
  9483. rdos*)
  9484. dynamic_linker=no
  9485. ;;
  9486. solaris*)
  9487. version_type=linux
  9488. need_lib_prefix=no
  9489. need_version=no
  9490. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9491. soname_spec='${libname}${release}${shared_ext}$major'
  9492. shlibpath_var=LD_LIBRARY_PATH
  9493. shlibpath_overrides_runpath=yes
  9494. hardcode_into_libs=yes
  9495. # ldd complains unless libraries are executable
  9496. postinstall_cmds='chmod +x $lib'
  9497. ;;
  9498. sunos4*)
  9499. version_type=sunos
  9500. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9501. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9502. shlibpath_var=LD_LIBRARY_PATH
  9503. shlibpath_overrides_runpath=yes
  9504. if test "$with_gnu_ld" = yes; then
  9505. need_lib_prefix=no
  9506. fi
  9507. need_version=yes
  9508. ;;
  9509. sysv4 | sysv4.3*)
  9510. version_type=linux
  9511. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9512. soname_spec='${libname}${release}${shared_ext}$major'
  9513. shlibpath_var=LD_LIBRARY_PATH
  9514. case $host_vendor in
  9515. sni)
  9516. shlibpath_overrides_runpath=no
  9517. need_lib_prefix=no
  9518. runpath_var=LD_RUN_PATH
  9519. ;;
  9520. siemens)
  9521. need_lib_prefix=no
  9522. ;;
  9523. motorola)
  9524. need_lib_prefix=no
  9525. need_version=no
  9526. shlibpath_overrides_runpath=no
  9527. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9528. ;;
  9529. esac
  9530. ;;
  9531. sysv4*MP*)
  9532. if test -d /usr/nec ;then
  9533. version_type=linux
  9534. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9535. soname_spec='$libname${shared_ext}.$major'
  9536. shlibpath_var=LD_LIBRARY_PATH
  9537. fi
  9538. ;;
  9539. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9540. version_type=freebsd-elf
  9541. need_lib_prefix=no
  9542. need_version=no
  9543. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9544. soname_spec='${libname}${release}${shared_ext}$major'
  9545. shlibpath_var=LD_LIBRARY_PATH
  9546. shlibpath_overrides_runpath=yes
  9547. hardcode_into_libs=yes
  9548. if test "$with_gnu_ld" = yes; then
  9549. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9550. else
  9551. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9552. case $host_os in
  9553. sco3.2v5*)
  9554. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9555. ;;
  9556. esac
  9557. fi
  9558. sys_lib_dlsearch_path_spec='/usr/lib'
  9559. ;;
  9560. tpf*)
  9561. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9562. version_type=linux
  9563. need_lib_prefix=no
  9564. need_version=no
  9565. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9566. shlibpath_var=LD_LIBRARY_PATH
  9567. shlibpath_overrides_runpath=no
  9568. hardcode_into_libs=yes
  9569. ;;
  9570. uts4*)
  9571. version_type=linux
  9572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9573. soname_spec='${libname}${release}${shared_ext}$major'
  9574. shlibpath_var=LD_LIBRARY_PATH
  9575. ;;
  9576. *)
  9577. dynamic_linker=no
  9578. ;;
  9579. esac
  9580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9581. $as_echo "$dynamic_linker" >&6; }
  9582. test "$dynamic_linker" = no && can_build_shared=no
  9583. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9584. if test "$GCC" = yes; then
  9585. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9586. fi
  9587. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9588. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9589. fi
  9590. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9591. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9592. fi
  9593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9594. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9595. hardcode_action=
  9596. if test -n "$hardcode_libdir_flag_spec" ||
  9597. test -n "$runpath_var" ||
  9598. test "X$hardcode_automatic" = "Xyes" ; then
  9599. # We can hardcode non-existent directories.
  9600. if test "$hardcode_direct" != no &&
  9601. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9602. # have to relink, otherwise we might link with an installed library
  9603. # when we should be linking with a yet-to-be-installed one
  9604. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9605. test "$hardcode_minus_L" != no; then
  9606. # Linking always hardcodes the temporary library directory.
  9607. hardcode_action=relink
  9608. else
  9609. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9610. hardcode_action=immediate
  9611. fi
  9612. else
  9613. # We cannot hardcode anything, or else we can only hardcode existing
  9614. # directories.
  9615. hardcode_action=unsupported
  9616. fi
  9617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9618. $as_echo "$hardcode_action" >&6; }
  9619. if test "$hardcode_action" = relink ||
  9620. test "$inherit_rpath" = yes; then
  9621. # Fast installation is not supported
  9622. enable_fast_install=no
  9623. elif test "$shlibpath_overrides_runpath" = yes ||
  9624. test "$enable_shared" = no; then
  9625. # Fast installation is not necessary
  9626. enable_fast_install=needless
  9627. fi
  9628. if test "x$enable_dlopen" != xyes; then
  9629. enable_dlopen=unknown
  9630. enable_dlopen_self=unknown
  9631. enable_dlopen_self_static=unknown
  9632. else
  9633. lt_cv_dlopen=no
  9634. lt_cv_dlopen_libs=
  9635. case $host_os in
  9636. beos*)
  9637. lt_cv_dlopen="load_add_on"
  9638. lt_cv_dlopen_libs=
  9639. lt_cv_dlopen_self=yes
  9640. ;;
  9641. mingw* | pw32* | cegcc*)
  9642. lt_cv_dlopen="LoadLibrary"
  9643. lt_cv_dlopen_libs=
  9644. ;;
  9645. cygwin*)
  9646. lt_cv_dlopen="dlopen"
  9647. lt_cv_dlopen_libs=
  9648. ;;
  9649. darwin*)
  9650. # if libdl is installed we need to link against it
  9651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9652. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9653. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9654. $as_echo_n "(cached) " >&6
  9655. else
  9656. ac_check_lib_save_LIBS=$LIBS
  9657. LIBS="-ldl $LIBS"
  9658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9659. /* end confdefs.h. */
  9660. /* Override any GCC internal prototype to avoid an error.
  9661. Use char because int might match the return type of a GCC
  9662. builtin and then its argument prototype would still apply. */
  9663. #ifdef __cplusplus
  9664. extern "C"
  9665. #endif
  9666. char dlopen ();
  9667. int
  9668. main ()
  9669. {
  9670. return dlopen ();
  9671. ;
  9672. return 0;
  9673. }
  9674. _ACEOF
  9675. if ac_fn_c_try_link "$LINENO"; then :
  9676. ac_cv_lib_dl_dlopen=yes
  9677. else
  9678. ac_cv_lib_dl_dlopen=no
  9679. fi
  9680. rm -f core conftest.err conftest.$ac_objext \
  9681. conftest$ac_exeext conftest.$ac_ext
  9682. LIBS=$ac_check_lib_save_LIBS
  9683. fi
  9684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9685. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9686. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9687. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9688. else
  9689. lt_cv_dlopen="dyld"
  9690. lt_cv_dlopen_libs=
  9691. lt_cv_dlopen_self=yes
  9692. fi
  9693. ;;
  9694. *)
  9695. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9696. if test "x$ac_cv_func_shl_load" = xyes; then :
  9697. lt_cv_dlopen="shl_load"
  9698. else
  9699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9700. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9701. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9702. $as_echo_n "(cached) " >&6
  9703. else
  9704. ac_check_lib_save_LIBS=$LIBS
  9705. LIBS="-ldld $LIBS"
  9706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9707. /* end confdefs.h. */
  9708. /* Override any GCC internal prototype to avoid an error.
  9709. Use char because int might match the return type of a GCC
  9710. builtin and then its argument prototype would still apply. */
  9711. #ifdef __cplusplus
  9712. extern "C"
  9713. #endif
  9714. char shl_load ();
  9715. int
  9716. main ()
  9717. {
  9718. return shl_load ();
  9719. ;
  9720. return 0;
  9721. }
  9722. _ACEOF
  9723. if ac_fn_c_try_link "$LINENO"; then :
  9724. ac_cv_lib_dld_shl_load=yes
  9725. else
  9726. ac_cv_lib_dld_shl_load=no
  9727. fi
  9728. rm -f core conftest.err conftest.$ac_objext \
  9729. conftest$ac_exeext conftest.$ac_ext
  9730. LIBS=$ac_check_lib_save_LIBS
  9731. fi
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9733. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9734. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9735. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9736. else
  9737. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9738. if test "x$ac_cv_func_dlopen" = xyes; then :
  9739. lt_cv_dlopen="dlopen"
  9740. else
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9742. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9743. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9744. $as_echo_n "(cached) " >&6
  9745. else
  9746. ac_check_lib_save_LIBS=$LIBS
  9747. LIBS="-ldl $LIBS"
  9748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9749. /* end confdefs.h. */
  9750. /* Override any GCC internal prototype to avoid an error.
  9751. Use char because int might match the return type of a GCC
  9752. builtin and then its argument prototype would still apply. */
  9753. #ifdef __cplusplus
  9754. extern "C"
  9755. #endif
  9756. char dlopen ();
  9757. int
  9758. main ()
  9759. {
  9760. return dlopen ();
  9761. ;
  9762. return 0;
  9763. }
  9764. _ACEOF
  9765. if ac_fn_c_try_link "$LINENO"; then :
  9766. ac_cv_lib_dl_dlopen=yes
  9767. else
  9768. ac_cv_lib_dl_dlopen=no
  9769. fi
  9770. rm -f core conftest.err conftest.$ac_objext \
  9771. conftest$ac_exeext conftest.$ac_ext
  9772. LIBS=$ac_check_lib_save_LIBS
  9773. fi
  9774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9775. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9776. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9777. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9778. else
  9779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9780. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9781. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9782. $as_echo_n "(cached) " >&6
  9783. else
  9784. ac_check_lib_save_LIBS=$LIBS
  9785. LIBS="-lsvld $LIBS"
  9786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9787. /* end confdefs.h. */
  9788. /* Override any GCC internal prototype to avoid an error.
  9789. Use char because int might match the return type of a GCC
  9790. builtin and then its argument prototype would still apply. */
  9791. #ifdef __cplusplus
  9792. extern "C"
  9793. #endif
  9794. char dlopen ();
  9795. int
  9796. main ()
  9797. {
  9798. return dlopen ();
  9799. ;
  9800. return 0;
  9801. }
  9802. _ACEOF
  9803. if ac_fn_c_try_link "$LINENO"; then :
  9804. ac_cv_lib_svld_dlopen=yes
  9805. else
  9806. ac_cv_lib_svld_dlopen=no
  9807. fi
  9808. rm -f core conftest.err conftest.$ac_objext \
  9809. conftest$ac_exeext conftest.$ac_ext
  9810. LIBS=$ac_check_lib_save_LIBS
  9811. fi
  9812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9813. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9814. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9815. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9816. else
  9817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9818. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9819. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9820. $as_echo_n "(cached) " >&6
  9821. else
  9822. ac_check_lib_save_LIBS=$LIBS
  9823. LIBS="-ldld $LIBS"
  9824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9825. /* end confdefs.h. */
  9826. /* Override any GCC internal prototype to avoid an error.
  9827. Use char because int might match the return type of a GCC
  9828. builtin and then its argument prototype would still apply. */
  9829. #ifdef __cplusplus
  9830. extern "C"
  9831. #endif
  9832. char dld_link ();
  9833. int
  9834. main ()
  9835. {
  9836. return dld_link ();
  9837. ;
  9838. return 0;
  9839. }
  9840. _ACEOF
  9841. if ac_fn_c_try_link "$LINENO"; then :
  9842. ac_cv_lib_dld_dld_link=yes
  9843. else
  9844. ac_cv_lib_dld_dld_link=no
  9845. fi
  9846. rm -f core conftest.err conftest.$ac_objext \
  9847. conftest$ac_exeext conftest.$ac_ext
  9848. LIBS=$ac_check_lib_save_LIBS
  9849. fi
  9850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9851. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9852. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9853. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9854. fi
  9855. fi
  9856. fi
  9857. fi
  9858. fi
  9859. fi
  9860. ;;
  9861. esac
  9862. if test "x$lt_cv_dlopen" != xno; then
  9863. enable_dlopen=yes
  9864. else
  9865. enable_dlopen=no
  9866. fi
  9867. case $lt_cv_dlopen in
  9868. dlopen)
  9869. save_CPPFLAGS="$CPPFLAGS"
  9870. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9871. save_LDFLAGS="$LDFLAGS"
  9872. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9873. save_LIBS="$LIBS"
  9874. LIBS="$lt_cv_dlopen_libs $LIBS"
  9875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9876. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9877. if ${lt_cv_dlopen_self+:} false; then :
  9878. $as_echo_n "(cached) " >&6
  9879. else
  9880. if test "$cross_compiling" = yes; then :
  9881. lt_cv_dlopen_self=cross
  9882. else
  9883. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9884. lt_status=$lt_dlunknown
  9885. cat > conftest.$ac_ext <<_LT_EOF
  9886. #line 11463 "configure"
  9887. #include "confdefs.h"
  9888. #if HAVE_DLFCN_H
  9889. #include <dlfcn.h>
  9890. #endif
  9891. #include <stdio.h>
  9892. #ifdef RTLD_GLOBAL
  9893. # define LT_DLGLOBAL RTLD_GLOBAL
  9894. #else
  9895. # ifdef DL_GLOBAL
  9896. # define LT_DLGLOBAL DL_GLOBAL
  9897. # else
  9898. # define LT_DLGLOBAL 0
  9899. # endif
  9900. #endif
  9901. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9902. find out it does not work in some platform. */
  9903. #ifndef LT_DLLAZY_OR_NOW
  9904. # ifdef RTLD_LAZY
  9905. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9906. # else
  9907. # ifdef DL_LAZY
  9908. # define LT_DLLAZY_OR_NOW DL_LAZY
  9909. # else
  9910. # ifdef RTLD_NOW
  9911. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9912. # else
  9913. # ifdef DL_NOW
  9914. # define LT_DLLAZY_OR_NOW DL_NOW
  9915. # else
  9916. # define LT_DLLAZY_OR_NOW 0
  9917. # endif
  9918. # endif
  9919. # endif
  9920. # endif
  9921. #endif
  9922. /* When -fvisbility=hidden is used, assume the code has been annotated
  9923. correspondingly for the symbols needed. */
  9924. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9925. void fnord () __attribute__((visibility("default")));
  9926. #endif
  9927. void fnord () { int i=42; }
  9928. int main ()
  9929. {
  9930. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9931. int status = $lt_dlunknown;
  9932. if (self)
  9933. {
  9934. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9935. else
  9936. {
  9937. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9938. else puts (dlerror ());
  9939. }
  9940. /* dlclose (self); */
  9941. }
  9942. else
  9943. puts (dlerror ());
  9944. return status;
  9945. }
  9946. _LT_EOF
  9947. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9948. (eval $ac_link) 2>&5
  9949. ac_status=$?
  9950. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9951. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9952. (./conftest; exit; ) >&5 2>/dev/null
  9953. lt_status=$?
  9954. case x$lt_status in
  9955. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9956. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9957. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9958. esac
  9959. else :
  9960. # compilation failed
  9961. lt_cv_dlopen_self=no
  9962. fi
  9963. fi
  9964. rm -fr conftest*
  9965. fi
  9966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9967. $as_echo "$lt_cv_dlopen_self" >&6; }
  9968. if test "x$lt_cv_dlopen_self" = xyes; then
  9969. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9971. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9972. if ${lt_cv_dlopen_self_static+:} false; then :
  9973. $as_echo_n "(cached) " >&6
  9974. else
  9975. if test "$cross_compiling" = yes; then :
  9976. lt_cv_dlopen_self_static=cross
  9977. else
  9978. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9979. lt_status=$lt_dlunknown
  9980. cat > conftest.$ac_ext <<_LT_EOF
  9981. #line 11569 "configure"
  9982. #include "confdefs.h"
  9983. #if HAVE_DLFCN_H
  9984. #include <dlfcn.h>
  9985. #endif
  9986. #include <stdio.h>
  9987. #ifdef RTLD_GLOBAL
  9988. # define LT_DLGLOBAL RTLD_GLOBAL
  9989. #else
  9990. # ifdef DL_GLOBAL
  9991. # define LT_DLGLOBAL DL_GLOBAL
  9992. # else
  9993. # define LT_DLGLOBAL 0
  9994. # endif
  9995. #endif
  9996. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9997. find out it does not work in some platform. */
  9998. #ifndef LT_DLLAZY_OR_NOW
  9999. # ifdef RTLD_LAZY
  10000. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10001. # else
  10002. # ifdef DL_LAZY
  10003. # define LT_DLLAZY_OR_NOW DL_LAZY
  10004. # else
  10005. # ifdef RTLD_NOW
  10006. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10007. # else
  10008. # ifdef DL_NOW
  10009. # define LT_DLLAZY_OR_NOW DL_NOW
  10010. # else
  10011. # define LT_DLLAZY_OR_NOW 0
  10012. # endif
  10013. # endif
  10014. # endif
  10015. # endif
  10016. #endif
  10017. /* When -fvisbility=hidden is used, assume the code has been annotated
  10018. correspondingly for the symbols needed. */
  10019. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10020. void fnord () __attribute__((visibility("default")));
  10021. #endif
  10022. void fnord () { int i=42; }
  10023. int main ()
  10024. {
  10025. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10026. int status = $lt_dlunknown;
  10027. if (self)
  10028. {
  10029. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10030. else
  10031. {
  10032. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10033. else puts (dlerror ());
  10034. }
  10035. /* dlclose (self); */
  10036. }
  10037. else
  10038. puts (dlerror ());
  10039. return status;
  10040. }
  10041. _LT_EOF
  10042. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10043. (eval $ac_link) 2>&5
  10044. ac_status=$?
  10045. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10046. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10047. (./conftest; exit; ) >&5 2>/dev/null
  10048. lt_status=$?
  10049. case x$lt_status in
  10050. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10051. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10052. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10053. esac
  10054. else :
  10055. # compilation failed
  10056. lt_cv_dlopen_self_static=no
  10057. fi
  10058. fi
  10059. rm -fr conftest*
  10060. fi
  10061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10062. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10063. fi
  10064. CPPFLAGS="$save_CPPFLAGS"
  10065. LDFLAGS="$save_LDFLAGS"
  10066. LIBS="$save_LIBS"
  10067. ;;
  10068. esac
  10069. case $lt_cv_dlopen_self in
  10070. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10071. *) enable_dlopen_self=unknown ;;
  10072. esac
  10073. case $lt_cv_dlopen_self_static in
  10074. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10075. *) enable_dlopen_self_static=unknown ;;
  10076. esac
  10077. fi
  10078. striplib=
  10079. old_striplib=
  10080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10081. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10082. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10083. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10084. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10086. $as_echo "yes" >&6; }
  10087. else
  10088. # FIXME - insert some real tests, host_os isn't really good enough
  10089. case $host_os in
  10090. darwin*)
  10091. if test -n "$STRIP" ; then
  10092. striplib="$STRIP -x"
  10093. old_striplib="$STRIP -S"
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10095. $as_echo "yes" >&6; }
  10096. else
  10097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10098. $as_echo "no" >&6; }
  10099. fi
  10100. ;;
  10101. *)
  10102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10103. $as_echo "no" >&6; }
  10104. ;;
  10105. esac
  10106. fi
  10107. # Report which library types will actually be built
  10108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10109. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10111. $as_echo "$can_build_shared" >&6; }
  10112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10113. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10114. test "$can_build_shared" = "no" && enable_shared=no
  10115. # On AIX, shared libraries and static libraries use the same namespace, and
  10116. # are all built from PIC.
  10117. case $host_os in
  10118. aix3*)
  10119. test "$enable_shared" = yes && enable_static=no
  10120. if test -n "$RANLIB"; then
  10121. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10122. postinstall_cmds='$RANLIB $lib'
  10123. fi
  10124. ;;
  10125. aix[4-9]*)
  10126. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10127. test "$enable_shared" = yes && enable_static=no
  10128. fi
  10129. ;;
  10130. esac
  10131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10132. $as_echo "$enable_shared" >&6; }
  10133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10134. $as_echo_n "checking whether to build static libraries... " >&6; }
  10135. # Make sure either enable_shared or enable_static is yes.
  10136. test "$enable_shared" = yes || enable_static=yes
  10137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10138. $as_echo "$enable_static" >&6; }
  10139. fi
  10140. ac_ext=c
  10141. ac_cpp='$CPP $CPPFLAGS'
  10142. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10143. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10144. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10145. CC="$lt_save_CC"
  10146. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10147. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10148. (test "X$CXX" != "Xg++"))) ; then
  10149. ac_ext=cpp
  10150. ac_cpp='$CXXCPP $CPPFLAGS'
  10151. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10152. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10153. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10155. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10156. if test -z "$CXXCPP"; then
  10157. if ${ac_cv_prog_CXXCPP+:} false; then :
  10158. $as_echo_n "(cached) " >&6
  10159. else
  10160. # Double quotes because CXXCPP needs to be expanded
  10161. for CXXCPP in "$CXX -E" "/lib/cpp"
  10162. do
  10163. ac_preproc_ok=false
  10164. for ac_cxx_preproc_warn_flag in '' yes
  10165. do
  10166. # Use a header file that comes with gcc, so configuring glibc
  10167. # with a fresh cross-compiler works.
  10168. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10169. # <limits.h> exists even on freestanding compilers.
  10170. # On the NeXT, cc -E runs the code through the compiler's parser,
  10171. # not just through cpp. "Syntax error" is here to catch this case.
  10172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10173. /* end confdefs.h. */
  10174. #ifdef __STDC__
  10175. # include <limits.h>
  10176. #else
  10177. # include <assert.h>
  10178. #endif
  10179. Syntax error
  10180. _ACEOF
  10181. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10182. else
  10183. # Broken: fails on valid input.
  10184. continue
  10185. fi
  10186. rm -f conftest.err conftest.i conftest.$ac_ext
  10187. # OK, works on sane cases. Now check whether nonexistent headers
  10188. # can be detected and how.
  10189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10190. /* end confdefs.h. */
  10191. #include <ac_nonexistent.h>
  10192. _ACEOF
  10193. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10194. # Broken: success on invalid input.
  10195. continue
  10196. else
  10197. # Passes both tests.
  10198. ac_preproc_ok=:
  10199. break
  10200. fi
  10201. rm -f conftest.err conftest.i conftest.$ac_ext
  10202. done
  10203. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10204. rm -f conftest.i conftest.err conftest.$ac_ext
  10205. if $ac_preproc_ok; then :
  10206. break
  10207. fi
  10208. done
  10209. ac_cv_prog_CXXCPP=$CXXCPP
  10210. fi
  10211. CXXCPP=$ac_cv_prog_CXXCPP
  10212. else
  10213. ac_cv_prog_CXXCPP=$CXXCPP
  10214. fi
  10215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10216. $as_echo "$CXXCPP" >&6; }
  10217. ac_preproc_ok=false
  10218. for ac_cxx_preproc_warn_flag in '' yes
  10219. do
  10220. # Use a header file that comes with gcc, so configuring glibc
  10221. # with a fresh cross-compiler works.
  10222. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10223. # <limits.h> exists even on freestanding compilers.
  10224. # On the NeXT, cc -E runs the code through the compiler's parser,
  10225. # not just through cpp. "Syntax error" is here to catch this case.
  10226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10227. /* end confdefs.h. */
  10228. #ifdef __STDC__
  10229. # include <limits.h>
  10230. #else
  10231. # include <assert.h>
  10232. #endif
  10233. Syntax error
  10234. _ACEOF
  10235. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10236. else
  10237. # Broken: fails on valid input.
  10238. continue
  10239. fi
  10240. rm -f conftest.err conftest.i conftest.$ac_ext
  10241. # OK, works on sane cases. Now check whether nonexistent headers
  10242. # can be detected and how.
  10243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10244. /* end confdefs.h. */
  10245. #include <ac_nonexistent.h>
  10246. _ACEOF
  10247. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10248. # Broken: success on invalid input.
  10249. continue
  10250. else
  10251. # Passes both tests.
  10252. ac_preproc_ok=:
  10253. break
  10254. fi
  10255. rm -f conftest.err conftest.i conftest.$ac_ext
  10256. done
  10257. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10258. rm -f conftest.i conftest.err conftest.$ac_ext
  10259. if $ac_preproc_ok; then :
  10260. else
  10261. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10262. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10263. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10264. See \`config.log' for more details" "$LINENO" 5; }
  10265. fi
  10266. ac_ext=c
  10267. ac_cpp='$CPP $CPPFLAGS'
  10268. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10269. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10270. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10271. else
  10272. _lt_caught_CXX_error=yes
  10273. fi
  10274. ac_ext=cpp
  10275. ac_cpp='$CXXCPP $CPPFLAGS'
  10276. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10277. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10278. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10279. archive_cmds_need_lc_CXX=no
  10280. allow_undefined_flag_CXX=
  10281. always_export_symbols_CXX=no
  10282. archive_expsym_cmds_CXX=
  10283. compiler_needs_object_CXX=no
  10284. export_dynamic_flag_spec_CXX=
  10285. hardcode_direct_CXX=no
  10286. hardcode_direct_absolute_CXX=no
  10287. hardcode_libdir_flag_spec_CXX=
  10288. hardcode_libdir_flag_spec_ld_CXX=
  10289. hardcode_libdir_separator_CXX=
  10290. hardcode_minus_L_CXX=no
  10291. hardcode_shlibpath_var_CXX=unsupported
  10292. hardcode_automatic_CXX=no
  10293. inherit_rpath_CXX=no
  10294. module_cmds_CXX=
  10295. module_expsym_cmds_CXX=
  10296. link_all_deplibs_CXX=unknown
  10297. old_archive_cmds_CXX=$old_archive_cmds
  10298. reload_flag_CXX=$reload_flag
  10299. reload_cmds_CXX=$reload_cmds
  10300. no_undefined_flag_CXX=
  10301. whole_archive_flag_spec_CXX=
  10302. enable_shared_with_static_runtimes_CXX=no
  10303. # Source file extension for C++ test sources.
  10304. ac_ext=cpp
  10305. # Object file extension for compiled C++ test sources.
  10306. objext=o
  10307. objext_CXX=$objext
  10308. # No sense in running all these tests if we already determined that
  10309. # the CXX compiler isn't working. Some variables (like enable_shared)
  10310. # are currently assumed to apply to all compilers on this platform,
  10311. # and will be corrupted by setting them based on a non-working compiler.
  10312. if test "$_lt_caught_CXX_error" != yes; then
  10313. # Code to be used in simple compile tests
  10314. lt_simple_compile_test_code="int some_variable = 0;"
  10315. # Code to be used in simple link tests
  10316. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10317. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10318. # If no C compiler was specified, use CC.
  10319. LTCC=${LTCC-"$CC"}
  10320. # If no C compiler flags were specified, use CFLAGS.
  10321. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10322. # Allow CC to be a program name with arguments.
  10323. compiler=$CC
  10324. # save warnings/boilerplate of simple test code
  10325. ac_outfile=conftest.$ac_objext
  10326. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10327. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10328. _lt_compiler_boilerplate=`cat conftest.err`
  10329. $RM conftest*
  10330. ac_outfile=conftest.$ac_objext
  10331. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10332. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10333. _lt_linker_boilerplate=`cat conftest.err`
  10334. $RM -r conftest*
  10335. # Allow CC to be a program name with arguments.
  10336. lt_save_CC=$CC
  10337. lt_save_LD=$LD
  10338. lt_save_GCC=$GCC
  10339. GCC=$GXX
  10340. lt_save_with_gnu_ld=$with_gnu_ld
  10341. lt_save_path_LD=$lt_cv_path_LD
  10342. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10343. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10344. else
  10345. $as_unset lt_cv_prog_gnu_ld
  10346. fi
  10347. if test -n "${lt_cv_path_LDCXX+set}"; then
  10348. lt_cv_path_LD=$lt_cv_path_LDCXX
  10349. else
  10350. $as_unset lt_cv_path_LD
  10351. fi
  10352. test -z "${LDCXX+set}" || LD=$LDCXX
  10353. CC=${CXX-"c++"}
  10354. compiler=$CC
  10355. compiler_CXX=$CC
  10356. for cc_temp in $compiler""; do
  10357. case $cc_temp in
  10358. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10359. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10360. \-*) ;;
  10361. *) break;;
  10362. esac
  10363. done
  10364. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10365. if test -n "$compiler"; then
  10366. # We don't want -fno-exception when compiling C++ code, so set the
  10367. # no_builtin_flag separately
  10368. if test "$GXX" = yes; then
  10369. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10370. else
  10371. lt_prog_compiler_no_builtin_flag_CXX=
  10372. fi
  10373. if test "$GXX" = yes; then
  10374. # Set up default GNU C++ configuration
  10375. # Check whether --with-gnu-ld was given.
  10376. if test "${with_gnu_ld+set}" = set; then :
  10377. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10378. else
  10379. with_gnu_ld=no
  10380. fi
  10381. ac_prog=ld
  10382. if test "$GCC" = yes; then
  10383. # Check if gcc -print-prog-name=ld gives a path.
  10384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10385. $as_echo_n "checking for ld used by $CC... " >&6; }
  10386. case $host in
  10387. *-*-mingw*)
  10388. # gcc leaves a trailing carriage return which upsets mingw
  10389. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10390. *)
  10391. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10392. esac
  10393. case $ac_prog in
  10394. # Accept absolute paths.
  10395. [\\/]* | ?:[\\/]*)
  10396. re_direlt='/[^/][^/]*/\.\./'
  10397. # Canonicalize the pathname of ld
  10398. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10399. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10400. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10401. done
  10402. test -z "$LD" && LD="$ac_prog"
  10403. ;;
  10404. "")
  10405. # If it fails, then pretend we aren't using GCC.
  10406. ac_prog=ld
  10407. ;;
  10408. *)
  10409. # If it is relative, then search for the first ld in PATH.
  10410. with_gnu_ld=unknown
  10411. ;;
  10412. esac
  10413. elif test "$with_gnu_ld" = yes; then
  10414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10415. $as_echo_n "checking for GNU ld... " >&6; }
  10416. else
  10417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10418. $as_echo_n "checking for non-GNU ld... " >&6; }
  10419. fi
  10420. if ${lt_cv_path_LD+:} false; then :
  10421. $as_echo_n "(cached) " >&6
  10422. else
  10423. if test -z "$LD"; then
  10424. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10425. for ac_dir in $PATH; do
  10426. IFS="$lt_save_ifs"
  10427. test -z "$ac_dir" && ac_dir=.
  10428. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10429. lt_cv_path_LD="$ac_dir/$ac_prog"
  10430. # Check to see if the program is GNU ld. I'd rather use --version,
  10431. # but apparently some variants of GNU ld only accept -v.
  10432. # Break only if it was the GNU/non-GNU ld that we prefer.
  10433. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10434. *GNU* | *'with BFD'*)
  10435. test "$with_gnu_ld" != no && break
  10436. ;;
  10437. *)
  10438. test "$with_gnu_ld" != yes && break
  10439. ;;
  10440. esac
  10441. fi
  10442. done
  10443. IFS="$lt_save_ifs"
  10444. else
  10445. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10446. fi
  10447. fi
  10448. LD="$lt_cv_path_LD"
  10449. if test -n "$LD"; then
  10450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10451. $as_echo "$LD" >&6; }
  10452. else
  10453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10454. $as_echo "no" >&6; }
  10455. fi
  10456. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10458. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10459. if ${lt_cv_prog_gnu_ld+:} false; then :
  10460. $as_echo_n "(cached) " >&6
  10461. else
  10462. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10463. case `$LD -v 2>&1 </dev/null` in
  10464. *GNU* | *'with BFD'*)
  10465. lt_cv_prog_gnu_ld=yes
  10466. ;;
  10467. *)
  10468. lt_cv_prog_gnu_ld=no
  10469. ;;
  10470. esac
  10471. fi
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10473. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10474. with_gnu_ld=$lt_cv_prog_gnu_ld
  10475. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10476. # archiving commands below assume that GNU ld is being used.
  10477. if test "$with_gnu_ld" = yes; then
  10478. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10479. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10480. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10481. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10482. # If archive_cmds runs LD, not CC, wlarc should be empty
  10483. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10484. # investigate it a little bit more. (MM)
  10485. wlarc='${wl}'
  10486. # ancient GNU ld didn't support --whole-archive et. al.
  10487. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10488. $GREP 'no-whole-archive' > /dev/null; then
  10489. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10490. else
  10491. whole_archive_flag_spec_CXX=
  10492. fi
  10493. else
  10494. with_gnu_ld=no
  10495. wlarc=
  10496. # A generic and very simple default shared library creation
  10497. # command for GNU C++ for the case where it uses the native
  10498. # linker, instead of GNU ld. If possible, this setting should
  10499. # overridden to take advantage of the native linker features on
  10500. # the platform it is being used on.
  10501. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10502. fi
  10503. # Commands to make compiler produce verbose output that lists
  10504. # what "hidden" libraries, object files and flags are used when
  10505. # linking a shared library.
  10506. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10507. else
  10508. GXX=no
  10509. with_gnu_ld=no
  10510. wlarc=
  10511. fi
  10512. # PORTME: fill in a description of your system's C++ link characteristics
  10513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10514. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10515. ld_shlibs_CXX=yes
  10516. case $host_os in
  10517. aix3*)
  10518. # FIXME: insert proper C++ library support
  10519. ld_shlibs_CXX=no
  10520. ;;
  10521. aix[4-9]*)
  10522. if test "$host_cpu" = ia64; then
  10523. # On IA64, the linker does run time linking by default, so we don't
  10524. # have to do anything special.
  10525. aix_use_runtimelinking=no
  10526. exp_sym_flag='-Bexport'
  10527. no_entry_flag=""
  10528. else
  10529. aix_use_runtimelinking=no
  10530. # Test if we are trying to use run time linking or normal
  10531. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10532. # need to do runtime linking.
  10533. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10534. for ld_flag in $LDFLAGS; do
  10535. case $ld_flag in
  10536. *-brtl*)
  10537. aix_use_runtimelinking=yes
  10538. break
  10539. ;;
  10540. esac
  10541. done
  10542. ;;
  10543. esac
  10544. exp_sym_flag='-bexport'
  10545. no_entry_flag='-bnoentry'
  10546. fi
  10547. # When large executables or shared objects are built, AIX ld can
  10548. # have problems creating the table of contents. If linking a library
  10549. # or program results in "error TOC overflow" add -mminimal-toc to
  10550. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10551. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10552. archive_cmds_CXX=''
  10553. hardcode_direct_CXX=yes
  10554. hardcode_direct_absolute_CXX=yes
  10555. hardcode_libdir_separator_CXX=':'
  10556. link_all_deplibs_CXX=yes
  10557. file_list_spec_CXX='${wl}-f,'
  10558. if test "$GXX" = yes; then
  10559. case $host_os in aix4.[012]|aix4.[012].*)
  10560. # We only want to do this on AIX 4.2 and lower, the check
  10561. # below for broken collect2 doesn't work under 4.3+
  10562. collect2name=`${CC} -print-prog-name=collect2`
  10563. if test -f "$collect2name" &&
  10564. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10565. then
  10566. # We have reworked collect2
  10567. :
  10568. else
  10569. # We have old collect2
  10570. hardcode_direct_CXX=unsupported
  10571. # It fails to find uninstalled libraries when the uninstalled
  10572. # path is not listed in the libpath. Setting hardcode_minus_L
  10573. # to unsupported forces relinking
  10574. hardcode_minus_L_CXX=yes
  10575. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10576. hardcode_libdir_separator_CXX=
  10577. fi
  10578. esac
  10579. shared_flag='-shared'
  10580. if test "$aix_use_runtimelinking" = yes; then
  10581. shared_flag="$shared_flag "'${wl}-G'
  10582. fi
  10583. else
  10584. # not using gcc
  10585. if test "$host_cpu" = ia64; then
  10586. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10587. # chokes on -Wl,-G. The following line is correct:
  10588. shared_flag='-G'
  10589. else
  10590. if test "$aix_use_runtimelinking" = yes; then
  10591. shared_flag='${wl}-G'
  10592. else
  10593. shared_flag='${wl}-bM:SRE'
  10594. fi
  10595. fi
  10596. fi
  10597. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10598. # It seems that -bexpall does not export symbols beginning with
  10599. # underscore (_), so it is better to generate a list of symbols to
  10600. # export.
  10601. always_export_symbols_CXX=yes
  10602. if test "$aix_use_runtimelinking" = yes; then
  10603. # Warning - without using the other runtime loading flags (-brtl),
  10604. # -berok will link without error, but may produce a broken library.
  10605. allow_undefined_flag_CXX='-berok'
  10606. # Determine the default libpath from the value encoded in an empty
  10607. # executable.
  10608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10609. /* end confdefs.h. */
  10610. int
  10611. main ()
  10612. {
  10613. ;
  10614. return 0;
  10615. }
  10616. _ACEOF
  10617. if ac_fn_cxx_try_link "$LINENO"; then :
  10618. lt_aix_libpath_sed='
  10619. /Import File Strings/,/^$/ {
  10620. /^0/ {
  10621. s/^0 *\(.*\)$/\1/
  10622. p
  10623. }
  10624. }'
  10625. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10626. # Check for a 64-bit object if we didn't find anything.
  10627. if test -z "$aix_libpath"; then
  10628. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10629. fi
  10630. fi
  10631. rm -f core conftest.err conftest.$ac_objext \
  10632. conftest$ac_exeext conftest.$ac_ext
  10633. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10634. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10635. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10636. else
  10637. if test "$host_cpu" = ia64; then
  10638. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10639. allow_undefined_flag_CXX="-z nodefs"
  10640. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  10641. else
  10642. # Determine the default libpath from the value encoded in an
  10643. # empty executable.
  10644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10645. /* end confdefs.h. */
  10646. int
  10647. main ()
  10648. {
  10649. ;
  10650. return 0;
  10651. }
  10652. _ACEOF
  10653. if ac_fn_cxx_try_link "$LINENO"; then :
  10654. lt_aix_libpath_sed='
  10655. /Import File Strings/,/^$/ {
  10656. /^0/ {
  10657. s/^0 *\(.*\)$/\1/
  10658. p
  10659. }
  10660. }'
  10661. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10662. # Check for a 64-bit object if we didn't find anything.
  10663. if test -z "$aix_libpath"; then
  10664. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10665. fi
  10666. fi
  10667. rm -f core conftest.err conftest.$ac_objext \
  10668. conftest$ac_exeext conftest.$ac_ext
  10669. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10670. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10671. # Warning - without using the other run time loading flags,
  10672. # -berok will link without error, but may produce a broken library.
  10673. no_undefined_flag_CXX=' ${wl}-bernotok'
  10674. allow_undefined_flag_CXX=' ${wl}-berok'
  10675. if test "$with_gnu_ld" = yes; then
  10676. # We only use this code for GNU lds that support --whole-archive.
  10677. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10678. else
  10679. # Exported symbols can be pulled into shared objects from archives
  10680. whole_archive_flag_spec_CXX='$convenience'
  10681. fi
  10682. archive_cmds_need_lc_CXX=yes
  10683. # This is similar to how AIX traditionally builds its shared
  10684. # libraries.
  10685. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10686. fi
  10687. fi
  10688. ;;
  10689. beos*)
  10690. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10691. allow_undefined_flag_CXX=unsupported
  10692. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10693. # support --undefined. This deserves some investigation. FIXME
  10694. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10695. else
  10696. ld_shlibs_CXX=no
  10697. fi
  10698. ;;
  10699. chorus*)
  10700. case $cc_basename in
  10701. *)
  10702. # FIXME: insert proper C++ library support
  10703. ld_shlibs_CXX=no
  10704. ;;
  10705. esac
  10706. ;;
  10707. cygwin* | mingw* | pw32* | cegcc*)
  10708. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10709. # as there is no search path for DLLs.
  10710. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10711. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10712. allow_undefined_flag_CXX=unsupported
  10713. always_export_symbols_CXX=no
  10714. enable_shared_with_static_runtimes_CXX=yes
  10715. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10716. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10717. # If the export-symbols file already is a .def file (1st line
  10718. # is EXPORTS), use it as is; otherwise, prepend...
  10719. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10720. cp $export_symbols $output_objdir/$soname.def;
  10721. else
  10722. echo EXPORTS > $output_objdir/$soname.def;
  10723. cat $export_symbols >> $output_objdir/$soname.def;
  10724. fi~
  10725. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10726. else
  10727. ld_shlibs_CXX=no
  10728. fi
  10729. ;;
  10730. darwin* | rhapsody*)
  10731. archive_cmds_need_lc_CXX=no
  10732. hardcode_direct_CXX=no
  10733. hardcode_automatic_CXX=yes
  10734. hardcode_shlibpath_var_CXX=unsupported
  10735. if test "$lt_cv_ld_force_load" = "yes"; then
  10736. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  10737. else
  10738. whole_archive_flag_spec_CXX=''
  10739. fi
  10740. link_all_deplibs_CXX=yes
  10741. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10742. case $cc_basename in
  10743. ifort*) _lt_dar_can_shared=yes ;;
  10744. *) _lt_dar_can_shared=$GCC ;;
  10745. esac
  10746. if test "$_lt_dar_can_shared" = "yes"; then
  10747. output_verbose_link_cmd=func_echo_all
  10748. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  10749. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10750. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  10751. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  10752. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10753. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  10754. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  10755. fi
  10756. else
  10757. ld_shlibs_CXX=no
  10758. fi
  10759. ;;
  10760. dgux*)
  10761. case $cc_basename in
  10762. ec++*)
  10763. # FIXME: insert proper C++ library support
  10764. ld_shlibs_CXX=no
  10765. ;;
  10766. ghcx*)
  10767. # Green Hills C++ Compiler
  10768. # FIXME: insert proper C++ library support
  10769. ld_shlibs_CXX=no
  10770. ;;
  10771. *)
  10772. # FIXME: insert proper C++ library support
  10773. ld_shlibs_CXX=no
  10774. ;;
  10775. esac
  10776. ;;
  10777. freebsd2.*)
  10778. # C++ shared libraries reported to be fairly broken before
  10779. # switch to ELF
  10780. ld_shlibs_CXX=no
  10781. ;;
  10782. freebsd-elf*)
  10783. archive_cmds_need_lc_CXX=no
  10784. ;;
  10785. freebsd* | dragonfly*)
  10786. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10787. # conventions
  10788. ld_shlibs_CXX=yes
  10789. ;;
  10790. gnu*)
  10791. ;;
  10792. haiku*)
  10793. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10794. link_all_deplibs_CXX=yes
  10795. ;;
  10796. hpux9*)
  10797. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10798. hardcode_libdir_separator_CXX=:
  10799. export_dynamic_flag_spec_CXX='${wl}-E'
  10800. hardcode_direct_CXX=yes
  10801. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10802. # but as the default
  10803. # location of the library.
  10804. case $cc_basename in
  10805. CC*)
  10806. # FIXME: insert proper C++ library support
  10807. ld_shlibs_CXX=no
  10808. ;;
  10809. aCC*)
  10810. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10811. # Commands to make compiler produce verbose output that lists
  10812. # what "hidden" libraries, object files and flags are used when
  10813. # linking a shared library.
  10814. #
  10815. # There doesn't appear to be a way to prevent this compiler from
  10816. # explicitly linking system object files so we need to strip them
  10817. # from the output so that they don't get included in the library
  10818. # dependencies.
  10819. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10820. ;;
  10821. *)
  10822. if test "$GXX" = yes; then
  10823. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10824. else
  10825. # FIXME: insert proper C++ library support
  10826. ld_shlibs_CXX=no
  10827. fi
  10828. ;;
  10829. esac
  10830. ;;
  10831. hpux10*|hpux11*)
  10832. if test $with_gnu_ld = no; then
  10833. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10834. hardcode_libdir_separator_CXX=:
  10835. case $host_cpu in
  10836. hppa*64*|ia64*)
  10837. ;;
  10838. *)
  10839. export_dynamic_flag_spec_CXX='${wl}-E'
  10840. ;;
  10841. esac
  10842. fi
  10843. case $host_cpu in
  10844. hppa*64*|ia64*)
  10845. hardcode_direct_CXX=no
  10846. hardcode_shlibpath_var_CXX=no
  10847. ;;
  10848. *)
  10849. hardcode_direct_CXX=yes
  10850. hardcode_direct_absolute_CXX=yes
  10851. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10852. # but as the default
  10853. # location of the library.
  10854. ;;
  10855. esac
  10856. case $cc_basename in
  10857. CC*)
  10858. # FIXME: insert proper C++ library support
  10859. ld_shlibs_CXX=no
  10860. ;;
  10861. aCC*)
  10862. case $host_cpu in
  10863. hppa*64*)
  10864. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10865. ;;
  10866. ia64*)
  10867. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10868. ;;
  10869. *)
  10870. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10871. ;;
  10872. esac
  10873. # Commands to make compiler produce verbose output that lists
  10874. # what "hidden" libraries, object files and flags are used when
  10875. # linking a shared library.
  10876. #
  10877. # There doesn't appear to be a way to prevent this compiler from
  10878. # explicitly linking system object files so we need to strip them
  10879. # from the output so that they don't get included in the library
  10880. # dependencies.
  10881. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10882. ;;
  10883. *)
  10884. if test "$GXX" = yes; then
  10885. if test $with_gnu_ld = no; then
  10886. case $host_cpu in
  10887. hppa*64*)
  10888. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10889. ;;
  10890. ia64*)
  10891. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10892. ;;
  10893. *)
  10894. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10895. ;;
  10896. esac
  10897. fi
  10898. else
  10899. # FIXME: insert proper C++ library support
  10900. ld_shlibs_CXX=no
  10901. fi
  10902. ;;
  10903. esac
  10904. ;;
  10905. interix[3-9]*)
  10906. hardcode_direct_CXX=no
  10907. hardcode_shlibpath_var_CXX=no
  10908. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10909. export_dynamic_flag_spec_CXX='${wl}-E'
  10910. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10911. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10912. # default) and relocated if they conflict, which is a slow very memory
  10913. # consuming and fragmenting process. To avoid this, we pick a random,
  10914. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10915. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10916. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10917. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10918. ;;
  10919. irix5* | irix6*)
  10920. case $cc_basename in
  10921. CC*)
  10922. # SGI C++
  10923. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10924. # Archives containing C++ object files must be created using
  10925. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10926. # necessary to make sure instantiated templates are included
  10927. # in the archive.
  10928. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10929. ;;
  10930. *)
  10931. if test "$GXX" = yes; then
  10932. if test "$with_gnu_ld" = no; then
  10933. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10934. else
  10935. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  10936. fi
  10937. fi
  10938. link_all_deplibs_CXX=yes
  10939. ;;
  10940. esac
  10941. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10942. hardcode_libdir_separator_CXX=:
  10943. inherit_rpath_CXX=yes
  10944. ;;
  10945. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10946. case $cc_basename in
  10947. KCC*)
  10948. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10949. # KCC will only create a shared library if the output file
  10950. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10951. # to its proper name (with version) after linking.
  10952. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10953. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  10954. # Commands to make compiler produce verbose output that lists
  10955. # what "hidden" libraries, object files and flags are used when
  10956. # linking a shared library.
  10957. #
  10958. # There doesn't appear to be a way to prevent this compiler from
  10959. # explicitly linking system object files so we need to strip them
  10960. # from the output so that they don't get included in the library
  10961. # dependencies.
  10962. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10963. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10964. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10965. # Archives containing C++ object files must be created using
  10966. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10967. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10968. ;;
  10969. icpc* | ecpc* )
  10970. # Intel C++
  10971. with_gnu_ld=yes
  10972. # version 8.0 and above of icpc choke on multiply defined symbols
  10973. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10974. # earlier do not add the objects themselves.
  10975. case `$CC -V 2>&1` in
  10976. *"Version 7."*)
  10977. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10978. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10979. ;;
  10980. *) # Version 8.0 or newer
  10981. tmp_idyn=
  10982. case $host_cpu in
  10983. ia64*) tmp_idyn=' -i_dynamic';;
  10984. esac
  10985. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10986. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10987. ;;
  10988. esac
  10989. archive_cmds_need_lc_CXX=no
  10990. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10991. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10992. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10993. ;;
  10994. pgCC* | pgcpp*)
  10995. # Portland Group C++ compiler
  10996. case `$CC -V` in
  10997. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  10998. prelink_cmds_CXX='tpldir=Template.dir~
  10999. rm -rf $tpldir~
  11000. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11001. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11002. old_archive_cmds_CXX='tpldir=Template.dir~
  11003. rm -rf $tpldir~
  11004. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11005. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11006. $RANLIB $oldlib'
  11007. archive_cmds_CXX='tpldir=Template.dir~
  11008. rm -rf $tpldir~
  11009. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11010. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11011. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11012. rm -rf $tpldir~
  11013. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11014. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11015. ;;
  11016. *) # Version 6 and above use weak symbols
  11017. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11018. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11019. ;;
  11020. esac
  11021. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11022. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11023. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11024. ;;
  11025. cxx*)
  11026. # Compaq C++
  11027. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11028. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  11029. runpath_var=LD_RUN_PATH
  11030. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11031. hardcode_libdir_separator_CXX=:
  11032. # Commands to make compiler produce verbose output that lists
  11033. # what "hidden" libraries, object files and flags are used when
  11034. # linking a shared library.
  11035. #
  11036. # There doesn't appear to be a way to prevent this compiler from
  11037. # explicitly linking system object files so we need to strip them
  11038. # from the output so that they don't get included in the library
  11039. # dependencies.
  11040. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11041. ;;
  11042. xl* | mpixl* | bgxl*)
  11043. # IBM XL 8.0 on PPC, with GNU ld
  11044. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11045. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11046. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11047. if test "x$supports_anon_versioning" = xyes; then
  11048. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11049. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11050. echo "local: *; };" >> $output_objdir/$libname.ver~
  11051. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11052. fi
  11053. ;;
  11054. *)
  11055. case `$CC -V 2>&1 | sed 5q` in
  11056. *Sun\ C*)
  11057. # Sun C++ 5.9
  11058. no_undefined_flag_CXX=' -zdefs'
  11059. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11060. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  11061. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11062. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11063. compiler_needs_object_CXX=yes
  11064. # Not sure whether something based on
  11065. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11066. # would be better.
  11067. output_verbose_link_cmd='func_echo_all'
  11068. # Archives containing C++ object files must be created using
  11069. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11070. # necessary to make sure instantiated templates are included
  11071. # in the archive.
  11072. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11073. ;;
  11074. esac
  11075. ;;
  11076. esac
  11077. ;;
  11078. lynxos*)
  11079. # FIXME: insert proper C++ library support
  11080. ld_shlibs_CXX=no
  11081. ;;
  11082. m88k*)
  11083. # FIXME: insert proper C++ library support
  11084. ld_shlibs_CXX=no
  11085. ;;
  11086. mvs*)
  11087. case $cc_basename in
  11088. cxx*)
  11089. # FIXME: insert proper C++ library support
  11090. ld_shlibs_CXX=no
  11091. ;;
  11092. *)
  11093. # FIXME: insert proper C++ library support
  11094. ld_shlibs_CXX=no
  11095. ;;
  11096. esac
  11097. ;;
  11098. netbsd*)
  11099. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11100. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11101. wlarc=
  11102. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11103. hardcode_direct_CXX=yes
  11104. hardcode_shlibpath_var_CXX=no
  11105. fi
  11106. # Workaround some broken pre-1.5 toolchains
  11107. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11108. ;;
  11109. *nto* | *qnx*)
  11110. ld_shlibs_CXX=yes
  11111. ;;
  11112. openbsd2*)
  11113. # C++ shared libraries are fairly broken
  11114. ld_shlibs_CXX=no
  11115. ;;
  11116. openbsd*)
  11117. if test -f /usr/libexec/ld.so; then
  11118. hardcode_direct_CXX=yes
  11119. hardcode_shlibpath_var_CXX=no
  11120. hardcode_direct_absolute_CXX=yes
  11121. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11122. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11123. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11124. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11125. export_dynamic_flag_spec_CXX='${wl}-E'
  11126. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11127. fi
  11128. output_verbose_link_cmd=func_echo_all
  11129. else
  11130. ld_shlibs_CXX=no
  11131. fi
  11132. ;;
  11133. osf3* | osf4* | osf5*)
  11134. case $cc_basename in
  11135. KCC*)
  11136. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11137. # KCC will only create a shared library if the output file
  11138. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11139. # to its proper name (with version) after linking.
  11140. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11141. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11142. hardcode_libdir_separator_CXX=:
  11143. # Archives containing C++ object files must be created using
  11144. # the KAI C++ compiler.
  11145. case $host in
  11146. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11147. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11148. esac
  11149. ;;
  11150. RCC*)
  11151. # Rational C++ 2.4.1
  11152. # FIXME: insert proper C++ library support
  11153. ld_shlibs_CXX=no
  11154. ;;
  11155. cxx*)
  11156. case $host in
  11157. osf3*)
  11158. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11159. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11160. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11161. ;;
  11162. *)
  11163. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11164. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11165. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11166. echo "-hidden">> $lib.exp~
  11167. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  11168. $RM $lib.exp'
  11169. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11170. ;;
  11171. esac
  11172. hardcode_libdir_separator_CXX=:
  11173. # Commands to make compiler produce verbose output that lists
  11174. # what "hidden" libraries, object files and flags are used when
  11175. # linking a shared library.
  11176. #
  11177. # There doesn't appear to be a way to prevent this compiler from
  11178. # explicitly linking system object files so we need to strip them
  11179. # from the output so that they don't get included in the library
  11180. # dependencies.
  11181. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11182. ;;
  11183. *)
  11184. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11185. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11186. case $host in
  11187. osf3*)
  11188. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11189. ;;
  11190. *)
  11191. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11192. ;;
  11193. esac
  11194. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11195. hardcode_libdir_separator_CXX=:
  11196. # Commands to make compiler produce verbose output that lists
  11197. # what "hidden" libraries, object files and flags are used when
  11198. # linking a shared library.
  11199. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11200. else
  11201. # FIXME: insert proper C++ library support
  11202. ld_shlibs_CXX=no
  11203. fi
  11204. ;;
  11205. esac
  11206. ;;
  11207. psos*)
  11208. # FIXME: insert proper C++ library support
  11209. ld_shlibs_CXX=no
  11210. ;;
  11211. sunos4*)
  11212. case $cc_basename in
  11213. CC*)
  11214. # Sun C++ 4.x
  11215. # FIXME: insert proper C++ library support
  11216. ld_shlibs_CXX=no
  11217. ;;
  11218. lcc*)
  11219. # Lucid
  11220. # FIXME: insert proper C++ library support
  11221. ld_shlibs_CXX=no
  11222. ;;
  11223. *)
  11224. # FIXME: insert proper C++ library support
  11225. ld_shlibs_CXX=no
  11226. ;;
  11227. esac
  11228. ;;
  11229. solaris*)
  11230. case $cc_basename in
  11231. CC*)
  11232. # Sun C++ 4.2, 5.x and Centerline C++
  11233. archive_cmds_need_lc_CXX=yes
  11234. no_undefined_flag_CXX=' -zdefs'
  11235. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11236. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11237. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11238. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11239. hardcode_shlibpath_var_CXX=no
  11240. case $host_os in
  11241. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11242. *)
  11243. # The compiler driver will combine and reorder linker options,
  11244. # but understands `-z linker_flag'.
  11245. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11246. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11247. ;;
  11248. esac
  11249. link_all_deplibs_CXX=yes
  11250. output_verbose_link_cmd='func_echo_all'
  11251. # Archives containing C++ object files must be created using
  11252. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11253. # necessary to make sure instantiated templates are included
  11254. # in the archive.
  11255. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11256. ;;
  11257. gcx*)
  11258. # Green Hills C++ Compiler
  11259. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11260. # The C++ compiler must be used to create the archive.
  11261. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11262. ;;
  11263. *)
  11264. # GNU C++ compiler with Solaris linker
  11265. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11266. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11267. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11268. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11269. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11270. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11271. # Commands to make compiler produce verbose output that lists
  11272. # what "hidden" libraries, object files and flags are used when
  11273. # linking a shared library.
  11274. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11275. else
  11276. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11277. # platform.
  11278. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11279. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11280. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11281. # Commands to make compiler produce verbose output that lists
  11282. # what "hidden" libraries, object files and flags are used when
  11283. # linking a shared library.
  11284. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11285. fi
  11286. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11287. case $host_os in
  11288. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11289. *)
  11290. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11291. ;;
  11292. esac
  11293. fi
  11294. ;;
  11295. esac
  11296. ;;
  11297. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11298. no_undefined_flag_CXX='${wl}-z,text'
  11299. archive_cmds_need_lc_CXX=no
  11300. hardcode_shlibpath_var_CXX=no
  11301. runpath_var='LD_RUN_PATH'
  11302. case $cc_basename in
  11303. CC*)
  11304. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11305. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11306. ;;
  11307. *)
  11308. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11309. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11310. ;;
  11311. esac
  11312. ;;
  11313. sysv5* | sco3.2v5* | sco5v6*)
  11314. # Note: We can NOT use -z defs as we might desire, because we do not
  11315. # link with -lc, and that would cause any symbols used from libc to
  11316. # always be unresolved, which means just about no library would
  11317. # ever link correctly. If we're not using GNU ld we use -z text
  11318. # though, which does catch some bad symbols but isn't as heavy-handed
  11319. # as -z defs.
  11320. no_undefined_flag_CXX='${wl}-z,text'
  11321. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11322. archive_cmds_need_lc_CXX=no
  11323. hardcode_shlibpath_var_CXX=no
  11324. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11325. hardcode_libdir_separator_CXX=':'
  11326. link_all_deplibs_CXX=yes
  11327. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11328. runpath_var='LD_RUN_PATH'
  11329. case $cc_basename in
  11330. CC*)
  11331. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11332. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11333. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11334. '"$old_archive_cmds_CXX"
  11335. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11336. '"$reload_cmds_CXX"
  11337. ;;
  11338. *)
  11339. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11340. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11341. ;;
  11342. esac
  11343. ;;
  11344. tandem*)
  11345. case $cc_basename in
  11346. NCC*)
  11347. # NonStop-UX NCC 3.20
  11348. # FIXME: insert proper C++ library support
  11349. ld_shlibs_CXX=no
  11350. ;;
  11351. *)
  11352. # FIXME: insert proper C++ library support
  11353. ld_shlibs_CXX=no
  11354. ;;
  11355. esac
  11356. ;;
  11357. vxworks*)
  11358. # FIXME: insert proper C++ library support
  11359. ld_shlibs_CXX=no
  11360. ;;
  11361. *)
  11362. # FIXME: insert proper C++ library support
  11363. ld_shlibs_CXX=no
  11364. ;;
  11365. esac
  11366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11367. $as_echo "$ld_shlibs_CXX" >&6; }
  11368. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11369. GCC_CXX="$GXX"
  11370. LD_CXX="$LD"
  11371. ## CAVEAT EMPTOR:
  11372. ## There is no encapsulation within the following macros, do not change
  11373. ## the running order or otherwise move them around unless you know exactly
  11374. ## what you are doing...
  11375. # Dependencies to place before and after the object being linked:
  11376. predep_objects_CXX=
  11377. postdep_objects_CXX=
  11378. predeps_CXX=
  11379. postdeps_CXX=
  11380. compiler_lib_search_path_CXX=
  11381. cat > conftest.$ac_ext <<_LT_EOF
  11382. class Foo
  11383. {
  11384. public:
  11385. Foo (void) { a = 0; }
  11386. private:
  11387. int a;
  11388. };
  11389. _LT_EOF
  11390. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11391. (eval $ac_compile) 2>&5
  11392. ac_status=$?
  11393. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11394. test $ac_status = 0; }; then
  11395. # Parse the compiler output and extract the necessary
  11396. # objects, libraries and library flags.
  11397. # Sentinel used to keep track of whether or not we are before
  11398. # the conftest object file.
  11399. pre_test_object_deps_done=no
  11400. for p in `eval "$output_verbose_link_cmd"`; do
  11401. case $p in
  11402. -L* | -R* | -l*)
  11403. # Some compilers place space between "-{L,R}" and the path.
  11404. # Remove the space.
  11405. if test $p = "-L" ||
  11406. test $p = "-R"; then
  11407. prev=$p
  11408. continue
  11409. else
  11410. prev=
  11411. fi
  11412. if test "$pre_test_object_deps_done" = no; then
  11413. case $p in
  11414. -L* | -R*)
  11415. # Internal compiler library paths should come after those
  11416. # provided the user. The postdeps already come after the
  11417. # user supplied libs so there is no need to process them.
  11418. if test -z "$compiler_lib_search_path_CXX"; then
  11419. compiler_lib_search_path_CXX="${prev}${p}"
  11420. else
  11421. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11422. fi
  11423. ;;
  11424. # The "-l" case would never come before the object being
  11425. # linked, so don't bother handling this case.
  11426. esac
  11427. else
  11428. if test -z "$postdeps_CXX"; then
  11429. postdeps_CXX="${prev}${p}"
  11430. else
  11431. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11432. fi
  11433. fi
  11434. ;;
  11435. *.$objext)
  11436. # This assumes that the test object file only shows up
  11437. # once in the compiler output.
  11438. if test "$p" = "conftest.$objext"; then
  11439. pre_test_object_deps_done=yes
  11440. continue
  11441. fi
  11442. if test "$pre_test_object_deps_done" = no; then
  11443. if test -z "$predep_objects_CXX"; then
  11444. predep_objects_CXX="$p"
  11445. else
  11446. predep_objects_CXX="$predep_objects_CXX $p"
  11447. fi
  11448. else
  11449. if test -z "$postdep_objects_CXX"; then
  11450. postdep_objects_CXX="$p"
  11451. else
  11452. postdep_objects_CXX="$postdep_objects_CXX $p"
  11453. fi
  11454. fi
  11455. ;;
  11456. *) ;; # Ignore the rest.
  11457. esac
  11458. done
  11459. # Clean up.
  11460. rm -f a.out a.exe
  11461. else
  11462. echo "libtool.m4: error: problem compiling CXX test program"
  11463. fi
  11464. $RM -f confest.$objext
  11465. # PORTME: override above test on systems where it is broken
  11466. case $host_os in
  11467. interix[3-9]*)
  11468. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11469. # hack all around it, let's just trust "g++" to DTRT.
  11470. predep_objects_CXX=
  11471. postdep_objects_CXX=
  11472. postdeps_CXX=
  11473. ;;
  11474. linux*)
  11475. case `$CC -V 2>&1 | sed 5q` in
  11476. *Sun\ C*)
  11477. # Sun C++ 5.9
  11478. # The more standards-conforming stlport4 library is
  11479. # incompatible with the Cstd library. Avoid specifying
  11480. # it if it's in CXXFLAGS. Ignore libCrun as
  11481. # -library=stlport4 depends on it.
  11482. case " $CXX $CXXFLAGS " in
  11483. *" -library=stlport4 "*)
  11484. solaris_use_stlport4=yes
  11485. ;;
  11486. esac
  11487. if test "$solaris_use_stlport4" != yes; then
  11488. postdeps_CXX='-library=Cstd -library=Crun'
  11489. fi
  11490. ;;
  11491. esac
  11492. ;;
  11493. solaris*)
  11494. case $cc_basename in
  11495. CC*)
  11496. # The more standards-conforming stlport4 library is
  11497. # incompatible with the Cstd library. Avoid specifying
  11498. # it if it's in CXXFLAGS. Ignore libCrun as
  11499. # -library=stlport4 depends on it.
  11500. case " $CXX $CXXFLAGS " in
  11501. *" -library=stlport4 "*)
  11502. solaris_use_stlport4=yes
  11503. ;;
  11504. esac
  11505. # Adding this requires a known-good setup of shared libraries for
  11506. # Sun compiler versions before 5.6, else PIC objects from an old
  11507. # archive will be linked into the output, leading to subtle bugs.
  11508. if test "$solaris_use_stlport4" != yes; then
  11509. postdeps_CXX='-library=Cstd -library=Crun'
  11510. fi
  11511. ;;
  11512. esac
  11513. ;;
  11514. esac
  11515. case " $postdeps_CXX " in
  11516. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11517. esac
  11518. compiler_lib_search_dirs_CXX=
  11519. if test -n "${compiler_lib_search_path_CXX}"; then
  11520. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11521. fi
  11522. lt_prog_compiler_wl_CXX=
  11523. lt_prog_compiler_pic_CXX=
  11524. lt_prog_compiler_static_CXX=
  11525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11526. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11527. # C++ specific cases for pic, static, wl, etc.
  11528. if test "$GXX" = yes; then
  11529. lt_prog_compiler_wl_CXX='-Wl,'
  11530. lt_prog_compiler_static_CXX='-static'
  11531. case $host_os in
  11532. aix*)
  11533. # All AIX code is PIC.
  11534. if test "$host_cpu" = ia64; then
  11535. # AIX 5 now supports IA64 processor
  11536. lt_prog_compiler_static_CXX='-Bstatic'
  11537. fi
  11538. lt_prog_compiler_pic_CXX='-fPIC'
  11539. ;;
  11540. amigaos*)
  11541. case $host_cpu in
  11542. powerpc)
  11543. # see comment about AmigaOS4 .so support
  11544. lt_prog_compiler_pic_CXX='-fPIC'
  11545. ;;
  11546. m68k)
  11547. # FIXME: we need at least 68020 code to build shared libraries, but
  11548. # adding the `-m68020' flag to GCC prevents building anything better,
  11549. # like `-m68040'.
  11550. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11551. ;;
  11552. esac
  11553. ;;
  11554. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11555. # PIC is the default for these OSes.
  11556. ;;
  11557. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11558. # This hack is so that the source file can tell whether it is being
  11559. # built for inclusion in a dll (and should export symbols for example).
  11560. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11561. # (--disable-auto-import) libraries
  11562. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11563. ;;
  11564. darwin* | rhapsody*)
  11565. # PIC is the default on this platform
  11566. # Common symbols not allowed in MH_DYLIB files
  11567. lt_prog_compiler_pic_CXX='-fno-common'
  11568. ;;
  11569. *djgpp*)
  11570. # DJGPP does not support shared libraries at all
  11571. lt_prog_compiler_pic_CXX=
  11572. ;;
  11573. haiku*)
  11574. # PIC is the default for Haiku.
  11575. # The "-static" flag exists, but is broken.
  11576. lt_prog_compiler_static_CXX=
  11577. ;;
  11578. interix[3-9]*)
  11579. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11580. # Instead, we relocate shared libraries at runtime.
  11581. ;;
  11582. sysv4*MP*)
  11583. if test -d /usr/nec; then
  11584. lt_prog_compiler_pic_CXX=-Kconform_pic
  11585. fi
  11586. ;;
  11587. hpux*)
  11588. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11589. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11590. # sets the default TLS model and affects inlining.
  11591. case $host_cpu in
  11592. hppa*64*)
  11593. ;;
  11594. *)
  11595. lt_prog_compiler_pic_CXX='-fPIC'
  11596. ;;
  11597. esac
  11598. ;;
  11599. *qnx* | *nto*)
  11600. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11601. # it will coredump.
  11602. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11603. ;;
  11604. *)
  11605. lt_prog_compiler_pic_CXX='-fPIC'
  11606. ;;
  11607. esac
  11608. else
  11609. case $host_os in
  11610. aix[4-9]*)
  11611. # All AIX code is PIC.
  11612. if test "$host_cpu" = ia64; then
  11613. # AIX 5 now supports IA64 processor
  11614. lt_prog_compiler_static_CXX='-Bstatic'
  11615. else
  11616. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11617. fi
  11618. ;;
  11619. chorus*)
  11620. case $cc_basename in
  11621. cxch68*)
  11622. # Green Hills C++ Compiler
  11623. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  11624. ;;
  11625. esac
  11626. ;;
  11627. dgux*)
  11628. case $cc_basename in
  11629. ec++*)
  11630. lt_prog_compiler_pic_CXX='-KPIC'
  11631. ;;
  11632. ghcx*)
  11633. # Green Hills C++ Compiler
  11634. lt_prog_compiler_pic_CXX='-pic'
  11635. ;;
  11636. *)
  11637. ;;
  11638. esac
  11639. ;;
  11640. freebsd* | dragonfly*)
  11641. # FreeBSD uses GNU C++
  11642. ;;
  11643. hpux9* | hpux10* | hpux11*)
  11644. case $cc_basename in
  11645. CC*)
  11646. lt_prog_compiler_wl_CXX='-Wl,'
  11647. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11648. if test "$host_cpu" != ia64; then
  11649. lt_prog_compiler_pic_CXX='+Z'
  11650. fi
  11651. ;;
  11652. aCC*)
  11653. lt_prog_compiler_wl_CXX='-Wl,'
  11654. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11655. case $host_cpu in
  11656. hppa*64*|ia64*)
  11657. # +Z the default
  11658. ;;
  11659. *)
  11660. lt_prog_compiler_pic_CXX='+Z'
  11661. ;;
  11662. esac
  11663. ;;
  11664. *)
  11665. ;;
  11666. esac
  11667. ;;
  11668. interix*)
  11669. # This is c89, which is MS Visual C++ (no shared libs)
  11670. # Anyone wants to do a port?
  11671. ;;
  11672. irix5* | irix6* | nonstopux*)
  11673. case $cc_basename in
  11674. CC*)
  11675. lt_prog_compiler_wl_CXX='-Wl,'
  11676. lt_prog_compiler_static_CXX='-non_shared'
  11677. # CC pic flag -KPIC is the default.
  11678. ;;
  11679. *)
  11680. ;;
  11681. esac
  11682. ;;
  11683. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11684. case $cc_basename in
  11685. KCC*)
  11686. # KAI C++ Compiler
  11687. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11688. lt_prog_compiler_pic_CXX='-fPIC'
  11689. ;;
  11690. ecpc* )
  11691. # old Intel C++ for x86_64 which still supported -KPIC.
  11692. lt_prog_compiler_wl_CXX='-Wl,'
  11693. lt_prog_compiler_pic_CXX='-KPIC'
  11694. lt_prog_compiler_static_CXX='-static'
  11695. ;;
  11696. icpc* )
  11697. # Intel C++, used to be incompatible with GCC.
  11698. # ICC 10 doesn't accept -KPIC any more.
  11699. lt_prog_compiler_wl_CXX='-Wl,'
  11700. lt_prog_compiler_pic_CXX='-fPIC'
  11701. lt_prog_compiler_static_CXX='-static'
  11702. ;;
  11703. pgCC* | pgcpp*)
  11704. # Portland Group C++ compiler
  11705. lt_prog_compiler_wl_CXX='-Wl,'
  11706. lt_prog_compiler_pic_CXX='-fpic'
  11707. lt_prog_compiler_static_CXX='-Bstatic'
  11708. ;;
  11709. cxx*)
  11710. # Compaq C++
  11711. # Make sure the PIC flag is empty. It appears that all Alpha
  11712. # Linux and Compaq Tru64 Unix objects are PIC.
  11713. lt_prog_compiler_pic_CXX=
  11714. lt_prog_compiler_static_CXX='-non_shared'
  11715. ;;
  11716. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11717. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11718. lt_prog_compiler_wl_CXX='-Wl,'
  11719. lt_prog_compiler_pic_CXX='-qpic'
  11720. lt_prog_compiler_static_CXX='-qstaticlink'
  11721. ;;
  11722. *)
  11723. case `$CC -V 2>&1 | sed 5q` in
  11724. *Sun\ C*)
  11725. # Sun C++ 5.9
  11726. lt_prog_compiler_pic_CXX='-KPIC'
  11727. lt_prog_compiler_static_CXX='-Bstatic'
  11728. lt_prog_compiler_wl_CXX='-Qoption ld '
  11729. ;;
  11730. esac
  11731. ;;
  11732. esac
  11733. ;;
  11734. lynxos*)
  11735. ;;
  11736. m88k*)
  11737. ;;
  11738. mvs*)
  11739. case $cc_basename in
  11740. cxx*)
  11741. lt_prog_compiler_pic_CXX='-W c,exportall'
  11742. ;;
  11743. *)
  11744. ;;
  11745. esac
  11746. ;;
  11747. netbsd*)
  11748. ;;
  11749. *qnx* | *nto*)
  11750. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11751. # it will coredump.
  11752. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11753. ;;
  11754. osf3* | osf4* | osf5*)
  11755. case $cc_basename in
  11756. KCC*)
  11757. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11758. ;;
  11759. RCC*)
  11760. # Rational C++ 2.4.1
  11761. lt_prog_compiler_pic_CXX='-pic'
  11762. ;;
  11763. cxx*)
  11764. # Digital/Compaq C++
  11765. lt_prog_compiler_wl_CXX='-Wl,'
  11766. # Make sure the PIC flag is empty. It appears that all Alpha
  11767. # Linux and Compaq Tru64 Unix objects are PIC.
  11768. lt_prog_compiler_pic_CXX=
  11769. lt_prog_compiler_static_CXX='-non_shared'
  11770. ;;
  11771. *)
  11772. ;;
  11773. esac
  11774. ;;
  11775. psos*)
  11776. ;;
  11777. solaris*)
  11778. case $cc_basename in
  11779. CC*)
  11780. # Sun C++ 4.2, 5.x and Centerline C++
  11781. lt_prog_compiler_pic_CXX='-KPIC'
  11782. lt_prog_compiler_static_CXX='-Bstatic'
  11783. lt_prog_compiler_wl_CXX='-Qoption ld '
  11784. ;;
  11785. gcx*)
  11786. # Green Hills C++ Compiler
  11787. lt_prog_compiler_pic_CXX='-PIC'
  11788. ;;
  11789. *)
  11790. ;;
  11791. esac
  11792. ;;
  11793. sunos4*)
  11794. case $cc_basename in
  11795. CC*)
  11796. # Sun C++ 4.x
  11797. lt_prog_compiler_pic_CXX='-pic'
  11798. lt_prog_compiler_static_CXX='-Bstatic'
  11799. ;;
  11800. lcc*)
  11801. # Lucid
  11802. lt_prog_compiler_pic_CXX='-pic'
  11803. ;;
  11804. *)
  11805. ;;
  11806. esac
  11807. ;;
  11808. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11809. case $cc_basename in
  11810. CC*)
  11811. lt_prog_compiler_wl_CXX='-Wl,'
  11812. lt_prog_compiler_pic_CXX='-KPIC'
  11813. lt_prog_compiler_static_CXX='-Bstatic'
  11814. ;;
  11815. esac
  11816. ;;
  11817. tandem*)
  11818. case $cc_basename in
  11819. NCC*)
  11820. # NonStop-UX NCC 3.20
  11821. lt_prog_compiler_pic_CXX='-KPIC'
  11822. ;;
  11823. *)
  11824. ;;
  11825. esac
  11826. ;;
  11827. vxworks*)
  11828. ;;
  11829. *)
  11830. lt_prog_compiler_can_build_shared_CXX=no
  11831. ;;
  11832. esac
  11833. fi
  11834. case $host_os in
  11835. # For platforms which do not support PIC, -DPIC is meaningless:
  11836. *djgpp*)
  11837. lt_prog_compiler_pic_CXX=
  11838. ;;
  11839. *)
  11840. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11841. ;;
  11842. esac
  11843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11844. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11845. #
  11846. # Check to make sure the PIC flag actually works.
  11847. #
  11848. if test -n "$lt_prog_compiler_pic_CXX"; then
  11849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11850. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11851. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  11852. $as_echo_n "(cached) " >&6
  11853. else
  11854. lt_cv_prog_compiler_pic_works_CXX=no
  11855. ac_outfile=conftest.$ac_objext
  11856. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11857. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11858. # Insert the option either (1) after the last *FLAGS variable, or
  11859. # (2) before a word containing "conftest.", or (3) at the end.
  11860. # Note that $ac_compile itself does not contain backslashes and begins
  11861. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11862. # The option is referenced via a variable to avoid confusing sed.
  11863. lt_compile=`echo "$ac_compile" | $SED \
  11864. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11865. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11866. -e 's:$: $lt_compiler_flag:'`
  11867. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11868. (eval "$lt_compile" 2>conftest.err)
  11869. ac_status=$?
  11870. cat conftest.err >&5
  11871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11872. if (exit $ac_status) && test -s "$ac_outfile"; then
  11873. # The compiler can only warn and ignore the option if not recognized
  11874. # So say no if there are warnings other than the usual output.
  11875. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11876. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11877. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11878. lt_cv_prog_compiler_pic_works_CXX=yes
  11879. fi
  11880. fi
  11881. $RM conftest*
  11882. fi
  11883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11884. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11885. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11886. case $lt_prog_compiler_pic_CXX in
  11887. "" | " "*) ;;
  11888. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11889. esac
  11890. else
  11891. lt_prog_compiler_pic_CXX=
  11892. lt_prog_compiler_can_build_shared_CXX=no
  11893. fi
  11894. fi
  11895. #
  11896. # Check to make sure the static flag actually works.
  11897. #
  11898. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11900. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11901. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  11902. $as_echo_n "(cached) " >&6
  11903. else
  11904. lt_cv_prog_compiler_static_works_CXX=no
  11905. save_LDFLAGS="$LDFLAGS"
  11906. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11907. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11908. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11909. # The linker can only warn and ignore the option if not recognized
  11910. # So say no if there are warnings
  11911. if test -s conftest.err; then
  11912. # Append any errors to the config.log.
  11913. cat conftest.err 1>&5
  11914. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11915. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11916. if diff conftest.exp conftest.er2 >/dev/null; then
  11917. lt_cv_prog_compiler_static_works_CXX=yes
  11918. fi
  11919. else
  11920. lt_cv_prog_compiler_static_works_CXX=yes
  11921. fi
  11922. fi
  11923. $RM -r conftest*
  11924. LDFLAGS="$save_LDFLAGS"
  11925. fi
  11926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11927. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11928. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11929. :
  11930. else
  11931. lt_prog_compiler_static_CXX=
  11932. fi
  11933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11934. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11935. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  11936. $as_echo_n "(cached) " >&6
  11937. else
  11938. lt_cv_prog_compiler_c_o_CXX=no
  11939. $RM -r conftest 2>/dev/null
  11940. mkdir conftest
  11941. cd conftest
  11942. mkdir out
  11943. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11944. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11945. # Insert the option either (1) after the last *FLAGS variable, or
  11946. # (2) before a word containing "conftest.", or (3) at the end.
  11947. # Note that $ac_compile itself does not contain backslashes and begins
  11948. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11949. lt_compile=`echo "$ac_compile" | $SED \
  11950. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11951. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11952. -e 's:$: $lt_compiler_flag:'`
  11953. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11954. (eval "$lt_compile" 2>out/conftest.err)
  11955. ac_status=$?
  11956. cat out/conftest.err >&5
  11957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11958. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11959. then
  11960. # The compiler can only warn and ignore the option if not recognized
  11961. # So say no if there are warnings
  11962. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11963. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11964. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11965. lt_cv_prog_compiler_c_o_CXX=yes
  11966. fi
  11967. fi
  11968. chmod u+w . 2>&5
  11969. $RM conftest*
  11970. # SGI C++ compiler will create directory out/ii_files/ for
  11971. # template instantiation
  11972. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11973. $RM out/* && rmdir out
  11974. cd ..
  11975. $RM -r conftest
  11976. $RM conftest*
  11977. fi
  11978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11979. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11981. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11982. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  11983. $as_echo_n "(cached) " >&6
  11984. else
  11985. lt_cv_prog_compiler_c_o_CXX=no
  11986. $RM -r conftest 2>/dev/null
  11987. mkdir conftest
  11988. cd conftest
  11989. mkdir out
  11990. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11991. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11992. # Insert the option either (1) after the last *FLAGS variable, or
  11993. # (2) before a word containing "conftest.", or (3) at the end.
  11994. # Note that $ac_compile itself does not contain backslashes and begins
  11995. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11996. lt_compile=`echo "$ac_compile" | $SED \
  11997. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11998. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11999. -e 's:$: $lt_compiler_flag:'`
  12000. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12001. (eval "$lt_compile" 2>out/conftest.err)
  12002. ac_status=$?
  12003. cat out/conftest.err >&5
  12004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12005. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12006. then
  12007. # The compiler can only warn and ignore the option if not recognized
  12008. # So say no if there are warnings
  12009. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12010. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12011. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12012. lt_cv_prog_compiler_c_o_CXX=yes
  12013. fi
  12014. fi
  12015. chmod u+w . 2>&5
  12016. $RM conftest*
  12017. # SGI C++ compiler will create directory out/ii_files/ for
  12018. # template instantiation
  12019. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12020. $RM out/* && rmdir out
  12021. cd ..
  12022. $RM -r conftest
  12023. $RM conftest*
  12024. fi
  12025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12026. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12027. hard_links="nottested"
  12028. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12029. # do not overwrite the value of need_locks provided by the user
  12030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12031. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12032. hard_links=yes
  12033. $RM conftest*
  12034. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12035. touch conftest.a
  12036. ln conftest.a conftest.b 2>&5 || hard_links=no
  12037. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12039. $as_echo "$hard_links" >&6; }
  12040. if test "$hard_links" = no; then
  12041. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12042. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12043. need_locks=warn
  12044. fi
  12045. else
  12046. need_locks=no
  12047. fi
  12048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12049. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12050. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12051. case $host_os in
  12052. aix[4-9]*)
  12053. # If we're using GNU nm, then we don't want the "-C" option.
  12054. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12055. # Also, AIX nm treats weak defined symbols like other global defined
  12056. # symbols, whereas GNU nm marks them as "W".
  12057. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12058. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12059. else
  12060. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12061. fi
  12062. ;;
  12063. pw32*)
  12064. export_symbols_cmds_CXX="$ltdll_cmds"
  12065. ;;
  12066. cygwin* | mingw* | cegcc*)
  12067. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12068. ;;
  12069. *)
  12070. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12071. ;;
  12072. esac
  12073. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12075. $as_echo "$ld_shlibs_CXX" >&6; }
  12076. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12077. with_gnu_ld_CXX=$with_gnu_ld
  12078. #
  12079. # Do we need to explicitly link libc?
  12080. #
  12081. case "x$archive_cmds_need_lc_CXX" in
  12082. x|xyes)
  12083. # Assume -lc should be added
  12084. archive_cmds_need_lc_CXX=yes
  12085. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12086. case $archive_cmds_CXX in
  12087. *'~'*)
  12088. # FIXME: we may have to deal with multi-command sequences.
  12089. ;;
  12090. '$CC '*)
  12091. # Test whether the compiler implicitly links with -lc since on some
  12092. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12093. # to ld, don't add -lc before -lgcc.
  12094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12095. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12096. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12097. $as_echo_n "(cached) " >&6
  12098. else
  12099. $RM conftest*
  12100. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12101. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12102. (eval $ac_compile) 2>&5
  12103. ac_status=$?
  12104. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12105. test $ac_status = 0; } 2>conftest.err; then
  12106. soname=conftest
  12107. lib=conftest
  12108. libobjs=conftest.$ac_objext
  12109. deplibs=
  12110. wl=$lt_prog_compiler_wl_CXX
  12111. pic_flag=$lt_prog_compiler_pic_CXX
  12112. compiler_flags=-v
  12113. linker_flags=-v
  12114. verstring=
  12115. output_objdir=.
  12116. libname=conftest
  12117. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12118. allow_undefined_flag_CXX=
  12119. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12120. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12121. ac_status=$?
  12122. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12123. test $ac_status = 0; }
  12124. then
  12125. lt_cv_archive_cmds_need_lc_CXX=no
  12126. else
  12127. lt_cv_archive_cmds_need_lc_CXX=yes
  12128. fi
  12129. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12130. else
  12131. cat conftest.err 1>&5
  12132. fi
  12133. $RM conftest*
  12134. fi
  12135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12136. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12137. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12138. ;;
  12139. esac
  12140. fi
  12141. ;;
  12142. esac
  12143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12144. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12145. library_names_spec=
  12146. libname_spec='lib$name'
  12147. soname_spec=
  12148. shrext_cmds=".so"
  12149. postinstall_cmds=
  12150. postuninstall_cmds=
  12151. finish_cmds=
  12152. finish_eval=
  12153. shlibpath_var=
  12154. shlibpath_overrides_runpath=unknown
  12155. version_type=none
  12156. dynamic_linker="$host_os ld.so"
  12157. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12158. need_lib_prefix=unknown
  12159. hardcode_into_libs=no
  12160. # when you set need_version to no, make sure it does not cause -set_version
  12161. # flags to be left without arguments
  12162. need_version=unknown
  12163. case $host_os in
  12164. aix3*)
  12165. version_type=linux
  12166. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12167. shlibpath_var=LIBPATH
  12168. # AIX 3 has no versioning support, so we append a major version to the name.
  12169. soname_spec='${libname}${release}${shared_ext}$major'
  12170. ;;
  12171. aix[4-9]*)
  12172. version_type=linux
  12173. need_lib_prefix=no
  12174. need_version=no
  12175. hardcode_into_libs=yes
  12176. if test "$host_cpu" = ia64; then
  12177. # AIX 5 supports IA64
  12178. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12179. shlibpath_var=LD_LIBRARY_PATH
  12180. else
  12181. # With GCC up to 2.95.x, collect2 would create an import file
  12182. # for dependence libraries. The import file would start with
  12183. # the line `#! .'. This would cause the generated library to
  12184. # depend on `.', always an invalid library. This was fixed in
  12185. # development snapshots of GCC prior to 3.0.
  12186. case $host_os in
  12187. aix4 | aix4.[01] | aix4.[01].*)
  12188. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12189. echo ' yes '
  12190. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12191. :
  12192. else
  12193. can_build_shared=no
  12194. fi
  12195. ;;
  12196. esac
  12197. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12198. # soname into executable. Probably we can add versioning support to
  12199. # collect2, so additional links can be useful in future.
  12200. if test "$aix_use_runtimelinking" = yes; then
  12201. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12202. # instead of lib<name>.a to let people know that these are not
  12203. # typical AIX shared libraries.
  12204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12205. else
  12206. # We preserve .a as extension for shared libraries through AIX4.2
  12207. # and later when we are not doing run time linking.
  12208. library_names_spec='${libname}${release}.a $libname.a'
  12209. soname_spec='${libname}${release}${shared_ext}$major'
  12210. fi
  12211. shlibpath_var=LIBPATH
  12212. fi
  12213. ;;
  12214. amigaos*)
  12215. case $host_cpu in
  12216. powerpc)
  12217. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12218. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12220. ;;
  12221. m68k)
  12222. library_names_spec='$libname.ixlibrary $libname.a'
  12223. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12224. 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'
  12225. ;;
  12226. esac
  12227. ;;
  12228. beos*)
  12229. library_names_spec='${libname}${shared_ext}'
  12230. dynamic_linker="$host_os ld.so"
  12231. shlibpath_var=LIBRARY_PATH
  12232. ;;
  12233. bsdi[45]*)
  12234. version_type=linux
  12235. need_version=no
  12236. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12237. soname_spec='${libname}${release}${shared_ext}$major'
  12238. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12239. shlibpath_var=LD_LIBRARY_PATH
  12240. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12241. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12242. # the default ld.so.conf also contains /usr/contrib/lib and
  12243. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12244. # libtool to hard-code these into programs
  12245. ;;
  12246. cygwin* | mingw* | pw32* | cegcc*)
  12247. version_type=windows
  12248. shrext_cmds=".dll"
  12249. need_version=no
  12250. need_lib_prefix=no
  12251. case $GCC,$host_os in
  12252. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12253. library_names_spec='$libname.dll.a'
  12254. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12255. postinstall_cmds='base_file=`basename \${file}`~
  12256. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12257. dldir=$destdir/`dirname \$dlpath`~
  12258. test -d \$dldir || mkdir -p \$dldir~
  12259. $install_prog $dir/$dlname \$dldir/$dlname~
  12260. chmod a+x \$dldir/$dlname~
  12261. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12262. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12263. fi'
  12264. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12265. dlpath=$dir/\$dldll~
  12266. $RM \$dlpath'
  12267. shlibpath_overrides_runpath=yes
  12268. case $host_os in
  12269. cygwin*)
  12270. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12271. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12272. ;;
  12273. mingw* | cegcc*)
  12274. # MinGW DLLs use traditional 'lib' prefix
  12275. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12276. ;;
  12277. pw32*)
  12278. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12279. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12280. ;;
  12281. esac
  12282. ;;
  12283. *)
  12284. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12285. ;;
  12286. esac
  12287. dynamic_linker='Win32 ld.exe'
  12288. # FIXME: first we should search . and the directory the executable is in
  12289. shlibpath_var=PATH
  12290. ;;
  12291. darwin* | rhapsody*)
  12292. dynamic_linker="$host_os dyld"
  12293. version_type=darwin
  12294. need_lib_prefix=no
  12295. need_version=no
  12296. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12297. soname_spec='${libname}${release}${major}$shared_ext'
  12298. shlibpath_overrides_runpath=yes
  12299. shlibpath_var=DYLD_LIBRARY_PATH
  12300. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12301. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12302. ;;
  12303. dgux*)
  12304. version_type=linux
  12305. need_lib_prefix=no
  12306. need_version=no
  12307. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12308. soname_spec='${libname}${release}${shared_ext}$major'
  12309. shlibpath_var=LD_LIBRARY_PATH
  12310. ;;
  12311. freebsd* | dragonfly*)
  12312. # DragonFly does not have aout. When/if they implement a new
  12313. # versioning mechanism, adjust this.
  12314. if test -x /usr/bin/objformat; then
  12315. objformat=`/usr/bin/objformat`
  12316. else
  12317. case $host_os in
  12318. freebsd[23].*) objformat=aout ;;
  12319. *) objformat=elf ;;
  12320. esac
  12321. fi
  12322. version_type=freebsd-$objformat
  12323. case $version_type in
  12324. freebsd-elf*)
  12325. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12326. need_version=no
  12327. need_lib_prefix=no
  12328. ;;
  12329. freebsd-*)
  12330. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12331. need_version=yes
  12332. ;;
  12333. esac
  12334. shlibpath_var=LD_LIBRARY_PATH
  12335. case $host_os in
  12336. freebsd2.*)
  12337. shlibpath_overrides_runpath=yes
  12338. ;;
  12339. freebsd3.[01]* | freebsdelf3.[01]*)
  12340. shlibpath_overrides_runpath=yes
  12341. hardcode_into_libs=yes
  12342. ;;
  12343. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12344. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12345. shlibpath_overrides_runpath=no
  12346. hardcode_into_libs=yes
  12347. ;;
  12348. *) # from 4.6 on, and DragonFly
  12349. shlibpath_overrides_runpath=yes
  12350. hardcode_into_libs=yes
  12351. ;;
  12352. esac
  12353. ;;
  12354. haiku*)
  12355. version_type=linux
  12356. need_lib_prefix=no
  12357. need_version=no
  12358. dynamic_linker="$host_os runtime_loader"
  12359. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12360. soname_spec='${libname}${release}${shared_ext}$major'
  12361. shlibpath_var=LIBRARY_PATH
  12362. shlibpath_overrides_runpath=yes
  12363. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12364. hardcode_into_libs=yes
  12365. ;;
  12366. hpux9* | hpux10* | hpux11*)
  12367. # Give a soname corresponding to the major version so that dld.sl refuses to
  12368. # link against other versions.
  12369. version_type=sunos
  12370. need_lib_prefix=no
  12371. need_version=no
  12372. case $host_cpu in
  12373. ia64*)
  12374. shrext_cmds='.so'
  12375. hardcode_into_libs=yes
  12376. dynamic_linker="$host_os dld.so"
  12377. shlibpath_var=LD_LIBRARY_PATH
  12378. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12380. soname_spec='${libname}${release}${shared_ext}$major'
  12381. if test "X$HPUX_IA64_MODE" = X32; then
  12382. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12383. else
  12384. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12385. fi
  12386. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12387. ;;
  12388. hppa*64*)
  12389. shrext_cmds='.sl'
  12390. hardcode_into_libs=yes
  12391. dynamic_linker="$host_os dld.sl"
  12392. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12393. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12394. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12395. soname_spec='${libname}${release}${shared_ext}$major'
  12396. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12397. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12398. ;;
  12399. *)
  12400. shrext_cmds='.sl'
  12401. dynamic_linker="$host_os dld.sl"
  12402. shlibpath_var=SHLIB_PATH
  12403. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12404. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12405. soname_spec='${libname}${release}${shared_ext}$major'
  12406. ;;
  12407. esac
  12408. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12409. postinstall_cmds='chmod 555 $lib'
  12410. # or fails outright, so override atomically:
  12411. install_override_mode=555
  12412. ;;
  12413. interix[3-9]*)
  12414. version_type=linux
  12415. need_lib_prefix=no
  12416. need_version=no
  12417. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12418. soname_spec='${libname}${release}${shared_ext}$major'
  12419. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12420. shlibpath_var=LD_LIBRARY_PATH
  12421. shlibpath_overrides_runpath=no
  12422. hardcode_into_libs=yes
  12423. ;;
  12424. irix5* | irix6* | nonstopux*)
  12425. case $host_os in
  12426. nonstopux*) version_type=nonstopux ;;
  12427. *)
  12428. if test "$lt_cv_prog_gnu_ld" = yes; then
  12429. version_type=linux
  12430. else
  12431. version_type=irix
  12432. fi ;;
  12433. esac
  12434. need_lib_prefix=no
  12435. need_version=no
  12436. soname_spec='${libname}${release}${shared_ext}$major'
  12437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12438. case $host_os in
  12439. irix5* | nonstopux*)
  12440. libsuff= shlibsuff=
  12441. ;;
  12442. *)
  12443. case $LD in # libtool.m4 will add one of these switches to LD
  12444. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12445. libsuff= shlibsuff= libmagic=32-bit;;
  12446. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12447. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12448. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12449. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12450. *) libsuff= shlibsuff= libmagic=never-match;;
  12451. esac
  12452. ;;
  12453. esac
  12454. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12455. shlibpath_overrides_runpath=no
  12456. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12457. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12458. hardcode_into_libs=yes
  12459. ;;
  12460. # No shared lib support for Linux oldld, aout, or coff.
  12461. linux*oldld* | linux*aout* | linux*coff*)
  12462. dynamic_linker=no
  12463. ;;
  12464. # This must be Linux ELF.
  12465. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12466. version_type=linux
  12467. need_lib_prefix=no
  12468. need_version=no
  12469. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12470. soname_spec='${libname}${release}${shared_ext}$major'
  12471. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12472. shlibpath_var=LD_LIBRARY_PATH
  12473. shlibpath_overrides_runpath=no
  12474. # Some binutils ld are patched to set DT_RUNPATH
  12475. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12476. $as_echo_n "(cached) " >&6
  12477. else
  12478. lt_cv_shlibpath_overrides_runpath=no
  12479. save_LDFLAGS=$LDFLAGS
  12480. save_libdir=$libdir
  12481. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12482. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12484. /* end confdefs.h. */
  12485. int
  12486. main ()
  12487. {
  12488. ;
  12489. return 0;
  12490. }
  12491. _ACEOF
  12492. if ac_fn_cxx_try_link "$LINENO"; then :
  12493. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12494. lt_cv_shlibpath_overrides_runpath=yes
  12495. fi
  12496. fi
  12497. rm -f core conftest.err conftest.$ac_objext \
  12498. conftest$ac_exeext conftest.$ac_ext
  12499. LDFLAGS=$save_LDFLAGS
  12500. libdir=$save_libdir
  12501. fi
  12502. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12503. # This implies no fast_install, which is unacceptable.
  12504. # Some rework will be needed to allow for fast_install
  12505. # before this can be enabled.
  12506. hardcode_into_libs=yes
  12507. # Append ld.so.conf contents to the search path
  12508. if test -f /etc/ld.so.conf; then
  12509. 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' ' '`
  12510. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12511. fi
  12512. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12513. # powerpc, because MkLinux only supported shared libraries with the
  12514. # GNU dynamic linker. Since this was broken with cross compilers,
  12515. # most powerpc-linux boxes support dynamic linking these days and
  12516. # people can always --disable-shared, the test was removed, and we
  12517. # assume the GNU/Linux dynamic linker is in use.
  12518. dynamic_linker='GNU/Linux ld.so'
  12519. ;;
  12520. netbsd*)
  12521. version_type=sunos
  12522. need_lib_prefix=no
  12523. need_version=no
  12524. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12525. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12526. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12527. dynamic_linker='NetBSD (a.out) ld.so'
  12528. else
  12529. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12530. soname_spec='${libname}${release}${shared_ext}$major'
  12531. dynamic_linker='NetBSD ld.elf_so'
  12532. fi
  12533. shlibpath_var=LD_LIBRARY_PATH
  12534. shlibpath_overrides_runpath=yes
  12535. hardcode_into_libs=yes
  12536. ;;
  12537. newsos6)
  12538. version_type=linux
  12539. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12540. shlibpath_var=LD_LIBRARY_PATH
  12541. shlibpath_overrides_runpath=yes
  12542. ;;
  12543. *nto* | *qnx*)
  12544. version_type=qnx
  12545. need_lib_prefix=no
  12546. need_version=no
  12547. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12548. soname_spec='${libname}${release}${shared_ext}$major'
  12549. shlibpath_var=LD_LIBRARY_PATH
  12550. shlibpath_overrides_runpath=no
  12551. hardcode_into_libs=yes
  12552. dynamic_linker='ldqnx.so'
  12553. ;;
  12554. openbsd*)
  12555. version_type=sunos
  12556. sys_lib_dlsearch_path_spec="/usr/lib"
  12557. need_lib_prefix=no
  12558. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12559. case $host_os in
  12560. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12561. *) need_version=no ;;
  12562. esac
  12563. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12564. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12565. shlibpath_var=LD_LIBRARY_PATH
  12566. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12567. case $host_os in
  12568. openbsd2.[89] | openbsd2.[89].*)
  12569. shlibpath_overrides_runpath=no
  12570. ;;
  12571. *)
  12572. shlibpath_overrides_runpath=yes
  12573. ;;
  12574. esac
  12575. else
  12576. shlibpath_overrides_runpath=yes
  12577. fi
  12578. ;;
  12579. os2*)
  12580. libname_spec='$name'
  12581. shrext_cmds=".dll"
  12582. need_lib_prefix=no
  12583. library_names_spec='$libname${shared_ext} $libname.a'
  12584. dynamic_linker='OS/2 ld.exe'
  12585. shlibpath_var=LIBPATH
  12586. ;;
  12587. osf3* | osf4* | osf5*)
  12588. version_type=osf
  12589. need_lib_prefix=no
  12590. need_version=no
  12591. soname_spec='${libname}${release}${shared_ext}$major'
  12592. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12593. shlibpath_var=LD_LIBRARY_PATH
  12594. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12595. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12596. ;;
  12597. rdos*)
  12598. dynamic_linker=no
  12599. ;;
  12600. solaris*)
  12601. version_type=linux
  12602. need_lib_prefix=no
  12603. need_version=no
  12604. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12605. soname_spec='${libname}${release}${shared_ext}$major'
  12606. shlibpath_var=LD_LIBRARY_PATH
  12607. shlibpath_overrides_runpath=yes
  12608. hardcode_into_libs=yes
  12609. # ldd complains unless libraries are executable
  12610. postinstall_cmds='chmod +x $lib'
  12611. ;;
  12612. sunos4*)
  12613. version_type=sunos
  12614. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12615. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12616. shlibpath_var=LD_LIBRARY_PATH
  12617. shlibpath_overrides_runpath=yes
  12618. if test "$with_gnu_ld" = yes; then
  12619. need_lib_prefix=no
  12620. fi
  12621. need_version=yes
  12622. ;;
  12623. sysv4 | sysv4.3*)
  12624. version_type=linux
  12625. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12626. soname_spec='${libname}${release}${shared_ext}$major'
  12627. shlibpath_var=LD_LIBRARY_PATH
  12628. case $host_vendor in
  12629. sni)
  12630. shlibpath_overrides_runpath=no
  12631. need_lib_prefix=no
  12632. runpath_var=LD_RUN_PATH
  12633. ;;
  12634. siemens)
  12635. need_lib_prefix=no
  12636. ;;
  12637. motorola)
  12638. need_lib_prefix=no
  12639. need_version=no
  12640. shlibpath_overrides_runpath=no
  12641. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12642. ;;
  12643. esac
  12644. ;;
  12645. sysv4*MP*)
  12646. if test -d /usr/nec ;then
  12647. version_type=linux
  12648. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12649. soname_spec='$libname${shared_ext}.$major'
  12650. shlibpath_var=LD_LIBRARY_PATH
  12651. fi
  12652. ;;
  12653. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12654. version_type=freebsd-elf
  12655. need_lib_prefix=no
  12656. need_version=no
  12657. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12658. soname_spec='${libname}${release}${shared_ext}$major'
  12659. shlibpath_var=LD_LIBRARY_PATH
  12660. shlibpath_overrides_runpath=yes
  12661. hardcode_into_libs=yes
  12662. if test "$with_gnu_ld" = yes; then
  12663. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12664. else
  12665. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12666. case $host_os in
  12667. sco3.2v5*)
  12668. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12669. ;;
  12670. esac
  12671. fi
  12672. sys_lib_dlsearch_path_spec='/usr/lib'
  12673. ;;
  12674. tpf*)
  12675. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12676. version_type=linux
  12677. need_lib_prefix=no
  12678. need_version=no
  12679. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12680. shlibpath_var=LD_LIBRARY_PATH
  12681. shlibpath_overrides_runpath=no
  12682. hardcode_into_libs=yes
  12683. ;;
  12684. uts4*)
  12685. version_type=linux
  12686. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12687. soname_spec='${libname}${release}${shared_ext}$major'
  12688. shlibpath_var=LD_LIBRARY_PATH
  12689. ;;
  12690. *)
  12691. dynamic_linker=no
  12692. ;;
  12693. esac
  12694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12695. $as_echo "$dynamic_linker" >&6; }
  12696. test "$dynamic_linker" = no && can_build_shared=no
  12697. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12698. if test "$GCC" = yes; then
  12699. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12700. fi
  12701. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12702. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12703. fi
  12704. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12705. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12706. fi
  12707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12708. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12709. hardcode_action_CXX=
  12710. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12711. test -n "$runpath_var_CXX" ||
  12712. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12713. # We can hardcode non-existent directories.
  12714. if test "$hardcode_direct_CXX" != no &&
  12715. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12716. # have to relink, otherwise we might link with an installed library
  12717. # when we should be linking with a yet-to-be-installed one
  12718. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12719. test "$hardcode_minus_L_CXX" != no; then
  12720. # Linking always hardcodes the temporary library directory.
  12721. hardcode_action_CXX=relink
  12722. else
  12723. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12724. hardcode_action_CXX=immediate
  12725. fi
  12726. else
  12727. # We cannot hardcode anything, or else we can only hardcode existing
  12728. # directories.
  12729. hardcode_action_CXX=unsupported
  12730. fi
  12731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12732. $as_echo "$hardcode_action_CXX" >&6; }
  12733. if test "$hardcode_action_CXX" = relink ||
  12734. test "$inherit_rpath_CXX" = yes; then
  12735. # Fast installation is not supported
  12736. enable_fast_install=no
  12737. elif test "$shlibpath_overrides_runpath" = yes ||
  12738. test "$enable_shared" = no; then
  12739. # Fast installation is not necessary
  12740. enable_fast_install=needless
  12741. fi
  12742. fi # test -n "$compiler"
  12743. CC=$lt_save_CC
  12744. LDCXX=$LD
  12745. LD=$lt_save_LD
  12746. GCC=$lt_save_GCC
  12747. with_gnu_ld=$lt_save_with_gnu_ld
  12748. lt_cv_path_LDCXX=$lt_cv_path_LD
  12749. lt_cv_path_LD=$lt_save_path_LD
  12750. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12751. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12752. fi # test "$_lt_caught_CXX_error" != yes
  12753. ac_ext=c
  12754. ac_cpp='$CPP $CPPFLAGS'
  12755. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12756. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12757. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12758. ac_config_commands="$ac_config_commands libtool"
  12759. # Only expand once:
  12760. # The tests for host and target for $enable_largefile require
  12761. # canonical names.
  12762. # As the $enable_largefile decision depends on --enable-plugins we must set it
  12763. # even in directories otherwise not depending on the $plugins option.
  12764. maybe_plugins=no
  12765. for ac_header in dlfcn.h
  12766. do :
  12767. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  12768. "
  12769. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  12770. cat >>confdefs.h <<_ACEOF
  12771. #define HAVE_DLFCN_H 1
  12772. _ACEOF
  12773. maybe_plugins=yes
  12774. fi
  12775. done
  12776. for ac_header in windows.h
  12777. do :
  12778. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  12779. "
  12780. if test "x$ac_cv_header_windows_h" = xyes; then :
  12781. cat >>confdefs.h <<_ACEOF
  12782. #define HAVE_WINDOWS_H 1
  12783. _ACEOF
  12784. maybe_plugins=yes
  12785. fi
  12786. done
  12787. # Check whether --enable-plugins was given.
  12788. if test "${enable_plugins+set}" = set; then :
  12789. enableval=$enable_plugins; case "${enableval}" in
  12790. no) plugins=no ;;
  12791. *) plugins=yes
  12792. if test "$maybe_plugins" != "yes" ; then
  12793. as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  12794. fi ;;
  12795. esac
  12796. else
  12797. plugins=$maybe_plugins
  12798. fi
  12799. if test "$plugins" = "yes"; then
  12800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
  12801. $as_echo_n "checking for library containing dlsym... " >&6; }
  12802. if ${ac_cv_search_dlsym+:} false; then :
  12803. $as_echo_n "(cached) " >&6
  12804. else
  12805. ac_func_search_save_LIBS=$LIBS
  12806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12807. /* end confdefs.h. */
  12808. /* Override any GCC internal prototype to avoid an error.
  12809. Use char because int might match the return type of a GCC
  12810. builtin and then its argument prototype would still apply. */
  12811. #ifdef __cplusplus
  12812. extern "C"
  12813. #endif
  12814. char dlsym ();
  12815. int
  12816. main ()
  12817. {
  12818. return dlsym ();
  12819. ;
  12820. return 0;
  12821. }
  12822. _ACEOF
  12823. for ac_lib in '' dl; do
  12824. if test -z "$ac_lib"; then
  12825. ac_res="none required"
  12826. else
  12827. ac_res=-l$ac_lib
  12828. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12829. fi
  12830. if ac_fn_c_try_link "$LINENO"; then :
  12831. ac_cv_search_dlsym=$ac_res
  12832. fi
  12833. rm -f core conftest.err conftest.$ac_objext \
  12834. conftest$ac_exeext
  12835. if ${ac_cv_search_dlsym+:} false; then :
  12836. break
  12837. fi
  12838. done
  12839. if ${ac_cv_search_dlsym+:} false; then :
  12840. else
  12841. ac_cv_search_dlsym=no
  12842. fi
  12843. rm conftest.$ac_ext
  12844. LIBS=$ac_func_search_save_LIBS
  12845. fi
  12846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
  12847. $as_echo "$ac_cv_search_dlsym" >&6; }
  12848. ac_res=$ac_cv_search_dlsym
  12849. if test "$ac_res" != no; then :
  12850. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12851. fi
  12852. fi
  12853. case "${host}" in
  12854. sparc-*-solaris*|i?86-*-solaris*)
  12855. # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
  12856. # were mutually exclusive until Solaris 11.3. Without procfs support,
  12857. # the bfd/ elf module cannot provide certain routines such as
  12858. # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
  12859. # explicitly requested large-file support through the
  12860. # --enable-largefile switch, disable large-file support in favor of
  12861. # procfs support.
  12862. #
  12863. # Check if <sys/procfs.h> is incompatible with large-file support.
  12864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12865. /* end confdefs.h. */
  12866. #define _FILE_OFFSET_BITS 64
  12867. #define _STRUCTURED_PROC 1
  12868. #include <sys/procfs.h>
  12869. int
  12870. main ()
  12871. {
  12872. ;
  12873. return 0;
  12874. }
  12875. _ACEOF
  12876. if ac_fn_c_try_compile "$LINENO"; then :
  12877. acx_cv_procfs_lfs=yes
  12878. else
  12879. acx_cv_procfs_lfs=no
  12880. fi
  12881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12882. #
  12883. # Forcefully disable large-file support only if necessary, gdb is in
  12884. # tree and enabled.
  12885. if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
  12886. -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
  12887. : ${enable_largefile="no"}
  12888. if test "$plugins" = yes; then
  12889. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  12890. plugin support disabled; require large-file support which is incompatible with GDB." >&5
  12891. $as_echo "$as_me: WARNING:
  12892. plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
  12893. plugins=no
  12894. fi
  12895. fi
  12896. #
  12897. # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
  12898. # benefit of g++ 9+ which predefines it on Solaris.
  12899. if test "$enable_largefile" = no; then
  12900. LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
  12901. fi
  12902. ;;
  12903. esac
  12904. # Check whether --enable-largefile was given.
  12905. if test "${enable_largefile+set}" = set; then :
  12906. enableval=$enable_largefile;
  12907. fi
  12908. if test "$enable_largefile" != no; then
  12909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  12910. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  12911. if ${ac_cv_sys_largefile_CC+:} false; then :
  12912. $as_echo_n "(cached) " >&6
  12913. else
  12914. ac_cv_sys_largefile_CC=no
  12915. if test "$GCC" != yes; then
  12916. ac_save_CC=$CC
  12917. while :; do
  12918. # IRIX 6.2 and later do not support large files by default,
  12919. # so use the C compiler's -n32 option if that helps.
  12920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12921. /* end confdefs.h. */
  12922. #include <sys/types.h>
  12923. /* Check that off_t can represent 2**63 - 1 correctly.
  12924. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12925. since some C++ compilers masquerading as C compilers
  12926. incorrectly reject 9223372036854775807. */
  12927. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12928. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12929. && LARGE_OFF_T % 2147483647 == 1)
  12930. ? 1 : -1];
  12931. int
  12932. main ()
  12933. {
  12934. ;
  12935. return 0;
  12936. }
  12937. _ACEOF
  12938. if ac_fn_c_try_compile "$LINENO"; then :
  12939. break
  12940. fi
  12941. rm -f core conftest.err conftest.$ac_objext
  12942. CC="$CC -n32"
  12943. if ac_fn_c_try_compile "$LINENO"; then :
  12944. ac_cv_sys_largefile_CC=' -n32'; break
  12945. fi
  12946. rm -f core conftest.err conftest.$ac_objext
  12947. break
  12948. done
  12949. CC=$ac_save_CC
  12950. rm -f conftest.$ac_ext
  12951. fi
  12952. fi
  12953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  12954. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  12955. if test "$ac_cv_sys_largefile_CC" != no; then
  12956. CC=$CC$ac_cv_sys_largefile_CC
  12957. fi
  12958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  12959. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  12960. if ${ac_cv_sys_file_offset_bits+:} false; then :
  12961. $as_echo_n "(cached) " >&6
  12962. else
  12963. while :; do
  12964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12965. /* end confdefs.h. */
  12966. #include <sys/types.h>
  12967. /* Check that off_t can represent 2**63 - 1 correctly.
  12968. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12969. since some C++ compilers masquerading as C compilers
  12970. incorrectly reject 9223372036854775807. */
  12971. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12972. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12973. && LARGE_OFF_T % 2147483647 == 1)
  12974. ? 1 : -1];
  12975. int
  12976. main ()
  12977. {
  12978. ;
  12979. return 0;
  12980. }
  12981. _ACEOF
  12982. if ac_fn_c_try_compile "$LINENO"; then :
  12983. ac_cv_sys_file_offset_bits=no; break
  12984. fi
  12985. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12987. /* end confdefs.h. */
  12988. #define _FILE_OFFSET_BITS 64
  12989. #include <sys/types.h>
  12990. /* Check that off_t can represent 2**63 - 1 correctly.
  12991. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12992. since some C++ compilers masquerading as C compilers
  12993. incorrectly reject 9223372036854775807. */
  12994. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12995. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12996. && LARGE_OFF_T % 2147483647 == 1)
  12997. ? 1 : -1];
  12998. int
  12999. main ()
  13000. {
  13001. ;
  13002. return 0;
  13003. }
  13004. _ACEOF
  13005. if ac_fn_c_try_compile "$LINENO"; then :
  13006. ac_cv_sys_file_offset_bits=64; break
  13007. fi
  13008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13009. ac_cv_sys_file_offset_bits=unknown
  13010. break
  13011. done
  13012. fi
  13013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  13014. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  13015. case $ac_cv_sys_file_offset_bits in #(
  13016. no | unknown) ;;
  13017. *)
  13018. cat >>confdefs.h <<_ACEOF
  13019. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  13020. _ACEOF
  13021. ;;
  13022. esac
  13023. rm -rf conftest*
  13024. if test $ac_cv_sys_file_offset_bits = unknown; then
  13025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  13026. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  13027. if ${ac_cv_sys_large_files+:} false; then :
  13028. $as_echo_n "(cached) " >&6
  13029. else
  13030. while :; do
  13031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13032. /* end confdefs.h. */
  13033. #include <sys/types.h>
  13034. /* Check that off_t can represent 2**63 - 1 correctly.
  13035. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13036. since some C++ compilers masquerading as C compilers
  13037. incorrectly reject 9223372036854775807. */
  13038. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  13039. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13040. && LARGE_OFF_T % 2147483647 == 1)
  13041. ? 1 : -1];
  13042. int
  13043. main ()
  13044. {
  13045. ;
  13046. return 0;
  13047. }
  13048. _ACEOF
  13049. if ac_fn_c_try_compile "$LINENO"; then :
  13050. ac_cv_sys_large_files=no; break
  13051. fi
  13052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13054. /* end confdefs.h. */
  13055. #define _LARGE_FILES 1
  13056. #include <sys/types.h>
  13057. /* Check that off_t can represent 2**63 - 1 correctly.
  13058. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13059. since some C++ compilers masquerading as C compilers
  13060. incorrectly reject 9223372036854775807. */
  13061. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  13062. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13063. && LARGE_OFF_T % 2147483647 == 1)
  13064. ? 1 : -1];
  13065. int
  13066. main ()
  13067. {
  13068. ;
  13069. return 0;
  13070. }
  13071. _ACEOF
  13072. if ac_fn_c_try_compile "$LINENO"; then :
  13073. ac_cv_sys_large_files=1; break
  13074. fi
  13075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13076. ac_cv_sys_large_files=unknown
  13077. break
  13078. done
  13079. fi
  13080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  13081. $as_echo "$ac_cv_sys_large_files" >&6; }
  13082. case $ac_cv_sys_large_files in #(
  13083. no | unknown) ;;
  13084. *)
  13085. cat >>confdefs.h <<_ACEOF
  13086. #define _LARGE_FILES $ac_cv_sys_large_files
  13087. _ACEOF
  13088. ;;
  13089. esac
  13090. rm -rf conftest*
  13091. fi
  13092. fi
  13093. ac_checking=
  13094. . ${srcdir}/../bfd/development.sh
  13095. test "$development" = true && ac_checking=yes
  13096. # Check whether --enable-checking was given.
  13097. if test "${enable_checking+set}" = set; then :
  13098. enableval=$enable_checking; case "${enableval}" in
  13099. no|none) ac_checking= ;;
  13100. *) ac_checking=yes ;;
  13101. esac
  13102. fi
  13103. if test x$ac_checking != x ; then
  13104. $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
  13105. fi
  13106. # Check whether --with-lib-path was given.
  13107. if test "${with_lib_path+set}" = set; then :
  13108. withval=$with_lib_path; LIB_PATH=$withval
  13109. fi
  13110. # Check whether --enable-targets was given.
  13111. if test "${enable_targets+set}" = set; then :
  13112. enableval=$enable_targets; case "${enableval}" in
  13113. yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
  13114. ;;
  13115. no) enable_targets= ;;
  13116. *) enable_targets=$enableval ;;
  13117. esac
  13118. fi
  13119. # Check whether --enable-64-bit-bfd was given.
  13120. if test "${enable_64_bit_bfd+set}" = set; then :
  13121. enableval=$enable_64_bit_bfd; case $enableval in #(
  13122. yes|no) :
  13123. ;; #(
  13124. *) :
  13125. as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
  13126. *) :
  13127. ;;
  13128. esac
  13129. else
  13130. enable_64_bit_bfd=no
  13131. fi
  13132. if test "x$enable_64_bit_bfd" = "xno"; then :
  13133. # The cast to long int works around a bug in the HP C Compiler
  13134. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13135. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13136. # This bug is HP SR number 8606223364.
  13137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  13138. $as_echo_n "checking size of void *... " >&6; }
  13139. if ${ac_cv_sizeof_void_p+:} false; then :
  13140. $as_echo_n "(cached) " >&6
  13141. else
  13142. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  13143. else
  13144. if test "$ac_cv_type_void_p" = yes; then
  13145. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13146. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13147. as_fn_error 77 "cannot compute sizeof (void *)
  13148. See \`config.log' for more details" "$LINENO" 5; }
  13149. else
  13150. ac_cv_sizeof_void_p=0
  13151. fi
  13152. fi
  13153. fi
  13154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  13155. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  13156. cat >>confdefs.h <<_ACEOF
  13157. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  13158. _ACEOF
  13159. if test "x$ac_cv_sizeof_void_p" = "x8"; then :
  13160. enable_64_bit_bfd=yes
  13161. fi
  13162. fi
  13163. if test "x$enable_64_bit_bfd" = "xyes"; then
  13164. ENABLE_BFD_64_BIT_TRUE=
  13165. ENABLE_BFD_64_BIT_FALSE='#'
  13166. else
  13167. ENABLE_BFD_64_BIT_TRUE='#'
  13168. ENABLE_BFD_64_BIT_FALSE=
  13169. fi
  13170. # Check whether --with-sysroot was given.
  13171. if test "${with_sysroot+set}" = set; then :
  13172. withval=$with_sysroot;
  13173. case ${with_sysroot} in
  13174. yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
  13175. *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
  13176. esac
  13177. TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
  13178. use_sysroot=yes
  13179. if test "x$prefix" = xNONE; then
  13180. test_prefix=/usr/local
  13181. else
  13182. test_prefix=$prefix
  13183. fi
  13184. if test "x$exec_prefix" = xNONE; then
  13185. test_exec_prefix=$test_prefix
  13186. else
  13187. test_exec_prefix=$exec_prefix
  13188. fi
  13189. case ${TARGET_SYSTEM_ROOT} in
  13190. "${test_prefix}"|"${test_prefix}/"*|\
  13191. "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
  13192. '${prefix}'|'${prefix}/'*|\
  13193. '${exec_prefix}'|'${exec_prefix}/'*)
  13194. t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
  13195. TARGET_SYSTEM_ROOT_DEFINE="$t"
  13196. ;;
  13197. esac
  13198. else
  13199. use_sysroot=no
  13200. TARGET_SYSTEM_ROOT=
  13201. TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
  13202. fi
  13203. # Check whether --enable-gold was given.
  13204. if test "${enable_gold+set}" = set; then :
  13205. enableval=$enable_gold; case "${enableval}" in
  13206. default)
  13207. install_as_default=no
  13208. installed_linker=ld.bfd
  13209. ;;
  13210. yes|no)
  13211. install_as_default=yes
  13212. installed_linker=ld.bfd
  13213. ;;
  13214. *)
  13215. as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
  13216. ;;
  13217. esac
  13218. else
  13219. install_as_default=yes
  13220. installed_linker=ld.bfd
  13221. fi
  13222. # Check whether --enable-got was given.
  13223. if test "${enable_got+set}" = set; then :
  13224. enableval=$enable_got; case "${enableval}" in
  13225. target | single | negative | multigot) got_handling=$enableval ;;
  13226. *) as_fn_error $? "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
  13227. esac
  13228. else
  13229. got_handling=target
  13230. fi
  13231. case "${got_handling}" in
  13232. target)
  13233. $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
  13234. ;;
  13235. single)
  13236. $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
  13237. ;;
  13238. negative)
  13239. $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
  13240. ;;
  13241. multigot)
  13242. $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
  13243. ;;
  13244. *) as_fn_error $? "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
  13245. esac
  13246. # PR gas/19109
  13247. # Decide the default method for compressing debug sections.
  13248. ac_default_compressed_debug_sections=unset
  13249. # Provide a configure time option to override our default.
  13250. # Check whether --enable-compressed_debug_sections was given.
  13251. if test "${enable_compressed_debug_sections+set}" = set; then :
  13252. enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
  13253. ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
  13254. ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
  13255. esac
  13256. fi
  13257. # Decide setting DT_RUNPATH instead of DT_RPATH by default
  13258. ac_default_new_dtags=unset
  13259. # Provide a configure time option to override our default.
  13260. # Check whether --enable-new_dtags was given.
  13261. if test "${enable_new_dtags+set}" = set; then :
  13262. enableval=$enable_new_dtags; case "${enableval}" in
  13263. yes) ac_default_new_dtags=1 ;;
  13264. no) ac_default_new_dtags=0 ;;
  13265. esac
  13266. fi
  13267. # Decide if -z relro should be enabled in ELF linker by default.
  13268. ac_default_ld_z_relro=unset
  13269. # Provide a configure time option to override our default.
  13270. # Check whether --enable-relro was given.
  13271. if test "${enable_relro+set}" = set; then :
  13272. enableval=$enable_relro; case "${enableval}" in
  13273. yes) ac_default_ld_z_relro=1 ;;
  13274. no) ac_default_ld_z_relro=0 ;;
  13275. esac
  13276. fi
  13277. # Decide if DT_TEXTREL check should be enabled in ELF linker.
  13278. ac_default_ld_textrel_check=unset
  13279. # Check whether --enable-textrel-check was given.
  13280. if test "${enable_textrel_check+set}" = set; then :
  13281. enableval=$enable_textrel_check; case "${enableval}" in
  13282. yes|no|warning|error) ac_default_ld_textrel_check=${enableval} ;;
  13283. esac
  13284. fi
  13285. # Decide if -z separate-code should be enabled in ELF linker by default.
  13286. ac_default_ld_z_separate_code=unset
  13287. # Check whether --enable-separate-code was given.
  13288. if test "${enable_separate_code+set}" = set; then :
  13289. enableval=$enable_separate_code; case "${enableval}" in
  13290. yes) ac_default_ld_z_separate_code=1 ;;
  13291. no) ac_default_ld_z_separate_code=0 ;;
  13292. esac
  13293. fi
  13294. # Decide if --error-handling-script should be supported.
  13295. ac_support_error_handling_script=unset
  13296. # Check whether --enable-error-handling-script was given.
  13297. if test "${enable_error_handling_script+set}" = set; then :
  13298. enableval=$enable_error_handling_script; case "${enableval}" in
  13299. yes) ac_support_error_handling_script=1 ;;
  13300. no) ac_support_error_handling_script=0 ;;
  13301. esac
  13302. fi
  13303. # Decide which "--hash-style" to use by default
  13304. # Provide a configure time option to override our default.
  13305. # Check whether --enable-default-hash-style was given.
  13306. if test "${enable_default_hash_style+set}" = set; then :
  13307. enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
  13308. sysv | gnu | both) ;;
  13309. *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
  13310. esac
  13311. else
  13312. case "${target}" in
  13313. # Enable gnu hash only on GNU targets, but not mips
  13314. mips*-*-*) enable_default_hash_style=sysv ;;
  13315. *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
  13316. *) enable_default_hash_style=sysv ;;
  13317. esac
  13318. fi
  13319. case "${enable_default_hash_style}" in
  13320. sysv | both) ac_default_emit_sysv_hash=1 ;;
  13321. *) ac_default_emit_sysv_hash=0 ;;
  13322. esac
  13323. case "${enable_default_hash_style}" in
  13324. gnu | both) ac_default_emit_gnu_hash=1 ;;
  13325. *) ac_default_emit_gnu_hash=0 ;;
  13326. esac
  13327. # Check whether --enable-initfini-array was given.
  13328. if test "${enable_initfini_array+set}" = set; then :
  13329. enableval=$enable_initfini_array; case "${enableval}" in
  13330. yes|no) ;;
  13331. *) as_fn_error $? "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
  13332. esac
  13333. else
  13334. enable_initfini_array=yes
  13335. fi
  13336. if test $enable_initfini_array = yes; then
  13337. $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
  13338. fi
  13339. # Check whether --enable-libctf was given.
  13340. if test "${enable_libctf+set}" = set; then :
  13341. enableval=$enable_libctf;
  13342. case "$enableval" in
  13343. yes|no) ;;
  13344. *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
  13345. esac
  13346. else
  13347. enable_libctf=yes
  13348. fi
  13349. if test "${enable_libctf}" = yes; then
  13350. $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
  13351. fi
  13352. if test "${enable_libctf}" = yes; then
  13353. ENABLE_LIBCTF_TRUE=
  13354. ENABLE_LIBCTF_FALSE='#'
  13355. else
  13356. ENABLE_LIBCTF_TRUE='#'
  13357. ENABLE_LIBCTF_FALSE=
  13358. fi
  13359. # Set the 'development' global.
  13360. . $srcdir/../bfd/development.sh
  13361. # Set acp_cpp_for_build variable
  13362. ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
  13363. # Default set of GCC warnings to enable.
  13364. GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  13365. GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  13366. # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
  13367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13368. /* end confdefs.h. */
  13369. __GNUC__
  13370. _ACEOF
  13371. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13372. $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
  13373. else
  13374. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
  13375. fi
  13376. rm -f conftest*
  13377. # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
  13378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13379. /* end confdefs.h. */
  13380. __GNUC__
  13381. _ACEOF
  13382. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13383. $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
  13384. else
  13385. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
  13386. fi
  13387. rm -f conftest*
  13388. # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
  13389. WARN_WRITE_STRINGS=""
  13390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13391. /* end confdefs.h. */
  13392. __GNUC__
  13393. _ACEOF
  13394. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13395. $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
  13396. else
  13397. WARN_WRITE_STRINGS="-Wwrite-strings"
  13398. fi
  13399. rm -f conftest*
  13400. # Verify CC_FOR_BUILD to be compatible with warning flags
  13401. # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
  13402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13403. /* end confdefs.h. */
  13404. __GNUC__
  13405. _ACEOF
  13406. if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
  13407. $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
  13408. else
  13409. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
  13410. fi
  13411. rm -f conftest*
  13412. # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
  13413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13414. /* end confdefs.h. */
  13415. __GNUC__
  13416. _ACEOF
  13417. if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
  13418. $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
  13419. else
  13420. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
  13421. fi
  13422. rm -f conftest*
  13423. # Check whether --enable-werror was given.
  13424. if test "${enable_werror+set}" = set; then :
  13425. enableval=$enable_werror; case "${enableval}" in
  13426. yes | y) ERROR_ON_WARNING="yes" ;;
  13427. no | n) ERROR_ON_WARNING="no" ;;
  13428. *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  13429. esac
  13430. fi
  13431. # Disable -Wformat by default when using gcc on mingw
  13432. case "${host}" in
  13433. *-*-mingw32*)
  13434. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
  13435. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
  13436. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
  13437. fi
  13438. ;;
  13439. *) ;;
  13440. esac
  13441. # Enable -Werror by default when using gcc. Turn it off for releases.
  13442. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
  13443. ERROR_ON_WARNING=yes
  13444. fi
  13445. NO_WERROR=
  13446. if test "${ERROR_ON_WARNING}" = yes ; then
  13447. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
  13448. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
  13449. NO_WERROR="-Wno-error"
  13450. fi
  13451. if test "${GCC}" = yes ; then
  13452. WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  13453. WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
  13454. fi
  13455. # Check whether --enable-build-warnings was given.
  13456. if test "${enable_build_warnings+set}" = set; then :
  13457. enableval=$enable_build_warnings; case "${enableval}" in
  13458. yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  13459. WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
  13460. no) if test "${GCC}" = yes ; then
  13461. WARN_CFLAGS="-w"
  13462. WARN_CFLAGS_FOR_BUILD="-w"
  13463. fi;;
  13464. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  13465. WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
  13466. WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
  13467. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  13468. WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
  13469. WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
  13470. *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
  13471. WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  13472. esac
  13473. fi
  13474. if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
  13475. echo "Setting warning flags = $WARN_CFLAGS" 6>&1
  13476. fi
  13477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  13478. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  13479. if ${am_cv_val_LC_MESSAGES+:} false; then :
  13480. $as_echo_n "(cached) " >&6
  13481. else
  13482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13483. /* end confdefs.h. */
  13484. #include <locale.h>
  13485. int
  13486. main ()
  13487. {
  13488. return LC_MESSAGES
  13489. ;
  13490. return 0;
  13491. }
  13492. _ACEOF
  13493. if ac_fn_c_try_link "$LINENO"; then :
  13494. am_cv_val_LC_MESSAGES=yes
  13495. else
  13496. am_cv_val_LC_MESSAGES=no
  13497. fi
  13498. rm -f core conftest.err conftest.$ac_objext \
  13499. conftest$ac_exeext conftest.$ac_ext
  13500. fi
  13501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
  13502. $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
  13503. if test $am_cv_val_LC_MESSAGES = yes; then
  13504. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  13505. fi
  13506. ac_config_headers="$ac_config_headers config.h:config.in"
  13507. # PR 14072
  13508. if test -z "$target" ; then
  13509. as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
  13510. fi
  13511. if test -z "$host" ; then
  13512. as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
  13513. fi
  13514. # host-specific stuff:
  13515. ALL_LINGUAS="bg da de es fi fr ga id it ja pt_BR ru sr sv tr uk vi zh_CN zh_TW"
  13516. # If we haven't got the data from the intl directory,
  13517. # assume NLS is disabled.
  13518. USE_NLS=no
  13519. LIBINTL=
  13520. LIBINTL_DEP=
  13521. INCINTL=
  13522. XGETTEXT=
  13523. GMSGFMT=
  13524. POSUB=
  13525. if test -f ../intl/config.intl; then
  13526. . ../intl/config.intl
  13527. fi
  13528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  13529. $as_echo_n "checking whether NLS is requested... " >&6; }
  13530. if test x"$USE_NLS" != xyes; then
  13531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13532. $as_echo "no" >&6; }
  13533. else
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13535. $as_echo "yes" >&6; }
  13536. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  13537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  13538. $as_echo_n "checking for catalogs to be installed... " >&6; }
  13539. # Look for .po and .gmo files in the source directory.
  13540. CATALOGS=
  13541. XLINGUAS=
  13542. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  13543. # If there aren't any .gmo files the shell will give us the
  13544. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  13545. # weeded out.
  13546. case "$cat" in *\**)
  13547. continue;;
  13548. esac
  13549. # The quadruple backslash is collapsed to a double backslash
  13550. # by the backticks, then collapsed again by the double quotes,
  13551. # leaving us with one backslash in the sed expression (right
  13552. # before the dot that mustn't act as a wildcard).
  13553. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  13554. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  13555. # The user is allowed to set LINGUAS to a list of languages to
  13556. # install catalogs for. If it's empty that means "all of them."
  13557. if test "x$LINGUAS" = x; then
  13558. CATALOGS="$CATALOGS $cat"
  13559. XLINGUAS="$XLINGUAS $lang"
  13560. else
  13561. case "$LINGUAS" in *$lang*)
  13562. CATALOGS="$CATALOGS $cat"
  13563. XLINGUAS="$XLINGUAS $lang"
  13564. ;;
  13565. esac
  13566. fi
  13567. done
  13568. LINGUAS="$XLINGUAS"
  13569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  13570. $as_echo "$LINGUAS" >&6; }
  13571. DATADIRNAME=share
  13572. INSTOBJEXT=.mo
  13573. GENCAT=gencat
  13574. CATOBJEXT=.gmo
  13575. fi
  13576. MKINSTALLDIRS=
  13577. if test -n "$ac_aux_dir"; then
  13578. case "$ac_aux_dir" in
  13579. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  13580. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  13581. esac
  13582. fi
  13583. if test -z "$MKINSTALLDIRS"; then
  13584. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  13585. fi
  13586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  13587. $as_echo_n "checking whether NLS is requested... " >&6; }
  13588. # Check whether --enable-nls was given.
  13589. if test "${enable_nls+set}" = set; then :
  13590. enableval=$enable_nls; USE_NLS=$enableval
  13591. else
  13592. USE_NLS=yes
  13593. fi
  13594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  13595. $as_echo "$USE_NLS" >&6; }
  13596. # Prepare PATH_SEPARATOR.
  13597. # The user is always right.
  13598. if test "${PATH_SEPARATOR+set}" != set; then
  13599. echo "#! /bin/sh" >conf$$.sh
  13600. echo "exit 0" >>conf$$.sh
  13601. chmod +x conf$$.sh
  13602. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  13603. PATH_SEPARATOR=';'
  13604. else
  13605. PATH_SEPARATOR=:
  13606. fi
  13607. rm -f conf$$.sh
  13608. fi
  13609. # Find out how to test for executable files. Don't use a zero-byte file,
  13610. # as systems may use methods other than mode bits to determine executability.
  13611. cat >conf$$.file <<_ASEOF
  13612. #! /bin/sh
  13613. exit 0
  13614. _ASEOF
  13615. chmod +x conf$$.file
  13616. if test -x conf$$.file >/dev/null 2>&1; then
  13617. ac_executable_p="test -x"
  13618. else
  13619. ac_executable_p="test -f"
  13620. fi
  13621. rm -f conf$$.file
  13622. # Extract the first word of "msgfmt", so it can be a program name with args.
  13623. set dummy msgfmt; ac_word=$2
  13624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13625. $as_echo_n "checking for $ac_word... " >&6; }
  13626. if ${ac_cv_path_MSGFMT+:} false; then :
  13627. $as_echo_n "(cached) " >&6
  13628. else
  13629. case "$MSGFMT" in
  13630. [\\/]* | ?:[\\/]*)
  13631. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  13632. ;;
  13633. *)
  13634. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  13635. for ac_dir in $PATH; do
  13636. IFS="$ac_save_IFS"
  13637. test -z "$ac_dir" && ac_dir=.
  13638. for ac_exec_ext in '' $ac_executable_extensions; do
  13639. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  13640. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  13641. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  13642. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  13643. break 2
  13644. fi
  13645. fi
  13646. done
  13647. done
  13648. IFS="$ac_save_IFS"
  13649. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  13650. ;;
  13651. esac
  13652. fi
  13653. MSGFMT="$ac_cv_path_MSGFMT"
  13654. if test "$MSGFMT" != ":"; then
  13655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  13656. $as_echo "$MSGFMT" >&6; }
  13657. else
  13658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13659. $as_echo "no" >&6; }
  13660. fi
  13661. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  13662. set dummy gmsgfmt; ac_word=$2
  13663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13664. $as_echo_n "checking for $ac_word... " >&6; }
  13665. if ${ac_cv_path_GMSGFMT+:} false; then :
  13666. $as_echo_n "(cached) " >&6
  13667. else
  13668. case $GMSGFMT in
  13669. [\\/]* | ?:[\\/]*)
  13670. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  13671. ;;
  13672. *)
  13673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13674. for as_dir in $PATH
  13675. do
  13676. IFS=$as_save_IFS
  13677. test -z "$as_dir" && as_dir=.
  13678. for ac_exec_ext in '' $ac_executable_extensions; do
  13679. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13680. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  13681. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13682. break 2
  13683. fi
  13684. done
  13685. done
  13686. IFS=$as_save_IFS
  13687. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  13688. ;;
  13689. esac
  13690. fi
  13691. GMSGFMT=$ac_cv_path_GMSGFMT
  13692. if test -n "$GMSGFMT"; then
  13693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  13694. $as_echo "$GMSGFMT" >&6; }
  13695. else
  13696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13697. $as_echo "no" >&6; }
  13698. fi
  13699. # Prepare PATH_SEPARATOR.
  13700. # The user is always right.
  13701. if test "${PATH_SEPARATOR+set}" != set; then
  13702. echo "#! /bin/sh" >conf$$.sh
  13703. echo "exit 0" >>conf$$.sh
  13704. chmod +x conf$$.sh
  13705. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  13706. PATH_SEPARATOR=';'
  13707. else
  13708. PATH_SEPARATOR=:
  13709. fi
  13710. rm -f conf$$.sh
  13711. fi
  13712. # Find out how to test for executable files. Don't use a zero-byte file,
  13713. # as systems may use methods other than mode bits to determine executability.
  13714. cat >conf$$.file <<_ASEOF
  13715. #! /bin/sh
  13716. exit 0
  13717. _ASEOF
  13718. chmod +x conf$$.file
  13719. if test -x conf$$.file >/dev/null 2>&1; then
  13720. ac_executable_p="test -x"
  13721. else
  13722. ac_executable_p="test -f"
  13723. fi
  13724. rm -f conf$$.file
  13725. # Extract the first word of "xgettext", so it can be a program name with args.
  13726. set dummy xgettext; ac_word=$2
  13727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13728. $as_echo_n "checking for $ac_word... " >&6; }
  13729. if ${ac_cv_path_XGETTEXT+:} false; then :
  13730. $as_echo_n "(cached) " >&6
  13731. else
  13732. case "$XGETTEXT" in
  13733. [\\/]* | ?:[\\/]*)
  13734. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  13735. ;;
  13736. *)
  13737. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  13738. for ac_dir in $PATH; do
  13739. IFS="$ac_save_IFS"
  13740. test -z "$ac_dir" && ac_dir=.
  13741. for ac_exec_ext in '' $ac_executable_extensions; do
  13742. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  13743. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  13744. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  13745. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  13746. break 2
  13747. fi
  13748. fi
  13749. done
  13750. done
  13751. IFS="$ac_save_IFS"
  13752. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  13753. ;;
  13754. esac
  13755. fi
  13756. XGETTEXT="$ac_cv_path_XGETTEXT"
  13757. if test "$XGETTEXT" != ":"; then
  13758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  13759. $as_echo "$XGETTEXT" >&6; }
  13760. else
  13761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13762. $as_echo "no" >&6; }
  13763. fi
  13764. rm -f messages.po
  13765. # Prepare PATH_SEPARATOR.
  13766. # The user is always right.
  13767. if test "${PATH_SEPARATOR+set}" != set; then
  13768. echo "#! /bin/sh" >conf$$.sh
  13769. echo "exit 0" >>conf$$.sh
  13770. chmod +x conf$$.sh
  13771. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  13772. PATH_SEPARATOR=';'
  13773. else
  13774. PATH_SEPARATOR=:
  13775. fi
  13776. rm -f conf$$.sh
  13777. fi
  13778. # Find out how to test for executable files. Don't use a zero-byte file,
  13779. # as systems may use methods other than mode bits to determine executability.
  13780. cat >conf$$.file <<_ASEOF
  13781. #! /bin/sh
  13782. exit 0
  13783. _ASEOF
  13784. chmod +x conf$$.file
  13785. if test -x conf$$.file >/dev/null 2>&1; then
  13786. ac_executable_p="test -x"
  13787. else
  13788. ac_executable_p="test -f"
  13789. fi
  13790. rm -f conf$$.file
  13791. # Extract the first word of "msgmerge", so it can be a program name with args.
  13792. set dummy msgmerge; ac_word=$2
  13793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13794. $as_echo_n "checking for $ac_word... " >&6; }
  13795. if ${ac_cv_path_MSGMERGE+:} false; then :
  13796. $as_echo_n "(cached) " >&6
  13797. else
  13798. case "$MSGMERGE" in
  13799. [\\/]* | ?:[\\/]*)
  13800. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  13801. ;;
  13802. *)
  13803. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  13804. for ac_dir in $PATH; do
  13805. IFS="$ac_save_IFS"
  13806. test -z "$ac_dir" && ac_dir=.
  13807. for ac_exec_ext in '' $ac_executable_extensions; do
  13808. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  13809. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  13810. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  13811. break 2
  13812. fi
  13813. fi
  13814. done
  13815. done
  13816. IFS="$ac_save_IFS"
  13817. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  13818. ;;
  13819. esac
  13820. fi
  13821. MSGMERGE="$ac_cv_path_MSGMERGE"
  13822. if test "$MSGMERGE" != ":"; then
  13823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  13824. $as_echo "$MSGMERGE" >&6; }
  13825. else
  13826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13827. $as_echo "no" >&6; }
  13828. fi
  13829. if test "$GMSGFMT" != ":"; then
  13830. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  13831. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  13832. : ;
  13833. else
  13834. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  13835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  13836. $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  13837. GMSGFMT=":"
  13838. fi
  13839. fi
  13840. if test "$XGETTEXT" != ":"; then
  13841. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  13842. (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  13843. : ;
  13844. else
  13845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
  13846. $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
  13847. XGETTEXT=":"
  13848. fi
  13849. rm -f messages.po
  13850. fi
  13851. ac_config_commands="$ac_config_commands default-1"
  13852. for ac_prog in 'bison -y' byacc
  13853. do
  13854. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13855. set dummy $ac_prog; ac_word=$2
  13856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13857. $as_echo_n "checking for $ac_word... " >&6; }
  13858. if ${ac_cv_prog_YACC+:} false; then :
  13859. $as_echo_n "(cached) " >&6
  13860. else
  13861. if test -n "$YACC"; then
  13862. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  13863. else
  13864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13865. for as_dir in $PATH
  13866. do
  13867. IFS=$as_save_IFS
  13868. test -z "$as_dir" && as_dir=.
  13869. for ac_exec_ext in '' $ac_executable_extensions; do
  13870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13871. ac_cv_prog_YACC="$ac_prog"
  13872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13873. break 2
  13874. fi
  13875. done
  13876. done
  13877. IFS=$as_save_IFS
  13878. fi
  13879. fi
  13880. YACC=$ac_cv_prog_YACC
  13881. if test -n "$YACC"; then
  13882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  13883. $as_echo "$YACC" >&6; }
  13884. else
  13885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13886. $as_echo "no" >&6; }
  13887. fi
  13888. test -n "$YACC" && break
  13889. done
  13890. test -n "$YACC" || YACC="yacc"
  13891. for ac_prog in flex lex
  13892. do
  13893. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13894. set dummy $ac_prog; ac_word=$2
  13895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13896. $as_echo_n "checking for $ac_word... " >&6; }
  13897. if ${ac_cv_prog_LEX+:} false; then :
  13898. $as_echo_n "(cached) " >&6
  13899. else
  13900. if test -n "$LEX"; then
  13901. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  13902. else
  13903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13904. for as_dir in $PATH
  13905. do
  13906. IFS=$as_save_IFS
  13907. test -z "$as_dir" && as_dir=.
  13908. for ac_exec_ext in '' $ac_executable_extensions; do
  13909. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13910. ac_cv_prog_LEX="$ac_prog"
  13911. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13912. break 2
  13913. fi
  13914. done
  13915. done
  13916. IFS=$as_save_IFS
  13917. fi
  13918. fi
  13919. LEX=$ac_cv_prog_LEX
  13920. if test -n "$LEX"; then
  13921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  13922. $as_echo "$LEX" >&6; }
  13923. else
  13924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13925. $as_echo "no" >&6; }
  13926. fi
  13927. test -n "$LEX" && break
  13928. done
  13929. test -n "$LEX" || LEX=":"
  13930. case "$LEX" in
  13931. :|*"missing "*) ;;
  13932. *) cat >conftest.l <<_ACEOF
  13933. %%
  13934. a { ECHO; }
  13935. b { REJECT; }
  13936. c { yymore (); }
  13937. d { yyless (1); }
  13938. e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  13939. yyless ((input () != 0)); }
  13940. f { unput (yytext[0]); }
  13941. . { BEGIN INITIAL; }
  13942. %%
  13943. #ifdef YYTEXT_POINTER
  13944. extern char *yytext;
  13945. #endif
  13946. int
  13947. main (void)
  13948. {
  13949. return ! yylex () + ! yywrap ();
  13950. }
  13951. _ACEOF
  13952. { { ac_try="$LEX conftest.l"
  13953. case "(($ac_try" in
  13954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13955. *) ac_try_echo=$ac_try;;
  13956. esac
  13957. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13958. $as_echo "$ac_try_echo"; } >&5
  13959. (eval "$LEX conftest.l") 2>&5
  13960. ac_status=$?
  13961. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13962. test $ac_status = 0; }
  13963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
  13964. $as_echo_n "checking lex output file root... " >&6; }
  13965. if ${ac_cv_prog_lex_root+:} false; then :
  13966. $as_echo_n "(cached) " >&6
  13967. else
  13968. if test -f lex.yy.c; then
  13969. ac_cv_prog_lex_root=lex.yy
  13970. elif test -f lexyy.c; then
  13971. ac_cv_prog_lex_root=lexyy
  13972. else
  13973. as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
  13974. fi
  13975. fi
  13976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
  13977. $as_echo "$ac_cv_prog_lex_root" >&6; }
  13978. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  13979. if test -z "${LEXLIB+set}"; then
  13980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
  13981. $as_echo_n "checking lex library... " >&6; }
  13982. if ${ac_cv_lib_lex+:} false; then :
  13983. $as_echo_n "(cached) " >&6
  13984. else
  13985. ac_save_LIBS=$LIBS
  13986. ac_cv_lib_lex='none needed'
  13987. for ac_lib in '' -lfl -ll; do
  13988. LIBS="$ac_lib $ac_save_LIBS"
  13989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13990. /* end confdefs.h. */
  13991. `cat $LEX_OUTPUT_ROOT.c`
  13992. _ACEOF
  13993. if ac_fn_c_try_link "$LINENO"; then :
  13994. ac_cv_lib_lex=$ac_lib
  13995. fi
  13996. rm -f core conftest.err conftest.$ac_objext \
  13997. conftest$ac_exeext conftest.$ac_ext
  13998. test "$ac_cv_lib_lex" != 'none needed' && break
  13999. done
  14000. LIBS=$ac_save_LIBS
  14001. fi
  14002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
  14003. $as_echo "$ac_cv_lib_lex" >&6; }
  14004. test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  14005. fi
  14006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
  14007. $as_echo_n "checking whether yytext is a pointer... " >&6; }
  14008. if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
  14009. $as_echo_n "(cached) " >&6
  14010. else
  14011. # POSIX says lex can declare yytext either as a pointer or an array; the
  14012. # default is implementation-dependent. Figure out which it is, since
  14013. # not all implementations provide the %pointer and %array declarations.
  14014. ac_cv_prog_lex_yytext_pointer=no
  14015. ac_save_LIBS=$LIBS
  14016. LIBS="$LEXLIB $ac_save_LIBS"
  14017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14018. /* end confdefs.h. */
  14019. #define YYTEXT_POINTER 1
  14020. `cat $LEX_OUTPUT_ROOT.c`
  14021. _ACEOF
  14022. if ac_fn_c_try_link "$LINENO"; then :
  14023. ac_cv_prog_lex_yytext_pointer=yes
  14024. fi
  14025. rm -f core conftest.err conftest.$ac_objext \
  14026. conftest$ac_exeext conftest.$ac_ext
  14027. LIBS=$ac_save_LIBS
  14028. fi
  14029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
  14030. $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
  14031. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  14032. $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
  14033. fi
  14034. rm -f conftest.l $LEX_OUTPUT_ROOT.c
  14035. ;;
  14036. esac
  14037. if test "$LEX" = :; then
  14038. LEX=${am_missing_run}flex
  14039. fi
  14040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  14041. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  14042. # Check whether --enable-maintainer-mode was given.
  14043. if test "${enable_maintainer_mode+set}" = set; then :
  14044. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  14045. else
  14046. USE_MAINTAINER_MODE=no
  14047. fi
  14048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  14049. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  14050. if test $USE_MAINTAINER_MODE = yes; then
  14051. MAINTAINER_MODE_TRUE=
  14052. MAINTAINER_MODE_FALSE='#'
  14053. else
  14054. MAINTAINER_MODE_TRUE='#'
  14055. MAINTAINER_MODE_FALSE=
  14056. fi
  14057. MAINT=$MAINTAINER_MODE_TRUE
  14058. if false; then
  14059. GENINSRC_NEVER_TRUE=
  14060. GENINSRC_NEVER_FALSE='#'
  14061. else
  14062. GENINSRC_NEVER_TRUE='#'
  14063. GENINSRC_NEVER_FALSE=
  14064. fi
  14065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
  14066. $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
  14067. if ${gcc_cv_prog_cmp_skip+:} false; then :
  14068. $as_echo_n "(cached) " >&6
  14069. else
  14070. echo abfoo >t1
  14071. echo cdfoo >t2
  14072. gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
  14073. if cmp t1 t2 2 2 > /dev/null 2>&1; then
  14074. if cmp t1 t2 1 1 > /dev/null 2>&1; then
  14075. :
  14076. else
  14077. gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
  14078. fi
  14079. fi
  14080. if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
  14081. if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
  14082. :
  14083. else
  14084. gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
  14085. fi
  14086. fi
  14087. rm t1 t2
  14088. fi
  14089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
  14090. $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
  14091. do_compare="$gcc_cv_prog_cmp_skip"
  14092. . ${srcdir}/configure.host
  14093. # We use headers from include/ that check various HAVE_*_H macros, thus
  14094. # should ensure they are set by configure. This is true even when C99
  14095. # guarantees they are available.
  14096. # sha1.h and md4.h test HAVE_LIMITS_H, HAVE_SYS_TYPES_H and HAVE_STDINT_H
  14097. # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
  14098. # Besides those, we need to check anything used in ld/ not in C99.
  14099. for ac_header in fcntl.h elf-hints.h limits.h inttypes.h stdint.h \
  14100. sys/file.h sys/mman.h sys/param.h sys/stat.h sys/time.h \
  14101. sys/types.h unistd.h
  14102. do :
  14103. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14104. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14105. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14106. cat >>confdefs.h <<_ACEOF
  14107. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14108. _ACEOF
  14109. fi
  14110. done
  14111. for ac_func in close glob lseek mkstemp open realpath sbrk waitpid
  14112. do :
  14113. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14114. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14115. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14116. cat >>confdefs.h <<_ACEOF
  14117. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14118. _ACEOF
  14119. fi
  14120. done
  14121. case "${host}" in
  14122. *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
  14123. $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
  14124. ;;
  14125. esac
  14126. ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  14127. if test "x$ac_cv_have_decl_asprintf" = xyes; then :
  14128. ac_have_decl=1
  14129. else
  14130. ac_have_decl=0
  14131. fi
  14132. cat >>confdefs.h <<_ACEOF
  14133. #define HAVE_DECL_ASPRINTF $ac_have_decl
  14134. _ACEOF
  14135. ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
  14136. if test "x$ac_cv_have_decl_environ" = xyes; then :
  14137. ac_have_decl=1
  14138. else
  14139. ac_have_decl=0
  14140. fi
  14141. cat >>confdefs.h <<_ACEOF
  14142. #define HAVE_DECL_ENVIRON $ac_have_decl
  14143. _ACEOF
  14144. ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
  14145. if test "x$ac_cv_have_decl_sbrk" = xyes; then :
  14146. ac_have_decl=1
  14147. else
  14148. ac_have_decl=0
  14149. fi
  14150. cat >>confdefs.h <<_ACEOF
  14151. #define HAVE_DECL_SBRK $ac_have_decl
  14152. _ACEOF
  14153. for ac_header in $ac_header_list
  14154. do :
  14155. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14156. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  14157. "
  14158. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14159. cat >>confdefs.h <<_ACEOF
  14160. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14161. _ACEOF
  14162. fi
  14163. done
  14164. for ac_func in getpagesize
  14165. do :
  14166. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  14167. if test "x$ac_cv_func_getpagesize" = xyes; then :
  14168. cat >>confdefs.h <<_ACEOF
  14169. #define HAVE_GETPAGESIZE 1
  14170. _ACEOF
  14171. fi
  14172. done
  14173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  14174. $as_echo_n "checking for working mmap... " >&6; }
  14175. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  14176. $as_echo_n "(cached) " >&6
  14177. else
  14178. if test "$cross_compiling" = yes; then :
  14179. ac_cv_func_mmap_fixed_mapped=no
  14180. else
  14181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14182. /* end confdefs.h. */
  14183. $ac_includes_default
  14184. /* malloc might have been renamed as rpl_malloc. */
  14185. #undef malloc
  14186. /* Thanks to Mike Haertel and Jim Avera for this test.
  14187. Here is a matrix of mmap possibilities:
  14188. mmap private not fixed
  14189. mmap private fixed at somewhere currently unmapped
  14190. mmap private fixed at somewhere already mapped
  14191. mmap shared not fixed
  14192. mmap shared fixed at somewhere currently unmapped
  14193. mmap shared fixed at somewhere already mapped
  14194. For private mappings, we should verify that changes cannot be read()
  14195. back from the file, nor mmap's back from the file at a different
  14196. address. (There have been systems where private was not correctly
  14197. implemented like the infamous i386 svr4.0, and systems where the
  14198. VM page cache was not coherent with the file system buffer cache
  14199. like early versions of FreeBSD and possibly contemporary NetBSD.)
  14200. For shared mappings, we should conversely verify that changes get
  14201. propagated back to all the places they're supposed to be.
  14202. Grep wants private fixed already mapped.
  14203. The main things grep needs to know about mmap are:
  14204. * does it exist and is it safe to write into the mmap'd area
  14205. * how to use it (BSD variants) */
  14206. #include <fcntl.h>
  14207. #include <sys/mman.h>
  14208. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  14209. char *malloc ();
  14210. #endif
  14211. /* This mess was copied from the GNU getpagesize.h. */
  14212. #ifndef HAVE_GETPAGESIZE
  14213. # ifdef _SC_PAGESIZE
  14214. # define getpagesize() sysconf(_SC_PAGESIZE)
  14215. # else /* no _SC_PAGESIZE */
  14216. # ifdef HAVE_SYS_PARAM_H
  14217. # include <sys/param.h>
  14218. # ifdef EXEC_PAGESIZE
  14219. # define getpagesize() EXEC_PAGESIZE
  14220. # else /* no EXEC_PAGESIZE */
  14221. # ifdef NBPG
  14222. # define getpagesize() NBPG * CLSIZE
  14223. # ifndef CLSIZE
  14224. # define CLSIZE 1
  14225. # endif /* no CLSIZE */
  14226. # else /* no NBPG */
  14227. # ifdef NBPC
  14228. # define getpagesize() NBPC
  14229. # else /* no NBPC */
  14230. # ifdef PAGESIZE
  14231. # define getpagesize() PAGESIZE
  14232. # endif /* PAGESIZE */
  14233. # endif /* no NBPC */
  14234. # endif /* no NBPG */
  14235. # endif /* no EXEC_PAGESIZE */
  14236. # else /* no HAVE_SYS_PARAM_H */
  14237. # define getpagesize() 8192 /* punt totally */
  14238. # endif /* no HAVE_SYS_PARAM_H */
  14239. # endif /* no _SC_PAGESIZE */
  14240. #endif /* no HAVE_GETPAGESIZE */
  14241. int
  14242. main ()
  14243. {
  14244. char *data, *data2, *data3;
  14245. const char *cdata2;
  14246. int i, pagesize;
  14247. int fd, fd2;
  14248. pagesize = getpagesize ();
  14249. /* First, make a file with some known garbage in it. */
  14250. data = (char *) malloc (pagesize);
  14251. if (!data)
  14252. return 1;
  14253. for (i = 0; i < pagesize; ++i)
  14254. *(data + i) = rand ();
  14255. umask (0);
  14256. fd = creat ("conftest.mmap", 0600);
  14257. if (fd < 0)
  14258. return 2;
  14259. if (write (fd, data, pagesize) != pagesize)
  14260. return 3;
  14261. close (fd);
  14262. /* Next, check that the tail of a page is zero-filled. File must have
  14263. non-zero length, otherwise we risk SIGBUS for entire page. */
  14264. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  14265. if (fd2 < 0)
  14266. return 4;
  14267. cdata2 = "";
  14268. if (write (fd2, cdata2, 1) != 1)
  14269. return 5;
  14270. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  14271. if (data2 == MAP_FAILED)
  14272. return 6;
  14273. for (i = 0; i < pagesize; ++i)
  14274. if (*(data2 + i))
  14275. return 7;
  14276. close (fd2);
  14277. if (munmap (data2, pagesize))
  14278. return 8;
  14279. /* Next, try to mmap the file at a fixed address which already has
  14280. something else allocated at it. If we can, also make sure that
  14281. we see the same garbage. */
  14282. fd = open ("conftest.mmap", O_RDWR);
  14283. if (fd < 0)
  14284. return 9;
  14285. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  14286. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  14287. return 10;
  14288. for (i = 0; i < pagesize; ++i)
  14289. if (*(data + i) != *(data2 + i))
  14290. return 11;
  14291. /* Finally, make sure that changes to the mapped area do not
  14292. percolate back to the file as seen by read(). (This is a bug on
  14293. some variants of i386 svr4.0.) */
  14294. for (i = 0; i < pagesize; ++i)
  14295. *(data2 + i) = *(data2 + i) + 1;
  14296. data3 = (char *) malloc (pagesize);
  14297. if (!data3)
  14298. return 12;
  14299. if (read (fd, data3, pagesize) != pagesize)
  14300. return 13;
  14301. for (i = 0; i < pagesize; ++i)
  14302. if (*(data + i) != *(data3 + i))
  14303. return 14;
  14304. close (fd);
  14305. return 0;
  14306. }
  14307. _ACEOF
  14308. if ac_fn_c_try_run "$LINENO"; then :
  14309. ac_cv_func_mmap_fixed_mapped=yes
  14310. else
  14311. ac_cv_func_mmap_fixed_mapped=no
  14312. fi
  14313. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14314. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14315. fi
  14316. fi
  14317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  14318. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  14319. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  14320. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  14321. fi
  14322. rm -f conftest.mmap conftest.txt
  14323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  14324. $as_echo_n "checking for library containing dlopen... " >&6; }
  14325. if ${ac_cv_search_dlopen+:} false; then :
  14326. $as_echo_n "(cached) " >&6
  14327. else
  14328. ac_func_search_save_LIBS=$LIBS
  14329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14330. /* end confdefs.h. */
  14331. /* Override any GCC internal prototype to avoid an error.
  14332. Use char because int might match the return type of a GCC
  14333. builtin and then its argument prototype would still apply. */
  14334. #ifdef __cplusplus
  14335. extern "C"
  14336. #endif
  14337. char dlopen ();
  14338. int
  14339. main ()
  14340. {
  14341. return dlopen ();
  14342. ;
  14343. return 0;
  14344. }
  14345. _ACEOF
  14346. for ac_lib in '' dl; do
  14347. if test -z "$ac_lib"; then
  14348. ac_res="none required"
  14349. else
  14350. ac_res=-l$ac_lib
  14351. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14352. fi
  14353. if ac_fn_c_try_link "$LINENO"; then :
  14354. ac_cv_search_dlopen=$ac_res
  14355. fi
  14356. rm -f core conftest.err conftest.$ac_objext \
  14357. conftest$ac_exeext
  14358. if ${ac_cv_search_dlopen+:} false; then :
  14359. break
  14360. fi
  14361. done
  14362. if ${ac_cv_search_dlopen+:} false; then :
  14363. else
  14364. ac_cv_search_dlopen=no
  14365. fi
  14366. rm conftest.$ac_ext
  14367. LIBS=$ac_func_search_save_LIBS
  14368. fi
  14369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  14370. $as_echo "$ac_cv_search_dlopen" >&6; }
  14371. ac_res=$ac_cv_search_dlopen
  14372. if test "$ac_res" != no; then :
  14373. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14374. fi
  14375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
  14376. $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
  14377. if ${ld_cv_decl_getopt_unistd_h+:} false; then :
  14378. $as_echo_n "(cached) " >&6
  14379. else
  14380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14381. /* end confdefs.h. */
  14382. #include <unistd.h>
  14383. int
  14384. main ()
  14385. {
  14386. extern int getopt (int, char *const*, const char *);
  14387. ;
  14388. return 0;
  14389. }
  14390. _ACEOF
  14391. if ac_fn_c_try_compile "$LINENO"; then :
  14392. ld_cv_decl_getopt_unistd_h=yes
  14393. else
  14394. ld_cv_decl_getopt_unistd_h=no
  14395. fi
  14396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14397. fi
  14398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
  14399. $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
  14400. if test $ld_cv_decl_getopt_unistd_h = yes; then
  14401. $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
  14402. fi
  14403. # Link in zlib if we can. This allows us to read and write
  14404. # compressed CTF sections.
  14405. # Use the system's zlib library.
  14406. zlibdir="-L\$(top_builddir)/../zlib"
  14407. zlibinc="-I\$(top_srcdir)/../zlib"
  14408. # Check whether --with-system-zlib was given.
  14409. if test "${with_system_zlib+set}" = set; then :
  14410. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  14411. zlibdir=
  14412. zlibinc=
  14413. fi
  14414. fi
  14415. # When converting linker scripts into strings for use in emulation
  14416. # files, use astring.sed if the compiler supports ANSI string
  14417. # concatenation, or ostring.sed otherwise. This is to support the
  14418. # broken Microsoft MSVC compiler, which limits the length of string
  14419. # constants, while still supporting pre-ANSI compilers which do not
  14420. # support string concatenation.
  14421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
  14422. $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
  14423. if ${ld_cv_string_concatenation+:} false; then :
  14424. $as_echo_n "(cached) " >&6
  14425. else
  14426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14427. /* end confdefs.h. */
  14428. int
  14429. main ()
  14430. {
  14431. char *a = "a" "a";
  14432. ;
  14433. return 0;
  14434. }
  14435. _ACEOF
  14436. if ac_fn_c_try_compile "$LINENO"; then :
  14437. ld_cv_string_concatenation=yes
  14438. else
  14439. ld_cv_string_concatenation=no
  14440. fi
  14441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14442. fi
  14443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
  14444. $as_echo "$ld_cv_string_concatenation" >&6; }
  14445. if test "$ld_cv_string_concatenation" = "yes"; then
  14446. STRINGIFY=astring.sed
  14447. else
  14448. STRINGIFY=ostring.sed
  14449. fi
  14450. # target-specific stuff:
  14451. all_targets=
  14452. EMUL=
  14453. all_emuls=
  14454. all_emul_extras=
  14455. all_libpath=
  14456. TDIRS=
  14457. elf_list_options=false
  14458. elf_shlib_list_options=false
  14459. elf_plt_unwind_list_options=false
  14460. for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
  14461. do
  14462. if test "$targ_alias" = "all"; then
  14463. all_targets=true
  14464. elf_list_options=true
  14465. elf_shlib_list_options=true
  14466. elf_plt_unwind_list_options=true
  14467. else
  14468. # Canonicalize the secondary target names.
  14469. result=`$ac_config_sub $targ_alias 2>/dev/null`
  14470. if test -n "$result"; then
  14471. targ=$result
  14472. else
  14473. targ=$targ_alias
  14474. fi
  14475. . ${srcdir}/configure.tgt
  14476. if test "$targ" = "$target"; then
  14477. EMUL=$targ_emul
  14478. fi
  14479. if test x${enable_64_bit_bfd} = xno; then
  14480. . ${srcdir}/../bfd/config.bfd
  14481. fi
  14482. if test x${enable_64_bit_bfd} = xyes; then
  14483. targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
  14484. targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
  14485. fi
  14486. for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
  14487. case " $all_emuls " in
  14488. *" e${i}.o "*) ;;
  14489. *)
  14490. all_emuls="$all_emuls e${i}.o"
  14491. eval result=\$tdir_$i
  14492. test -z "$result" && result=$targ_alias
  14493. TDIRS="$TDIRS
  14494. tdir_$i=$result"
  14495. case "${i}" in
  14496. *elf*)
  14497. elf_list_options=true
  14498. ;;
  14499. *)
  14500. if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
  14501. elf_list_options=true
  14502. fi
  14503. ;;
  14504. esac
  14505. if test "$elf_list_options" = "true"; then
  14506. source_sh()
  14507. {
  14508. . $1
  14509. }
  14510. source_sh ${srcdir}/emulparams/${i}.sh
  14511. if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
  14512. elf_shlib_list_options=true
  14513. fi
  14514. if test x${PLT_UNWIND} = xyes; then
  14515. elf_plt_unwind_list_options=true
  14516. fi
  14517. fi
  14518. ;;
  14519. esac
  14520. done
  14521. for i in $targ_emul $targ_extra_libpath; do
  14522. case " $all_libpath " in
  14523. *" ${i} "*) ;;
  14524. *)
  14525. if test -z "$all_libpath"; then
  14526. all_libpath=${i}
  14527. else
  14528. all_libpath="$all_libpath ${i}"
  14529. fi
  14530. ;;
  14531. esac
  14532. done
  14533. for i in $targ_extra_ofiles; do
  14534. case " $all_emul_extras " in
  14535. *" ${i} "*) ;;
  14536. *)
  14537. all_emul_extras="$all_emul_extras ${i}"
  14538. ;;
  14539. esac
  14540. done
  14541. fi
  14542. done
  14543. if test x$ac_default_compressed_debug_sections = xyes ; then
  14544. $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
  14545. fi
  14546. if test "${ac_default_new_dtags}" = unset; then
  14547. ac_default_new_dtags=0
  14548. fi
  14549. cat >>confdefs.h <<_ACEOF
  14550. #define DEFAULT_NEW_DTAGS $ac_default_new_dtags
  14551. _ACEOF
  14552. if test "${ac_default_ld_z_relro}" = unset; then
  14553. ac_default_ld_z_relro=0
  14554. fi
  14555. cat >>confdefs.h <<_ACEOF
  14556. #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
  14557. _ACEOF
  14558. ac_default_ld_textrel_check_warning=0
  14559. case "${ac_default_ld_textrel_check}" in
  14560. unset|no)
  14561. ac_default_ld_textrel_check=textrel_check_none
  14562. ;;
  14563. yes|warning)
  14564. ac_default_ld_textrel_check=textrel_check_warning
  14565. ac_default_ld_textrel_check_warning=1
  14566. ;;
  14567. error)
  14568. ac_default_ld_textrel_check=textrel_check_error
  14569. ;;
  14570. esac
  14571. cat >>confdefs.h <<_ACEOF
  14572. #define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check
  14573. _ACEOF
  14574. cat >>confdefs.h <<_ACEOF
  14575. #define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning
  14576. _ACEOF
  14577. if test "${ac_default_ld_z_separate_code}" = unset; then
  14578. ac_default_ld_z_separate_code=0
  14579. fi
  14580. cat >>confdefs.h <<_ACEOF
  14581. #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
  14582. _ACEOF
  14583. if test "${ac_support_error_handling_script}" = unset; then
  14584. ac_support_error_handling_script=1
  14585. fi
  14586. cat >>confdefs.h <<_ACEOF
  14587. #define SUPPORT_ERROR_HANDLING_SCRIPT $ac_support_error_handling_script
  14588. _ACEOF
  14589. cat >>confdefs.h <<_ACEOF
  14590. #define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
  14591. _ACEOF
  14592. cat >>confdefs.h <<_ACEOF
  14593. #define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
  14594. _ACEOF
  14595. if test x${all_targets} = xtrue; then
  14596. if test x${enable_64_bit_bfd} = xyes; then
  14597. EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
  14598. EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
  14599. else
  14600. EMULATION_OFILES='$(ALL_EMULATIONS)'
  14601. EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
  14602. fi
  14603. else
  14604. EMULATION_OFILES=$all_emuls
  14605. EMUL_EXTRA_OFILES=$all_emul_extras
  14606. fi
  14607. EMULATION_LIBPATH=$all_libpath
  14608. if test x${enable_static} = xno; then
  14609. TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
  14610. TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
  14611. else
  14612. TESTBFDLIB="../bfd/.libs/libbfd.a"
  14613. TESTCTFLIB="../libctf/.libs/libctf.a"
  14614. fi
  14615. if test "${enable_libctf}" = no; then
  14616. TESTCTFLIB=
  14617. fi
  14618. target_vendor=${target_vendor=$host_vendor}
  14619. case "$target_vendor" in
  14620. hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
  14621. *) EXTRA_SHLIB_EXTENSION= ;;
  14622. esac
  14623. case "$target_os" in
  14624. lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
  14625. esac
  14626. if test x${EXTRA_SHLIB_EXTENSION} != x ; then
  14627. cat >>confdefs.h <<_ACEOF
  14628. #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
  14629. _ACEOF
  14630. fi
  14631. ac_config_commands="$ac_config_commands default"
  14632. ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
  14633. cat >confcache <<\_ACEOF
  14634. # This file is a shell script that caches the results of configure
  14635. # tests run on this system so they can be shared between configure
  14636. # scripts and configure runs, see configure's option --config-cache.
  14637. # It is not useful on other systems. If it contains results you don't
  14638. # want to keep, you may remove or edit it.
  14639. #
  14640. # config.status only pays attention to the cache file if you give it
  14641. # the --recheck option to rerun configure.
  14642. #
  14643. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14644. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14645. # following values.
  14646. _ACEOF
  14647. # The following way of writing the cache mishandles newlines in values,
  14648. # but we know of no workaround that is simple, portable, and efficient.
  14649. # So, we kill variables containing newlines.
  14650. # Ultrix sh set writes to stderr and can't be redirected directly,
  14651. # and sets the high bit in the cache file unless we assign to the vars.
  14652. (
  14653. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14654. eval ac_val=\$$ac_var
  14655. case $ac_val in #(
  14656. *${as_nl}*)
  14657. case $ac_var in #(
  14658. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14659. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14660. esac
  14661. case $ac_var in #(
  14662. _ | IFS | as_nl) ;; #(
  14663. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14664. *) { eval $ac_var=; unset $ac_var;} ;;
  14665. esac ;;
  14666. esac
  14667. done
  14668. (set) 2>&1 |
  14669. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14670. *${as_nl}ac_space=\ *)
  14671. # `set' does not quote correctly, so add quotes: double-quote
  14672. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14673. sed -n \
  14674. "s/'/'\\\\''/g;
  14675. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14676. ;; #(
  14677. *)
  14678. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14679. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14680. ;;
  14681. esac |
  14682. sort
  14683. ) |
  14684. sed '
  14685. /^ac_cv_env_/b end
  14686. t clear
  14687. :clear
  14688. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14689. t end
  14690. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14691. :end' >>confcache
  14692. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14693. if test -w "$cache_file"; then
  14694. if test "x$cache_file" != "x/dev/null"; then
  14695. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14696. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14697. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14698. cat confcache >"$cache_file"
  14699. else
  14700. case $cache_file in #(
  14701. */* | ?:*)
  14702. mv -f confcache "$cache_file"$$ &&
  14703. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14704. *)
  14705. mv -f confcache "$cache_file" ;;
  14706. esac
  14707. fi
  14708. fi
  14709. else
  14710. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14711. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14712. fi
  14713. fi
  14714. rm -f confcache
  14715. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14716. # Let make expand exec_prefix.
  14717. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14718. DEFS=-DHAVE_CONFIG_H
  14719. ac_libobjs=
  14720. ac_ltlibobjs=
  14721. U=
  14722. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14723. # 1. Remove the extension, and $U if already installed.
  14724. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14725. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14726. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14727. # will be set to the directory where LIBOBJS objects are built.
  14728. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14729. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14730. done
  14731. LIBOBJS=$ac_libobjs
  14732. LTLIBOBJS=$ac_ltlibobjs
  14733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  14734. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  14735. if test -n "$am_sleep_pid"; then
  14736. # Hide warnings about reused PIDs.
  14737. wait $am_sleep_pid 2>/dev/null
  14738. fi
  14739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  14740. $as_echo "done" >&6; }
  14741. if test -n "$EXEEXT"; then
  14742. am__EXEEXT_TRUE=
  14743. am__EXEEXT_FALSE='#'
  14744. else
  14745. am__EXEEXT_TRUE='#'
  14746. am__EXEEXT_FALSE=
  14747. fi
  14748. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  14749. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  14750. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14751. fi
  14752. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14753. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14754. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14755. fi
  14756. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14757. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14758. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14759. fi
  14760. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14761. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14762. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14763. fi
  14764. if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
  14765. as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
  14766. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14767. fi
  14768. if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
  14769. as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
  14770. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14771. fi
  14772. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  14773. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  14774. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14775. fi
  14776. if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
  14777. as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
  14778. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14779. fi
  14780. : "${CONFIG_STATUS=./config.status}"
  14781. ac_write_fail=0
  14782. ac_clean_files_save=$ac_clean_files
  14783. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14784. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14785. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14786. as_write_fail=0
  14787. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14788. #! $SHELL
  14789. # Generated by $as_me.
  14790. # Run this file to recreate the current configuration.
  14791. # Compiler output produced by configure, useful for debugging
  14792. # configure, is in config.log if it exists.
  14793. debug=false
  14794. ac_cs_recheck=false
  14795. ac_cs_silent=false
  14796. SHELL=\${CONFIG_SHELL-$SHELL}
  14797. export SHELL
  14798. _ASEOF
  14799. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14800. ## -------------------- ##
  14801. ## M4sh Initialization. ##
  14802. ## -------------------- ##
  14803. # Be more Bourne compatible
  14804. DUALCASE=1; export DUALCASE # for MKS sh
  14805. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14806. emulate sh
  14807. NULLCMD=:
  14808. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14809. # is contrary to our usage. Disable this feature.
  14810. alias -g '${1+"$@"}'='"$@"'
  14811. setopt NO_GLOB_SUBST
  14812. else
  14813. case `(set -o) 2>/dev/null` in #(
  14814. *posix*) :
  14815. set -o posix ;; #(
  14816. *) :
  14817. ;;
  14818. esac
  14819. fi
  14820. as_nl='
  14821. '
  14822. export as_nl
  14823. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14824. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14825. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14826. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14827. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14828. # but without wasting forks for bash or zsh.
  14829. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14830. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14831. as_echo='print -r --'
  14832. as_echo_n='print -rn --'
  14833. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14834. as_echo='printf %s\n'
  14835. as_echo_n='printf %s'
  14836. else
  14837. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14838. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14839. as_echo_n='/usr/ucb/echo -n'
  14840. else
  14841. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14842. as_echo_n_body='eval
  14843. arg=$1;
  14844. case $arg in #(
  14845. *"$as_nl"*)
  14846. expr "X$arg" : "X\\(.*\\)$as_nl";
  14847. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14848. esac;
  14849. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14850. '
  14851. export as_echo_n_body
  14852. as_echo_n='sh -c $as_echo_n_body as_echo'
  14853. fi
  14854. export as_echo_body
  14855. as_echo='sh -c $as_echo_body as_echo'
  14856. fi
  14857. # The user is always right.
  14858. if test "${PATH_SEPARATOR+set}" != set; then
  14859. PATH_SEPARATOR=:
  14860. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14861. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14862. PATH_SEPARATOR=';'
  14863. }
  14864. fi
  14865. # IFS
  14866. # We need space, tab and new line, in precisely that order. Quoting is
  14867. # there to prevent editors from complaining about space-tab.
  14868. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14869. # splitting by setting IFS to empty value.)
  14870. IFS=" "" $as_nl"
  14871. # Find who we are. Look in the path if we contain no directory separator.
  14872. as_myself=
  14873. case $0 in #((
  14874. *[\\/]* ) as_myself=$0 ;;
  14875. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14876. for as_dir in $PATH
  14877. do
  14878. IFS=$as_save_IFS
  14879. test -z "$as_dir" && as_dir=.
  14880. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14881. done
  14882. IFS=$as_save_IFS
  14883. ;;
  14884. esac
  14885. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14886. # in which case we are not to be found in the path.
  14887. if test "x$as_myself" = x; then
  14888. as_myself=$0
  14889. fi
  14890. if test ! -f "$as_myself"; then
  14891. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14892. exit 1
  14893. fi
  14894. # Unset variables that we do not need and which cause bugs (e.g. in
  14895. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14896. # suppresses any "Segmentation fault" message there. '((' could
  14897. # trigger a bug in pdksh 5.2.14.
  14898. for as_var in BASH_ENV ENV MAIL MAILPATH
  14899. do eval test x\${$as_var+set} = xset \
  14900. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14901. done
  14902. PS1='$ '
  14903. PS2='> '
  14904. PS4='+ '
  14905. # NLS nuisances.
  14906. LC_ALL=C
  14907. export LC_ALL
  14908. LANGUAGE=C
  14909. export LANGUAGE
  14910. # CDPATH.
  14911. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14912. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14913. # ----------------------------------------
  14914. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14915. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14916. # script with STATUS, using 1 if that was 0.
  14917. as_fn_error ()
  14918. {
  14919. as_status=$1; test $as_status -eq 0 && as_status=1
  14920. if test "$4"; then
  14921. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14922. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14923. fi
  14924. $as_echo "$as_me: error: $2" >&2
  14925. as_fn_exit $as_status
  14926. } # as_fn_error
  14927. # as_fn_set_status STATUS
  14928. # -----------------------
  14929. # Set $? to STATUS, without forking.
  14930. as_fn_set_status ()
  14931. {
  14932. return $1
  14933. } # as_fn_set_status
  14934. # as_fn_exit STATUS
  14935. # -----------------
  14936. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14937. as_fn_exit ()
  14938. {
  14939. set +e
  14940. as_fn_set_status $1
  14941. exit $1
  14942. } # as_fn_exit
  14943. # as_fn_unset VAR
  14944. # ---------------
  14945. # Portably unset VAR.
  14946. as_fn_unset ()
  14947. {
  14948. { eval $1=; unset $1;}
  14949. }
  14950. as_unset=as_fn_unset
  14951. # as_fn_append VAR VALUE
  14952. # ----------------------
  14953. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14954. # advantage of any shell optimizations that allow amortized linear growth over
  14955. # repeated appends, instead of the typical quadratic growth present in naive
  14956. # implementations.
  14957. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14958. eval 'as_fn_append ()
  14959. {
  14960. eval $1+=\$2
  14961. }'
  14962. else
  14963. as_fn_append ()
  14964. {
  14965. eval $1=\$$1\$2
  14966. }
  14967. fi # as_fn_append
  14968. # as_fn_arith ARG...
  14969. # ------------------
  14970. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14971. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14972. # must be portable across $(()) and expr.
  14973. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14974. eval 'as_fn_arith ()
  14975. {
  14976. as_val=$(( $* ))
  14977. }'
  14978. else
  14979. as_fn_arith ()
  14980. {
  14981. as_val=`expr "$@" || test $? -eq 1`
  14982. }
  14983. fi # as_fn_arith
  14984. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14985. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14986. as_expr=expr
  14987. else
  14988. as_expr=false
  14989. fi
  14990. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14991. as_basename=basename
  14992. else
  14993. as_basename=false
  14994. fi
  14995. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14996. as_dirname=dirname
  14997. else
  14998. as_dirname=false
  14999. fi
  15000. as_me=`$as_basename -- "$0" ||
  15001. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15002. X"$0" : 'X\(//\)$' \| \
  15003. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15004. $as_echo X/"$0" |
  15005. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15006. s//\1/
  15007. q
  15008. }
  15009. /^X\/\(\/\/\)$/{
  15010. s//\1/
  15011. q
  15012. }
  15013. /^X\/\(\/\).*/{
  15014. s//\1/
  15015. q
  15016. }
  15017. s/.*/./; q'`
  15018. # Avoid depending upon Character Ranges.
  15019. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15020. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15021. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15022. as_cr_digits='0123456789'
  15023. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15024. ECHO_C= ECHO_N= ECHO_T=
  15025. case `echo -n x` in #(((((
  15026. -n*)
  15027. case `echo 'xy\c'` in
  15028. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15029. xy) ECHO_C='\c';;
  15030. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15031. ECHO_T=' ';;
  15032. esac;;
  15033. *)
  15034. ECHO_N='-n';;
  15035. esac
  15036. rm -f conf$$ conf$$.exe conf$$.file
  15037. if test -d conf$$.dir; then
  15038. rm -f conf$$.dir/conf$$.file
  15039. else
  15040. rm -f conf$$.dir
  15041. mkdir conf$$.dir 2>/dev/null
  15042. fi
  15043. if (echo >conf$$.file) 2>/dev/null; then
  15044. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15045. as_ln_s='ln -s'
  15046. # ... but there are two gotchas:
  15047. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15048. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15049. # In both cases, we have to default to `cp -pR'.
  15050. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15051. as_ln_s='cp -pR'
  15052. elif ln conf$$.file conf$$ 2>/dev/null; then
  15053. as_ln_s=ln
  15054. else
  15055. as_ln_s='cp -pR'
  15056. fi
  15057. else
  15058. as_ln_s='cp -pR'
  15059. fi
  15060. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15061. rmdir conf$$.dir 2>/dev/null
  15062. # as_fn_mkdir_p
  15063. # -------------
  15064. # Create "$as_dir" as a directory, including parents if necessary.
  15065. as_fn_mkdir_p ()
  15066. {
  15067. case $as_dir in #(
  15068. -*) as_dir=./$as_dir;;
  15069. esac
  15070. test -d "$as_dir" || eval $as_mkdir_p || {
  15071. as_dirs=
  15072. while :; do
  15073. case $as_dir in #(
  15074. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15075. *) as_qdir=$as_dir;;
  15076. esac
  15077. as_dirs="'$as_qdir' $as_dirs"
  15078. as_dir=`$as_dirname -- "$as_dir" ||
  15079. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15080. X"$as_dir" : 'X\(//\)[^/]' \| \
  15081. X"$as_dir" : 'X\(//\)$' \| \
  15082. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15083. $as_echo X"$as_dir" |
  15084. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15085. s//\1/
  15086. q
  15087. }
  15088. /^X\(\/\/\)[^/].*/{
  15089. s//\1/
  15090. q
  15091. }
  15092. /^X\(\/\/\)$/{
  15093. s//\1/
  15094. q
  15095. }
  15096. /^X\(\/\).*/{
  15097. s//\1/
  15098. q
  15099. }
  15100. s/.*/./; q'`
  15101. test -d "$as_dir" && break
  15102. done
  15103. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15104. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15105. } # as_fn_mkdir_p
  15106. if mkdir -p . 2>/dev/null; then
  15107. as_mkdir_p='mkdir -p "$as_dir"'
  15108. else
  15109. test -d ./-p && rmdir ./-p
  15110. as_mkdir_p=false
  15111. fi
  15112. # as_fn_executable_p FILE
  15113. # -----------------------
  15114. # Test if FILE is an executable regular file.
  15115. as_fn_executable_p ()
  15116. {
  15117. test -f "$1" && test -x "$1"
  15118. } # as_fn_executable_p
  15119. as_test_x='test -x'
  15120. as_executable_p=as_fn_executable_p
  15121. # Sed expression to map a string onto a valid CPP name.
  15122. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15123. # Sed expression to map a string onto a valid variable name.
  15124. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15125. exec 6>&1
  15126. ## ----------------------------------- ##
  15127. ## Main body of $CONFIG_STATUS script. ##
  15128. ## ----------------------------------- ##
  15129. _ASEOF
  15130. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15131. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15132. # Save the log message, to keep $0 and so on meaningful, and to
  15133. # report actual input values of CONFIG_FILES etc. instead of their
  15134. # values after options handling.
  15135. ac_log="
  15136. This file was extended by ld $as_me 2.38.50, which was
  15137. generated by GNU Autoconf 2.69. Invocation command line was
  15138. CONFIG_FILES = $CONFIG_FILES
  15139. CONFIG_HEADERS = $CONFIG_HEADERS
  15140. CONFIG_LINKS = $CONFIG_LINKS
  15141. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15142. $ $0 $@
  15143. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15144. "
  15145. _ACEOF
  15146. case $ac_config_files in *"
  15147. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15148. esac
  15149. case $ac_config_headers in *"
  15150. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15151. esac
  15152. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15153. # Files that config.status was made for.
  15154. config_files="$ac_config_files"
  15155. config_headers="$ac_config_headers"
  15156. config_commands="$ac_config_commands"
  15157. _ACEOF
  15158. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15159. ac_cs_usage="\
  15160. \`$as_me' instantiates files and other configuration actions
  15161. from templates according to the current configuration. Unless the files
  15162. and actions are specified as TAGs, all are instantiated by default.
  15163. Usage: $0 [OPTION]... [TAG]...
  15164. -h, --help print this help, then exit
  15165. -V, --version print version number and configuration settings, then exit
  15166. --config print configuration, then exit
  15167. -q, --quiet, --silent
  15168. do not print progress messages
  15169. -d, --debug don't remove temporary files
  15170. --recheck update $as_me by reconfiguring in the same conditions
  15171. --file=FILE[:TEMPLATE]
  15172. instantiate the configuration file FILE
  15173. --header=FILE[:TEMPLATE]
  15174. instantiate the configuration header FILE
  15175. Configuration files:
  15176. $config_files
  15177. Configuration headers:
  15178. $config_headers
  15179. Configuration commands:
  15180. $config_commands
  15181. Report bugs to the package provider."
  15182. _ACEOF
  15183. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15184. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15185. ac_cs_version="\\
  15186. ld config.status 2.38.50
  15187. configured by $0, generated by GNU Autoconf 2.69,
  15188. with options \\"\$ac_cs_config\\"
  15189. Copyright (C) 2012 Free Software Foundation, Inc.
  15190. This config.status script is free software; the Free Software Foundation
  15191. gives unlimited permission to copy, distribute and modify it."
  15192. ac_pwd='$ac_pwd'
  15193. srcdir='$srcdir'
  15194. INSTALL='$INSTALL'
  15195. MKDIR_P='$MKDIR_P'
  15196. AWK='$AWK'
  15197. test -n "\$AWK" || AWK=awk
  15198. _ACEOF
  15199. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15200. # The default lists apply if the user does not specify any file.
  15201. ac_need_defaults=:
  15202. while test $# != 0
  15203. do
  15204. case $1 in
  15205. --*=?*)
  15206. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15207. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15208. ac_shift=:
  15209. ;;
  15210. --*=)
  15211. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15212. ac_optarg=
  15213. ac_shift=:
  15214. ;;
  15215. *)
  15216. ac_option=$1
  15217. ac_optarg=$2
  15218. ac_shift=shift
  15219. ;;
  15220. esac
  15221. case $ac_option in
  15222. # Handling of the options.
  15223. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15224. ac_cs_recheck=: ;;
  15225. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15226. $as_echo "$ac_cs_version"; exit ;;
  15227. --config | --confi | --conf | --con | --co | --c )
  15228. $as_echo "$ac_cs_config"; exit ;;
  15229. --debug | --debu | --deb | --de | --d | -d )
  15230. debug=: ;;
  15231. --file | --fil | --fi | --f )
  15232. $ac_shift
  15233. case $ac_optarg in
  15234. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15235. '') as_fn_error $? "missing file argument" ;;
  15236. esac
  15237. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15238. ac_need_defaults=false;;
  15239. --header | --heade | --head | --hea )
  15240. $ac_shift
  15241. case $ac_optarg in
  15242. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15243. esac
  15244. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15245. ac_need_defaults=false;;
  15246. --he | --h)
  15247. # Conflict between --help and --header
  15248. as_fn_error $? "ambiguous option: \`$1'
  15249. Try \`$0 --help' for more information.";;
  15250. --help | --hel | -h )
  15251. $as_echo "$ac_cs_usage"; exit ;;
  15252. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15253. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15254. ac_cs_silent=: ;;
  15255. # This is an error.
  15256. -*) as_fn_error $? "unrecognized option: \`$1'
  15257. Try \`$0 --help' for more information." ;;
  15258. *) as_fn_append ac_config_targets " $1"
  15259. ac_need_defaults=false ;;
  15260. esac
  15261. shift
  15262. done
  15263. ac_configure_extra_args=
  15264. if $ac_cs_silent; then
  15265. exec 6>/dev/null
  15266. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15267. fi
  15268. _ACEOF
  15269. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15270. if \$ac_cs_recheck; then
  15271. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15272. shift
  15273. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15274. CONFIG_SHELL='$SHELL'
  15275. export CONFIG_SHELL
  15276. exec "\$@"
  15277. fi
  15278. _ACEOF
  15279. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15280. exec 5>>config.log
  15281. {
  15282. echo
  15283. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15284. ## Running $as_me. ##
  15285. _ASBOX
  15286. $as_echo "$ac_log"
  15287. } >&5
  15288. _ACEOF
  15289. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15290. #
  15291. # INIT-COMMANDS
  15292. #
  15293. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15294. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15295. # if CDPATH is set.
  15296. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15297. sed_quote_subst='$sed_quote_subst'
  15298. double_quote_subst='$double_quote_subst'
  15299. delay_variable_subst='$delay_variable_subst'
  15300. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15301. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15302. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15303. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15304. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15305. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15306. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15307. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15308. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15309. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15310. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15311. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15312. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15313. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15314. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15315. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15316. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15317. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15318. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15319. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15320. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15321. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15322. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15323. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15324. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15325. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15326. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15327. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15328. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15329. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15330. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15331. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15332. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15333. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15334. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15335. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15336. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15337. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15338. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15339. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15340. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15341. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15342. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15343. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15344. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15345. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15346. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15347. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15348. 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"`'
  15349. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15350. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15351. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15352. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15353. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15354. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15355. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15356. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15357. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15358. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15359. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15360. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15361. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15362. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15363. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15364. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15365. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15366. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15367. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15368. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15369. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15370. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15371. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15372. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15373. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15374. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15375. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15376. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15377. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15378. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15379. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15380. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  15381. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15382. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15383. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15384. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15385. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15386. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15387. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15388. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15389. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  15390. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15391. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15392. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15393. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15394. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15395. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15396. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15397. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15398. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15399. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15400. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15401. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15402. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15403. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15404. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15405. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15406. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15407. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15408. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15409. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15410. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15411. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15412. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15413. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15414. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15415. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15416. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15417. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15418. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15419. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15420. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15421. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15422. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15423. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15424. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15425. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15426. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15427. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15428. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15429. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15430. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15431. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15432. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15433. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15434. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15435. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15436. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15437. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15438. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15439. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15440. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15441. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15442. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15443. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15444. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15445. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15446. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15447. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15448. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15449. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15450. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15451. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15452. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15453. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15454. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15455. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15456. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15457. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15458. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15459. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15460. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15461. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  15462. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15463. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15464. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15465. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15466. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15467. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15468. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15469. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15470. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15471. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15472. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15473. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15474. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15475. LTCC='$LTCC'
  15476. LTCFLAGS='$LTCFLAGS'
  15477. compiler='$compiler_DEFAULT'
  15478. # A function that is used when there is no print builtin or printf.
  15479. func_fallback_echo ()
  15480. {
  15481. eval 'cat <<_LTECHO_EOF
  15482. \$1
  15483. _LTECHO_EOF'
  15484. }
  15485. # Quote evaled strings.
  15486. for var in SHELL \
  15487. ECHO \
  15488. SED \
  15489. GREP \
  15490. EGREP \
  15491. FGREP \
  15492. LD \
  15493. NM \
  15494. LN_S \
  15495. lt_SP2NL \
  15496. lt_NL2SP \
  15497. reload_flag \
  15498. OBJDUMP \
  15499. deplibs_check_method \
  15500. file_magic_cmd \
  15501. AR \
  15502. AR_FLAGS \
  15503. STRIP \
  15504. RANLIB \
  15505. CC \
  15506. CFLAGS \
  15507. compiler \
  15508. lt_cv_sys_global_symbol_pipe \
  15509. lt_cv_sys_global_symbol_to_cdecl \
  15510. lt_cv_sys_global_symbol_to_c_name_address \
  15511. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15512. lt_prog_compiler_no_builtin_flag \
  15513. lt_prog_compiler_wl \
  15514. lt_prog_compiler_pic \
  15515. lt_prog_compiler_static \
  15516. lt_cv_prog_compiler_c_o \
  15517. need_locks \
  15518. DSYMUTIL \
  15519. NMEDIT \
  15520. LIPO \
  15521. OTOOL \
  15522. OTOOL64 \
  15523. shrext_cmds \
  15524. export_dynamic_flag_spec \
  15525. whole_archive_flag_spec \
  15526. compiler_needs_object \
  15527. with_gnu_ld \
  15528. allow_undefined_flag \
  15529. no_undefined_flag \
  15530. hardcode_libdir_flag_spec \
  15531. hardcode_libdir_flag_spec_ld \
  15532. hardcode_libdir_separator \
  15533. fix_srcfile_path \
  15534. exclude_expsyms \
  15535. include_expsyms \
  15536. file_list_spec \
  15537. variables_saved_for_relink \
  15538. libname_spec \
  15539. library_names_spec \
  15540. soname_spec \
  15541. install_override_mode \
  15542. finish_eval \
  15543. old_striplib \
  15544. striplib \
  15545. compiler_lib_search_dirs \
  15546. predep_objects \
  15547. postdep_objects \
  15548. predeps \
  15549. postdeps \
  15550. compiler_lib_search_path \
  15551. LD_CXX \
  15552. reload_flag_CXX \
  15553. compiler_CXX \
  15554. lt_prog_compiler_no_builtin_flag_CXX \
  15555. lt_prog_compiler_wl_CXX \
  15556. lt_prog_compiler_pic_CXX \
  15557. lt_prog_compiler_static_CXX \
  15558. lt_cv_prog_compiler_c_o_CXX \
  15559. export_dynamic_flag_spec_CXX \
  15560. whole_archive_flag_spec_CXX \
  15561. compiler_needs_object_CXX \
  15562. with_gnu_ld_CXX \
  15563. allow_undefined_flag_CXX \
  15564. no_undefined_flag_CXX \
  15565. hardcode_libdir_flag_spec_CXX \
  15566. hardcode_libdir_flag_spec_ld_CXX \
  15567. hardcode_libdir_separator_CXX \
  15568. fix_srcfile_path_CXX \
  15569. exclude_expsyms_CXX \
  15570. include_expsyms_CXX \
  15571. file_list_spec_CXX \
  15572. compiler_lib_search_dirs_CXX \
  15573. predep_objects_CXX \
  15574. postdep_objects_CXX \
  15575. predeps_CXX \
  15576. postdeps_CXX \
  15577. compiler_lib_search_path_CXX; do
  15578. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15579. *[\\\\\\\`\\"\\\$]*)
  15580. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15581. ;;
  15582. *)
  15583. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15584. ;;
  15585. esac
  15586. done
  15587. # Double-quote double-evaled strings.
  15588. for var in reload_cmds \
  15589. old_postinstall_cmds \
  15590. old_postuninstall_cmds \
  15591. old_archive_cmds \
  15592. extract_expsyms_cmds \
  15593. old_archive_from_new_cmds \
  15594. old_archive_from_expsyms_cmds \
  15595. archive_cmds \
  15596. archive_expsym_cmds \
  15597. module_cmds \
  15598. module_expsym_cmds \
  15599. export_symbols_cmds \
  15600. prelink_cmds \
  15601. postinstall_cmds \
  15602. postuninstall_cmds \
  15603. finish_cmds \
  15604. sys_lib_search_path_spec \
  15605. sys_lib_dlsearch_path_spec \
  15606. reload_cmds_CXX \
  15607. old_archive_cmds_CXX \
  15608. old_archive_from_new_cmds_CXX \
  15609. old_archive_from_expsyms_cmds_CXX \
  15610. archive_cmds_CXX \
  15611. archive_expsym_cmds_CXX \
  15612. module_cmds_CXX \
  15613. module_expsym_cmds_CXX \
  15614. export_symbols_cmds_CXX \
  15615. prelink_cmds_CXX; do
  15616. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15617. *[\\\\\\\`\\"\\\$]*)
  15618. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15619. ;;
  15620. *)
  15621. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15622. ;;
  15623. esac
  15624. done
  15625. ac_aux_dir='$ac_aux_dir'
  15626. xsi_shell='$xsi_shell'
  15627. lt_shell_append='$lt_shell_append'
  15628. # See if we are running on zsh, and set the options which allow our
  15629. # commands through without removal of \ escapes INIT.
  15630. if test -n "\${ZSH_VERSION+set}" ; then
  15631. setopt NO_GLOB_SUBST
  15632. fi
  15633. PACKAGE='$PACKAGE'
  15634. VERSION='$VERSION'
  15635. TIMESTAMP='$TIMESTAMP'
  15636. RM='$RM'
  15637. ofile='$ofile'
  15638. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  15639. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  15640. # from automake.
  15641. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  15642. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  15643. LINGUAS="${LINGUAS-%UNSET%}"
  15644. _ACEOF
  15645. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15646. # Handling of arguments.
  15647. for ac_config_target in $ac_config_targets
  15648. do
  15649. case $ac_config_target in
  15650. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15651. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15652. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  15653. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  15654. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  15655. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15656. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
  15657. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15658. esac
  15659. done
  15660. # If the user did not use the arguments to specify the items to instantiate,
  15661. # then the envvar interface is used. Set only those that are not.
  15662. # We use the long form for the default assignment because of an extremely
  15663. # bizarre bug on SunOS 4.1.3.
  15664. if $ac_need_defaults; then
  15665. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15666. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15667. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15668. fi
  15669. # Have a temporary directory for convenience. Make it in the build tree
  15670. # simply because there is no reason against having it here, and in addition,
  15671. # creating and moving files from /tmp can sometimes cause problems.
  15672. # Hook for its removal unless debugging.
  15673. # Note that there is a small window in which the directory will not be cleaned:
  15674. # after its creation but before its name has been assigned to `$tmp'.
  15675. $debug ||
  15676. {
  15677. tmp= ac_tmp=
  15678. trap 'exit_status=$?
  15679. : "${ac_tmp:=$tmp}"
  15680. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15681. ' 0
  15682. trap 'as_fn_exit 1' 1 2 13 15
  15683. }
  15684. # Create a (secure) tmp directory for tmp files.
  15685. {
  15686. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15687. test -d "$tmp"
  15688. } ||
  15689. {
  15690. tmp=./conf$$-$RANDOM
  15691. (umask 077 && mkdir "$tmp")
  15692. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15693. ac_tmp=$tmp
  15694. # Set up the scripts for CONFIG_FILES section.
  15695. # No need to generate them if there are no CONFIG_FILES.
  15696. # This happens for instance with `./config.status config.h'.
  15697. if test -n "$CONFIG_FILES"; then
  15698. ac_cr=`echo X | tr X '\015'`
  15699. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15700. # But we know of no other shell where ac_cr would be empty at this
  15701. # point, so we can use a bashism as a fallback.
  15702. if test "x$ac_cr" = x; then
  15703. eval ac_cr=\$\'\\r\'
  15704. fi
  15705. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15706. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15707. ac_cs_awk_cr='\\r'
  15708. else
  15709. ac_cs_awk_cr=$ac_cr
  15710. fi
  15711. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15712. _ACEOF
  15713. {
  15714. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15715. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15716. echo "_ACEOF"
  15717. } >conf$$subs.sh ||
  15718. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15719. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15720. ac_delim='%!_!# '
  15721. for ac_last_try in false false false false false :; do
  15722. . ./conf$$subs.sh ||
  15723. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15724. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15725. if test $ac_delim_n = $ac_delim_num; then
  15726. break
  15727. elif $ac_last_try; then
  15728. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15729. else
  15730. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15731. fi
  15732. done
  15733. rm -f conf$$subs.sh
  15734. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15735. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15736. _ACEOF
  15737. sed -n '
  15738. h
  15739. s/^/S["/; s/!.*/"]=/
  15740. p
  15741. g
  15742. s/^[^!]*!//
  15743. :repl
  15744. t repl
  15745. s/'"$ac_delim"'$//
  15746. t delim
  15747. :nl
  15748. h
  15749. s/\(.\{148\}\)..*/\1/
  15750. t more1
  15751. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15752. p
  15753. n
  15754. b repl
  15755. :more1
  15756. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15757. p
  15758. g
  15759. s/.\{148\}//
  15760. t nl
  15761. :delim
  15762. h
  15763. s/\(.\{148\}\)..*/\1/
  15764. t more2
  15765. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15766. p
  15767. b
  15768. :more2
  15769. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15770. p
  15771. g
  15772. s/.\{148\}//
  15773. t delim
  15774. ' <conf$$subs.awk | sed '
  15775. /^[^""]/{
  15776. N
  15777. s/\n//
  15778. }
  15779. ' >>$CONFIG_STATUS || ac_write_fail=1
  15780. rm -f conf$$subs.awk
  15781. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15782. _ACAWK
  15783. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15784. for (key in S) S_is_set[key] = 1
  15785. FS = ""
  15786. }
  15787. {
  15788. line = $ 0
  15789. nfields = split(line, field, "@")
  15790. substed = 0
  15791. len = length(field[1])
  15792. for (i = 2; i < nfields; i++) {
  15793. key = field[i]
  15794. keylen = length(key)
  15795. if (S_is_set[key]) {
  15796. value = S[key]
  15797. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15798. len += length(value) + length(field[++i])
  15799. substed = 1
  15800. } else
  15801. len += 1 + keylen
  15802. }
  15803. print line
  15804. }
  15805. _ACAWK
  15806. _ACEOF
  15807. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15808. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15809. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15810. else
  15811. cat
  15812. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15813. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15814. _ACEOF
  15815. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15816. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15817. # trailing colons and then remove the whole line if VPATH becomes empty
  15818. # (actually we leave an empty line to preserve line numbers).
  15819. if test "x$srcdir" = x.; then
  15820. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15821. h
  15822. s///
  15823. s/^/:/
  15824. s/[ ]*$/:/
  15825. s/:\$(srcdir):/:/g
  15826. s/:\${srcdir}:/:/g
  15827. s/:@srcdir@:/:/g
  15828. s/^:*//
  15829. s/:*$//
  15830. x
  15831. s/\(=[ ]*\).*/\1/
  15832. G
  15833. s/\n//
  15834. s/^[^=]*=[ ]*$//
  15835. }'
  15836. fi
  15837. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15838. fi # test -n "$CONFIG_FILES"
  15839. # Set up the scripts for CONFIG_HEADERS section.
  15840. # No need to generate them if there are no CONFIG_HEADERS.
  15841. # This happens for instance with `./config.status Makefile'.
  15842. if test -n "$CONFIG_HEADERS"; then
  15843. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15844. BEGIN {
  15845. _ACEOF
  15846. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15847. # here-document in config.status, that substitutes the proper values into
  15848. # config.h.in to produce config.h.
  15849. # Create a delimiter string that does not exist in confdefs.h, to ease
  15850. # handling of long lines.
  15851. ac_delim='%!_!# '
  15852. for ac_last_try in false false :; do
  15853. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15854. if test -z "$ac_tt"; then
  15855. break
  15856. elif $ac_last_try; then
  15857. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15858. else
  15859. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15860. fi
  15861. done
  15862. # For the awk script, D is an array of macro values keyed by name,
  15863. # likewise P contains macro parameters if any. Preserve backslash
  15864. # newline sequences.
  15865. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15866. sed -n '
  15867. s/.\{148\}/&'"$ac_delim"'/g
  15868. t rset
  15869. :rset
  15870. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15871. t def
  15872. d
  15873. :def
  15874. s/\\$//
  15875. t bsnl
  15876. s/["\\]/\\&/g
  15877. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15878. D["\1"]=" \3"/p
  15879. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15880. d
  15881. :bsnl
  15882. s/["\\]/\\&/g
  15883. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15884. D["\1"]=" \3\\\\\\n"\\/p
  15885. t cont
  15886. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15887. t cont
  15888. d
  15889. :cont
  15890. n
  15891. s/.\{148\}/&'"$ac_delim"'/g
  15892. t clear
  15893. :clear
  15894. s/\\$//
  15895. t bsnlc
  15896. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15897. d
  15898. :bsnlc
  15899. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15900. b cont
  15901. ' <confdefs.h | sed '
  15902. s/'"$ac_delim"'/"\\\
  15903. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15904. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15905. for (key in D) D_is_set[key] = 1
  15906. FS = ""
  15907. }
  15908. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15909. line = \$ 0
  15910. split(line, arg, " ")
  15911. if (arg[1] == "#") {
  15912. defundef = arg[2]
  15913. mac1 = arg[3]
  15914. } else {
  15915. defundef = substr(arg[1], 2)
  15916. mac1 = arg[2]
  15917. }
  15918. split(mac1, mac2, "(") #)
  15919. macro = mac2[1]
  15920. prefix = substr(line, 1, index(line, defundef) - 1)
  15921. if (D_is_set[macro]) {
  15922. # Preserve the white space surrounding the "#".
  15923. print prefix "define", macro P[macro] D[macro]
  15924. next
  15925. } else {
  15926. # Replace #undef with comments. This is necessary, for example,
  15927. # in the case of _POSIX_SOURCE, which is predefined and required
  15928. # on some systems where configure will not decide to define it.
  15929. if (defundef == "undef") {
  15930. print "/*", prefix defundef, macro, "*/"
  15931. next
  15932. }
  15933. }
  15934. }
  15935. { print }
  15936. _ACAWK
  15937. _ACEOF
  15938. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15939. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15940. fi # test -n "$CONFIG_HEADERS"
  15941. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15942. shift
  15943. for ac_tag
  15944. do
  15945. case $ac_tag in
  15946. :[FHLC]) ac_mode=$ac_tag; continue;;
  15947. esac
  15948. case $ac_mode$ac_tag in
  15949. :[FHL]*:*);;
  15950. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15951. :[FH]-) ac_tag=-:-;;
  15952. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15953. esac
  15954. ac_save_IFS=$IFS
  15955. IFS=:
  15956. set x $ac_tag
  15957. IFS=$ac_save_IFS
  15958. shift
  15959. ac_file=$1
  15960. shift
  15961. case $ac_mode in
  15962. :L) ac_source=$1;;
  15963. :[FH])
  15964. ac_file_inputs=
  15965. for ac_f
  15966. do
  15967. case $ac_f in
  15968. -) ac_f="$ac_tmp/stdin";;
  15969. *) # Look for the file first in the build tree, then in the source tree
  15970. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15971. # because $ac_f cannot contain `:'.
  15972. test -f "$ac_f" ||
  15973. case $ac_f in
  15974. [\\/$]*) false;;
  15975. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15976. esac ||
  15977. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15978. esac
  15979. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15980. as_fn_append ac_file_inputs " '$ac_f'"
  15981. done
  15982. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15983. # use $as_me), people would be surprised to read:
  15984. # /* config.h. Generated by config.status. */
  15985. configure_input='Generated from '`
  15986. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15987. `' by configure.'
  15988. if test x"$ac_file" != x-; then
  15989. configure_input="$ac_file. $configure_input"
  15990. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15991. $as_echo "$as_me: creating $ac_file" >&6;}
  15992. fi
  15993. # Neutralize special characters interpreted by sed in replacement strings.
  15994. case $configure_input in #(
  15995. *\&* | *\|* | *\\* )
  15996. ac_sed_conf_input=`$as_echo "$configure_input" |
  15997. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15998. *) ac_sed_conf_input=$configure_input;;
  15999. esac
  16000. case $ac_tag in
  16001. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16002. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16003. esac
  16004. ;;
  16005. esac
  16006. ac_dir=`$as_dirname -- "$ac_file" ||
  16007. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16008. X"$ac_file" : 'X\(//\)[^/]' \| \
  16009. X"$ac_file" : 'X\(//\)$' \| \
  16010. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16011. $as_echo X"$ac_file" |
  16012. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16013. s//\1/
  16014. q
  16015. }
  16016. /^X\(\/\/\)[^/].*/{
  16017. s//\1/
  16018. q
  16019. }
  16020. /^X\(\/\/\)$/{
  16021. s//\1/
  16022. q
  16023. }
  16024. /^X\(\/\).*/{
  16025. s//\1/
  16026. q
  16027. }
  16028. s/.*/./; q'`
  16029. as_dir="$ac_dir"; as_fn_mkdir_p
  16030. ac_builddir=.
  16031. case "$ac_dir" in
  16032. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16033. *)
  16034. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16035. # A ".." for each directory in $ac_dir_suffix.
  16036. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16037. case $ac_top_builddir_sub in
  16038. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16039. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16040. esac ;;
  16041. esac
  16042. ac_abs_top_builddir=$ac_pwd
  16043. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16044. # for backward compatibility:
  16045. ac_top_builddir=$ac_top_build_prefix
  16046. case $srcdir in
  16047. .) # We are building in place.
  16048. ac_srcdir=.
  16049. ac_top_srcdir=$ac_top_builddir_sub
  16050. ac_abs_top_srcdir=$ac_pwd ;;
  16051. [\\/]* | ?:[\\/]* ) # Absolute name.
  16052. ac_srcdir=$srcdir$ac_dir_suffix;
  16053. ac_top_srcdir=$srcdir
  16054. ac_abs_top_srcdir=$srcdir ;;
  16055. *) # Relative name.
  16056. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16057. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16058. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16059. esac
  16060. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16061. case $ac_mode in
  16062. :F)
  16063. #
  16064. # CONFIG_FILE
  16065. #
  16066. case $INSTALL in
  16067. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16068. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16069. esac
  16070. ac_MKDIR_P=$MKDIR_P
  16071. case $MKDIR_P in
  16072. [\\/$]* | ?:[\\/]* ) ;;
  16073. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16074. esac
  16075. _ACEOF
  16076. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16077. # If the template does not know about datarootdir, expand it.
  16078. # FIXME: This hack should be removed a few years after 2.60.
  16079. ac_datarootdir_hack=; ac_datarootdir_seen=
  16080. ac_sed_dataroot='
  16081. /datarootdir/ {
  16082. p
  16083. q
  16084. }
  16085. /@datadir@/p
  16086. /@docdir@/p
  16087. /@infodir@/p
  16088. /@localedir@/p
  16089. /@mandir@/p'
  16090. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16091. *datarootdir*) ac_datarootdir_seen=yes;;
  16092. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16093. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16094. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16095. _ACEOF
  16096. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16097. ac_datarootdir_hack='
  16098. s&@datadir@&$datadir&g
  16099. s&@docdir@&$docdir&g
  16100. s&@infodir@&$infodir&g
  16101. s&@localedir@&$localedir&g
  16102. s&@mandir@&$mandir&g
  16103. s&\\\${datarootdir}&$datarootdir&g' ;;
  16104. esac
  16105. _ACEOF
  16106. # Neutralize VPATH when `$srcdir' = `.'.
  16107. # Shell code in configure.ac might set extrasub.
  16108. # FIXME: do we really want to maintain this feature?
  16109. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16110. ac_sed_extra="$ac_vpsub
  16111. $extrasub
  16112. _ACEOF
  16113. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16114. :t
  16115. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16116. s|@configure_input@|$ac_sed_conf_input|;t t
  16117. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16118. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16119. s&@srcdir@&$ac_srcdir&;t t
  16120. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16121. s&@top_srcdir@&$ac_top_srcdir&;t t
  16122. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16123. s&@builddir@&$ac_builddir&;t t
  16124. s&@abs_builddir@&$ac_abs_builddir&;t t
  16125. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16126. s&@INSTALL@&$ac_INSTALL&;t t
  16127. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16128. $ac_datarootdir_hack
  16129. "
  16130. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16131. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16132. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16133. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16134. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16135. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16137. which seems to be undefined. Please make sure it is defined" >&5
  16138. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16139. which seems to be undefined. Please make sure it is defined" >&2;}
  16140. rm -f "$ac_tmp/stdin"
  16141. case $ac_file in
  16142. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16143. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16144. esac \
  16145. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16146. ;;
  16147. :H)
  16148. #
  16149. # CONFIG_HEADER
  16150. #
  16151. if test x"$ac_file" != x-; then
  16152. {
  16153. $as_echo "/* $configure_input */" \
  16154. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16155. } >"$ac_tmp/config.h" \
  16156. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16157. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16158. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16159. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16160. else
  16161. rm -f "$ac_file"
  16162. mv "$ac_tmp/config.h" "$ac_file" \
  16163. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16164. fi
  16165. else
  16166. $as_echo "/* $configure_input */" \
  16167. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16168. || as_fn_error $? "could not create -" "$LINENO" 5
  16169. fi
  16170. # Compute "$ac_file"'s index in $config_headers.
  16171. _am_arg="$ac_file"
  16172. _am_stamp_count=1
  16173. for _am_header in $config_headers :; do
  16174. case $_am_header in
  16175. $_am_arg | $_am_arg:* )
  16176. break ;;
  16177. * )
  16178. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16179. esac
  16180. done
  16181. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16182. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16183. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16184. X"$_am_arg" : 'X\(//\)$' \| \
  16185. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16186. $as_echo X"$_am_arg" |
  16187. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16188. s//\1/
  16189. q
  16190. }
  16191. /^X\(\/\/\)[^/].*/{
  16192. s//\1/
  16193. q
  16194. }
  16195. /^X\(\/\/\)$/{
  16196. s//\1/
  16197. q
  16198. }
  16199. /^X\(\/\).*/{
  16200. s//\1/
  16201. q
  16202. }
  16203. s/.*/./; q'`/stamp-h$_am_stamp_count
  16204. ;;
  16205. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16206. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16207. ;;
  16208. esac
  16209. case $ac_file$ac_mode in
  16210. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16211. # Older Autoconf quotes --file arguments for eval, but not when files
  16212. # are listed without --file. Let's play safe and only enable the eval
  16213. # if we detect the quoting.
  16214. case $CONFIG_FILES in
  16215. *\'*) eval set x "$CONFIG_FILES" ;;
  16216. *) set x $CONFIG_FILES ;;
  16217. esac
  16218. shift
  16219. for mf
  16220. do
  16221. # Strip MF so we end up with the name of the file.
  16222. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16223. # Check whether this is an Automake generated Makefile or not.
  16224. # We used to match only the files named 'Makefile.in', but
  16225. # some people rename them; so instead we look at the file content.
  16226. # Grep'ing the first line is not enough: some people post-process
  16227. # each Makefile.in and add a new line on top of each file to say so.
  16228. # Grep'ing the whole file is not good either: AIX grep has a line
  16229. # limit of 2048, but all sed's we know have understand at least 4000.
  16230. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16231. dirpart=`$as_dirname -- "$mf" ||
  16232. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16233. X"$mf" : 'X\(//\)[^/]' \| \
  16234. X"$mf" : 'X\(//\)$' \| \
  16235. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16236. $as_echo X"$mf" |
  16237. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16238. s//\1/
  16239. q
  16240. }
  16241. /^X\(\/\/\)[^/].*/{
  16242. s//\1/
  16243. q
  16244. }
  16245. /^X\(\/\/\)$/{
  16246. s//\1/
  16247. q
  16248. }
  16249. /^X\(\/\).*/{
  16250. s//\1/
  16251. q
  16252. }
  16253. s/.*/./; q'`
  16254. else
  16255. continue
  16256. fi
  16257. # Extract the definition of DEPDIR, am__include, and am__quote
  16258. # from the Makefile without running 'make'.
  16259. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16260. test -z "$DEPDIR" && continue
  16261. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16262. test -z "$am__include" && continue
  16263. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16264. # Find all dependency output files, they are included files with
  16265. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16266. # simplest approach to changing $(DEPDIR) to its actual value in the
  16267. # expansion.
  16268. for file in `sed -n "
  16269. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16270. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  16271. # Make sure the directory exists.
  16272. test -f "$dirpart/$file" && continue
  16273. fdir=`$as_dirname -- "$file" ||
  16274. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16275. X"$file" : 'X\(//\)[^/]' \| \
  16276. X"$file" : 'X\(//\)$' \| \
  16277. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16278. $as_echo X"$file" |
  16279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16280. s//\1/
  16281. q
  16282. }
  16283. /^X\(\/\/\)[^/].*/{
  16284. s//\1/
  16285. q
  16286. }
  16287. /^X\(\/\/\)$/{
  16288. s//\1/
  16289. q
  16290. }
  16291. /^X\(\/\).*/{
  16292. s//\1/
  16293. q
  16294. }
  16295. s/.*/./; q'`
  16296. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16297. # echo "creating $dirpart/$file"
  16298. echo '# dummy' > "$dirpart/$file"
  16299. done
  16300. done
  16301. }
  16302. ;;
  16303. "libtool":C)
  16304. # See if we are running on zsh, and set the options which allow our
  16305. # commands through without removal of \ escapes.
  16306. if test -n "${ZSH_VERSION+set}" ; then
  16307. setopt NO_GLOB_SUBST
  16308. fi
  16309. cfgfile="${ofile}T"
  16310. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16311. $RM "$cfgfile"
  16312. cat <<_LT_EOF >> "$cfgfile"
  16313. #! $SHELL
  16314. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16315. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16316. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16317. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16318. #
  16319. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16320. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  16321. # Written by Gordon Matzigkeit, 1996
  16322. #
  16323. # This file is part of GNU Libtool.
  16324. #
  16325. # GNU Libtool is free software; you can redistribute it and/or
  16326. # modify it under the terms of the GNU General Public License as
  16327. # published by the Free Software Foundation; either version 2 of
  16328. # the License, or (at your option) any later version.
  16329. #
  16330. # As a special exception to the GNU General Public License,
  16331. # if you distribute this file as part of a program or library that
  16332. # is built using GNU Libtool, you may include this file under the
  16333. # same distribution terms that you use for the rest of that program.
  16334. #
  16335. # GNU Libtool is distributed in the hope that it will be useful,
  16336. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16337. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16338. # GNU General Public License for more details.
  16339. #
  16340. # You should have received a copy of the GNU General Public License
  16341. # along with GNU Libtool; see the file COPYING. If not, a copy
  16342. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16343. # obtained by writing to the Free Software Foundation, Inc.,
  16344. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16345. # The names of the tagged configurations supported by this script.
  16346. available_tags="CXX "
  16347. # ### BEGIN LIBTOOL CONFIG
  16348. # Which release of libtool.m4 was used?
  16349. macro_version=$macro_version
  16350. macro_revision=$macro_revision
  16351. # Whether or not to build shared libraries.
  16352. build_libtool_libs=$enable_shared
  16353. # Whether or not to build static libraries.
  16354. build_old_libs=$enable_static
  16355. # What type of objects to build.
  16356. pic_mode=$pic_mode
  16357. # Whether or not to optimize for fast installation.
  16358. fast_install=$enable_fast_install
  16359. # Shell to use when invoking shell scripts.
  16360. SHELL=$lt_SHELL
  16361. # An echo program that protects backslashes.
  16362. ECHO=$lt_ECHO
  16363. # The host system.
  16364. host_alias=$host_alias
  16365. host=$host
  16366. host_os=$host_os
  16367. # The build system.
  16368. build_alias=$build_alias
  16369. build=$build
  16370. build_os=$build_os
  16371. # A sed program that does not truncate output.
  16372. SED=$lt_SED
  16373. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16374. Xsed="\$SED -e 1s/^X//"
  16375. # A grep program that handles long lines.
  16376. GREP=$lt_GREP
  16377. # An ERE matcher.
  16378. EGREP=$lt_EGREP
  16379. # A literal string matcher.
  16380. FGREP=$lt_FGREP
  16381. # A BSD- or MS-compatible name lister.
  16382. NM=$lt_NM
  16383. # Whether we need soft or hard links.
  16384. LN_S=$lt_LN_S
  16385. # What is the maximum length of a command?
  16386. max_cmd_len=$max_cmd_len
  16387. # Object file suffix (normally "o").
  16388. objext=$ac_objext
  16389. # Executable file suffix (normally "").
  16390. exeext=$exeext
  16391. # whether the shell understands "unset".
  16392. lt_unset=$lt_unset
  16393. # turn spaces into newlines.
  16394. SP2NL=$lt_lt_SP2NL
  16395. # turn newlines into spaces.
  16396. NL2SP=$lt_lt_NL2SP
  16397. # An object symbol dumper.
  16398. OBJDUMP=$lt_OBJDUMP
  16399. # Method to check whether dependent libraries are shared objects.
  16400. deplibs_check_method=$lt_deplibs_check_method
  16401. # Command to use when deplibs_check_method == "file_magic".
  16402. file_magic_cmd=$lt_file_magic_cmd
  16403. # The archiver.
  16404. AR=$lt_AR
  16405. AR_FLAGS=$lt_AR_FLAGS
  16406. # A symbol stripping program.
  16407. STRIP=$lt_STRIP
  16408. # Commands used to install an old-style archive.
  16409. RANLIB=$lt_RANLIB
  16410. old_postinstall_cmds=$lt_old_postinstall_cmds
  16411. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16412. # Whether to use a lock for old archive extraction.
  16413. lock_old_archive_extraction=$lock_old_archive_extraction
  16414. # A C compiler.
  16415. LTCC=$lt_CC
  16416. # LTCC compiler flags.
  16417. LTCFLAGS=$lt_CFLAGS
  16418. # Take the output of nm and produce a listing of raw symbols and C names.
  16419. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16420. # Transform the output of nm in a proper C declaration.
  16421. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16422. # Transform the output of nm in a C name address pair.
  16423. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16424. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16425. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16426. # The name of the directory that contains temporary libtool files.
  16427. objdir=$objdir
  16428. # Used to examine libraries when file_magic_cmd begins with "file".
  16429. MAGIC_CMD=$MAGIC_CMD
  16430. # Must we lock files when doing compilation?
  16431. need_locks=$lt_need_locks
  16432. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16433. DSYMUTIL=$lt_DSYMUTIL
  16434. # Tool to change global to local symbols on Mac OS X.
  16435. NMEDIT=$lt_NMEDIT
  16436. # Tool to manipulate fat objects and archives on Mac OS X.
  16437. LIPO=$lt_LIPO
  16438. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16439. OTOOL=$lt_OTOOL
  16440. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16441. OTOOL64=$lt_OTOOL64
  16442. # Old archive suffix (normally "a").
  16443. libext=$libext
  16444. # Shared library suffix (normally ".so").
  16445. shrext_cmds=$lt_shrext_cmds
  16446. # The commands to extract the exported symbol list from a shared archive.
  16447. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16448. # Variables whose values should be saved in libtool wrapper scripts and
  16449. # restored at link time.
  16450. variables_saved_for_relink=$lt_variables_saved_for_relink
  16451. # Do we need the "lib" prefix for modules?
  16452. need_lib_prefix=$need_lib_prefix
  16453. # Do we need a version for libraries?
  16454. need_version=$need_version
  16455. # Library versioning type.
  16456. version_type=$version_type
  16457. # Shared library runtime path variable.
  16458. runpath_var=$runpath_var
  16459. # Shared library path variable.
  16460. shlibpath_var=$shlibpath_var
  16461. # Is shlibpath searched before the hard-coded library search path?
  16462. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16463. # Format of library name prefix.
  16464. libname_spec=$lt_libname_spec
  16465. # List of archive names. First name is the real one, the rest are links.
  16466. # The last name is the one that the linker finds with -lNAME
  16467. library_names_spec=$lt_library_names_spec
  16468. # The coded name of the library, if different from the real name.
  16469. soname_spec=$lt_soname_spec
  16470. # Permission mode override for installation of shared libraries.
  16471. install_override_mode=$lt_install_override_mode
  16472. # Command to use after installation of a shared archive.
  16473. postinstall_cmds=$lt_postinstall_cmds
  16474. # Command to use after uninstallation of a shared archive.
  16475. postuninstall_cmds=$lt_postuninstall_cmds
  16476. # Commands used to finish a libtool library installation in a directory.
  16477. finish_cmds=$lt_finish_cmds
  16478. # As "finish_cmds", except a single script fragment to be evaled but
  16479. # not shown.
  16480. finish_eval=$lt_finish_eval
  16481. # Whether we should hardcode library paths into libraries.
  16482. hardcode_into_libs=$hardcode_into_libs
  16483. # Compile-time system search path for libraries.
  16484. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16485. # Run-time system search path for libraries.
  16486. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16487. # Whether dlopen is supported.
  16488. dlopen_support=$enable_dlopen
  16489. # Whether dlopen of programs is supported.
  16490. dlopen_self=$enable_dlopen_self
  16491. # Whether dlopen of statically linked programs is supported.
  16492. dlopen_self_static=$enable_dlopen_self_static
  16493. # Commands to strip libraries.
  16494. old_striplib=$lt_old_striplib
  16495. striplib=$lt_striplib
  16496. # The linker used to build libraries.
  16497. LD=$lt_LD
  16498. # How to create reloadable object files.
  16499. reload_flag=$lt_reload_flag
  16500. reload_cmds=$lt_reload_cmds
  16501. # Commands used to build an old-style archive.
  16502. old_archive_cmds=$lt_old_archive_cmds
  16503. # A language specific compiler.
  16504. CC=$lt_compiler
  16505. # Is the compiler the GNU compiler?
  16506. with_gcc=$GCC
  16507. # Compiler flag to turn off builtin functions.
  16508. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16509. # How to pass a linker flag through the compiler.
  16510. wl=$lt_lt_prog_compiler_wl
  16511. # Additional compiler flags for building library objects.
  16512. pic_flag=$lt_lt_prog_compiler_pic
  16513. # Compiler flag to prevent dynamic linking.
  16514. link_static_flag=$lt_lt_prog_compiler_static
  16515. # Does compiler simultaneously support -c and -o options?
  16516. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16517. # Whether or not to add -lc for building shared libraries.
  16518. build_libtool_need_lc=$archive_cmds_need_lc
  16519. # Whether or not to disallow shared libs when runtime libs are static.
  16520. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16521. # Compiler flag to allow reflexive dlopens.
  16522. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16523. # Compiler flag to generate shared objects directly from archives.
  16524. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16525. # Whether the compiler copes with passing no objects directly.
  16526. compiler_needs_object=$lt_compiler_needs_object
  16527. # Create an old-style archive from a shared archive.
  16528. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16529. # Create a temporary old-style archive to link instead of a shared archive.
  16530. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16531. # Commands used to build a shared archive.
  16532. archive_cmds=$lt_archive_cmds
  16533. archive_expsym_cmds=$lt_archive_expsym_cmds
  16534. # Commands used to build a loadable module if different from building
  16535. # a shared archive.
  16536. module_cmds=$lt_module_cmds
  16537. module_expsym_cmds=$lt_module_expsym_cmds
  16538. # Whether we are building with GNU ld or not.
  16539. with_gnu_ld=$lt_with_gnu_ld
  16540. # Flag that allows shared libraries with undefined symbols to be built.
  16541. allow_undefined_flag=$lt_allow_undefined_flag
  16542. # Flag that enforces no undefined symbols.
  16543. no_undefined_flag=$lt_no_undefined_flag
  16544. # Flag to hardcode \$libdir into a binary during linking.
  16545. # This must work even if \$libdir does not exist
  16546. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16547. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16548. # during linking. This must work even if \$libdir does not exist.
  16549. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  16550. # Whether we need a single "-rpath" flag with a separated argument.
  16551. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16552. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16553. # DIR into the resulting binary.
  16554. hardcode_direct=$hardcode_direct
  16555. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16556. # DIR into the resulting binary and the resulting library dependency is
  16557. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16558. # library is relocated.
  16559. hardcode_direct_absolute=$hardcode_direct_absolute
  16560. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16561. # into the resulting binary.
  16562. hardcode_minus_L=$hardcode_minus_L
  16563. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16564. # into the resulting binary.
  16565. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16566. # Set to "yes" if building a shared library automatically hardcodes DIR
  16567. # into the library and all subsequent libraries and executables linked
  16568. # against it.
  16569. hardcode_automatic=$hardcode_automatic
  16570. # Set to yes if linker adds runtime paths of dependent libraries
  16571. # to runtime path list.
  16572. inherit_rpath=$inherit_rpath
  16573. # Whether libtool must link a program against all its dependency libraries.
  16574. link_all_deplibs=$link_all_deplibs
  16575. # Fix the shell variable \$srcfile for the compiler.
  16576. fix_srcfile_path=$lt_fix_srcfile_path
  16577. # Set to "yes" if exported symbols are required.
  16578. always_export_symbols=$always_export_symbols
  16579. # The commands to list exported symbols.
  16580. export_symbols_cmds=$lt_export_symbols_cmds
  16581. # Symbols that should not be listed in the preloaded symbols.
  16582. exclude_expsyms=$lt_exclude_expsyms
  16583. # Symbols that must always be exported.
  16584. include_expsyms=$lt_include_expsyms
  16585. # Commands necessary for linking programs (against libraries) with templates.
  16586. prelink_cmds=$lt_prelink_cmds
  16587. # Specify filename containing input files.
  16588. file_list_spec=$lt_file_list_spec
  16589. # How to hardcode a shared library path into an executable.
  16590. hardcode_action=$hardcode_action
  16591. # The directories searched by this compiler when creating a shared library.
  16592. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16593. # Dependencies to place before and after the objects being linked to
  16594. # create a shared library.
  16595. predep_objects=$lt_predep_objects
  16596. postdep_objects=$lt_postdep_objects
  16597. predeps=$lt_predeps
  16598. postdeps=$lt_postdeps
  16599. # The library search path used internally by the compiler when linking
  16600. # a shared library.
  16601. compiler_lib_search_path=$lt_compiler_lib_search_path
  16602. # ### END LIBTOOL CONFIG
  16603. _LT_EOF
  16604. case $host_os in
  16605. aix3*)
  16606. cat <<\_LT_EOF >> "$cfgfile"
  16607. # AIX sometimes has problems with the GCC collect2 program. For some
  16608. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16609. # vanish in a puff of smoke.
  16610. if test "X${COLLECT_NAMES+set}" != Xset; then
  16611. COLLECT_NAMES=
  16612. export COLLECT_NAMES
  16613. fi
  16614. _LT_EOF
  16615. ;;
  16616. esac
  16617. ltmain="$ac_aux_dir/ltmain.sh"
  16618. # We use sed instead of cat because bash on DJGPP gets confused if
  16619. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16620. # text mode, it properly converts lines to CR/LF. This bash problem
  16621. # is reportedly fixed, but why not run on old versions too?
  16622. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  16623. || (rm -f "$cfgfile"; exit 1)
  16624. case $xsi_shell in
  16625. yes)
  16626. cat << \_LT_EOF >> "$cfgfile"
  16627. # func_dirname file append nondir_replacement
  16628. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16629. # otherwise set result to NONDIR_REPLACEMENT.
  16630. func_dirname ()
  16631. {
  16632. case ${1} in
  16633. */*) func_dirname_result="${1%/*}${2}" ;;
  16634. * ) func_dirname_result="${3}" ;;
  16635. esac
  16636. }
  16637. # func_basename file
  16638. func_basename ()
  16639. {
  16640. func_basename_result="${1##*/}"
  16641. }
  16642. # func_dirname_and_basename file append nondir_replacement
  16643. # perform func_basename and func_dirname in a single function
  16644. # call:
  16645. # dirname: Compute the dirname of FILE. If nonempty,
  16646. # add APPEND to the result, otherwise set result
  16647. # to NONDIR_REPLACEMENT.
  16648. # value returned in "$func_dirname_result"
  16649. # basename: Compute filename of FILE.
  16650. # value retuned in "$func_basename_result"
  16651. # Implementation must be kept synchronized with func_dirname
  16652. # and func_basename. For efficiency, we do not delegate to
  16653. # those functions but instead duplicate the functionality here.
  16654. func_dirname_and_basename ()
  16655. {
  16656. case ${1} in
  16657. */*) func_dirname_result="${1%/*}${2}" ;;
  16658. * ) func_dirname_result="${3}" ;;
  16659. esac
  16660. func_basename_result="${1##*/}"
  16661. }
  16662. # func_stripname prefix suffix name
  16663. # strip PREFIX and SUFFIX off of NAME.
  16664. # PREFIX and SUFFIX must not contain globbing or regex special
  16665. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16666. # dot (in which case that matches only a dot).
  16667. func_stripname ()
  16668. {
  16669. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  16670. # positional parameters, so assign one to ordinary parameter first.
  16671. func_stripname_result=${3}
  16672. func_stripname_result=${func_stripname_result#"${1}"}
  16673. func_stripname_result=${func_stripname_result%"${2}"}
  16674. }
  16675. # func_opt_split
  16676. func_opt_split ()
  16677. {
  16678. func_opt_split_opt=${1%%=*}
  16679. func_opt_split_arg=${1#*=}
  16680. }
  16681. # func_lo2o object
  16682. func_lo2o ()
  16683. {
  16684. case ${1} in
  16685. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  16686. *) func_lo2o_result=${1} ;;
  16687. esac
  16688. }
  16689. # func_xform libobj-or-source
  16690. func_xform ()
  16691. {
  16692. func_xform_result=${1%.*}.lo
  16693. }
  16694. # func_arith arithmetic-term...
  16695. func_arith ()
  16696. {
  16697. func_arith_result=$(( $* ))
  16698. }
  16699. # func_len string
  16700. # STRING may not start with a hyphen.
  16701. func_len ()
  16702. {
  16703. func_len_result=${#1}
  16704. }
  16705. _LT_EOF
  16706. ;;
  16707. *) # Bourne compatible functions.
  16708. cat << \_LT_EOF >> "$cfgfile"
  16709. # func_dirname file append nondir_replacement
  16710. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16711. # otherwise set result to NONDIR_REPLACEMENT.
  16712. func_dirname ()
  16713. {
  16714. # Extract subdirectory from the argument.
  16715. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  16716. if test "X$func_dirname_result" = "X${1}"; then
  16717. func_dirname_result="${3}"
  16718. else
  16719. func_dirname_result="$func_dirname_result${2}"
  16720. fi
  16721. }
  16722. # func_basename file
  16723. func_basename ()
  16724. {
  16725. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  16726. }
  16727. # func_stripname prefix suffix name
  16728. # strip PREFIX and SUFFIX off of NAME.
  16729. # PREFIX and SUFFIX must not contain globbing or regex special
  16730. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16731. # dot (in which case that matches only a dot).
  16732. # func_strip_suffix prefix name
  16733. func_stripname ()
  16734. {
  16735. case ${2} in
  16736. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  16737. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  16738. esac
  16739. }
  16740. # sed scripts:
  16741. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  16742. my_sed_long_arg='1s/^-[^=]*=//'
  16743. # func_opt_split
  16744. func_opt_split ()
  16745. {
  16746. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  16747. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  16748. }
  16749. # func_lo2o object
  16750. func_lo2o ()
  16751. {
  16752. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  16753. }
  16754. # func_xform libobj-or-source
  16755. func_xform ()
  16756. {
  16757. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  16758. }
  16759. # func_arith arithmetic-term...
  16760. func_arith ()
  16761. {
  16762. func_arith_result=`expr "$@"`
  16763. }
  16764. # func_len string
  16765. # STRING may not start with a hyphen.
  16766. func_len ()
  16767. {
  16768. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  16769. }
  16770. _LT_EOF
  16771. esac
  16772. case $lt_shell_append in
  16773. yes)
  16774. cat << \_LT_EOF >> "$cfgfile"
  16775. # func_append var value
  16776. # Append VALUE to the end of shell variable VAR.
  16777. func_append ()
  16778. {
  16779. eval "$1+=\$2"
  16780. }
  16781. _LT_EOF
  16782. ;;
  16783. *)
  16784. cat << \_LT_EOF >> "$cfgfile"
  16785. # func_append var value
  16786. # Append VALUE to the end of shell variable VAR.
  16787. func_append ()
  16788. {
  16789. eval "$1=\$$1\$2"
  16790. }
  16791. _LT_EOF
  16792. ;;
  16793. esac
  16794. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  16795. || (rm -f "$cfgfile"; exit 1)
  16796. mv -f "$cfgfile" "$ofile" ||
  16797. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16798. chmod +x "$ofile"
  16799. cat <<_LT_EOF >> "$ofile"
  16800. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16801. # The linker used to build libraries.
  16802. LD=$lt_LD_CXX
  16803. # How to create reloadable object files.
  16804. reload_flag=$lt_reload_flag_CXX
  16805. reload_cmds=$lt_reload_cmds_CXX
  16806. # Commands used to build an old-style archive.
  16807. old_archive_cmds=$lt_old_archive_cmds_CXX
  16808. # A language specific compiler.
  16809. CC=$lt_compiler_CXX
  16810. # Is the compiler the GNU compiler?
  16811. with_gcc=$GCC_CXX
  16812. # Compiler flag to turn off builtin functions.
  16813. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16814. # How to pass a linker flag through the compiler.
  16815. wl=$lt_lt_prog_compiler_wl_CXX
  16816. # Additional compiler flags for building library objects.
  16817. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16818. # Compiler flag to prevent dynamic linking.
  16819. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16820. # Does compiler simultaneously support -c and -o options?
  16821. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16822. # Whether or not to add -lc for building shared libraries.
  16823. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16824. # Whether or not to disallow shared libs when runtime libs are static.
  16825. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16826. # Compiler flag to allow reflexive dlopens.
  16827. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16828. # Compiler flag to generate shared objects directly from archives.
  16829. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16830. # Whether the compiler copes with passing no objects directly.
  16831. compiler_needs_object=$lt_compiler_needs_object_CXX
  16832. # Create an old-style archive from a shared archive.
  16833. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16834. # Create a temporary old-style archive to link instead of a shared archive.
  16835. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16836. # Commands used to build a shared archive.
  16837. archive_cmds=$lt_archive_cmds_CXX
  16838. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16839. # Commands used to build a loadable module if different from building
  16840. # a shared archive.
  16841. module_cmds=$lt_module_cmds_CXX
  16842. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16843. # Whether we are building with GNU ld or not.
  16844. with_gnu_ld=$lt_with_gnu_ld_CXX
  16845. # Flag that allows shared libraries with undefined symbols to be built.
  16846. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16847. # Flag that enforces no undefined symbols.
  16848. no_undefined_flag=$lt_no_undefined_flag_CXX
  16849. # Flag to hardcode \$libdir into a binary during linking.
  16850. # This must work even if \$libdir does not exist
  16851. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16852. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16853. # during linking. This must work even if \$libdir does not exist.
  16854. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  16855. # Whether we need a single "-rpath" flag with a separated argument.
  16856. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16857. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16858. # DIR into the resulting binary.
  16859. hardcode_direct=$hardcode_direct_CXX
  16860. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16861. # DIR into the resulting binary and the resulting library dependency is
  16862. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16863. # library is relocated.
  16864. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16865. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16866. # into the resulting binary.
  16867. hardcode_minus_L=$hardcode_minus_L_CXX
  16868. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16869. # into the resulting binary.
  16870. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16871. # Set to "yes" if building a shared library automatically hardcodes DIR
  16872. # into the library and all subsequent libraries and executables linked
  16873. # against it.
  16874. hardcode_automatic=$hardcode_automatic_CXX
  16875. # Set to yes if linker adds runtime paths of dependent libraries
  16876. # to runtime path list.
  16877. inherit_rpath=$inherit_rpath_CXX
  16878. # Whether libtool must link a program against all its dependency libraries.
  16879. link_all_deplibs=$link_all_deplibs_CXX
  16880. # Fix the shell variable \$srcfile for the compiler.
  16881. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  16882. # Set to "yes" if exported symbols are required.
  16883. always_export_symbols=$always_export_symbols_CXX
  16884. # The commands to list exported symbols.
  16885. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16886. # Symbols that should not be listed in the preloaded symbols.
  16887. exclude_expsyms=$lt_exclude_expsyms_CXX
  16888. # Symbols that must always be exported.
  16889. include_expsyms=$lt_include_expsyms_CXX
  16890. # Commands necessary for linking programs (against libraries) with templates.
  16891. prelink_cmds=$lt_prelink_cmds_CXX
  16892. # Specify filename containing input files.
  16893. file_list_spec=$lt_file_list_spec_CXX
  16894. # How to hardcode a shared library path into an executable.
  16895. hardcode_action=$hardcode_action_CXX
  16896. # The directories searched by this compiler when creating a shared library.
  16897. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16898. # Dependencies to place before and after the objects being linked to
  16899. # create a shared library.
  16900. predep_objects=$lt_predep_objects_CXX
  16901. postdep_objects=$lt_postdep_objects_CXX
  16902. predeps=$lt_predeps_CXX
  16903. postdeps=$lt_postdeps_CXX
  16904. # The library search path used internally by the compiler when linking
  16905. # a shared library.
  16906. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16907. # ### END LIBTOOL TAG CONFIG: CXX
  16908. _LT_EOF
  16909. ;;
  16910. "default-1":C)
  16911. for ac_file in $CONFIG_FILES; do
  16912. # Support "outfile[:infile[:infile...]]"
  16913. case "$ac_file" in
  16914. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  16915. esac
  16916. # PO directories have a Makefile.in generated from Makefile.in.in.
  16917. case "$ac_file" in */Makefile.in)
  16918. # Adjust a relative srcdir.
  16919. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  16920. ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
  16921. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  16922. # In autoconf-2.13 it is called $ac_given_srcdir.
  16923. # In autoconf-2.50 it is called $srcdir.
  16924. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  16925. case "$ac_given_srcdir" in
  16926. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  16927. /*) top_srcdir="$ac_given_srcdir" ;;
  16928. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  16929. esac
  16930. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  16931. rm -f "$ac_dir/POTFILES"
  16932. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  16933. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  16934. POMAKEFILEDEPS="POTFILES.in"
  16935. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  16936. # on $ac_dir but don't depend on user-specified configuration
  16937. # parameters.
  16938. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  16939. # The LINGUAS file contains the set of available languages.
  16940. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  16941. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
  16942. fi
  16943. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  16944. # Hide the ALL_LINGUAS assigment from automake.
  16945. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  16946. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  16947. else
  16948. # The set of available languages was given in configure.ac.
  16949. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  16950. fi
  16951. case "$ac_given_srcdir" in
  16952. .) srcdirpre= ;;
  16953. *) srcdirpre='$(srcdir)/' ;;
  16954. esac
  16955. POFILES=
  16956. GMOFILES=
  16957. UPDATEPOFILES=
  16958. DUMMYPOFILES=
  16959. for lang in $ALL_LINGUAS; do
  16960. POFILES="$POFILES $srcdirpre$lang.po"
  16961. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  16962. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  16963. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  16964. done
  16965. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  16966. # environment variable.
  16967. INST_LINGUAS=
  16968. if test -n "$ALL_LINGUAS"; then
  16969. for presentlang in $ALL_LINGUAS; do
  16970. useit=no
  16971. if test "%UNSET%" != "$LINGUAS"; then
  16972. desiredlanguages="$LINGUAS"
  16973. else
  16974. desiredlanguages="$ALL_LINGUAS"
  16975. fi
  16976. for desiredlang in $desiredlanguages; do
  16977. # Use the presentlang catalog if desiredlang is
  16978. # a. equal to presentlang, or
  16979. # b. a variant of presentlang (because in this case,
  16980. # presentlang can be used as a fallback for messages
  16981. # which are not translated in the desiredlang catalog).
  16982. case "$desiredlang" in
  16983. "$presentlang"*) useit=yes;;
  16984. esac
  16985. done
  16986. if test $useit = yes; then
  16987. INST_LINGUAS="$INST_LINGUAS $presentlang"
  16988. fi
  16989. done
  16990. fi
  16991. CATALOGS=
  16992. if test -n "$INST_LINGUAS"; then
  16993. for lang in $INST_LINGUAS; do
  16994. CATALOGS="$CATALOGS $lang.gmo"
  16995. done
  16996. fi
  16997. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  16998. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  16999. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  17000. if test -f "$f"; then
  17001. case "$f" in
  17002. *.orig | *.bak | *~) ;;
  17003. *) cat "$f" >> "$ac_dir/Makefile" ;;
  17004. esac
  17005. fi
  17006. done
  17007. fi
  17008. ;;
  17009. esac
  17010. done ;;
  17011. "default":C)
  17012. case "$srcdir" in
  17013. .) srcdirpre= ;;
  17014. *) srcdirpre='$(srcdir)/' ;;
  17015. esac
  17016. POFILES=
  17017. GMOFILES=
  17018. for lang in dummy $OBSOLETE_ALL_LINGUAS; do
  17019. if test $lang != dummy; then
  17020. POFILES="$POFILES $srcdirpre$lang.po"
  17021. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  17022. fi
  17023. done
  17024. sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
  17025. -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
  17026. -e "s,@POFILES@,$POFILES," \
  17027. -e "s,@GMOFILES@,$GMOFILES," \
  17028. po/Makefile.in > po/Makefile ;;
  17029. esac
  17030. done # for ac_tag
  17031. as_fn_exit 0
  17032. _ACEOF
  17033. ac_clean_files=$ac_clean_files_save
  17034. test $ac_write_fail = 0 ||
  17035. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17036. # configure is writing to config.log, and then calls config.status.
  17037. # config.status does its own redirection, appending to config.log.
  17038. # Unfortunately, on DOS this fails, as config.log is still kept open
  17039. # by configure, so config.status won't be able to write to it; its
  17040. # output is simply discarded. So we exec the FD to /dev/null,
  17041. # effectively closing config.log, so it can be properly (re)opened and
  17042. # appended to by config.status. When coming back to configure, we
  17043. # need to make the FD available again.
  17044. if test "$no_create" != yes; then
  17045. ac_cs_success=:
  17046. ac_config_status_args=
  17047. test "$silent" = yes &&
  17048. ac_config_status_args="$ac_config_status_args --quiet"
  17049. exec 5>/dev/null
  17050. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17051. exec 5>>config.log
  17052. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17053. # would make configure fail if this is the last instruction.
  17054. $ac_cs_success || as_fn_exit 1
  17055. fi
  17056. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17057. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17058. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17059. fi
  17060. touch config.status.tmp
  17061. if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
  17062. sed '/as_fn_exit 0/i \
  17063. sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
  17064. touch --reference=Makefile Makefile.tmp \
  17065. mv Makefile.tmp Makefile \
  17066. ' config.status > config.status.tmp
  17067. touch --reference=config.status config.status.tmp
  17068. mv config.status.tmp config.status
  17069. chmod +x config.status
  17070. sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
  17071. touch --reference=Makefile Makefile.tmp
  17072. mv Makefile.tmp Makefile
  17073. else
  17074. rm -f config.status.tmp
  17075. fi