configure 532 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libcc1 version-unused.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='libcc1'
  539. PACKAGE_TARNAME='libcc1'
  540. PACKAGE_VERSION='version-unused'
  541. PACKAGE_STRING='libcc1 version-unused'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="libcc1.cc"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='am__EXEEXT_FALSE
  581. am__EXEEXT_TRUE
  582. LTLIBOBJS
  583. LIBOBJS
  584. ENABLE_PLUGIN_FALSE
  585. ENABLE_PLUGIN_TRUE
  586. DARWIN_DYNAMIC_LOOKUP_FALSE
  587. DARWIN_DYNAMIC_LOOKUP_TRUE
  588. libsuffix
  589. GMPINC
  590. WERROR
  591. WARN_FLAGS
  592. CONFIG_STATUS_DEPENDENCIES
  593. gcc_version
  594. get_gcc_base_ver
  595. CET_HOST_FLAGS
  596. visibility
  597. CXXCPP
  598. am__fastdepCXX_FALSE
  599. am__fastdepCXX_TRUE
  600. CXXDEPMODE
  601. ac_ct_CXX
  602. CXXFLAGS
  603. CXX
  604. OTOOL64
  605. OTOOL
  606. LIPO
  607. NMEDIT
  608. DSYMUTIL
  609. RANLIB
  610. AR
  611. OBJDUMP
  612. LN_S
  613. NM
  614. ac_ct_DUMPBIN
  615. DUMPBIN
  616. LD
  617. FGREP
  618. SED
  619. LIBTOOL
  620. MAINT
  621. MAINTAINER_MODE_FALSE
  622. MAINTAINER_MODE_TRUE
  623. AM_BACKSLASH
  624. AM_DEFAULT_VERBOSITY
  625. AM_DEFAULT_V
  626. AM_V
  627. am__fastdepCC_FALSE
  628. am__fastdepCC_TRUE
  629. CCDEPMODE
  630. am__nodep
  631. AMDEPBACKSLASH
  632. AMDEP_FALSE
  633. AMDEP_TRUE
  634. am__quote
  635. am__include
  636. DEPDIR
  637. am__untar
  638. am__tar
  639. AMTAR
  640. am__leading_dot
  641. SET_MAKE
  642. AWK
  643. mkdir_p
  644. MKDIR_P
  645. INSTALL_STRIP_PROGRAM
  646. STRIP
  647. install_sh
  648. MAKEINFO
  649. AUTOHEADER
  650. AUTOMAKE
  651. AUTOCONF
  652. ACLOCAL
  653. VERSION
  654. PACKAGE
  655. CYGPATH_W
  656. am__isrc
  657. INSTALL_DATA
  658. INSTALL_SCRIPT
  659. INSTALL_PROGRAM
  660. target_subdir
  661. host_subdir
  662. build_subdir
  663. build_libsubdir
  664. target_noncanonical
  665. EGREP
  666. GREP
  667. CPP
  668. OBJEXT
  669. EXEEXT
  670. ac_ct_CC
  671. CPPFLAGS
  672. LDFLAGS
  673. CFLAGS
  674. CC
  675. target_os
  676. target_vendor
  677. target_cpu
  678. target
  679. host_os
  680. host_vendor
  681. host_cpu
  682. host
  683. build_os
  684. build_vendor
  685. build_cpu
  686. build
  687. target_alias
  688. host_alias
  689. build_alias
  690. LIBS
  691. ECHO_T
  692. ECHO_N
  693. ECHO_C
  694. DEFS
  695. mandir
  696. localedir
  697. libdir
  698. psdir
  699. pdfdir
  700. dvidir
  701. htmldir
  702. infodir
  703. docdir
  704. oldincludedir
  705. includedir
  706. localstatedir
  707. sharedstatedir
  708. sysconfdir
  709. datadir
  710. datarootdir
  711. libexecdir
  712. sbindir
  713. bindir
  714. program_transform_name
  715. prefix
  716. exec_prefix
  717. PACKAGE_URL
  718. PACKAGE_BUGREPORT
  719. PACKAGE_STRING
  720. PACKAGE_VERSION
  721. PACKAGE_TARNAME
  722. PACKAGE_NAME
  723. PATH_SEPARATOR
  724. SHELL'
  725. ac_subst_files=''
  726. ac_user_opts='
  727. enable_option_checking
  728. with_build_libsubdir
  729. enable_dependency_tracking
  730. enable_silent_rules
  731. enable_maintainer_mode
  732. enable_static
  733. enable_shared
  734. with_pic
  735. enable_fast_install
  736. with_gnu_ld
  737. enable_libtool_lock
  738. enable_cet
  739. with_gcc_major_version_only
  740. enable_werror_always
  741. enable_plugin
  742. '
  743. ac_precious_vars='build_alias
  744. host_alias
  745. target_alias
  746. CC
  747. CFLAGS
  748. LDFLAGS
  749. LIBS
  750. CPPFLAGS
  751. CPP
  752. CXX
  753. CXXFLAGS
  754. CCC
  755. CXXCPP
  756. GMPINC'
  757. # Initialize some variables set by options.
  758. ac_init_help=
  759. ac_init_version=false
  760. ac_unrecognized_opts=
  761. ac_unrecognized_sep=
  762. # The variables have the same names as the options, with
  763. # dashes changed to underlines.
  764. cache_file=/dev/null
  765. exec_prefix=NONE
  766. no_create=
  767. no_recursion=
  768. prefix=NONE
  769. program_prefix=NONE
  770. program_suffix=NONE
  771. program_transform_name=s,x,x,
  772. silent=
  773. site=
  774. srcdir=
  775. verbose=
  776. x_includes=NONE
  777. x_libraries=NONE
  778. # Installation directory options.
  779. # These are left unexpanded so users can "make install exec_prefix=/foo"
  780. # and all the variables that are supposed to be based on exec_prefix
  781. # by default will actually change.
  782. # Use braces instead of parens because sh, perl, etc. also accept them.
  783. # (The list follows the same order as the GNU Coding Standards.)
  784. bindir='${exec_prefix}/bin'
  785. sbindir='${exec_prefix}/sbin'
  786. libexecdir='${exec_prefix}/libexec'
  787. datarootdir='${prefix}/share'
  788. datadir='${datarootdir}'
  789. sysconfdir='${prefix}/etc'
  790. sharedstatedir='${prefix}/com'
  791. localstatedir='${prefix}/var'
  792. includedir='${prefix}/include'
  793. oldincludedir='/usr/include'
  794. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  795. infodir='${datarootdir}/info'
  796. htmldir='${docdir}'
  797. dvidir='${docdir}'
  798. pdfdir='${docdir}'
  799. psdir='${docdir}'
  800. libdir='${exec_prefix}/lib'
  801. localedir='${datarootdir}/locale'
  802. mandir='${datarootdir}/man'
  803. ac_prev=
  804. ac_dashdash=
  805. for ac_option
  806. do
  807. # If the previous option needs an argument, assign it.
  808. if test -n "$ac_prev"; then
  809. eval $ac_prev=\$ac_option
  810. ac_prev=
  811. continue
  812. fi
  813. case $ac_option in
  814. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  815. *=) ac_optarg= ;;
  816. *) ac_optarg=yes ;;
  817. esac
  818. # Accept the important Cygnus configure options, so we can diagnose typos.
  819. case $ac_dashdash$ac_option in
  820. --)
  821. ac_dashdash=yes ;;
  822. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  823. ac_prev=bindir ;;
  824. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  825. bindir=$ac_optarg ;;
  826. -build | --build | --buil | --bui | --bu)
  827. ac_prev=build_alias ;;
  828. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  829. build_alias=$ac_optarg ;;
  830. -cache-file | --cache-file | --cache-fil | --cache-fi \
  831. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  832. ac_prev=cache_file ;;
  833. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  834. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  835. cache_file=$ac_optarg ;;
  836. --config-cache | -C)
  837. cache_file=config.cache ;;
  838. -datadir | --datadir | --datadi | --datad)
  839. ac_prev=datadir ;;
  840. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  841. datadir=$ac_optarg ;;
  842. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  843. | --dataroo | --dataro | --datar)
  844. ac_prev=datarootdir ;;
  845. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  846. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  847. datarootdir=$ac_optarg ;;
  848. -disable-* | --disable-*)
  849. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  850. # Reject names that are not valid shell variable names.
  851. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  852. as_fn_error $? "invalid feature name: $ac_useropt"
  853. ac_useropt_orig=$ac_useropt
  854. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  855. case $ac_user_opts in
  856. *"
  857. "enable_$ac_useropt"
  858. "*) ;;
  859. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  860. ac_unrecognized_sep=', ';;
  861. esac
  862. eval enable_$ac_useropt=no ;;
  863. -docdir | --docdir | --docdi | --doc | --do)
  864. ac_prev=docdir ;;
  865. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  866. docdir=$ac_optarg ;;
  867. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  868. ac_prev=dvidir ;;
  869. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  870. dvidir=$ac_optarg ;;
  871. -enable-* | --enable-*)
  872. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  873. # Reject names that are not valid shell variable names.
  874. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  875. as_fn_error $? "invalid feature name: $ac_useropt"
  876. ac_useropt_orig=$ac_useropt
  877. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  878. case $ac_user_opts in
  879. *"
  880. "enable_$ac_useropt"
  881. "*) ;;
  882. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  883. ac_unrecognized_sep=', ';;
  884. esac
  885. eval enable_$ac_useropt=\$ac_optarg ;;
  886. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  887. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  888. | --exec | --exe | --ex)
  889. ac_prev=exec_prefix ;;
  890. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  891. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  892. | --exec=* | --exe=* | --ex=*)
  893. exec_prefix=$ac_optarg ;;
  894. -gas | --gas | --ga | --g)
  895. # Obsolete; use --with-gas.
  896. with_gas=yes ;;
  897. -help | --help | --hel | --he | -h)
  898. ac_init_help=long ;;
  899. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  900. ac_init_help=recursive ;;
  901. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  902. ac_init_help=short ;;
  903. -host | --host | --hos | --ho)
  904. ac_prev=host_alias ;;
  905. -host=* | --host=* | --hos=* | --ho=*)
  906. host_alias=$ac_optarg ;;
  907. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  908. ac_prev=htmldir ;;
  909. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  910. | --ht=*)
  911. htmldir=$ac_optarg ;;
  912. -includedir | --includedir | --includedi | --included | --include \
  913. | --includ | --inclu | --incl | --inc)
  914. ac_prev=includedir ;;
  915. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  916. | --includ=* | --inclu=* | --incl=* | --inc=*)
  917. includedir=$ac_optarg ;;
  918. -infodir | --infodir | --infodi | --infod | --info | --inf)
  919. ac_prev=infodir ;;
  920. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  921. infodir=$ac_optarg ;;
  922. -libdir | --libdir | --libdi | --libd)
  923. ac_prev=libdir ;;
  924. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  925. libdir=$ac_optarg ;;
  926. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  927. | --libexe | --libex | --libe)
  928. ac_prev=libexecdir ;;
  929. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  930. | --libexe=* | --libex=* | --libe=*)
  931. libexecdir=$ac_optarg ;;
  932. -localedir | --localedir | --localedi | --localed | --locale)
  933. ac_prev=localedir ;;
  934. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  935. localedir=$ac_optarg ;;
  936. -localstatedir | --localstatedir | --localstatedi | --localstated \
  937. | --localstate | --localstat | --localsta | --localst | --locals)
  938. ac_prev=localstatedir ;;
  939. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  940. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  941. localstatedir=$ac_optarg ;;
  942. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  943. ac_prev=mandir ;;
  944. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  945. mandir=$ac_optarg ;;
  946. -nfp | --nfp | --nf)
  947. # Obsolete; use --without-fp.
  948. with_fp=no ;;
  949. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  950. | --no-cr | --no-c | -n)
  951. no_create=yes ;;
  952. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  953. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  954. no_recursion=yes ;;
  955. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  956. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  957. | --oldin | --oldi | --old | --ol | --o)
  958. ac_prev=oldincludedir ;;
  959. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  960. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  961. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  962. oldincludedir=$ac_optarg ;;
  963. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  964. ac_prev=prefix ;;
  965. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  966. prefix=$ac_optarg ;;
  967. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  968. | --program-pre | --program-pr | --program-p)
  969. ac_prev=program_prefix ;;
  970. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  971. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  972. program_prefix=$ac_optarg ;;
  973. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  974. | --program-suf | --program-su | --program-s)
  975. ac_prev=program_suffix ;;
  976. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  977. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  978. program_suffix=$ac_optarg ;;
  979. -program-transform-name | --program-transform-name \
  980. | --program-transform-nam | --program-transform-na \
  981. | --program-transform-n | --program-transform- \
  982. | --program-transform | --program-transfor \
  983. | --program-transfo | --program-transf \
  984. | --program-trans | --program-tran \
  985. | --progr-tra | --program-tr | --program-t)
  986. ac_prev=program_transform_name ;;
  987. -program-transform-name=* | --program-transform-name=* \
  988. | --program-transform-nam=* | --program-transform-na=* \
  989. | --program-transform-n=* | --program-transform-=* \
  990. | --program-transform=* | --program-transfor=* \
  991. | --program-transfo=* | --program-transf=* \
  992. | --program-trans=* | --program-tran=* \
  993. | --progr-tra=* | --program-tr=* | --program-t=*)
  994. program_transform_name=$ac_optarg ;;
  995. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  996. ac_prev=pdfdir ;;
  997. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  998. pdfdir=$ac_optarg ;;
  999. -psdir | --psdir | --psdi | --psd | --ps)
  1000. ac_prev=psdir ;;
  1001. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1002. psdir=$ac_optarg ;;
  1003. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1004. | -silent | --silent | --silen | --sile | --sil)
  1005. silent=yes ;;
  1006. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1007. ac_prev=sbindir ;;
  1008. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1009. | --sbi=* | --sb=*)
  1010. sbindir=$ac_optarg ;;
  1011. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1012. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1013. | --sharedst | --shareds | --shared | --share | --shar \
  1014. | --sha | --sh)
  1015. ac_prev=sharedstatedir ;;
  1016. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1017. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1018. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1019. | --sha=* | --sh=*)
  1020. sharedstatedir=$ac_optarg ;;
  1021. -site | --site | --sit)
  1022. ac_prev=site ;;
  1023. -site=* | --site=* | --sit=*)
  1024. site=$ac_optarg ;;
  1025. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1026. ac_prev=srcdir ;;
  1027. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1028. srcdir=$ac_optarg ;;
  1029. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1030. | --syscon | --sysco | --sysc | --sys | --sy)
  1031. ac_prev=sysconfdir ;;
  1032. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1033. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1034. sysconfdir=$ac_optarg ;;
  1035. -target | --target | --targe | --targ | --tar | --ta | --t)
  1036. ac_prev=target_alias ;;
  1037. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1038. target_alias=$ac_optarg ;;
  1039. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1040. verbose=yes ;;
  1041. -version | --version | --versio | --versi | --vers | -V)
  1042. ac_init_version=: ;;
  1043. -with-* | --with-*)
  1044. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1045. # Reject names that are not valid shell variable names.
  1046. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1047. as_fn_error $? "invalid package name: $ac_useropt"
  1048. ac_useropt_orig=$ac_useropt
  1049. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1050. case $ac_user_opts in
  1051. *"
  1052. "with_$ac_useropt"
  1053. "*) ;;
  1054. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1055. ac_unrecognized_sep=', ';;
  1056. esac
  1057. eval with_$ac_useropt=\$ac_optarg ;;
  1058. -without-* | --without-*)
  1059. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1060. # Reject names that are not valid shell variable names.
  1061. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1062. as_fn_error $? "invalid package name: $ac_useropt"
  1063. ac_useropt_orig=$ac_useropt
  1064. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1065. case $ac_user_opts in
  1066. *"
  1067. "with_$ac_useropt"
  1068. "*) ;;
  1069. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1070. ac_unrecognized_sep=', ';;
  1071. esac
  1072. eval with_$ac_useropt=no ;;
  1073. --x)
  1074. # Obsolete; use --with-x.
  1075. with_x=yes ;;
  1076. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1077. | --x-incl | --x-inc | --x-in | --x-i)
  1078. ac_prev=x_includes ;;
  1079. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1080. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1081. x_includes=$ac_optarg ;;
  1082. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1083. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1084. ac_prev=x_libraries ;;
  1085. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1086. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1087. x_libraries=$ac_optarg ;;
  1088. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1089. Try \`$0 --help' for more information"
  1090. ;;
  1091. *=*)
  1092. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1093. # Reject names that are not valid shell variable names.
  1094. case $ac_envvar in #(
  1095. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1096. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1097. esac
  1098. eval $ac_envvar=\$ac_optarg
  1099. export $ac_envvar ;;
  1100. *)
  1101. # FIXME: should be removed in autoconf 3.0.
  1102. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1103. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1104. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1105. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1106. ;;
  1107. esac
  1108. done
  1109. if test -n "$ac_prev"; then
  1110. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1111. as_fn_error $? "missing argument to $ac_option"
  1112. fi
  1113. if test -n "$ac_unrecognized_opts"; then
  1114. case $enable_option_checking in
  1115. no) ;;
  1116. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1117. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1118. esac
  1119. fi
  1120. # Check all directory arguments for consistency.
  1121. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1122. datadir sysconfdir sharedstatedir localstatedir includedir \
  1123. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1124. libdir localedir mandir
  1125. do
  1126. eval ac_val=\$$ac_var
  1127. # Remove trailing slashes.
  1128. case $ac_val in
  1129. */ )
  1130. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1131. eval $ac_var=\$ac_val;;
  1132. esac
  1133. # Be sure to have absolute directory names.
  1134. case $ac_val in
  1135. [\\/$]* | ?:[\\/]* ) continue;;
  1136. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1137. esac
  1138. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1139. done
  1140. # There might be people who depend on the old broken behavior: `$host'
  1141. # used to hold the argument of --host etc.
  1142. # FIXME: To remove some day.
  1143. build=$build_alias
  1144. host=$host_alias
  1145. target=$target_alias
  1146. # FIXME: To remove some day.
  1147. if test "x$host_alias" != x; then
  1148. if test "x$build_alias" = x; then
  1149. cross_compiling=maybe
  1150. elif test "x$build_alias" != "x$host_alias"; then
  1151. cross_compiling=yes
  1152. fi
  1153. fi
  1154. ac_tool_prefix=
  1155. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1156. test "$silent" = yes && exec 6>/dev/null
  1157. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1158. ac_ls_di=`ls -di .` &&
  1159. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1160. as_fn_error $? "working directory cannot be determined"
  1161. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1162. as_fn_error $? "pwd does not report name of working directory"
  1163. # Find the source files, if location was not specified.
  1164. if test -z "$srcdir"; then
  1165. ac_srcdir_defaulted=yes
  1166. # Try the directory containing this script, then the parent directory.
  1167. ac_confdir=`$as_dirname -- "$as_myself" ||
  1168. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1169. X"$as_myself" : 'X\(//\)[^/]' \| \
  1170. X"$as_myself" : 'X\(//\)$' \| \
  1171. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1172. $as_echo X"$as_myself" |
  1173. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1174. s//\1/
  1175. q
  1176. }
  1177. /^X\(\/\/\)[^/].*/{
  1178. s//\1/
  1179. q
  1180. }
  1181. /^X\(\/\/\)$/{
  1182. s//\1/
  1183. q
  1184. }
  1185. /^X\(\/\).*/{
  1186. s//\1/
  1187. q
  1188. }
  1189. s/.*/./; q'`
  1190. srcdir=$ac_confdir
  1191. if test ! -r "$srcdir/$ac_unique_file"; then
  1192. srcdir=..
  1193. fi
  1194. else
  1195. ac_srcdir_defaulted=no
  1196. fi
  1197. if test ! -r "$srcdir/$ac_unique_file"; then
  1198. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1199. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1200. fi
  1201. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1202. ac_abs_confdir=`(
  1203. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1204. pwd)`
  1205. # When building in place, set srcdir=.
  1206. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1207. srcdir=.
  1208. fi
  1209. # Remove unnecessary trailing slashes from srcdir.
  1210. # Double slashes in file names in object file debugging info
  1211. # mess up M-x gdb in Emacs.
  1212. case $srcdir in
  1213. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1214. esac
  1215. for ac_var in $ac_precious_vars; do
  1216. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1217. eval ac_env_${ac_var}_value=\$${ac_var}
  1218. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1219. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1220. done
  1221. #
  1222. # Report the --help message.
  1223. #
  1224. if test "$ac_init_help" = "long"; then
  1225. # Omit some internal or obsolete options to make the list less imposing.
  1226. # This message is too long to be a string in the A/UX 3.1 sh.
  1227. cat <<_ACEOF
  1228. \`configure' configures libcc1 version-unused to adapt to many kinds of systems.
  1229. Usage: $0 [OPTION]... [VAR=VALUE]...
  1230. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1231. VAR=VALUE. See below for descriptions of some of the useful variables.
  1232. Defaults for the options are specified in brackets.
  1233. Configuration:
  1234. -h, --help display this help and exit
  1235. --help=short display options specific to this package
  1236. --help=recursive display the short help of all the included packages
  1237. -V, --version display version information and exit
  1238. -q, --quiet, --silent do not print \`checking ...' messages
  1239. --cache-file=FILE cache test results in FILE [disabled]
  1240. -C, --config-cache alias for \`--cache-file=config.cache'
  1241. -n, --no-create do not create output files
  1242. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1243. Installation directories:
  1244. --prefix=PREFIX install architecture-independent files in PREFIX
  1245. [$ac_default_prefix]
  1246. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1247. [PREFIX]
  1248. By default, \`make install' will install all the files in
  1249. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1250. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1251. for instance \`--prefix=\$HOME'.
  1252. For better control, use the options below.
  1253. Fine tuning of the installation directories:
  1254. --bindir=DIR user executables [EPREFIX/bin]
  1255. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1256. --libexecdir=DIR program executables [EPREFIX/libexec]
  1257. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1258. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1259. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1260. --libdir=DIR object code libraries [EPREFIX/lib]
  1261. --includedir=DIR C header files [PREFIX/include]
  1262. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1263. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1264. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1265. --infodir=DIR info documentation [DATAROOTDIR/info]
  1266. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1267. --mandir=DIR man documentation [DATAROOTDIR/man]
  1268. --docdir=DIR documentation root [DATAROOTDIR/doc/libcc1]
  1269. --htmldir=DIR html documentation [DOCDIR]
  1270. --dvidir=DIR dvi documentation [DOCDIR]
  1271. --pdfdir=DIR pdf documentation [DOCDIR]
  1272. --psdir=DIR ps documentation [DOCDIR]
  1273. _ACEOF
  1274. cat <<\_ACEOF
  1275. Program names:
  1276. --program-prefix=PREFIX prepend PREFIX to installed program names
  1277. --program-suffix=SUFFIX append SUFFIX to installed program names
  1278. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1279. System types:
  1280. --build=BUILD configure for building on BUILD [guessed]
  1281. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1282. --target=TARGET configure for building compilers for TARGET [HOST]
  1283. _ACEOF
  1284. fi
  1285. if test -n "$ac_init_help"; then
  1286. case $ac_init_help in
  1287. short | recursive ) echo "Configuration of libcc1 version-unused:";;
  1288. esac
  1289. cat <<\_ACEOF
  1290. Optional Features:
  1291. --disable-option-checking ignore unrecognized --enable/--with options
  1292. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1293. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1294. --enable-dependency-tracking
  1295. do not reject slow dependency extractors
  1296. --disable-dependency-tracking
  1297. speeds up one-time build
  1298. --enable-silent-rules less verbose build output (undo: "make V=1")
  1299. --disable-silent-rules verbose build output (undo: "make V=0")
  1300. --enable-maintainer-mode
  1301. enable make rules and dependencies not useful (and
  1302. sometimes confusing) to the casual installer
  1303. --enable-static[=PKGS] build static libraries [default=no]
  1304. --enable-shared[=PKGS] build shared libraries [default=yes]
  1305. --enable-fast-install[=PKGS]
  1306. optimize for fast installation [default=yes]
  1307. --disable-libtool-lock avoid locking (might break parallel builds)
  1308. --enable-cet enable Intel CET in host libraries [default=auto]
  1309. --enable-werror-always enable -Werror despite compiler version
  1310. --enable-plugin enable plugin support
  1311. Optional Packages:
  1312. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1313. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1314. --with-build-libsubdir=DIR Directory where to find libraries for build system
  1315. --with-pic try to use only PIC/non-PIC objects [default=use
  1316. both]
  1317. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1318. --with-gcc-major-version-only
  1319. use only GCC major number in filesystem paths
  1320. Some influential environment variables:
  1321. CC C compiler command
  1322. CFLAGS C compiler flags
  1323. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1324. nonstandard directory <lib dir>
  1325. LIBS libraries to pass to the linker, e.g. -l<library>
  1326. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1327. you have headers in a nonstandard directory <include dir>
  1328. CPP C preprocessor
  1329. CXX C++ compiler command
  1330. CXXFLAGS C++ compiler flags
  1331. CXXCPP C++ preprocessor
  1332. GMPINC How to find GMP include files
  1333. Use these variables to override the choices made by `configure' or to help
  1334. it to find libraries and programs with nonstandard names/locations.
  1335. Report bugs to the package provider.
  1336. _ACEOF
  1337. ac_status=$?
  1338. fi
  1339. if test "$ac_init_help" = "recursive"; then
  1340. # If there are subdirs, report their specific --help.
  1341. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1342. test -d "$ac_dir" ||
  1343. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1344. continue
  1345. ac_builddir=.
  1346. case "$ac_dir" in
  1347. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1348. *)
  1349. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1350. # A ".." for each directory in $ac_dir_suffix.
  1351. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1352. case $ac_top_builddir_sub in
  1353. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1354. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1355. esac ;;
  1356. esac
  1357. ac_abs_top_builddir=$ac_pwd
  1358. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1359. # for backward compatibility:
  1360. ac_top_builddir=$ac_top_build_prefix
  1361. case $srcdir in
  1362. .) # We are building in place.
  1363. ac_srcdir=.
  1364. ac_top_srcdir=$ac_top_builddir_sub
  1365. ac_abs_top_srcdir=$ac_pwd ;;
  1366. [\\/]* | ?:[\\/]* ) # Absolute name.
  1367. ac_srcdir=$srcdir$ac_dir_suffix;
  1368. ac_top_srcdir=$srcdir
  1369. ac_abs_top_srcdir=$srcdir ;;
  1370. *) # Relative name.
  1371. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1372. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1373. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1374. esac
  1375. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1376. cd "$ac_dir" || { ac_status=$?; continue; }
  1377. # Check for guested configure.
  1378. if test -f "$ac_srcdir/configure.gnu"; then
  1379. echo &&
  1380. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1381. elif test -f "$ac_srcdir/configure"; then
  1382. echo &&
  1383. $SHELL "$ac_srcdir/configure" --help=recursive
  1384. else
  1385. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1386. fi || ac_status=$?
  1387. cd "$ac_pwd" || { ac_status=$?; break; }
  1388. done
  1389. fi
  1390. test -n "$ac_init_help" && exit $ac_status
  1391. if $ac_init_version; then
  1392. cat <<\_ACEOF
  1393. libcc1 configure version-unused
  1394. generated by GNU Autoconf 2.69
  1395. Copyright (C) 2012 Free Software Foundation, Inc.
  1396. This configure script is free software; the Free Software Foundation
  1397. gives unlimited permission to copy, distribute and modify it.
  1398. _ACEOF
  1399. exit
  1400. fi
  1401. ## ------------------------ ##
  1402. ## Autoconf initialization. ##
  1403. ## ------------------------ ##
  1404. # ac_fn_c_try_compile LINENO
  1405. # --------------------------
  1406. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1407. ac_fn_c_try_compile ()
  1408. {
  1409. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1410. rm -f conftest.$ac_objext
  1411. if { { ac_try="$ac_compile"
  1412. case "(($ac_try" in
  1413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1414. *) ac_try_echo=$ac_try;;
  1415. esac
  1416. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1417. $as_echo "$ac_try_echo"; } >&5
  1418. (eval "$ac_compile") 2>conftest.err
  1419. ac_status=$?
  1420. if test -s conftest.err; then
  1421. grep -v '^ *+' conftest.err >conftest.er1
  1422. cat conftest.er1 >&5
  1423. mv -f conftest.er1 conftest.err
  1424. fi
  1425. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1426. test $ac_status = 0; } && {
  1427. test -z "$ac_c_werror_flag" ||
  1428. test ! -s conftest.err
  1429. } && test -s conftest.$ac_objext; then :
  1430. ac_retval=0
  1431. else
  1432. $as_echo "$as_me: failed program was:" >&5
  1433. sed 's/^/| /' conftest.$ac_ext >&5
  1434. ac_retval=1
  1435. fi
  1436. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1437. as_fn_set_status $ac_retval
  1438. } # ac_fn_c_try_compile
  1439. # ac_fn_c_try_cpp LINENO
  1440. # ----------------------
  1441. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1442. ac_fn_c_try_cpp ()
  1443. {
  1444. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1445. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1446. case "(($ac_try" in
  1447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1448. *) ac_try_echo=$ac_try;;
  1449. esac
  1450. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1451. $as_echo "$ac_try_echo"; } >&5
  1452. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1453. ac_status=$?
  1454. if test -s conftest.err; then
  1455. grep -v '^ *+' conftest.err >conftest.er1
  1456. cat conftest.er1 >&5
  1457. mv -f conftest.er1 conftest.err
  1458. fi
  1459. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1460. test $ac_status = 0; } > conftest.i && {
  1461. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1462. test ! -s conftest.err
  1463. }; then :
  1464. ac_retval=0
  1465. else
  1466. $as_echo "$as_me: failed program was:" >&5
  1467. sed 's/^/| /' conftest.$ac_ext >&5
  1468. ac_retval=1
  1469. fi
  1470. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1471. as_fn_set_status $ac_retval
  1472. } # ac_fn_c_try_cpp
  1473. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1474. # -------------------------------------------------------
  1475. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1476. # the include files in INCLUDES and setting the cache variable VAR
  1477. # accordingly.
  1478. ac_fn_c_check_header_mongrel ()
  1479. {
  1480. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1481. if eval \${$3+:} false; then :
  1482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1483. $as_echo_n "checking for $2... " >&6; }
  1484. if eval \${$3+:} false; then :
  1485. $as_echo_n "(cached) " >&6
  1486. fi
  1487. eval ac_res=\$$3
  1488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1489. $as_echo "$ac_res" >&6; }
  1490. else
  1491. # Is the header compilable?
  1492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1493. $as_echo_n "checking $2 usability... " >&6; }
  1494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1495. /* end confdefs.h. */
  1496. $4
  1497. #include <$2>
  1498. _ACEOF
  1499. if ac_fn_c_try_compile "$LINENO"; then :
  1500. ac_header_compiler=yes
  1501. else
  1502. ac_header_compiler=no
  1503. fi
  1504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1506. $as_echo "$ac_header_compiler" >&6; }
  1507. # Is the header present?
  1508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1509. $as_echo_n "checking $2 presence... " >&6; }
  1510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1511. /* end confdefs.h. */
  1512. #include <$2>
  1513. _ACEOF
  1514. if ac_fn_c_try_cpp "$LINENO"; then :
  1515. ac_header_preproc=yes
  1516. else
  1517. ac_header_preproc=no
  1518. fi
  1519. rm -f conftest.err conftest.i conftest.$ac_ext
  1520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1521. $as_echo "$ac_header_preproc" >&6; }
  1522. # So? What about this header?
  1523. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1524. yes:no: )
  1525. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1526. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1528. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1529. ;;
  1530. no:yes:* )
  1531. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1532. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1534. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1536. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1537. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1538. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1540. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1541. ;;
  1542. esac
  1543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1544. $as_echo_n "checking for $2... " >&6; }
  1545. if eval \${$3+:} false; then :
  1546. $as_echo_n "(cached) " >&6
  1547. else
  1548. eval "$3=\$ac_header_compiler"
  1549. fi
  1550. eval ac_res=\$$3
  1551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1552. $as_echo "$ac_res" >&6; }
  1553. fi
  1554. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1555. } # ac_fn_c_check_header_mongrel
  1556. # ac_fn_c_try_run LINENO
  1557. # ----------------------
  1558. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1559. # that executables *can* be run.
  1560. ac_fn_c_try_run ()
  1561. {
  1562. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1563. if { { ac_try="$ac_link"
  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_link") 2>&5
  1571. ac_status=$?
  1572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1573. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1574. { { case "(($ac_try" in
  1575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1576. *) ac_try_echo=$ac_try;;
  1577. esac
  1578. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1579. $as_echo "$ac_try_echo"; } >&5
  1580. (eval "$ac_try") 2>&5
  1581. ac_status=$?
  1582. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1583. test $ac_status = 0; }; }; then :
  1584. ac_retval=0
  1585. else
  1586. $as_echo "$as_me: program exited with status $ac_status" >&5
  1587. $as_echo "$as_me: failed program was:" >&5
  1588. sed 's/^/| /' conftest.$ac_ext >&5
  1589. ac_retval=$ac_status
  1590. fi
  1591. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1592. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1593. as_fn_set_status $ac_retval
  1594. } # ac_fn_c_try_run
  1595. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1596. # -------------------------------------------------------
  1597. # Tests whether HEADER exists and can be compiled using the include files in
  1598. # INCLUDES, setting the cache variable VAR accordingly.
  1599. ac_fn_c_check_header_compile ()
  1600. {
  1601. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1603. $as_echo_n "checking for $2... " >&6; }
  1604. if eval \${$3+:} false; then :
  1605. $as_echo_n "(cached) " >&6
  1606. else
  1607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1608. /* end confdefs.h. */
  1609. $4
  1610. #include <$2>
  1611. _ACEOF
  1612. if ac_fn_c_try_compile "$LINENO"; then :
  1613. eval "$3=yes"
  1614. else
  1615. eval "$3=no"
  1616. fi
  1617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1618. fi
  1619. eval ac_res=\$$3
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1621. $as_echo "$ac_res" >&6; }
  1622. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1623. } # ac_fn_c_check_header_compile
  1624. # ac_fn_c_try_link LINENO
  1625. # -----------------------
  1626. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1627. ac_fn_c_try_link ()
  1628. {
  1629. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1630. rm -f conftest.$ac_objext conftest$ac_exeext
  1631. if { { ac_try="$ac_link"
  1632. case "(($ac_try" in
  1633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1634. *) ac_try_echo=$ac_try;;
  1635. esac
  1636. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1637. $as_echo "$ac_try_echo"; } >&5
  1638. (eval "$ac_link") 2>conftest.err
  1639. ac_status=$?
  1640. if test -s conftest.err; then
  1641. grep -v '^ *+' conftest.err >conftest.er1
  1642. cat conftest.er1 >&5
  1643. mv -f conftest.er1 conftest.err
  1644. fi
  1645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1646. test $ac_status = 0; } && {
  1647. test -z "$ac_c_werror_flag" ||
  1648. test ! -s conftest.err
  1649. } && test -s conftest$ac_exeext && {
  1650. test "$cross_compiling" = yes ||
  1651. test -x conftest$ac_exeext
  1652. }; then :
  1653. ac_retval=0
  1654. else
  1655. $as_echo "$as_me: failed program was:" >&5
  1656. sed 's/^/| /' conftest.$ac_ext >&5
  1657. ac_retval=1
  1658. fi
  1659. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1660. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1661. # interfere with the next link command; also delete a directory that is
  1662. # left behind by Apple's compiler. We do this before executing the actions.
  1663. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1664. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1665. as_fn_set_status $ac_retval
  1666. } # ac_fn_c_try_link
  1667. # ac_fn_c_check_func LINENO FUNC VAR
  1668. # ----------------------------------
  1669. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1670. ac_fn_c_check_func ()
  1671. {
  1672. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1674. $as_echo_n "checking for $2... " >&6; }
  1675. if eval \${$3+:} false; then :
  1676. $as_echo_n "(cached) " >&6
  1677. else
  1678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1679. /* end confdefs.h. */
  1680. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1681. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1682. #define $2 innocuous_$2
  1683. /* System header to define __stub macros and hopefully few prototypes,
  1684. which can conflict with char $2 (); below.
  1685. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1686. <limits.h> exists even on freestanding compilers. */
  1687. #ifdef __STDC__
  1688. # include <limits.h>
  1689. #else
  1690. # include <assert.h>
  1691. #endif
  1692. #undef $2
  1693. /* Override any GCC internal prototype to avoid an error.
  1694. Use char because int might match the return type of a GCC
  1695. builtin and then its argument prototype would still apply. */
  1696. #ifdef __cplusplus
  1697. extern "C"
  1698. #endif
  1699. char $2 ();
  1700. /* The GNU C library defines this for functions which it implements
  1701. to always fail with ENOSYS. Some functions are actually named
  1702. something starting with __ and the normal name is an alias. */
  1703. #if defined __stub_$2 || defined __stub___$2
  1704. choke me
  1705. #endif
  1706. int
  1707. main ()
  1708. {
  1709. return $2 ();
  1710. ;
  1711. return 0;
  1712. }
  1713. _ACEOF
  1714. if ac_fn_c_try_link "$LINENO"; then :
  1715. eval "$3=yes"
  1716. else
  1717. eval "$3=no"
  1718. fi
  1719. rm -f core conftest.err conftest.$ac_objext \
  1720. conftest$ac_exeext conftest.$ac_ext
  1721. fi
  1722. eval ac_res=\$$3
  1723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1724. $as_echo "$ac_res" >&6; }
  1725. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1726. } # ac_fn_c_check_func
  1727. # ac_fn_cxx_try_compile LINENO
  1728. # ----------------------------
  1729. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1730. ac_fn_cxx_try_compile ()
  1731. {
  1732. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1733. rm -f conftest.$ac_objext
  1734. if { { ac_try="$ac_compile"
  1735. case "(($ac_try" in
  1736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1737. *) ac_try_echo=$ac_try;;
  1738. esac
  1739. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1740. $as_echo "$ac_try_echo"; } >&5
  1741. (eval "$ac_compile") 2>conftest.err
  1742. ac_status=$?
  1743. if test -s conftest.err; then
  1744. grep -v '^ *+' conftest.err >conftest.er1
  1745. cat conftest.er1 >&5
  1746. mv -f conftest.er1 conftest.err
  1747. fi
  1748. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1749. test $ac_status = 0; } && {
  1750. test -z "$ac_cxx_werror_flag" ||
  1751. test ! -s conftest.err
  1752. } && test -s conftest.$ac_objext; then :
  1753. ac_retval=0
  1754. else
  1755. $as_echo "$as_me: failed program was:" >&5
  1756. sed 's/^/| /' conftest.$ac_ext >&5
  1757. ac_retval=1
  1758. fi
  1759. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1760. as_fn_set_status $ac_retval
  1761. } # ac_fn_cxx_try_compile
  1762. # ac_fn_cxx_try_cpp LINENO
  1763. # ------------------------
  1764. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1765. ac_fn_cxx_try_cpp ()
  1766. {
  1767. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1768. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1769. case "(($ac_try" in
  1770. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1771. *) ac_try_echo=$ac_try;;
  1772. esac
  1773. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1774. $as_echo "$ac_try_echo"; } >&5
  1775. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1776. ac_status=$?
  1777. if test -s conftest.err; then
  1778. grep -v '^ *+' conftest.err >conftest.er1
  1779. cat conftest.er1 >&5
  1780. mv -f conftest.er1 conftest.err
  1781. fi
  1782. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1783. test $ac_status = 0; } > conftest.i && {
  1784. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1785. test ! -s conftest.err
  1786. }; then :
  1787. ac_retval=0
  1788. else
  1789. $as_echo "$as_me: failed program was:" >&5
  1790. sed 's/^/| /' conftest.$ac_ext >&5
  1791. ac_retval=1
  1792. fi
  1793. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1794. as_fn_set_status $ac_retval
  1795. } # ac_fn_cxx_try_cpp
  1796. # ac_fn_cxx_try_link LINENO
  1797. # -------------------------
  1798. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1799. ac_fn_cxx_try_link ()
  1800. {
  1801. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1802. rm -f conftest.$ac_objext conftest$ac_exeext
  1803. if { { ac_try="$ac_link"
  1804. case "(($ac_try" in
  1805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1806. *) ac_try_echo=$ac_try;;
  1807. esac
  1808. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1809. $as_echo "$ac_try_echo"; } >&5
  1810. (eval "$ac_link") 2>conftest.err
  1811. ac_status=$?
  1812. if test -s conftest.err; then
  1813. grep -v '^ *+' conftest.err >conftest.er1
  1814. cat conftest.er1 >&5
  1815. mv -f conftest.er1 conftest.err
  1816. fi
  1817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1818. test $ac_status = 0; } && {
  1819. test -z "$ac_cxx_werror_flag" ||
  1820. test ! -s conftest.err
  1821. } && test -s conftest$ac_exeext && {
  1822. test "$cross_compiling" = yes ||
  1823. test -x conftest$ac_exeext
  1824. }; then :
  1825. ac_retval=0
  1826. else
  1827. $as_echo "$as_me: failed program was:" >&5
  1828. sed 's/^/| /' conftest.$ac_ext >&5
  1829. ac_retval=1
  1830. fi
  1831. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1832. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1833. # interfere with the next link command; also delete a directory that is
  1834. # left behind by Apple's compiler. We do this before executing the actions.
  1835. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1836. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1837. as_fn_set_status $ac_retval
  1838. } # ac_fn_cxx_try_link
  1839. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1840. # ---------------------------------------------
  1841. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1842. # accordingly.
  1843. ac_fn_c_check_decl ()
  1844. {
  1845. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1846. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1847. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1849. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1850. if eval \${$3+:} false; then :
  1851. $as_echo_n "(cached) " >&6
  1852. else
  1853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1854. /* end confdefs.h. */
  1855. $4
  1856. int
  1857. main ()
  1858. {
  1859. #ifndef $as_decl_name
  1860. #ifdef __cplusplus
  1861. (void) $as_decl_use;
  1862. #else
  1863. (void) $as_decl_name;
  1864. #endif
  1865. #endif
  1866. ;
  1867. return 0;
  1868. }
  1869. _ACEOF
  1870. if ac_fn_c_try_compile "$LINENO"; then :
  1871. eval "$3=yes"
  1872. else
  1873. eval "$3=no"
  1874. fi
  1875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1876. fi
  1877. eval ac_res=\$$3
  1878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1879. $as_echo "$ac_res" >&6; }
  1880. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1881. } # ac_fn_c_check_decl
  1882. cat >config.log <<_ACEOF
  1883. This file contains any messages produced by compilers while
  1884. running configure, to aid debugging if configure makes a mistake.
  1885. It was created by libcc1 $as_me version-unused, which was
  1886. generated by GNU Autoconf 2.69. Invocation command line was
  1887. $ $0 $@
  1888. _ACEOF
  1889. exec 5>>config.log
  1890. {
  1891. cat <<_ASUNAME
  1892. ## --------- ##
  1893. ## Platform. ##
  1894. ## --------- ##
  1895. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1896. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1897. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1898. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1899. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1900. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1901. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1902. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1903. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1904. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1905. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1906. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1907. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1908. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1909. _ASUNAME
  1910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1911. for as_dir in $PATH
  1912. do
  1913. IFS=$as_save_IFS
  1914. test -z "$as_dir" && as_dir=.
  1915. $as_echo "PATH: $as_dir"
  1916. done
  1917. IFS=$as_save_IFS
  1918. } >&5
  1919. cat >&5 <<_ACEOF
  1920. ## ----------- ##
  1921. ## Core tests. ##
  1922. ## ----------- ##
  1923. _ACEOF
  1924. # Keep a trace of the command line.
  1925. # Strip out --no-create and --no-recursion so they do not pile up.
  1926. # Strip out --silent because we don't want to record it for future runs.
  1927. # Also quote any args containing shell meta-characters.
  1928. # Make two passes to allow for proper duplicate-argument suppression.
  1929. ac_configure_args=
  1930. ac_configure_args0=
  1931. ac_configure_args1=
  1932. ac_must_keep_next=false
  1933. for ac_pass in 1 2
  1934. do
  1935. for ac_arg
  1936. do
  1937. case $ac_arg in
  1938. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1939. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1940. | -silent | --silent | --silen | --sile | --sil)
  1941. continue ;;
  1942. *\'*)
  1943. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1944. esac
  1945. case $ac_pass in
  1946. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1947. 2)
  1948. as_fn_append ac_configure_args1 " '$ac_arg'"
  1949. if test $ac_must_keep_next = true; then
  1950. ac_must_keep_next=false # Got value, back to normal.
  1951. else
  1952. case $ac_arg in
  1953. *=* | --config-cache | -C | -disable-* | --disable-* \
  1954. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1955. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1956. | -with-* | --with-* | -without-* | --without-* | --x)
  1957. case "$ac_configure_args0 " in
  1958. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1959. esac
  1960. ;;
  1961. -* ) ac_must_keep_next=true ;;
  1962. esac
  1963. fi
  1964. as_fn_append ac_configure_args " '$ac_arg'"
  1965. ;;
  1966. esac
  1967. done
  1968. done
  1969. { ac_configure_args0=; unset ac_configure_args0;}
  1970. { ac_configure_args1=; unset ac_configure_args1;}
  1971. # When interrupted or exit'd, cleanup temporary files, and complete
  1972. # config.log. We remove comments because anyway the quotes in there
  1973. # would cause problems or look ugly.
  1974. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1975. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1976. trap 'exit_status=$?
  1977. # Save into config.log some information that might help in debugging.
  1978. {
  1979. echo
  1980. $as_echo "## ---------------- ##
  1981. ## Cache variables. ##
  1982. ## ---------------- ##"
  1983. echo
  1984. # The following way of writing the cache mishandles newlines in values,
  1985. (
  1986. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1987. eval ac_val=\$$ac_var
  1988. case $ac_val in #(
  1989. *${as_nl}*)
  1990. case $ac_var in #(
  1991. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1992. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1993. esac
  1994. case $ac_var in #(
  1995. _ | IFS | as_nl) ;; #(
  1996. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1997. *) { eval $ac_var=; unset $ac_var;} ;;
  1998. esac ;;
  1999. esac
  2000. done
  2001. (set) 2>&1 |
  2002. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2003. *${as_nl}ac_space=\ *)
  2004. sed -n \
  2005. "s/'\''/'\''\\\\'\'''\''/g;
  2006. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2007. ;; #(
  2008. *)
  2009. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2010. ;;
  2011. esac |
  2012. sort
  2013. )
  2014. echo
  2015. $as_echo "## ----------------- ##
  2016. ## Output variables. ##
  2017. ## ----------------- ##"
  2018. echo
  2019. for ac_var in $ac_subst_vars
  2020. do
  2021. eval ac_val=\$$ac_var
  2022. case $ac_val in
  2023. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2024. esac
  2025. $as_echo "$ac_var='\''$ac_val'\''"
  2026. done | sort
  2027. echo
  2028. if test -n "$ac_subst_files"; then
  2029. $as_echo "## ------------------- ##
  2030. ## File substitutions. ##
  2031. ## ------------------- ##"
  2032. echo
  2033. for ac_var in $ac_subst_files
  2034. do
  2035. eval ac_val=\$$ac_var
  2036. case $ac_val in
  2037. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2038. esac
  2039. $as_echo "$ac_var='\''$ac_val'\''"
  2040. done | sort
  2041. echo
  2042. fi
  2043. if test -s confdefs.h; then
  2044. $as_echo "## ----------- ##
  2045. ## confdefs.h. ##
  2046. ## ----------- ##"
  2047. echo
  2048. cat confdefs.h
  2049. echo
  2050. fi
  2051. test "$ac_signal" != 0 &&
  2052. $as_echo "$as_me: caught signal $ac_signal"
  2053. $as_echo "$as_me: exit $exit_status"
  2054. } >&5
  2055. rm -f core *.core core.conftest.* &&
  2056. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2057. exit $exit_status
  2058. ' 0
  2059. for ac_signal in 1 2 13 15; do
  2060. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2061. done
  2062. ac_signal=0
  2063. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2064. rm -f -r conftest* confdefs.h
  2065. $as_echo "/* confdefs.h */" > confdefs.h
  2066. # Predefined preprocessor variables.
  2067. cat >>confdefs.h <<_ACEOF
  2068. #define PACKAGE_NAME "$PACKAGE_NAME"
  2069. _ACEOF
  2070. cat >>confdefs.h <<_ACEOF
  2071. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2072. _ACEOF
  2073. cat >>confdefs.h <<_ACEOF
  2074. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2075. _ACEOF
  2076. cat >>confdefs.h <<_ACEOF
  2077. #define PACKAGE_STRING "$PACKAGE_STRING"
  2078. _ACEOF
  2079. cat >>confdefs.h <<_ACEOF
  2080. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2081. _ACEOF
  2082. cat >>confdefs.h <<_ACEOF
  2083. #define PACKAGE_URL "$PACKAGE_URL"
  2084. _ACEOF
  2085. # Let the site file select an alternate cache file if it wants to.
  2086. # Prefer an explicitly selected file to automatically selected ones.
  2087. ac_site_file1=NONE
  2088. ac_site_file2=NONE
  2089. if test -n "$CONFIG_SITE"; then
  2090. # We do not want a PATH search for config.site.
  2091. case $CONFIG_SITE in #((
  2092. -*) ac_site_file1=./$CONFIG_SITE;;
  2093. */*) ac_site_file1=$CONFIG_SITE;;
  2094. *) ac_site_file1=./$CONFIG_SITE;;
  2095. esac
  2096. elif test "x$prefix" != xNONE; then
  2097. ac_site_file1=$prefix/share/config.site
  2098. ac_site_file2=$prefix/etc/config.site
  2099. else
  2100. ac_site_file1=$ac_default_prefix/share/config.site
  2101. ac_site_file2=$ac_default_prefix/etc/config.site
  2102. fi
  2103. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2104. do
  2105. test "x$ac_site_file" = xNONE && continue
  2106. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2108. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2109. sed 's/^/| /' "$ac_site_file" >&5
  2110. . "$ac_site_file" \
  2111. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2112. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2113. as_fn_error $? "failed to load site script $ac_site_file
  2114. See \`config.log' for more details" "$LINENO" 5; }
  2115. fi
  2116. done
  2117. if test -r "$cache_file"; then
  2118. # Some versions of bash will fail to source /dev/null (special files
  2119. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2120. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2121. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2122. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2123. case $cache_file in
  2124. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2125. *) . "./$cache_file";;
  2126. esac
  2127. fi
  2128. else
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2130. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2131. >$cache_file
  2132. fi
  2133. # Check that the precious variables saved in the cache have kept the same
  2134. # value.
  2135. ac_cache_corrupted=false
  2136. for ac_var in $ac_precious_vars; do
  2137. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2138. eval ac_new_set=\$ac_env_${ac_var}_set
  2139. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2140. eval ac_new_val=\$ac_env_${ac_var}_value
  2141. case $ac_old_set,$ac_new_set in
  2142. set,)
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2144. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2145. ac_cache_corrupted=: ;;
  2146. ,set)
  2147. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2148. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2149. ac_cache_corrupted=: ;;
  2150. ,);;
  2151. *)
  2152. if test "x$ac_old_val" != "x$ac_new_val"; then
  2153. # differences in whitespace do not lead to failure.
  2154. ac_old_val_w=`echo x $ac_old_val`
  2155. ac_new_val_w=`echo x $ac_new_val`
  2156. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2158. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2159. ac_cache_corrupted=:
  2160. else
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2162. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2163. eval $ac_var=\$ac_old_val
  2164. fi
  2165. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2166. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2167. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2168. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2169. fi;;
  2170. esac
  2171. # Pass precious variables to config.status.
  2172. if test "$ac_new_set" = set; then
  2173. case $ac_new_val in
  2174. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2175. *) ac_arg=$ac_var=$ac_new_val ;;
  2176. esac
  2177. case " $ac_configure_args " in
  2178. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2179. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2180. esac
  2181. fi
  2182. done
  2183. if $ac_cache_corrupted; then
  2184. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2185. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2186. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2187. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2188. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2189. fi
  2190. ## -------------------- ##
  2191. ## Main body of script. ##
  2192. ## -------------------- ##
  2193. ac_ext=c
  2194. ac_cpp='$CPP $CPPFLAGS'
  2195. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2196. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2197. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2198. ac_config_headers="$ac_config_headers cc1plugin-config.h"
  2199. ac_aux_dir=
  2200. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2201. if test -f "$ac_dir/install-sh"; then
  2202. ac_aux_dir=$ac_dir
  2203. ac_install_sh="$ac_aux_dir/install-sh -c"
  2204. break
  2205. elif test -f "$ac_dir/install.sh"; then
  2206. ac_aux_dir=$ac_dir
  2207. ac_install_sh="$ac_aux_dir/install.sh -c"
  2208. break
  2209. elif test -f "$ac_dir/shtool"; then
  2210. ac_aux_dir=$ac_dir
  2211. ac_install_sh="$ac_aux_dir/shtool install -c"
  2212. break
  2213. fi
  2214. done
  2215. if test -z "$ac_aux_dir"; then
  2216. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2217. fi
  2218. # These three variables are undocumented and unsupported,
  2219. # and are intended to be withdrawn in a future Autoconf release.
  2220. # They can cause serious problems if a builder's source tree is in a directory
  2221. # whose full name contains unusual characters.
  2222. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2223. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2224. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2225. # Make sure we can run config.sub.
  2226. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2227. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2229. $as_echo_n "checking build system type... " >&6; }
  2230. if ${ac_cv_build+:} false; then :
  2231. $as_echo_n "(cached) " >&6
  2232. else
  2233. ac_build_alias=$build_alias
  2234. test "x$ac_build_alias" = x &&
  2235. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2236. test "x$ac_build_alias" = x &&
  2237. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2238. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2239. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2240. fi
  2241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2242. $as_echo "$ac_cv_build" >&6; }
  2243. case $ac_cv_build in
  2244. *-*-*) ;;
  2245. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2246. esac
  2247. build=$ac_cv_build
  2248. ac_save_IFS=$IFS; IFS='-'
  2249. set x $ac_cv_build
  2250. shift
  2251. build_cpu=$1
  2252. build_vendor=$2
  2253. shift; shift
  2254. # Remember, the first character of IFS is used to create $*,
  2255. # except with old shells:
  2256. build_os=$*
  2257. IFS=$ac_save_IFS
  2258. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2260. $as_echo_n "checking host system type... " >&6; }
  2261. if ${ac_cv_host+:} false; then :
  2262. $as_echo_n "(cached) " >&6
  2263. else
  2264. if test "x$host_alias" = x; then
  2265. ac_cv_host=$ac_cv_build
  2266. else
  2267. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2268. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2269. fi
  2270. fi
  2271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2272. $as_echo "$ac_cv_host" >&6; }
  2273. case $ac_cv_host in
  2274. *-*-*) ;;
  2275. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2276. esac
  2277. host=$ac_cv_host
  2278. ac_save_IFS=$IFS; IFS='-'
  2279. set x $ac_cv_host
  2280. shift
  2281. host_cpu=$1
  2282. host_vendor=$2
  2283. shift; shift
  2284. # Remember, the first character of IFS is used to create $*,
  2285. # except with old shells:
  2286. host_os=$*
  2287. IFS=$ac_save_IFS
  2288. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2290. $as_echo_n "checking target system type... " >&6; }
  2291. if ${ac_cv_target+:} false; then :
  2292. $as_echo_n "(cached) " >&6
  2293. else
  2294. if test "x$target_alias" = x; then
  2295. ac_cv_target=$ac_cv_host
  2296. else
  2297. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2298. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2299. fi
  2300. fi
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2302. $as_echo "$ac_cv_target" >&6; }
  2303. case $ac_cv_target in
  2304. *-*-*) ;;
  2305. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2306. esac
  2307. target=$ac_cv_target
  2308. ac_save_IFS=$IFS; IFS='-'
  2309. set x $ac_cv_target
  2310. shift
  2311. target_cpu=$1
  2312. target_vendor=$2
  2313. shift; shift
  2314. # Remember, the first character of IFS is used to create $*,
  2315. # except with old shells:
  2316. target_os=$*
  2317. IFS=$ac_save_IFS
  2318. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2319. # The aliases save the names the user supplied, while $host etc.
  2320. # will get canonicalized.
  2321. test -n "$target_alias" &&
  2322. test "$program_prefix$program_suffix$program_transform_name" = \
  2323. NONENONEs,x,x, &&
  2324. program_prefix=${target_alias}-
  2325. # Expand $ac_aux_dir to an absolute path.
  2326. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2327. ac_ext=c
  2328. ac_cpp='$CPP $CPPFLAGS'
  2329. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2330. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2331. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2332. if test -n "$ac_tool_prefix"; then
  2333. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2334. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2336. $as_echo_n "checking for $ac_word... " >&6; }
  2337. if ${ac_cv_prog_CC+:} false; then :
  2338. $as_echo_n "(cached) " >&6
  2339. else
  2340. if test -n "$CC"; then
  2341. ac_cv_prog_CC="$CC" # Let the user override the test.
  2342. else
  2343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2344. for as_dir in $PATH
  2345. do
  2346. IFS=$as_save_IFS
  2347. test -z "$as_dir" && as_dir=.
  2348. for ac_exec_ext in '' $ac_executable_extensions; do
  2349. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2350. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2352. break 2
  2353. fi
  2354. done
  2355. done
  2356. IFS=$as_save_IFS
  2357. fi
  2358. fi
  2359. CC=$ac_cv_prog_CC
  2360. if test -n "$CC"; then
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2362. $as_echo "$CC" >&6; }
  2363. else
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2365. $as_echo "no" >&6; }
  2366. fi
  2367. fi
  2368. if test -z "$ac_cv_prog_CC"; then
  2369. ac_ct_CC=$CC
  2370. # Extract the first word of "gcc", so it can be a program name with args.
  2371. set dummy gcc; ac_word=$2
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2373. $as_echo_n "checking for $ac_word... " >&6; }
  2374. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2375. $as_echo_n "(cached) " >&6
  2376. else
  2377. if test -n "$ac_ct_CC"; then
  2378. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2379. else
  2380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2381. for as_dir in $PATH
  2382. do
  2383. IFS=$as_save_IFS
  2384. test -z "$as_dir" && as_dir=.
  2385. for ac_exec_ext in '' $ac_executable_extensions; do
  2386. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2387. ac_cv_prog_ac_ct_CC="gcc"
  2388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2389. break 2
  2390. fi
  2391. done
  2392. done
  2393. IFS=$as_save_IFS
  2394. fi
  2395. fi
  2396. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2397. if test -n "$ac_ct_CC"; then
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2399. $as_echo "$ac_ct_CC" >&6; }
  2400. else
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2402. $as_echo "no" >&6; }
  2403. fi
  2404. if test "x$ac_ct_CC" = x; then
  2405. CC=""
  2406. else
  2407. case $cross_compiling:$ac_tool_warned in
  2408. yes:)
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2410. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2411. ac_tool_warned=yes ;;
  2412. esac
  2413. CC=$ac_ct_CC
  2414. fi
  2415. else
  2416. CC="$ac_cv_prog_CC"
  2417. fi
  2418. if test -z "$CC"; then
  2419. if test -n "$ac_tool_prefix"; then
  2420. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2421. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2423. $as_echo_n "checking for $ac_word... " >&6; }
  2424. if ${ac_cv_prog_CC+:} false; then :
  2425. $as_echo_n "(cached) " >&6
  2426. else
  2427. if test -n "$CC"; then
  2428. ac_cv_prog_CC="$CC" # Let the user override the test.
  2429. else
  2430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2431. for as_dir in $PATH
  2432. do
  2433. IFS=$as_save_IFS
  2434. test -z "$as_dir" && as_dir=.
  2435. for ac_exec_ext in '' $ac_executable_extensions; do
  2436. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2437. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2439. break 2
  2440. fi
  2441. done
  2442. done
  2443. IFS=$as_save_IFS
  2444. fi
  2445. fi
  2446. CC=$ac_cv_prog_CC
  2447. if test -n "$CC"; then
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2449. $as_echo "$CC" >&6; }
  2450. else
  2451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2452. $as_echo "no" >&6; }
  2453. fi
  2454. fi
  2455. fi
  2456. if test -z "$CC"; then
  2457. # Extract the first word of "cc", so it can be a program name with args.
  2458. set dummy cc; ac_word=$2
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2460. $as_echo_n "checking for $ac_word... " >&6; }
  2461. if ${ac_cv_prog_CC+:} false; then :
  2462. $as_echo_n "(cached) " >&6
  2463. else
  2464. if test -n "$CC"; then
  2465. ac_cv_prog_CC="$CC" # Let the user override the test.
  2466. else
  2467. ac_prog_rejected=no
  2468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2469. for as_dir in $PATH
  2470. do
  2471. IFS=$as_save_IFS
  2472. test -z "$as_dir" && as_dir=.
  2473. for ac_exec_ext in '' $ac_executable_extensions; do
  2474. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2475. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2476. ac_prog_rejected=yes
  2477. continue
  2478. fi
  2479. ac_cv_prog_CC="cc"
  2480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2481. break 2
  2482. fi
  2483. done
  2484. done
  2485. IFS=$as_save_IFS
  2486. if test $ac_prog_rejected = yes; then
  2487. # We found a bogon in the path, so make sure we never use it.
  2488. set dummy $ac_cv_prog_CC
  2489. shift
  2490. if test $# != 0; then
  2491. # We chose a different compiler from the bogus one.
  2492. # However, it has the same basename, so the bogon will be chosen
  2493. # first if we set CC to just the basename; use the full file name.
  2494. shift
  2495. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2496. fi
  2497. fi
  2498. fi
  2499. fi
  2500. CC=$ac_cv_prog_CC
  2501. if test -n "$CC"; then
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2503. $as_echo "$CC" >&6; }
  2504. else
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2506. $as_echo "no" >&6; }
  2507. fi
  2508. fi
  2509. if test -z "$CC"; then
  2510. if test -n "$ac_tool_prefix"; then
  2511. for ac_prog in cl.exe
  2512. do
  2513. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2514. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2516. $as_echo_n "checking for $ac_word... " >&6; }
  2517. if ${ac_cv_prog_CC+:} false; then :
  2518. $as_echo_n "(cached) " >&6
  2519. else
  2520. if test -n "$CC"; then
  2521. ac_cv_prog_CC="$CC" # Let the user override the test.
  2522. else
  2523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2524. for as_dir in $PATH
  2525. do
  2526. IFS=$as_save_IFS
  2527. test -z "$as_dir" && as_dir=.
  2528. for ac_exec_ext in '' $ac_executable_extensions; do
  2529. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2530. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2531. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2532. break 2
  2533. fi
  2534. done
  2535. done
  2536. IFS=$as_save_IFS
  2537. fi
  2538. fi
  2539. CC=$ac_cv_prog_CC
  2540. if test -n "$CC"; then
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2542. $as_echo "$CC" >&6; }
  2543. else
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2545. $as_echo "no" >&6; }
  2546. fi
  2547. test -n "$CC" && break
  2548. done
  2549. fi
  2550. if test -z "$CC"; then
  2551. ac_ct_CC=$CC
  2552. for ac_prog in cl.exe
  2553. do
  2554. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2555. set dummy $ac_prog; ac_word=$2
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2557. $as_echo_n "checking for $ac_word... " >&6; }
  2558. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2559. $as_echo_n "(cached) " >&6
  2560. else
  2561. if test -n "$ac_ct_CC"; then
  2562. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2563. else
  2564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2565. for as_dir in $PATH
  2566. do
  2567. IFS=$as_save_IFS
  2568. test -z "$as_dir" && as_dir=.
  2569. for ac_exec_ext in '' $ac_executable_extensions; do
  2570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2571. ac_cv_prog_ac_ct_CC="$ac_prog"
  2572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2573. break 2
  2574. fi
  2575. done
  2576. done
  2577. IFS=$as_save_IFS
  2578. fi
  2579. fi
  2580. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2581. if test -n "$ac_ct_CC"; then
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2583. $as_echo "$ac_ct_CC" >&6; }
  2584. else
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2586. $as_echo "no" >&6; }
  2587. fi
  2588. test -n "$ac_ct_CC" && break
  2589. done
  2590. if test "x$ac_ct_CC" = x; then
  2591. CC=""
  2592. else
  2593. case $cross_compiling:$ac_tool_warned in
  2594. yes:)
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2596. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2597. ac_tool_warned=yes ;;
  2598. esac
  2599. CC=$ac_ct_CC
  2600. fi
  2601. fi
  2602. fi
  2603. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2604. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2605. as_fn_error $? "no acceptable C compiler found in \$PATH
  2606. See \`config.log' for more details" "$LINENO" 5; }
  2607. # Provide some information about the compiler.
  2608. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2609. set X $ac_compile
  2610. ac_compiler=$2
  2611. for ac_option in --version -v -V -qversion; do
  2612. { { ac_try="$ac_compiler $ac_option >&5"
  2613. case "(($ac_try" in
  2614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2615. *) ac_try_echo=$ac_try;;
  2616. esac
  2617. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2618. $as_echo "$ac_try_echo"; } >&5
  2619. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2620. ac_status=$?
  2621. if test -s conftest.err; then
  2622. sed '10a\
  2623. ... rest of stderr output deleted ...
  2624. 10q' conftest.err >conftest.er1
  2625. cat conftest.er1 >&5
  2626. fi
  2627. rm -f conftest.er1 conftest.err
  2628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2629. test $ac_status = 0; }
  2630. done
  2631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2632. /* end confdefs.h. */
  2633. int
  2634. main ()
  2635. {
  2636. ;
  2637. return 0;
  2638. }
  2639. _ACEOF
  2640. ac_clean_files_save=$ac_clean_files
  2641. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2642. # Try to create an executable without -o first, disregard a.out.
  2643. # It will help us diagnose broken compilers, and finding out an intuition
  2644. # of exeext.
  2645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2646. $as_echo_n "checking whether the C compiler works... " >&6; }
  2647. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2648. # The possible output files:
  2649. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2650. ac_rmfiles=
  2651. for ac_file in $ac_files
  2652. do
  2653. case $ac_file in
  2654. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2655. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2656. esac
  2657. done
  2658. rm -f $ac_rmfiles
  2659. if { { ac_try="$ac_link_default"
  2660. case "(($ac_try" in
  2661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2662. *) ac_try_echo=$ac_try;;
  2663. esac
  2664. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2665. $as_echo "$ac_try_echo"; } >&5
  2666. (eval "$ac_link_default") 2>&5
  2667. ac_status=$?
  2668. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2669. test $ac_status = 0; }; then :
  2670. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2671. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2672. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2673. # so that the user can short-circuit this test for compilers unknown to
  2674. # Autoconf.
  2675. for ac_file in $ac_files ''
  2676. do
  2677. test -f "$ac_file" || continue
  2678. case $ac_file in
  2679. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2680. ;;
  2681. [ab].out )
  2682. # We found the default executable, but exeext='' is most
  2683. # certainly right.
  2684. break;;
  2685. *.* )
  2686. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2687. then :; else
  2688. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2689. fi
  2690. # We set ac_cv_exeext here because the later test for it is not
  2691. # safe: cross compilers may not add the suffix if given an `-o'
  2692. # argument, so we may need to know it at that point already.
  2693. # Even if this section looks crufty: it has the advantage of
  2694. # actually working.
  2695. break;;
  2696. * )
  2697. break;;
  2698. esac
  2699. done
  2700. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2701. else
  2702. ac_file=''
  2703. fi
  2704. if test -z "$ac_file"; then :
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2706. $as_echo "no" >&6; }
  2707. $as_echo "$as_me: failed program was:" >&5
  2708. sed 's/^/| /' conftest.$ac_ext >&5
  2709. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2710. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2711. as_fn_error 77 "C compiler cannot create executables
  2712. See \`config.log' for more details" "$LINENO" 5; }
  2713. else
  2714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2715. $as_echo "yes" >&6; }
  2716. fi
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2718. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2720. $as_echo "$ac_file" >&6; }
  2721. ac_exeext=$ac_cv_exeext
  2722. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2723. ac_clean_files=$ac_clean_files_save
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2725. $as_echo_n "checking for suffix of executables... " >&6; }
  2726. if { { ac_try="$ac_link"
  2727. case "(($ac_try" in
  2728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2729. *) ac_try_echo=$ac_try;;
  2730. esac
  2731. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2732. $as_echo "$ac_try_echo"; } >&5
  2733. (eval "$ac_link") 2>&5
  2734. ac_status=$?
  2735. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2736. test $ac_status = 0; }; then :
  2737. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2738. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2739. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2740. # `rm'.
  2741. for ac_file in conftest.exe conftest conftest.*; do
  2742. test -f "$ac_file" || continue
  2743. case $ac_file in
  2744. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2745. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2746. break;;
  2747. * ) break;;
  2748. esac
  2749. done
  2750. else
  2751. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2752. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2753. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2754. See \`config.log' for more details" "$LINENO" 5; }
  2755. fi
  2756. rm -f conftest conftest$ac_cv_exeext
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2758. $as_echo "$ac_cv_exeext" >&6; }
  2759. rm -f conftest.$ac_ext
  2760. EXEEXT=$ac_cv_exeext
  2761. ac_exeext=$EXEEXT
  2762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2763. /* end confdefs.h. */
  2764. #include <stdio.h>
  2765. int
  2766. main ()
  2767. {
  2768. FILE *f = fopen ("conftest.out", "w");
  2769. return ferror (f) || fclose (f) != 0;
  2770. ;
  2771. return 0;
  2772. }
  2773. _ACEOF
  2774. ac_clean_files="$ac_clean_files conftest.out"
  2775. # Check that the compiler produces executables we can run. If not, either
  2776. # the compiler is broken, or we cross compile.
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2778. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2779. if test "$cross_compiling" != yes; then
  2780. { { ac_try="$ac_link"
  2781. case "(($ac_try" in
  2782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2783. *) ac_try_echo=$ac_try;;
  2784. esac
  2785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2786. $as_echo "$ac_try_echo"; } >&5
  2787. (eval "$ac_link") 2>&5
  2788. ac_status=$?
  2789. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2790. test $ac_status = 0; }
  2791. if { ac_try='./conftest$ac_cv_exeext'
  2792. { { case "(($ac_try" in
  2793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2794. *) ac_try_echo=$ac_try;;
  2795. esac
  2796. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2797. $as_echo "$ac_try_echo"; } >&5
  2798. (eval "$ac_try") 2>&5
  2799. ac_status=$?
  2800. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2801. test $ac_status = 0; }; }; then
  2802. cross_compiling=no
  2803. else
  2804. if test "$cross_compiling" = maybe; then
  2805. cross_compiling=yes
  2806. else
  2807. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2808. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2809. as_fn_error $? "cannot run C compiled programs.
  2810. If you meant to cross compile, use \`--host'.
  2811. See \`config.log' for more details" "$LINENO" 5; }
  2812. fi
  2813. fi
  2814. fi
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2816. $as_echo "$cross_compiling" >&6; }
  2817. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2818. ac_clean_files=$ac_clean_files_save
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2820. $as_echo_n "checking for suffix of object files... " >&6; }
  2821. if ${ac_cv_objext+:} false; then :
  2822. $as_echo_n "(cached) " >&6
  2823. else
  2824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2825. /* end confdefs.h. */
  2826. int
  2827. main ()
  2828. {
  2829. ;
  2830. return 0;
  2831. }
  2832. _ACEOF
  2833. rm -f conftest.o conftest.obj
  2834. if { { ac_try="$ac_compile"
  2835. case "(($ac_try" in
  2836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2837. *) ac_try_echo=$ac_try;;
  2838. esac
  2839. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2840. $as_echo "$ac_try_echo"; } >&5
  2841. (eval "$ac_compile") 2>&5
  2842. ac_status=$?
  2843. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2844. test $ac_status = 0; }; then :
  2845. for ac_file in conftest.o conftest.obj conftest.*; do
  2846. test -f "$ac_file" || continue;
  2847. case $ac_file in
  2848. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2849. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2850. break;;
  2851. esac
  2852. done
  2853. else
  2854. $as_echo "$as_me: failed program was:" >&5
  2855. sed 's/^/| /' conftest.$ac_ext >&5
  2856. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2857. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2858. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2859. See \`config.log' for more details" "$LINENO" 5; }
  2860. fi
  2861. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2862. fi
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2864. $as_echo "$ac_cv_objext" >&6; }
  2865. OBJEXT=$ac_cv_objext
  2866. ac_objext=$OBJEXT
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2868. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2869. if ${ac_cv_c_compiler_gnu+:} false; then :
  2870. $as_echo_n "(cached) " >&6
  2871. else
  2872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2873. /* end confdefs.h. */
  2874. int
  2875. main ()
  2876. {
  2877. #ifndef __GNUC__
  2878. choke me
  2879. #endif
  2880. ;
  2881. return 0;
  2882. }
  2883. _ACEOF
  2884. if ac_fn_c_try_compile "$LINENO"; then :
  2885. ac_compiler_gnu=yes
  2886. else
  2887. ac_compiler_gnu=no
  2888. fi
  2889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2890. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2891. fi
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2893. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2894. if test $ac_compiler_gnu = yes; then
  2895. GCC=yes
  2896. else
  2897. GCC=
  2898. fi
  2899. ac_test_CFLAGS=${CFLAGS+set}
  2900. ac_save_CFLAGS=$CFLAGS
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2902. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2903. if ${ac_cv_prog_cc_g+:} false; then :
  2904. $as_echo_n "(cached) " >&6
  2905. else
  2906. ac_save_c_werror_flag=$ac_c_werror_flag
  2907. ac_c_werror_flag=yes
  2908. ac_cv_prog_cc_g=no
  2909. CFLAGS="-g"
  2910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2911. /* end confdefs.h. */
  2912. int
  2913. main ()
  2914. {
  2915. ;
  2916. return 0;
  2917. }
  2918. _ACEOF
  2919. if ac_fn_c_try_compile "$LINENO"; then :
  2920. ac_cv_prog_cc_g=yes
  2921. else
  2922. CFLAGS=""
  2923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2924. /* end confdefs.h. */
  2925. int
  2926. main ()
  2927. {
  2928. ;
  2929. return 0;
  2930. }
  2931. _ACEOF
  2932. if ac_fn_c_try_compile "$LINENO"; then :
  2933. else
  2934. ac_c_werror_flag=$ac_save_c_werror_flag
  2935. CFLAGS="-g"
  2936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2937. /* end confdefs.h. */
  2938. int
  2939. main ()
  2940. {
  2941. ;
  2942. return 0;
  2943. }
  2944. _ACEOF
  2945. if ac_fn_c_try_compile "$LINENO"; then :
  2946. ac_cv_prog_cc_g=yes
  2947. fi
  2948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2949. fi
  2950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2951. fi
  2952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2953. ac_c_werror_flag=$ac_save_c_werror_flag
  2954. fi
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2956. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2957. if test "$ac_test_CFLAGS" = set; then
  2958. CFLAGS=$ac_save_CFLAGS
  2959. elif test $ac_cv_prog_cc_g = yes; then
  2960. if test "$GCC" = yes; then
  2961. CFLAGS="-g -O2"
  2962. else
  2963. CFLAGS="-g"
  2964. fi
  2965. else
  2966. if test "$GCC" = yes; then
  2967. CFLAGS="-O2"
  2968. else
  2969. CFLAGS=
  2970. fi
  2971. fi
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2973. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2974. if ${ac_cv_prog_cc_c89+:} false; then :
  2975. $as_echo_n "(cached) " >&6
  2976. else
  2977. ac_cv_prog_cc_c89=no
  2978. ac_save_CC=$CC
  2979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2980. /* end confdefs.h. */
  2981. #include <stdarg.h>
  2982. #include <stdio.h>
  2983. struct stat;
  2984. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2985. struct buf { int x; };
  2986. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2987. static char *e (p, i)
  2988. char **p;
  2989. int i;
  2990. {
  2991. return p[i];
  2992. }
  2993. static char *f (char * (*g) (char **, int), char **p, ...)
  2994. {
  2995. char *s;
  2996. va_list v;
  2997. va_start (v,p);
  2998. s = g (p, va_arg (v,int));
  2999. va_end (v);
  3000. return s;
  3001. }
  3002. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3003. function prototypes and stuff, but not '\xHH' hex character constants.
  3004. These don't provoke an error unfortunately, instead are silently treated
  3005. as 'x'. The following induces an error, until -std is added to get
  3006. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3007. array size at least. It's necessary to write '\x00'==0 to get something
  3008. that's true only with -std. */
  3009. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3010. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3011. inside strings and character constants. */
  3012. #define FOO(x) 'x'
  3013. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3014. int test (int i, double x);
  3015. struct s1 {int (*f) (int a);};
  3016. struct s2 {int (*f) (double a);};
  3017. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3018. int argc;
  3019. char **argv;
  3020. int
  3021. main ()
  3022. {
  3023. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3024. ;
  3025. return 0;
  3026. }
  3027. _ACEOF
  3028. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3029. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3030. do
  3031. CC="$ac_save_CC $ac_arg"
  3032. if ac_fn_c_try_compile "$LINENO"; then :
  3033. ac_cv_prog_cc_c89=$ac_arg
  3034. fi
  3035. rm -f core conftest.err conftest.$ac_objext
  3036. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3037. done
  3038. rm -f conftest.$ac_ext
  3039. CC=$ac_save_CC
  3040. fi
  3041. # AC_CACHE_VAL
  3042. case "x$ac_cv_prog_cc_c89" in
  3043. x)
  3044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3045. $as_echo "none needed" >&6; } ;;
  3046. xno)
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3048. $as_echo "unsupported" >&6; } ;;
  3049. *)
  3050. CC="$CC $ac_cv_prog_cc_c89"
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3052. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3053. esac
  3054. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3055. fi
  3056. ac_ext=c
  3057. ac_cpp='$CPP $CPPFLAGS'
  3058. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3059. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3060. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3061. ac_ext=c
  3062. ac_cpp='$CPP $CPPFLAGS'
  3063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3067. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3068. if ${am_cv_prog_cc_c_o+:} false; then :
  3069. $as_echo_n "(cached) " >&6
  3070. else
  3071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3072. /* end confdefs.h. */
  3073. int
  3074. main ()
  3075. {
  3076. ;
  3077. return 0;
  3078. }
  3079. _ACEOF
  3080. # Make sure it works both with $CC and with simple cc.
  3081. # Following AC_PROG_CC_C_O, we do the test twice because some
  3082. # compilers refuse to overwrite an existing .o file with -o,
  3083. # though they will create one.
  3084. am_cv_prog_cc_c_o=yes
  3085. for am_i in 1 2; do
  3086. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3087. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3088. ac_status=$?
  3089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3090. (exit $ac_status); } \
  3091. && test -f conftest2.$ac_objext; then
  3092. : OK
  3093. else
  3094. am_cv_prog_cc_c_o=no
  3095. break
  3096. fi
  3097. done
  3098. rm -f core conftest*
  3099. unset am_i
  3100. fi
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3102. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3103. if test "$am_cv_prog_cc_c_o" != yes; then
  3104. # Losing compiler, so override with the script.
  3105. # FIXME: It is wrong to rewrite CC.
  3106. # But if we don't then we get into trouble of one sort or another.
  3107. # A longer-term fix would be to have automake use am__CC in this case,
  3108. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3109. CC="$am_aux_dir/compile $CC"
  3110. fi
  3111. ac_ext=c
  3112. ac_cpp='$CPP $CPPFLAGS'
  3113. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3114. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3115. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3116. ac_ext=c
  3117. ac_cpp='$CPP $CPPFLAGS'
  3118. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3119. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3120. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3122. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3123. # On Suns, sometimes $CPP names a directory.
  3124. if test -n "$CPP" && test -d "$CPP"; then
  3125. CPP=
  3126. fi
  3127. if test -z "$CPP"; then
  3128. if ${ac_cv_prog_CPP+:} false; then :
  3129. $as_echo_n "(cached) " >&6
  3130. else
  3131. # Double quotes because CPP needs to be expanded
  3132. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3133. do
  3134. ac_preproc_ok=false
  3135. for ac_c_preproc_warn_flag in '' yes
  3136. do
  3137. # Use a header file that comes with gcc, so configuring glibc
  3138. # with a fresh cross-compiler works.
  3139. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3140. # <limits.h> exists even on freestanding compilers.
  3141. # On the NeXT, cc -E runs the code through the compiler's parser,
  3142. # not just through cpp. "Syntax error" is here to catch this case.
  3143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3144. /* end confdefs.h. */
  3145. #ifdef __STDC__
  3146. # include <limits.h>
  3147. #else
  3148. # include <assert.h>
  3149. #endif
  3150. Syntax error
  3151. _ACEOF
  3152. if ac_fn_c_try_cpp "$LINENO"; then :
  3153. else
  3154. # Broken: fails on valid input.
  3155. continue
  3156. fi
  3157. rm -f conftest.err conftest.i conftest.$ac_ext
  3158. # OK, works on sane cases. Now check whether nonexistent headers
  3159. # can be detected and how.
  3160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3161. /* end confdefs.h. */
  3162. #include <ac_nonexistent.h>
  3163. _ACEOF
  3164. if ac_fn_c_try_cpp "$LINENO"; then :
  3165. # Broken: success on invalid input.
  3166. continue
  3167. else
  3168. # Passes both tests.
  3169. ac_preproc_ok=:
  3170. break
  3171. fi
  3172. rm -f conftest.err conftest.i conftest.$ac_ext
  3173. done
  3174. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3175. rm -f conftest.i conftest.err conftest.$ac_ext
  3176. if $ac_preproc_ok; then :
  3177. break
  3178. fi
  3179. done
  3180. ac_cv_prog_CPP=$CPP
  3181. fi
  3182. CPP=$ac_cv_prog_CPP
  3183. else
  3184. ac_cv_prog_CPP=$CPP
  3185. fi
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3187. $as_echo "$CPP" >&6; }
  3188. ac_preproc_ok=false
  3189. for ac_c_preproc_warn_flag in '' yes
  3190. do
  3191. # Use a header file that comes with gcc, so configuring glibc
  3192. # with a fresh cross-compiler works.
  3193. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3194. # <limits.h> exists even on freestanding compilers.
  3195. # On the NeXT, cc -E runs the code through the compiler's parser,
  3196. # not just through cpp. "Syntax error" is here to catch this case.
  3197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3198. /* end confdefs.h. */
  3199. #ifdef __STDC__
  3200. # include <limits.h>
  3201. #else
  3202. # include <assert.h>
  3203. #endif
  3204. Syntax error
  3205. _ACEOF
  3206. if ac_fn_c_try_cpp "$LINENO"; then :
  3207. else
  3208. # Broken: fails on valid input.
  3209. continue
  3210. fi
  3211. rm -f conftest.err conftest.i conftest.$ac_ext
  3212. # OK, works on sane cases. Now check whether nonexistent headers
  3213. # can be detected and how.
  3214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3215. /* end confdefs.h. */
  3216. #include <ac_nonexistent.h>
  3217. _ACEOF
  3218. if ac_fn_c_try_cpp "$LINENO"; then :
  3219. # Broken: success on invalid input.
  3220. continue
  3221. else
  3222. # Passes both tests.
  3223. ac_preproc_ok=:
  3224. break
  3225. fi
  3226. rm -f conftest.err conftest.i conftest.$ac_ext
  3227. done
  3228. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3229. rm -f conftest.i conftest.err conftest.$ac_ext
  3230. if $ac_preproc_ok; then :
  3231. else
  3232. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3233. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3234. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3235. See \`config.log' for more details" "$LINENO" 5; }
  3236. fi
  3237. ac_ext=c
  3238. ac_cpp='$CPP $CPPFLAGS'
  3239. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3240. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3241. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3243. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3244. if ${ac_cv_path_GREP+:} false; then :
  3245. $as_echo_n "(cached) " >&6
  3246. else
  3247. if test -z "$GREP"; then
  3248. ac_path_GREP_found=false
  3249. # Loop through the user's path and test for each of PROGNAME-LIST
  3250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3251. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3252. do
  3253. IFS=$as_save_IFS
  3254. test -z "$as_dir" && as_dir=.
  3255. for ac_prog in grep ggrep; do
  3256. for ac_exec_ext in '' $ac_executable_extensions; do
  3257. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3258. as_fn_executable_p "$ac_path_GREP" || continue
  3259. # Check for GNU ac_path_GREP and select it if it is found.
  3260. # Check for GNU $ac_path_GREP
  3261. case `"$ac_path_GREP" --version 2>&1` in
  3262. *GNU*)
  3263. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3264. *)
  3265. ac_count=0
  3266. $as_echo_n 0123456789 >"conftest.in"
  3267. while :
  3268. do
  3269. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3270. mv "conftest.tmp" "conftest.in"
  3271. cp "conftest.in" "conftest.nl"
  3272. $as_echo 'GREP' >> "conftest.nl"
  3273. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3274. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3275. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3276. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3277. # Best one so far, save it but keep looking for a better one
  3278. ac_cv_path_GREP="$ac_path_GREP"
  3279. ac_path_GREP_max=$ac_count
  3280. fi
  3281. # 10*(2^10) chars as input seems more than enough
  3282. test $ac_count -gt 10 && break
  3283. done
  3284. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3285. esac
  3286. $ac_path_GREP_found && break 3
  3287. done
  3288. done
  3289. done
  3290. IFS=$as_save_IFS
  3291. if test -z "$ac_cv_path_GREP"; then
  3292. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3293. fi
  3294. else
  3295. ac_cv_path_GREP=$GREP
  3296. fi
  3297. fi
  3298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3299. $as_echo "$ac_cv_path_GREP" >&6; }
  3300. GREP="$ac_cv_path_GREP"
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3302. $as_echo_n "checking for egrep... " >&6; }
  3303. if ${ac_cv_path_EGREP+:} false; then :
  3304. $as_echo_n "(cached) " >&6
  3305. else
  3306. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3307. then ac_cv_path_EGREP="$GREP -E"
  3308. else
  3309. if test -z "$EGREP"; then
  3310. ac_path_EGREP_found=false
  3311. # Loop through the user's path and test for each of PROGNAME-LIST
  3312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3313. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3314. do
  3315. IFS=$as_save_IFS
  3316. test -z "$as_dir" && as_dir=.
  3317. for ac_prog in egrep; do
  3318. for ac_exec_ext in '' $ac_executable_extensions; do
  3319. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3320. as_fn_executable_p "$ac_path_EGREP" || continue
  3321. # Check for GNU ac_path_EGREP and select it if it is found.
  3322. # Check for GNU $ac_path_EGREP
  3323. case `"$ac_path_EGREP" --version 2>&1` in
  3324. *GNU*)
  3325. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3326. *)
  3327. ac_count=0
  3328. $as_echo_n 0123456789 >"conftest.in"
  3329. while :
  3330. do
  3331. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3332. mv "conftest.tmp" "conftest.in"
  3333. cp "conftest.in" "conftest.nl"
  3334. $as_echo 'EGREP' >> "conftest.nl"
  3335. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3336. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3337. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3338. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3339. # Best one so far, save it but keep looking for a better one
  3340. ac_cv_path_EGREP="$ac_path_EGREP"
  3341. ac_path_EGREP_max=$ac_count
  3342. fi
  3343. # 10*(2^10) chars as input seems more than enough
  3344. test $ac_count -gt 10 && break
  3345. done
  3346. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3347. esac
  3348. $ac_path_EGREP_found && break 3
  3349. done
  3350. done
  3351. done
  3352. IFS=$as_save_IFS
  3353. if test -z "$ac_cv_path_EGREP"; then
  3354. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3355. fi
  3356. else
  3357. ac_cv_path_EGREP=$EGREP
  3358. fi
  3359. fi
  3360. fi
  3361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3362. $as_echo "$ac_cv_path_EGREP" >&6; }
  3363. EGREP="$ac_cv_path_EGREP"
  3364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3365. $as_echo_n "checking for ANSI C header files... " >&6; }
  3366. if ${ac_cv_header_stdc+:} false; then :
  3367. $as_echo_n "(cached) " >&6
  3368. else
  3369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3370. /* end confdefs.h. */
  3371. #include <stdlib.h>
  3372. #include <stdarg.h>
  3373. #include <string.h>
  3374. #include <float.h>
  3375. int
  3376. main ()
  3377. {
  3378. ;
  3379. return 0;
  3380. }
  3381. _ACEOF
  3382. if ac_fn_c_try_compile "$LINENO"; then :
  3383. ac_cv_header_stdc=yes
  3384. else
  3385. ac_cv_header_stdc=no
  3386. fi
  3387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3388. if test $ac_cv_header_stdc = yes; then
  3389. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3391. /* end confdefs.h. */
  3392. #include <string.h>
  3393. _ACEOF
  3394. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3395. $EGREP "memchr" >/dev/null 2>&1; then :
  3396. else
  3397. ac_cv_header_stdc=no
  3398. fi
  3399. rm -f conftest*
  3400. fi
  3401. if test $ac_cv_header_stdc = yes; then
  3402. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3404. /* end confdefs.h. */
  3405. #include <stdlib.h>
  3406. _ACEOF
  3407. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3408. $EGREP "free" >/dev/null 2>&1; then :
  3409. else
  3410. ac_cv_header_stdc=no
  3411. fi
  3412. rm -f conftest*
  3413. fi
  3414. if test $ac_cv_header_stdc = yes; then
  3415. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3416. if test "$cross_compiling" = yes; then :
  3417. :
  3418. else
  3419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3420. /* end confdefs.h. */
  3421. #include <ctype.h>
  3422. #include <stdlib.h>
  3423. #if ((' ' & 0x0FF) == 0x020)
  3424. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3425. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3426. #else
  3427. # define ISLOWER(c) \
  3428. (('a' <= (c) && (c) <= 'i') \
  3429. || ('j' <= (c) && (c) <= 'r') \
  3430. || ('s' <= (c) && (c) <= 'z'))
  3431. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3432. #endif
  3433. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3434. int
  3435. main ()
  3436. {
  3437. int i;
  3438. for (i = 0; i < 256; i++)
  3439. if (XOR (islower (i), ISLOWER (i))
  3440. || toupper (i) != TOUPPER (i))
  3441. return 2;
  3442. return 0;
  3443. }
  3444. _ACEOF
  3445. if ac_fn_c_try_run "$LINENO"; then :
  3446. else
  3447. ac_cv_header_stdc=no
  3448. fi
  3449. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3450. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3451. fi
  3452. fi
  3453. fi
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3455. $as_echo "$ac_cv_header_stdc" >&6; }
  3456. if test $ac_cv_header_stdc = yes; then
  3457. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3458. fi
  3459. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3460. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3461. inttypes.h stdint.h unistd.h
  3462. do :
  3463. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3464. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3465. "
  3466. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3467. cat >>confdefs.h <<_ACEOF
  3468. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3469. _ACEOF
  3470. fi
  3471. done
  3472. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3473. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3474. MINIX=yes
  3475. else
  3476. MINIX=
  3477. fi
  3478. if test "$MINIX" = yes; then
  3479. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3480. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3481. $as_echo "#define _MINIX 1" >>confdefs.h
  3482. fi
  3483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3484. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3485. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3486. $as_echo_n "(cached) " >&6
  3487. else
  3488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3489. /* end confdefs.h. */
  3490. # define __EXTENSIONS__ 1
  3491. $ac_includes_default
  3492. int
  3493. main ()
  3494. {
  3495. ;
  3496. return 0;
  3497. }
  3498. _ACEOF
  3499. if ac_fn_c_try_compile "$LINENO"; then :
  3500. ac_cv_safe_to_define___extensions__=yes
  3501. else
  3502. ac_cv_safe_to_define___extensions__=no
  3503. fi
  3504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3505. fi
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3507. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3508. test $ac_cv_safe_to_define___extensions__ = yes &&
  3509. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3510. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3511. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3512. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3513. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3514. # Determine the noncanonical target name, for directory use.
  3515. case ${build_alias} in
  3516. "") build_noncanonical=${build} ;;
  3517. *) build_noncanonical=${build_alias} ;;
  3518. esac
  3519. case ${host_alias} in
  3520. "") host_noncanonical=${build_noncanonical} ;;
  3521. *) host_noncanonical=${host_alias} ;;
  3522. esac
  3523. case ${target_alias} in
  3524. "") target_noncanonical=${host_noncanonical} ;;
  3525. *) target_noncanonical=${target_alias} ;;
  3526. esac
  3527. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  3528. # have matching libraries, they should use host libraries: Makefile.tpl
  3529. # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  3530. # However, they still use the build modules, because the corresponding
  3531. # host modules (e.g. bison) are only built for the host when bootstrap
  3532. # finishes. So:
  3533. # - build_subdir is where we find build modules, and never changes.
  3534. # - build_libsubdir is where we find build libraries, and can be overridden.
  3535. # Prefix 'build-' so this never conflicts with target_subdir.
  3536. build_subdir="build-${build_noncanonical}"
  3537. # Check whether --with-build-libsubdir was given.
  3538. if test "${with_build_libsubdir+set}" = set; then :
  3539. withval=$with_build_libsubdir; build_libsubdir="$withval"
  3540. else
  3541. build_libsubdir="$build_subdir"
  3542. fi
  3543. # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  3544. if ( test $srcdir = . && test -d gcc ) \
  3545. || test -d $srcdir/../host-${host_noncanonical}; then
  3546. host_subdir="host-${host_noncanonical}"
  3547. else
  3548. host_subdir=.
  3549. fi
  3550. # No prefix.
  3551. target_subdir=${target_noncanonical}
  3552. # 1.11.1: Require that version of automake.
  3553. # foreign: Don't require README, INSTALL, NEWS, etc.
  3554. # no-define: Don't define PACKAGE and VERSION.
  3555. # -Wall: Issue all automake warnings.
  3556. # -Wno-portability: Don't warn about constructs supported by GNU make.
  3557. # (because GCC requires GNU make anyhow).
  3558. am__api_version='1.15'
  3559. # Find a good install program. We prefer a C program (faster),
  3560. # so one script is as good as another. But avoid the broken or
  3561. # incompatible versions:
  3562. # SysV /etc/install, /usr/sbin/install
  3563. # SunOS /usr/etc/install
  3564. # IRIX /sbin/install
  3565. # AIX /bin/install
  3566. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3567. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3568. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3569. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3570. # OS/2's system install, which has a completely different semantic
  3571. # ./install, which can be erroneously created by make from ./install.sh.
  3572. # Reject install programs that cannot install multiple files.
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3574. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3575. if test -z "$INSTALL"; then
  3576. if ${ac_cv_path_install+:} false; then :
  3577. $as_echo_n "(cached) " >&6
  3578. else
  3579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3580. for as_dir in $PATH
  3581. do
  3582. IFS=$as_save_IFS
  3583. test -z "$as_dir" && as_dir=.
  3584. # Account for people who put trailing slashes in PATH elements.
  3585. case $as_dir/ in #((
  3586. ./ | .// | /[cC]/* | \
  3587. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3588. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3589. /usr/ucb/* ) ;;
  3590. *)
  3591. # OSF1 and SCO ODT 3.0 have their own names for install.
  3592. # Don't use installbsd from OSF since it installs stuff as root
  3593. # by default.
  3594. for ac_prog in ginstall scoinst install; do
  3595. for ac_exec_ext in '' $ac_executable_extensions; do
  3596. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3597. if test $ac_prog = install &&
  3598. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3599. # AIX install. It has an incompatible calling convention.
  3600. :
  3601. elif test $ac_prog = install &&
  3602. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3603. # program-specific install script used by HP pwplus--don't use.
  3604. :
  3605. else
  3606. rm -rf conftest.one conftest.two conftest.dir
  3607. echo one > conftest.one
  3608. echo two > conftest.two
  3609. mkdir conftest.dir
  3610. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3611. test -s conftest.one && test -s conftest.two &&
  3612. test -s conftest.dir/conftest.one &&
  3613. test -s conftest.dir/conftest.two
  3614. then
  3615. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3616. break 3
  3617. fi
  3618. fi
  3619. fi
  3620. done
  3621. done
  3622. ;;
  3623. esac
  3624. done
  3625. IFS=$as_save_IFS
  3626. rm -rf conftest.one conftest.two conftest.dir
  3627. fi
  3628. if test "${ac_cv_path_install+set}" = set; then
  3629. INSTALL=$ac_cv_path_install
  3630. else
  3631. # As a last resort, use the slow shell script. Don't cache a
  3632. # value for INSTALL within a source directory, because that will
  3633. # break other packages using the cache if that directory is
  3634. # removed, or if the value is a relative name.
  3635. INSTALL=$ac_install_sh
  3636. fi
  3637. fi
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3639. $as_echo "$INSTALL" >&6; }
  3640. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3641. # It thinks the first close brace ends the variable substitution.
  3642. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3643. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3644. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3646. $as_echo_n "checking whether build environment is sane... " >&6; }
  3647. # Reject unsafe characters in $srcdir or the absolute working directory
  3648. # name. Accept space and tab only in the latter.
  3649. am_lf='
  3650. '
  3651. case `pwd` in
  3652. *[\\\"\#\$\&\'\`$am_lf]*)
  3653. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3654. esac
  3655. case $srcdir in
  3656. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3657. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3658. esac
  3659. # Do 'set' in a subshell so we don't clobber the current shell's
  3660. # arguments. Must try -L first in case configure is actually a
  3661. # symlink; some systems play weird games with the mod time of symlinks
  3662. # (eg FreeBSD returns the mod time of the symlink's containing
  3663. # directory).
  3664. if (
  3665. am_has_slept=no
  3666. for am_try in 1 2; do
  3667. echo "timestamp, slept: $am_has_slept" > conftest.file
  3668. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3669. if test "$*" = "X"; then
  3670. # -L didn't work.
  3671. set X `ls -t "$srcdir/configure" conftest.file`
  3672. fi
  3673. if test "$*" != "X $srcdir/configure conftest.file" \
  3674. && test "$*" != "X conftest.file $srcdir/configure"; then
  3675. # If neither matched, then we have a broken ls. This can happen
  3676. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3677. # broken ls alias from the environment. This has actually
  3678. # happened. Such a system could not be considered "sane".
  3679. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3680. alias in your environment" "$LINENO" 5
  3681. fi
  3682. if test "$2" = conftest.file || test $am_try -eq 2; then
  3683. break
  3684. fi
  3685. # Just in case.
  3686. sleep 1
  3687. am_has_slept=yes
  3688. done
  3689. test "$2" = conftest.file
  3690. )
  3691. then
  3692. # Ok.
  3693. :
  3694. else
  3695. as_fn_error $? "newly created file is older than distributed files!
  3696. Check your system clock" "$LINENO" 5
  3697. fi
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3699. $as_echo "yes" >&6; }
  3700. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3701. # generated files are strictly newer.
  3702. am_sleep_pid=
  3703. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3704. ( sleep 1 ) &
  3705. am_sleep_pid=$!
  3706. fi
  3707. rm -f conftest.file
  3708. test "$program_prefix" != NONE &&
  3709. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3710. # Use a double $ so make ignores it.
  3711. test "$program_suffix" != NONE &&
  3712. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3713. # Double any \ or $.
  3714. # By default was `s,x,x', remove it if useless.
  3715. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3716. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3717. if test x"${MISSING+set}" != xset; then
  3718. case $am_aux_dir in
  3719. *\ * | *\ *)
  3720. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3721. *)
  3722. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3723. esac
  3724. fi
  3725. # Use eval to expand $SHELL
  3726. if eval "$MISSING --is-lightweight"; then
  3727. am_missing_run="$MISSING "
  3728. else
  3729. am_missing_run=
  3730. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3731. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3732. fi
  3733. if test x"${install_sh+set}" != xset; then
  3734. case $am_aux_dir in
  3735. *\ * | *\ *)
  3736. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3737. *)
  3738. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3739. esac
  3740. fi
  3741. # Installed binaries are usually stripped using 'strip' when the user
  3742. # run "make install-strip". However 'strip' might not be the right
  3743. # tool to use in cross-compilation environments, therefore Automake
  3744. # will honor the 'STRIP' environment variable to overrule this program.
  3745. if test "$cross_compiling" != no; then
  3746. if test -n "$ac_tool_prefix"; then
  3747. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3748. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3750. $as_echo_n "checking for $ac_word... " >&6; }
  3751. if ${ac_cv_prog_STRIP+:} false; then :
  3752. $as_echo_n "(cached) " >&6
  3753. else
  3754. if test -n "$STRIP"; then
  3755. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3756. else
  3757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3758. for as_dir in $PATH
  3759. do
  3760. IFS=$as_save_IFS
  3761. test -z "$as_dir" && as_dir=.
  3762. for ac_exec_ext in '' $ac_executable_extensions; do
  3763. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3764. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3766. break 2
  3767. fi
  3768. done
  3769. done
  3770. IFS=$as_save_IFS
  3771. fi
  3772. fi
  3773. STRIP=$ac_cv_prog_STRIP
  3774. if test -n "$STRIP"; then
  3775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3776. $as_echo "$STRIP" >&6; }
  3777. else
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3779. $as_echo "no" >&6; }
  3780. fi
  3781. fi
  3782. if test -z "$ac_cv_prog_STRIP"; then
  3783. ac_ct_STRIP=$STRIP
  3784. # Extract the first word of "strip", so it can be a program name with args.
  3785. set dummy strip; ac_word=$2
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3787. $as_echo_n "checking for $ac_word... " >&6; }
  3788. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3789. $as_echo_n "(cached) " >&6
  3790. else
  3791. if test -n "$ac_ct_STRIP"; then
  3792. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3793. else
  3794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3795. for as_dir in $PATH
  3796. do
  3797. IFS=$as_save_IFS
  3798. test -z "$as_dir" && as_dir=.
  3799. for ac_exec_ext in '' $ac_executable_extensions; do
  3800. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3801. ac_cv_prog_ac_ct_STRIP="strip"
  3802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3803. break 2
  3804. fi
  3805. done
  3806. done
  3807. IFS=$as_save_IFS
  3808. fi
  3809. fi
  3810. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3811. if test -n "$ac_ct_STRIP"; then
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3813. $as_echo "$ac_ct_STRIP" >&6; }
  3814. else
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3816. $as_echo "no" >&6; }
  3817. fi
  3818. if test "x$ac_ct_STRIP" = x; then
  3819. STRIP=":"
  3820. else
  3821. case $cross_compiling:$ac_tool_warned in
  3822. yes:)
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3824. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3825. ac_tool_warned=yes ;;
  3826. esac
  3827. STRIP=$ac_ct_STRIP
  3828. fi
  3829. else
  3830. STRIP="$ac_cv_prog_STRIP"
  3831. fi
  3832. fi
  3833. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3835. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3836. if test -z "$MKDIR_P"; then
  3837. if ${ac_cv_path_mkdir+:} false; then :
  3838. $as_echo_n "(cached) " >&6
  3839. else
  3840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3841. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3842. do
  3843. IFS=$as_save_IFS
  3844. test -z "$as_dir" && as_dir=.
  3845. for ac_prog in mkdir gmkdir; do
  3846. for ac_exec_ext in '' $ac_executable_extensions; do
  3847. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3848. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3849. 'mkdir (GNU coreutils) '* | \
  3850. 'mkdir (coreutils) '* | \
  3851. 'mkdir (fileutils) '4.1*)
  3852. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3853. break 3;;
  3854. esac
  3855. done
  3856. done
  3857. done
  3858. IFS=$as_save_IFS
  3859. fi
  3860. test -d ./--version && rmdir ./--version
  3861. if test "${ac_cv_path_mkdir+set}" = set; then
  3862. MKDIR_P="$ac_cv_path_mkdir -p"
  3863. else
  3864. # As a last resort, use the slow shell script. Don't cache a
  3865. # value for MKDIR_P within a source directory, because that will
  3866. # break other packages using the cache if that directory is
  3867. # removed, or if the value is a relative name.
  3868. MKDIR_P="$ac_install_sh -d"
  3869. fi
  3870. fi
  3871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3872. $as_echo "$MKDIR_P" >&6; }
  3873. for ac_prog in gawk mawk nawk awk
  3874. do
  3875. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3876. set dummy $ac_prog; ac_word=$2
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3878. $as_echo_n "checking for $ac_word... " >&6; }
  3879. if ${ac_cv_prog_AWK+:} false; then :
  3880. $as_echo_n "(cached) " >&6
  3881. else
  3882. if test -n "$AWK"; then
  3883. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3884. else
  3885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3886. for as_dir in $PATH
  3887. do
  3888. IFS=$as_save_IFS
  3889. test -z "$as_dir" && as_dir=.
  3890. for ac_exec_ext in '' $ac_executable_extensions; do
  3891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3892. ac_cv_prog_AWK="$ac_prog"
  3893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3894. break 2
  3895. fi
  3896. done
  3897. done
  3898. IFS=$as_save_IFS
  3899. fi
  3900. fi
  3901. AWK=$ac_cv_prog_AWK
  3902. if test -n "$AWK"; then
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3904. $as_echo "$AWK" >&6; }
  3905. else
  3906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3907. $as_echo "no" >&6; }
  3908. fi
  3909. test -n "$AWK" && break
  3910. done
  3911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3912. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3913. set x ${MAKE-make}
  3914. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3915. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3916. $as_echo_n "(cached) " >&6
  3917. else
  3918. cat >conftest.make <<\_ACEOF
  3919. SHELL = /bin/sh
  3920. all:
  3921. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3922. _ACEOF
  3923. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3924. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3925. *@@@%%%=?*=@@@%%%*)
  3926. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3927. *)
  3928. eval ac_cv_prog_make_${ac_make}_set=no;;
  3929. esac
  3930. rm -f conftest.make
  3931. fi
  3932. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3934. $as_echo "yes" >&6; }
  3935. SET_MAKE=
  3936. else
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3938. $as_echo "no" >&6; }
  3939. SET_MAKE="MAKE=${MAKE-make}"
  3940. fi
  3941. rm -rf .tst 2>/dev/null
  3942. mkdir .tst 2>/dev/null
  3943. if test -d .tst; then
  3944. am__leading_dot=.
  3945. else
  3946. am__leading_dot=_
  3947. fi
  3948. rmdir .tst 2>/dev/null
  3949. DEPDIR="${am__leading_dot}deps"
  3950. ac_config_commands="$ac_config_commands depfiles"
  3951. am_make=${MAKE-make}
  3952. cat > confinc << 'END'
  3953. am__doit:
  3954. @echo this is the am__doit target
  3955. .PHONY: am__doit
  3956. END
  3957. # If we don't find an include directive, just comment out the code.
  3958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3959. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3960. am__include="#"
  3961. am__quote=
  3962. _am_result=none
  3963. # First try GNU make style include.
  3964. echo "include confinc" > confmf
  3965. # Ignore all kinds of additional output from 'make'.
  3966. case `$am_make -s -f confmf 2> /dev/null` in #(
  3967. *the\ am__doit\ target*)
  3968. am__include=include
  3969. am__quote=
  3970. _am_result=GNU
  3971. ;;
  3972. esac
  3973. # Now try BSD make style include.
  3974. if test "$am__include" = "#"; then
  3975. echo '.include "confinc"' > confmf
  3976. case `$am_make -s -f confmf 2> /dev/null` in #(
  3977. *the\ am__doit\ target*)
  3978. am__include=.include
  3979. am__quote="\""
  3980. _am_result=BSD
  3981. ;;
  3982. esac
  3983. fi
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3985. $as_echo "$_am_result" >&6; }
  3986. rm -f confinc confmf
  3987. # Check whether --enable-dependency-tracking was given.
  3988. if test "${enable_dependency_tracking+set}" = set; then :
  3989. enableval=$enable_dependency_tracking;
  3990. fi
  3991. if test "x$enable_dependency_tracking" != xno; then
  3992. am_depcomp="$ac_aux_dir/depcomp"
  3993. AMDEPBACKSLASH='\'
  3994. am__nodep='_no'
  3995. fi
  3996. if test "x$enable_dependency_tracking" != xno; then
  3997. AMDEP_TRUE=
  3998. AMDEP_FALSE='#'
  3999. else
  4000. AMDEP_TRUE='#'
  4001. AMDEP_FALSE=
  4002. fi
  4003. # Check whether --enable-silent-rules was given.
  4004. if test "${enable_silent_rules+set}" = set; then :
  4005. enableval=$enable_silent_rules;
  4006. fi
  4007. case $enable_silent_rules in # (((
  4008. yes) AM_DEFAULT_VERBOSITY=0;;
  4009. no) AM_DEFAULT_VERBOSITY=1;;
  4010. *) AM_DEFAULT_VERBOSITY=1;;
  4011. esac
  4012. am_make=${MAKE-make}
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  4014. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  4015. if ${am_cv_make_support_nested_variables+:} false; then :
  4016. $as_echo_n "(cached) " >&6
  4017. else
  4018. if $as_echo 'TRUE=$(BAR$(V))
  4019. BAR0=false
  4020. BAR1=true
  4021. V=1
  4022. am__doit:
  4023. @$(TRUE)
  4024. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  4025. am_cv_make_support_nested_variables=yes
  4026. else
  4027. am_cv_make_support_nested_variables=no
  4028. fi
  4029. fi
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  4031. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  4032. if test $am_cv_make_support_nested_variables = yes; then
  4033. AM_V='$(V)'
  4034. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  4035. else
  4036. AM_V=$AM_DEFAULT_VERBOSITY
  4037. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  4038. fi
  4039. AM_BACKSLASH='\'
  4040. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  4041. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  4042. # is not polluted with repeated "-I."
  4043. am__isrc=' -I$(srcdir)'
  4044. # test to see if srcdir already configured
  4045. if test -f $srcdir/config.status; then
  4046. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  4047. fi
  4048. fi
  4049. # test whether we have cygpath
  4050. if test -z "$CYGPATH_W"; then
  4051. if (cygpath --version) >/dev/null 2>/dev/null; then
  4052. CYGPATH_W='cygpath -w'
  4053. else
  4054. CYGPATH_W=echo
  4055. fi
  4056. fi
  4057. # Define the identity of the package.
  4058. PACKAGE='libcc1'
  4059. VERSION='version-unused'
  4060. # Some tools Automake needs.
  4061. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  4062. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  4063. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  4064. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  4065. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  4066. # For better backward compatibility. To be removed once Automake 1.9.x
  4067. # dies out for good. For more background, see:
  4068. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  4069. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  4070. mkdir_p='$(MKDIR_P)'
  4071. # We need awk for the "check" target (and possibly the TAP driver). The
  4072. # system "awk" is bad on some platforms.
  4073. # Always define AMTAR for backward compatibility. Yes, it's still used
  4074. # in the wild :-( We should find a proper way to deprecate it ...
  4075. AMTAR='$${TAR-tar}'
  4076. # We'll loop over all known methods to create a tar archive until one works.
  4077. _am_tools='gnutar pax cpio none'
  4078. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  4079. depcc="$CC" am_compiler_list=
  4080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4081. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4082. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4083. $as_echo_n "(cached) " >&6
  4084. else
  4085. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4086. # We make a subdir and do the tests there. Otherwise we can end up
  4087. # making bogus files that we don't know about and never remove. For
  4088. # instance it was reported that on HP-UX the gcc test will end up
  4089. # making a dummy file named 'D' -- because '-MD' means "put the output
  4090. # in D".
  4091. rm -rf conftest.dir
  4092. mkdir conftest.dir
  4093. # Copy depcomp to subdir because otherwise we won't find it if we're
  4094. # using a relative directory.
  4095. cp "$am_depcomp" conftest.dir
  4096. cd conftest.dir
  4097. # We will build objects and dependencies in a subdirectory because
  4098. # it helps to detect inapplicable dependency modes. For instance
  4099. # both Tru64's cc and ICC support -MD to output dependencies as a
  4100. # side effect of compilation, but ICC will put the dependencies in
  4101. # the current directory while Tru64 will put them in the object
  4102. # directory.
  4103. mkdir sub
  4104. am_cv_CC_dependencies_compiler_type=none
  4105. if test "$am_compiler_list" = ""; then
  4106. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4107. fi
  4108. am__universal=false
  4109. case " $depcc " in #(
  4110. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4111. esac
  4112. for depmode in $am_compiler_list; do
  4113. # Setup a source with many dependencies, because some compilers
  4114. # like to wrap large dependency lists on column 80 (with \), and
  4115. # we should not choose a depcomp mode which is confused by this.
  4116. #
  4117. # We need to recreate these files for each test, as the compiler may
  4118. # overwrite some of them when testing with obscure command lines.
  4119. # This happens at least with the AIX C compiler.
  4120. : > sub/conftest.c
  4121. for i in 1 2 3 4 5 6; do
  4122. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4123. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4124. # Solaris 10 /bin/sh.
  4125. echo '/* dummy */' > sub/conftst$i.h
  4126. done
  4127. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4128. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4129. # mode. It turns out that the SunPro C++ compiler does not properly
  4130. # handle '-M -o', and we need to detect this. Also, some Intel
  4131. # versions had trouble with output in subdirs.
  4132. am__obj=sub/conftest.${OBJEXT-o}
  4133. am__minus_obj="-o $am__obj"
  4134. case $depmode in
  4135. gcc)
  4136. # This depmode causes a compiler race in universal mode.
  4137. test "$am__universal" = false || continue
  4138. ;;
  4139. nosideeffect)
  4140. # After this tag, mechanisms are not by side-effect, so they'll
  4141. # only be used when explicitly requested.
  4142. if test "x$enable_dependency_tracking" = xyes; then
  4143. continue
  4144. else
  4145. break
  4146. fi
  4147. ;;
  4148. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4149. # This compiler won't grok '-c -o', but also, the minuso test has
  4150. # not run yet. These depmodes are late enough in the game, and
  4151. # so weak that their functioning should not be impacted.
  4152. am__obj=conftest.${OBJEXT-o}
  4153. am__minus_obj=
  4154. ;;
  4155. none) break ;;
  4156. esac
  4157. if depmode=$depmode \
  4158. source=sub/conftest.c object=$am__obj \
  4159. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4160. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4161. >/dev/null 2>conftest.err &&
  4162. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4163. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4164. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4165. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4166. # icc doesn't choke on unknown options, it will just issue warnings
  4167. # or remarks (even with -Werror). So we grep stderr for any message
  4168. # that says an option was ignored or not supported.
  4169. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4170. # icc: Command line warning: ignoring option '-M'; no argument required
  4171. # The diagnosis changed in icc 8.0:
  4172. # icc: Command line remark: option '-MP' not supported
  4173. if (grep 'ignoring option' conftest.err ||
  4174. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4175. am_cv_CC_dependencies_compiler_type=$depmode
  4176. break
  4177. fi
  4178. fi
  4179. done
  4180. cd ..
  4181. rm -rf conftest.dir
  4182. else
  4183. am_cv_CC_dependencies_compiler_type=none
  4184. fi
  4185. fi
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4187. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4188. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4189. if
  4190. test "x$enable_dependency_tracking" != xno \
  4191. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4192. am__fastdepCC_TRUE=
  4193. am__fastdepCC_FALSE='#'
  4194. else
  4195. am__fastdepCC_TRUE='#'
  4196. am__fastdepCC_FALSE=
  4197. fi
  4198. # POSIX will say in a future version that running "rm -f" with no argument
  4199. # is OK; and we want to be able to make that assumption in our Makefile
  4200. # recipes. So use an aggressive probe to check that the usage we want is
  4201. # actually supported "in the wild" to an acceptable degree.
  4202. # See automake bug#10828.
  4203. # To make any issue more visible, cause the running configure to be aborted
  4204. # by default if the 'rm' program in use doesn't match our expectations; the
  4205. # user can still override this though.
  4206. if rm -f && rm -fr && rm -rf; then : OK; else
  4207. cat >&2 <<'END'
  4208. Oops!
  4209. Your 'rm' program seems unable to run without file operands specified
  4210. on the command line, even when the '-f' option is present. This is contrary
  4211. to the behaviour of most rm programs out there, and not conforming with
  4212. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  4213. Please tell bug-automake@gnu.org about your system, including the value
  4214. of your $PATH and any error possibly output before this message. This
  4215. can help us improve future automake versions.
  4216. END
  4217. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  4218. echo 'Configuration will proceed anyway, since you have set the' >&2
  4219. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  4220. echo >&2
  4221. else
  4222. cat >&2 <<'END'
  4223. Aborting the configuration process, to ensure you take notice of the issue.
  4224. You can download and install GNU coreutils to get an 'rm' implementation
  4225. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  4226. If you want to complete the configuration process using your problematic
  4227. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  4228. to "yes", and re-run configure.
  4229. END
  4230. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  4231. fi
  4232. fi
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  4234. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  4235. # Check whether --enable-maintainer-mode was given.
  4236. if test "${enable_maintainer_mode+set}" = set; then :
  4237. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  4238. else
  4239. USE_MAINTAINER_MODE=no
  4240. fi
  4241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  4242. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  4243. if test $USE_MAINTAINER_MODE = yes; then
  4244. MAINTAINER_MODE_TRUE=
  4245. MAINTAINER_MODE_FALSE='#'
  4246. else
  4247. MAINTAINER_MODE_TRUE='#'
  4248. MAINTAINER_MODE_FALSE=
  4249. fi
  4250. MAINT=$MAINTAINER_MODE_TRUE
  4251. case `pwd` in
  4252. *\ * | *\ *)
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4254. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4255. esac
  4256. macro_version='2.2.7a'
  4257. macro_revision='1.3134'
  4258. ltmain="$ac_aux_dir/ltmain.sh"
  4259. # Backslashify metacharacters that are still active within
  4260. # double-quoted strings.
  4261. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4262. # Same as above, but do not quote variable references.
  4263. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4264. # Sed substitution to delay expansion of an escaped shell variable in a
  4265. # double_quote_subst'ed string.
  4266. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4267. # Sed substitution to delay expansion of an escaped single quote.
  4268. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4269. # Sed substitution to avoid accidental globbing in evaled expressions
  4270. no_glob_subst='s/\*/\\\*/g'
  4271. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4272. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4273. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4275. $as_echo_n "checking how to print strings... " >&6; }
  4276. # Test print first, because it will be a builtin if present.
  4277. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4278. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4279. ECHO='print -r --'
  4280. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4281. ECHO='printf %s\n'
  4282. else
  4283. # Use this function as a fallback that always works.
  4284. func_fallback_echo ()
  4285. {
  4286. eval 'cat <<_LTECHO_EOF
  4287. $1
  4288. _LTECHO_EOF'
  4289. }
  4290. ECHO='func_fallback_echo'
  4291. fi
  4292. # func_echo_all arg...
  4293. # Invoke $ECHO with all args, space-separated.
  4294. func_echo_all ()
  4295. {
  4296. $ECHO ""
  4297. }
  4298. case "$ECHO" in
  4299. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4300. $as_echo "printf" >&6; } ;;
  4301. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4302. $as_echo "print -r" >&6; } ;;
  4303. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4304. $as_echo "cat" >&6; } ;;
  4305. esac
  4306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4307. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4308. if ${ac_cv_path_SED+:} false; then :
  4309. $as_echo_n "(cached) " >&6
  4310. else
  4311. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4312. for ac_i in 1 2 3 4 5 6 7; do
  4313. ac_script="$ac_script$as_nl$ac_script"
  4314. done
  4315. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4316. { ac_script=; unset ac_script;}
  4317. if test -z "$SED"; then
  4318. ac_path_SED_found=false
  4319. # Loop through the user's path and test for each of PROGNAME-LIST
  4320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4321. for as_dir in $PATH
  4322. do
  4323. IFS=$as_save_IFS
  4324. test -z "$as_dir" && as_dir=.
  4325. for ac_prog in sed gsed; do
  4326. for ac_exec_ext in '' $ac_executable_extensions; do
  4327. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4328. as_fn_executable_p "$ac_path_SED" || continue
  4329. # Check for GNU ac_path_SED and select it if it is found.
  4330. # Check for GNU $ac_path_SED
  4331. case `"$ac_path_SED" --version 2>&1` in
  4332. *GNU*)
  4333. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4334. *)
  4335. ac_count=0
  4336. $as_echo_n 0123456789 >"conftest.in"
  4337. while :
  4338. do
  4339. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4340. mv "conftest.tmp" "conftest.in"
  4341. cp "conftest.in" "conftest.nl"
  4342. $as_echo '' >> "conftest.nl"
  4343. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4344. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4345. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4346. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4347. # Best one so far, save it but keep looking for a better one
  4348. ac_cv_path_SED="$ac_path_SED"
  4349. ac_path_SED_max=$ac_count
  4350. fi
  4351. # 10*(2^10) chars as input seems more than enough
  4352. test $ac_count -gt 10 && break
  4353. done
  4354. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4355. esac
  4356. $ac_path_SED_found && break 3
  4357. done
  4358. done
  4359. done
  4360. IFS=$as_save_IFS
  4361. if test -z "$ac_cv_path_SED"; then
  4362. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4363. fi
  4364. else
  4365. ac_cv_path_SED=$SED
  4366. fi
  4367. fi
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4369. $as_echo "$ac_cv_path_SED" >&6; }
  4370. SED="$ac_cv_path_SED"
  4371. rm -f conftest.sed
  4372. test -z "$SED" && SED=sed
  4373. Xsed="$SED -e 1s/^X//"
  4374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4375. $as_echo_n "checking for fgrep... " >&6; }
  4376. if ${ac_cv_path_FGREP+:} false; then :
  4377. $as_echo_n "(cached) " >&6
  4378. else
  4379. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4380. then ac_cv_path_FGREP="$GREP -F"
  4381. else
  4382. if test -z "$FGREP"; then
  4383. ac_path_FGREP_found=false
  4384. # Loop through the user's path and test for each of PROGNAME-LIST
  4385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4386. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4387. do
  4388. IFS=$as_save_IFS
  4389. test -z "$as_dir" && as_dir=.
  4390. for ac_prog in fgrep; do
  4391. for ac_exec_ext in '' $ac_executable_extensions; do
  4392. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4393. as_fn_executable_p "$ac_path_FGREP" || continue
  4394. # Check for GNU ac_path_FGREP and select it if it is found.
  4395. # Check for GNU $ac_path_FGREP
  4396. case `"$ac_path_FGREP" --version 2>&1` in
  4397. *GNU*)
  4398. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4399. *)
  4400. ac_count=0
  4401. $as_echo_n 0123456789 >"conftest.in"
  4402. while :
  4403. do
  4404. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4405. mv "conftest.tmp" "conftest.in"
  4406. cp "conftest.in" "conftest.nl"
  4407. $as_echo 'FGREP' >> "conftest.nl"
  4408. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4409. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4410. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4411. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4412. # Best one so far, save it but keep looking for a better one
  4413. ac_cv_path_FGREP="$ac_path_FGREP"
  4414. ac_path_FGREP_max=$ac_count
  4415. fi
  4416. # 10*(2^10) chars as input seems more than enough
  4417. test $ac_count -gt 10 && break
  4418. done
  4419. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4420. esac
  4421. $ac_path_FGREP_found && break 3
  4422. done
  4423. done
  4424. done
  4425. IFS=$as_save_IFS
  4426. if test -z "$ac_cv_path_FGREP"; then
  4427. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4428. fi
  4429. else
  4430. ac_cv_path_FGREP=$FGREP
  4431. fi
  4432. fi
  4433. fi
  4434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4435. $as_echo "$ac_cv_path_FGREP" >&6; }
  4436. FGREP="$ac_cv_path_FGREP"
  4437. test -z "$GREP" && GREP=grep
  4438. # Check whether --with-gnu-ld was given.
  4439. if test "${with_gnu_ld+set}" = set; then :
  4440. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4441. else
  4442. with_gnu_ld=no
  4443. fi
  4444. ac_prog=ld
  4445. if test "$GCC" = yes; then
  4446. # Check if gcc -print-prog-name=ld gives a path.
  4447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4448. $as_echo_n "checking for ld used by $CC... " >&6; }
  4449. case $host in
  4450. *-*-mingw*)
  4451. # gcc leaves a trailing carriage return which upsets mingw
  4452. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4453. *)
  4454. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4455. esac
  4456. case $ac_prog in
  4457. # Accept absolute paths.
  4458. [\\/]* | ?:[\\/]*)
  4459. re_direlt='/[^/][^/]*/\.\./'
  4460. # Canonicalize the pathname of ld
  4461. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4462. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4463. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4464. done
  4465. test -z "$LD" && LD="$ac_prog"
  4466. ;;
  4467. "")
  4468. # If it fails, then pretend we aren't using GCC.
  4469. ac_prog=ld
  4470. ;;
  4471. *)
  4472. # If it is relative, then search for the first ld in PATH.
  4473. with_gnu_ld=unknown
  4474. ;;
  4475. esac
  4476. elif test "$with_gnu_ld" = yes; then
  4477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4478. $as_echo_n "checking for GNU ld... " >&6; }
  4479. else
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4481. $as_echo_n "checking for non-GNU ld... " >&6; }
  4482. fi
  4483. if ${lt_cv_path_LD+:} false; then :
  4484. $as_echo_n "(cached) " >&6
  4485. else
  4486. if test -z "$LD"; then
  4487. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4488. for ac_dir in $PATH; do
  4489. IFS="$lt_save_ifs"
  4490. test -z "$ac_dir" && ac_dir=.
  4491. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4492. lt_cv_path_LD="$ac_dir/$ac_prog"
  4493. # Check to see if the program is GNU ld. I'd rather use --version,
  4494. # but apparently some variants of GNU ld only accept -v.
  4495. # Break only if it was the GNU/non-GNU ld that we prefer.
  4496. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4497. *GNU* | *'with BFD'*)
  4498. test "$with_gnu_ld" != no && break
  4499. ;;
  4500. *)
  4501. test "$with_gnu_ld" != yes && break
  4502. ;;
  4503. esac
  4504. fi
  4505. done
  4506. IFS="$lt_save_ifs"
  4507. else
  4508. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4509. fi
  4510. fi
  4511. LD="$lt_cv_path_LD"
  4512. if test -n "$LD"; then
  4513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4514. $as_echo "$LD" >&6; }
  4515. else
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4517. $as_echo "no" >&6; }
  4518. fi
  4519. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4521. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4522. if ${lt_cv_prog_gnu_ld+:} false; then :
  4523. $as_echo_n "(cached) " >&6
  4524. else
  4525. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4526. case `$LD -v 2>&1 </dev/null` in
  4527. *GNU* | *'with BFD'*)
  4528. lt_cv_prog_gnu_ld=yes
  4529. ;;
  4530. *)
  4531. lt_cv_prog_gnu_ld=no
  4532. ;;
  4533. esac
  4534. fi
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4536. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4537. with_gnu_ld=$lt_cv_prog_gnu_ld
  4538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4539. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4540. if ${lt_cv_path_NM+:} false; then :
  4541. $as_echo_n "(cached) " >&6
  4542. else
  4543. if test -n "$NM"; then
  4544. # Let the user override the test.
  4545. lt_cv_path_NM="$NM"
  4546. else
  4547. lt_nm_to_check="${ac_tool_prefix}nm"
  4548. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4549. lt_nm_to_check="$lt_nm_to_check nm"
  4550. fi
  4551. for lt_tmp_nm in $lt_nm_to_check; do
  4552. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4553. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4554. IFS="$lt_save_ifs"
  4555. test -z "$ac_dir" && ac_dir=.
  4556. tmp_nm="$ac_dir/$lt_tmp_nm"
  4557. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4558. # Check to see if the nm accepts a BSD-compat flag.
  4559. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4560. # nm: unknown option "B" ignored
  4561. # Tru64's nm complains that /dev/null is an invalid object file
  4562. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4563. */dev/null* | *'Invalid file or object type'*)
  4564. lt_cv_path_NM="$tmp_nm -B"
  4565. break
  4566. ;;
  4567. *)
  4568. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4569. */dev/null*)
  4570. lt_cv_path_NM="$tmp_nm -p"
  4571. break
  4572. ;;
  4573. *)
  4574. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4575. continue # so that we can try to find one that supports BSD flags
  4576. ;;
  4577. esac
  4578. ;;
  4579. esac
  4580. fi
  4581. done
  4582. IFS="$lt_save_ifs"
  4583. done
  4584. : ${lt_cv_path_NM=no}
  4585. fi
  4586. fi
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4588. $as_echo "$lt_cv_path_NM" >&6; }
  4589. if test "$lt_cv_path_NM" != "no"; then
  4590. NM="$lt_cv_path_NM"
  4591. else
  4592. # Didn't find any BSD compatible name lister, look for dumpbin.
  4593. if test -n "$DUMPBIN"; then :
  4594. # Let the user override the test.
  4595. else
  4596. if test -n "$ac_tool_prefix"; then
  4597. for ac_prog in dumpbin "link -dump"
  4598. do
  4599. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4600. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4602. $as_echo_n "checking for $ac_word... " >&6; }
  4603. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4604. $as_echo_n "(cached) " >&6
  4605. else
  4606. if test -n "$DUMPBIN"; then
  4607. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4608. else
  4609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4610. for as_dir in $PATH
  4611. do
  4612. IFS=$as_save_IFS
  4613. test -z "$as_dir" && as_dir=.
  4614. for ac_exec_ext in '' $ac_executable_extensions; do
  4615. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4616. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4618. break 2
  4619. fi
  4620. done
  4621. done
  4622. IFS=$as_save_IFS
  4623. fi
  4624. fi
  4625. DUMPBIN=$ac_cv_prog_DUMPBIN
  4626. if test -n "$DUMPBIN"; then
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4628. $as_echo "$DUMPBIN" >&6; }
  4629. else
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4631. $as_echo "no" >&6; }
  4632. fi
  4633. test -n "$DUMPBIN" && break
  4634. done
  4635. fi
  4636. if test -z "$DUMPBIN"; then
  4637. ac_ct_DUMPBIN=$DUMPBIN
  4638. for ac_prog in dumpbin "link -dump"
  4639. do
  4640. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4641. set dummy $ac_prog; ac_word=$2
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4643. $as_echo_n "checking for $ac_word... " >&6; }
  4644. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4645. $as_echo_n "(cached) " >&6
  4646. else
  4647. if test -n "$ac_ct_DUMPBIN"; then
  4648. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4649. else
  4650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4651. for as_dir in $PATH
  4652. do
  4653. IFS=$as_save_IFS
  4654. test -z "$as_dir" && as_dir=.
  4655. for ac_exec_ext in '' $ac_executable_extensions; do
  4656. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4657. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4659. break 2
  4660. fi
  4661. done
  4662. done
  4663. IFS=$as_save_IFS
  4664. fi
  4665. fi
  4666. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4667. if test -n "$ac_ct_DUMPBIN"; then
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4669. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4670. else
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4672. $as_echo "no" >&6; }
  4673. fi
  4674. test -n "$ac_ct_DUMPBIN" && break
  4675. done
  4676. if test "x$ac_ct_DUMPBIN" = x; then
  4677. DUMPBIN=":"
  4678. else
  4679. case $cross_compiling:$ac_tool_warned in
  4680. yes:)
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4682. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4683. ac_tool_warned=yes ;;
  4684. esac
  4685. DUMPBIN=$ac_ct_DUMPBIN
  4686. fi
  4687. fi
  4688. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4689. *COFF*)
  4690. DUMPBIN="$DUMPBIN -symbols"
  4691. ;;
  4692. *)
  4693. DUMPBIN=:
  4694. ;;
  4695. esac
  4696. fi
  4697. if test "$DUMPBIN" != ":"; then
  4698. NM="$DUMPBIN"
  4699. fi
  4700. fi
  4701. test -z "$NM" && NM=nm
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4703. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4704. if ${lt_cv_nm_interface+:} false; then :
  4705. $as_echo_n "(cached) " >&6
  4706. else
  4707. lt_cv_nm_interface="BSD nm"
  4708. echo "int some_variable = 0;" > conftest.$ac_ext
  4709. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4710. (eval "$ac_compile" 2>conftest.err)
  4711. cat conftest.err >&5
  4712. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4713. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4714. cat conftest.err >&5
  4715. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4716. cat conftest.out >&5
  4717. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4718. lt_cv_nm_interface="MS dumpbin"
  4719. fi
  4720. rm -f conftest*
  4721. fi
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4723. $as_echo "$lt_cv_nm_interface" >&6; }
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4725. $as_echo_n "checking whether ln -s works... " >&6; }
  4726. LN_S=$as_ln_s
  4727. if test "$LN_S" = "ln -s"; then
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4729. $as_echo "yes" >&6; }
  4730. else
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4732. $as_echo "no, using $LN_S" >&6; }
  4733. fi
  4734. # find the maximum length of command line arguments
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4736. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4737. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4738. $as_echo_n "(cached) " >&6
  4739. else
  4740. i=0
  4741. teststring="ABCD"
  4742. case $build_os in
  4743. msdosdjgpp*)
  4744. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4745. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4746. # during glob expansion). Even if it were fixed, the result of this
  4747. # check would be larger than it should be.
  4748. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4749. ;;
  4750. gnu*)
  4751. # Under GNU Hurd, this test is not required because there is
  4752. # no limit to the length of command line arguments.
  4753. # Libtool will interpret -1 as no limit whatsoever
  4754. lt_cv_sys_max_cmd_len=-1;
  4755. ;;
  4756. cygwin* | mingw* | cegcc*)
  4757. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4758. # about 5 minutes as the teststring grows exponentially.
  4759. # Worse, since 9x/ME are not pre-emptively multitasking,
  4760. # you end up with a "frozen" computer, even though with patience
  4761. # the test eventually succeeds (with a max line length of 256k).
  4762. # Instead, let's just punt: use the minimum linelength reported by
  4763. # all of the supported platforms: 8192 (on NT/2K/XP).
  4764. lt_cv_sys_max_cmd_len=8192;
  4765. ;;
  4766. mint*)
  4767. # On MiNT this can take a long time and run out of memory.
  4768. lt_cv_sys_max_cmd_len=8192;
  4769. ;;
  4770. amigaos*)
  4771. # On AmigaOS with pdksh, this test takes hours, literally.
  4772. # So we just punt and use a minimum line length of 8192.
  4773. lt_cv_sys_max_cmd_len=8192;
  4774. ;;
  4775. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4776. # This has been around since 386BSD, at least. Likely further.
  4777. if test -x /sbin/sysctl; then
  4778. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4779. elif test -x /usr/sbin/sysctl; then
  4780. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4781. else
  4782. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4783. fi
  4784. # And add a safety zone
  4785. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4786. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4787. ;;
  4788. interix*)
  4789. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4790. lt_cv_sys_max_cmd_len=196608
  4791. ;;
  4792. osf*)
  4793. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4794. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4795. # nice to cause kernel panics so lets avoid the loop below.
  4796. # First set a reasonable default.
  4797. lt_cv_sys_max_cmd_len=16384
  4798. #
  4799. if test -x /sbin/sysconfig; then
  4800. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4801. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4802. esac
  4803. fi
  4804. ;;
  4805. sco3.2v5*)
  4806. lt_cv_sys_max_cmd_len=102400
  4807. ;;
  4808. sysv5* | sco5v6* | sysv4.2uw2*)
  4809. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4810. if test -n "$kargmax"; then
  4811. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4812. else
  4813. lt_cv_sys_max_cmd_len=32768
  4814. fi
  4815. ;;
  4816. *)
  4817. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4818. if test -n "$lt_cv_sys_max_cmd_len"; then
  4819. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4820. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4821. else
  4822. # Make teststring a little bigger before we do anything with it.
  4823. # a 1K string should be a reasonable start.
  4824. for i in 1 2 3 4 5 6 7 8 ; do
  4825. teststring=$teststring$teststring
  4826. done
  4827. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4828. # If test is not a shell built-in, we'll probably end up computing a
  4829. # maximum length that is only half of the actual maximum length, but
  4830. # we can't tell.
  4831. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4832. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4833. test $i != 17 # 1/2 MB should be enough
  4834. do
  4835. i=`expr $i + 1`
  4836. teststring=$teststring$teststring
  4837. done
  4838. # Only check the string length outside the loop.
  4839. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4840. teststring=
  4841. # Add a significant safety factor because C++ compilers can tack on
  4842. # massive amounts of additional arguments before passing them to the
  4843. # linker. It appears as though 1/2 is a usable value.
  4844. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4845. fi
  4846. ;;
  4847. esac
  4848. fi
  4849. if test -n $lt_cv_sys_max_cmd_len ; then
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4851. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4852. else
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4854. $as_echo "none" >&6; }
  4855. fi
  4856. max_cmd_len=$lt_cv_sys_max_cmd_len
  4857. : ${CP="cp -f"}
  4858. : ${MV="mv -f"}
  4859. : ${RM="rm -f"}
  4860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4861. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4862. # Try some XSI features
  4863. xsi_shell=no
  4864. ( _lt_dummy="a/b/c"
  4865. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4866. = c,a/b,, \
  4867. && eval 'test $(( 1 + 1 )) -eq 2 \
  4868. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4869. && xsi_shell=yes
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4871. $as_echo "$xsi_shell" >&6; }
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4873. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4874. lt_shell_append=no
  4875. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4876. >/dev/null 2>&1 \
  4877. && lt_shell_append=yes
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4879. $as_echo "$lt_shell_append" >&6; }
  4880. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4881. lt_unset=unset
  4882. else
  4883. lt_unset=false
  4884. fi
  4885. # test EBCDIC or ASCII
  4886. case `echo X|tr X '\101'` in
  4887. A) # ASCII based system
  4888. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4889. lt_SP2NL='tr \040 \012'
  4890. lt_NL2SP='tr \015\012 \040\040'
  4891. ;;
  4892. *) # EBCDIC based system
  4893. lt_SP2NL='tr \100 \n'
  4894. lt_NL2SP='tr \r\n \100\100'
  4895. ;;
  4896. esac
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4898. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4899. if ${lt_cv_ld_reload_flag+:} false; then :
  4900. $as_echo_n "(cached) " >&6
  4901. else
  4902. lt_cv_ld_reload_flag='-r'
  4903. fi
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4905. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4906. reload_flag=$lt_cv_ld_reload_flag
  4907. case $reload_flag in
  4908. "" | " "*) ;;
  4909. *) reload_flag=" $reload_flag" ;;
  4910. esac
  4911. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4912. case $host_os in
  4913. darwin*)
  4914. if test "$GCC" = yes; then
  4915. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4916. else
  4917. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4918. fi
  4919. ;;
  4920. esac
  4921. if test -n "$ac_tool_prefix"; then
  4922. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4923. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4925. $as_echo_n "checking for $ac_word... " >&6; }
  4926. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4927. $as_echo_n "(cached) " >&6
  4928. else
  4929. if test -n "$OBJDUMP"; then
  4930. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4931. else
  4932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4933. for as_dir in $PATH
  4934. do
  4935. IFS=$as_save_IFS
  4936. test -z "$as_dir" && as_dir=.
  4937. for ac_exec_ext in '' $ac_executable_extensions; do
  4938. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4939. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4940. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4941. break 2
  4942. fi
  4943. done
  4944. done
  4945. IFS=$as_save_IFS
  4946. fi
  4947. fi
  4948. OBJDUMP=$ac_cv_prog_OBJDUMP
  4949. if test -n "$OBJDUMP"; then
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4951. $as_echo "$OBJDUMP" >&6; }
  4952. else
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4954. $as_echo "no" >&6; }
  4955. fi
  4956. fi
  4957. if test -z "$ac_cv_prog_OBJDUMP"; then
  4958. ac_ct_OBJDUMP=$OBJDUMP
  4959. # Extract the first word of "objdump", so it can be a program name with args.
  4960. set dummy objdump; ac_word=$2
  4961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4962. $as_echo_n "checking for $ac_word... " >&6; }
  4963. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4964. $as_echo_n "(cached) " >&6
  4965. else
  4966. if test -n "$ac_ct_OBJDUMP"; then
  4967. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4968. else
  4969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4970. for as_dir in $PATH
  4971. do
  4972. IFS=$as_save_IFS
  4973. test -z "$as_dir" && as_dir=.
  4974. for ac_exec_ext in '' $ac_executable_extensions; do
  4975. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4976. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4977. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4978. break 2
  4979. fi
  4980. done
  4981. done
  4982. IFS=$as_save_IFS
  4983. fi
  4984. fi
  4985. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4986. if test -n "$ac_ct_OBJDUMP"; then
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4988. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4989. else
  4990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4991. $as_echo "no" >&6; }
  4992. fi
  4993. if test "x$ac_ct_OBJDUMP" = x; then
  4994. OBJDUMP="false"
  4995. else
  4996. case $cross_compiling:$ac_tool_warned in
  4997. yes:)
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4999. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5000. ac_tool_warned=yes ;;
  5001. esac
  5002. OBJDUMP=$ac_ct_OBJDUMP
  5003. fi
  5004. else
  5005. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5006. fi
  5007. test -z "$OBJDUMP" && OBJDUMP=objdump
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5009. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5010. if ${lt_cv_deplibs_check_method+:} false; then :
  5011. $as_echo_n "(cached) " >&6
  5012. else
  5013. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5014. lt_cv_file_magic_test_file=
  5015. lt_cv_deplibs_check_method='unknown'
  5016. # Need to set the preceding variable on all platforms that support
  5017. # interlibrary dependencies.
  5018. # 'none' -- dependencies not supported.
  5019. # `unknown' -- same as none, but documents that we really don't know.
  5020. # 'pass_all' -- all dependencies passed with no checks.
  5021. # 'test_compile' -- check by making test program.
  5022. # 'file_magic [[regex]]' -- check by looking for files in library path
  5023. # which responds to the $file_magic_cmd with a given extended regex.
  5024. # If you have `file' or equivalent on your system and you're not sure
  5025. # whether `pass_all' will *always* work, you probably want this one.
  5026. case $host_os in
  5027. aix[4-9]*)
  5028. lt_cv_deplibs_check_method=pass_all
  5029. ;;
  5030. beos*)
  5031. lt_cv_deplibs_check_method=pass_all
  5032. ;;
  5033. bsdi[45]*)
  5034. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5035. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5036. lt_cv_file_magic_test_file=/shlib/libc.so
  5037. ;;
  5038. cygwin*)
  5039. # func_win32_libid is a shell function defined in ltmain.sh
  5040. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5041. lt_cv_file_magic_cmd='func_win32_libid'
  5042. ;;
  5043. mingw* | pw32*)
  5044. # Base MSYS/MinGW do not provide the 'file' command needed by
  5045. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5046. # unless we find 'file', for example because we are cross-compiling.
  5047. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5048. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5049. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5050. lt_cv_file_magic_cmd='func_win32_libid'
  5051. else
  5052. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5053. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5054. fi
  5055. ;;
  5056. cegcc*)
  5057. # use the weaker test based on 'objdump'. See mingw*.
  5058. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5059. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5060. ;;
  5061. darwin* | rhapsody*)
  5062. lt_cv_deplibs_check_method=pass_all
  5063. ;;
  5064. freebsd* | dragonfly*)
  5065. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5066. case $host_cpu in
  5067. i*86 )
  5068. # Not sure whether the presence of OpenBSD here was a mistake.
  5069. # Let's accept both of them until this is cleared up.
  5070. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5071. lt_cv_file_magic_cmd=/usr/bin/file
  5072. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5073. ;;
  5074. esac
  5075. else
  5076. lt_cv_deplibs_check_method=pass_all
  5077. fi
  5078. ;;
  5079. gnu*)
  5080. lt_cv_deplibs_check_method=pass_all
  5081. ;;
  5082. haiku*)
  5083. lt_cv_deplibs_check_method=pass_all
  5084. ;;
  5085. hpux10.20* | hpux11*)
  5086. lt_cv_file_magic_cmd=/usr/bin/file
  5087. case $host_cpu in
  5088. ia64*)
  5089. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5090. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5091. ;;
  5092. hppa*64*)
  5093. 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]'
  5094. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5095. ;;
  5096. *)
  5097. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5098. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5099. ;;
  5100. esac
  5101. ;;
  5102. interix[3-9]*)
  5103. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5104. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5105. ;;
  5106. irix5* | irix6* | nonstopux*)
  5107. case $LD in
  5108. *-32|*"-32 ") libmagic=32-bit;;
  5109. *-n32|*"-n32 ") libmagic=N32;;
  5110. *-64|*"-64 ") libmagic=64-bit;;
  5111. *) libmagic=never-match;;
  5112. esac
  5113. lt_cv_deplibs_check_method=pass_all
  5114. ;;
  5115. # This must be Linux ELF.
  5116. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  5117. lt_cv_deplibs_check_method=pass_all
  5118. ;;
  5119. netbsd*)
  5120. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5121. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5122. else
  5123. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5124. fi
  5125. ;;
  5126. newos6*)
  5127. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5128. lt_cv_file_magic_cmd=/usr/bin/file
  5129. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5130. ;;
  5131. *nto* | *qnx*)
  5132. lt_cv_deplibs_check_method=pass_all
  5133. ;;
  5134. openbsd*)
  5135. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5136. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5137. else
  5138. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5139. fi
  5140. ;;
  5141. osf3* | osf4* | osf5*)
  5142. lt_cv_deplibs_check_method=pass_all
  5143. ;;
  5144. rdos*)
  5145. lt_cv_deplibs_check_method=pass_all
  5146. ;;
  5147. solaris*)
  5148. lt_cv_deplibs_check_method=pass_all
  5149. ;;
  5150. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5151. lt_cv_deplibs_check_method=pass_all
  5152. ;;
  5153. sysv4 | sysv4.3*)
  5154. case $host_vendor in
  5155. motorola)
  5156. 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]'
  5157. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5158. ;;
  5159. ncr)
  5160. lt_cv_deplibs_check_method=pass_all
  5161. ;;
  5162. sequent)
  5163. lt_cv_file_magic_cmd='/bin/file'
  5164. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5165. ;;
  5166. sni)
  5167. lt_cv_file_magic_cmd='/bin/file'
  5168. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5169. lt_cv_file_magic_test_file=/lib/libc.so
  5170. ;;
  5171. siemens)
  5172. lt_cv_deplibs_check_method=pass_all
  5173. ;;
  5174. pc)
  5175. lt_cv_deplibs_check_method=pass_all
  5176. ;;
  5177. esac
  5178. ;;
  5179. tpf*)
  5180. lt_cv_deplibs_check_method=pass_all
  5181. ;;
  5182. esac
  5183. fi
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5185. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5186. file_magic_cmd=$lt_cv_file_magic_cmd
  5187. deplibs_check_method=$lt_cv_deplibs_check_method
  5188. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5189. if test -n "$ac_tool_prefix"; then
  5190. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5191. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5193. $as_echo_n "checking for $ac_word... " >&6; }
  5194. if ${ac_cv_prog_AR+:} false; then :
  5195. $as_echo_n "(cached) " >&6
  5196. else
  5197. if test -n "$AR"; then
  5198. ac_cv_prog_AR="$AR" # Let the user override the test.
  5199. else
  5200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5201. for as_dir in $PATH
  5202. do
  5203. IFS=$as_save_IFS
  5204. test -z "$as_dir" && as_dir=.
  5205. for ac_exec_ext in '' $ac_executable_extensions; do
  5206. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5207. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5208. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5209. break 2
  5210. fi
  5211. done
  5212. done
  5213. IFS=$as_save_IFS
  5214. fi
  5215. fi
  5216. AR=$ac_cv_prog_AR
  5217. if test -n "$AR"; then
  5218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5219. $as_echo "$AR" >&6; }
  5220. else
  5221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5222. $as_echo "no" >&6; }
  5223. fi
  5224. fi
  5225. if test -z "$ac_cv_prog_AR"; then
  5226. ac_ct_AR=$AR
  5227. # Extract the first word of "ar", so it can be a program name with args.
  5228. set dummy ar; ac_word=$2
  5229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5230. $as_echo_n "checking for $ac_word... " >&6; }
  5231. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5232. $as_echo_n "(cached) " >&6
  5233. else
  5234. if test -n "$ac_ct_AR"; then
  5235. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5236. else
  5237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5238. for as_dir in $PATH
  5239. do
  5240. IFS=$as_save_IFS
  5241. test -z "$as_dir" && as_dir=.
  5242. for ac_exec_ext in '' $ac_executable_extensions; do
  5243. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5244. ac_cv_prog_ac_ct_AR="ar"
  5245. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5246. break 2
  5247. fi
  5248. done
  5249. done
  5250. IFS=$as_save_IFS
  5251. fi
  5252. fi
  5253. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5254. if test -n "$ac_ct_AR"; then
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5256. $as_echo "$ac_ct_AR" >&6; }
  5257. else
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5259. $as_echo "no" >&6; }
  5260. fi
  5261. if test "x$ac_ct_AR" = x; then
  5262. AR="false"
  5263. else
  5264. case $cross_compiling:$ac_tool_warned in
  5265. yes:)
  5266. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5267. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5268. ac_tool_warned=yes ;;
  5269. esac
  5270. AR=$ac_ct_AR
  5271. fi
  5272. else
  5273. AR="$ac_cv_prog_AR"
  5274. fi
  5275. test -z "$AR" && AR=ar
  5276. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5277. if test -n "$ac_tool_prefix"; then
  5278. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5279. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5281. $as_echo_n "checking for $ac_word... " >&6; }
  5282. if ${ac_cv_prog_STRIP+:} false; then :
  5283. $as_echo_n "(cached) " >&6
  5284. else
  5285. if test -n "$STRIP"; then
  5286. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5287. else
  5288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5289. for as_dir in $PATH
  5290. do
  5291. IFS=$as_save_IFS
  5292. test -z "$as_dir" && as_dir=.
  5293. for ac_exec_ext in '' $ac_executable_extensions; do
  5294. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5295. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5296. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5297. break 2
  5298. fi
  5299. done
  5300. done
  5301. IFS=$as_save_IFS
  5302. fi
  5303. fi
  5304. STRIP=$ac_cv_prog_STRIP
  5305. if test -n "$STRIP"; then
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5307. $as_echo "$STRIP" >&6; }
  5308. else
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5310. $as_echo "no" >&6; }
  5311. fi
  5312. fi
  5313. if test -z "$ac_cv_prog_STRIP"; then
  5314. ac_ct_STRIP=$STRIP
  5315. # Extract the first word of "strip", so it can be a program name with args.
  5316. set dummy strip; ac_word=$2
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5318. $as_echo_n "checking for $ac_word... " >&6; }
  5319. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5320. $as_echo_n "(cached) " >&6
  5321. else
  5322. if test -n "$ac_ct_STRIP"; then
  5323. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5324. else
  5325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5326. for as_dir in $PATH
  5327. do
  5328. IFS=$as_save_IFS
  5329. test -z "$as_dir" && as_dir=.
  5330. for ac_exec_ext in '' $ac_executable_extensions; do
  5331. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5332. ac_cv_prog_ac_ct_STRIP="strip"
  5333. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5334. break 2
  5335. fi
  5336. done
  5337. done
  5338. IFS=$as_save_IFS
  5339. fi
  5340. fi
  5341. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5342. if test -n "$ac_ct_STRIP"; then
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5344. $as_echo "$ac_ct_STRIP" >&6; }
  5345. else
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5347. $as_echo "no" >&6; }
  5348. fi
  5349. if test "x$ac_ct_STRIP" = x; then
  5350. STRIP=":"
  5351. else
  5352. case $cross_compiling:$ac_tool_warned in
  5353. yes:)
  5354. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5355. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5356. ac_tool_warned=yes ;;
  5357. esac
  5358. STRIP=$ac_ct_STRIP
  5359. fi
  5360. else
  5361. STRIP="$ac_cv_prog_STRIP"
  5362. fi
  5363. test -z "$STRIP" && STRIP=:
  5364. if test -n "$ac_tool_prefix"; then
  5365. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5366. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5368. $as_echo_n "checking for $ac_word... " >&6; }
  5369. if ${ac_cv_prog_RANLIB+:} false; then :
  5370. $as_echo_n "(cached) " >&6
  5371. else
  5372. if test -n "$RANLIB"; then
  5373. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5374. else
  5375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5376. for as_dir in $PATH
  5377. do
  5378. IFS=$as_save_IFS
  5379. test -z "$as_dir" && as_dir=.
  5380. for ac_exec_ext in '' $ac_executable_extensions; do
  5381. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5382. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5383. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5384. break 2
  5385. fi
  5386. done
  5387. done
  5388. IFS=$as_save_IFS
  5389. fi
  5390. fi
  5391. RANLIB=$ac_cv_prog_RANLIB
  5392. if test -n "$RANLIB"; then
  5393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5394. $as_echo "$RANLIB" >&6; }
  5395. else
  5396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5397. $as_echo "no" >&6; }
  5398. fi
  5399. fi
  5400. if test -z "$ac_cv_prog_RANLIB"; then
  5401. ac_ct_RANLIB=$RANLIB
  5402. # Extract the first word of "ranlib", so it can be a program name with args.
  5403. set dummy ranlib; ac_word=$2
  5404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5405. $as_echo_n "checking for $ac_word... " >&6; }
  5406. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5407. $as_echo_n "(cached) " >&6
  5408. else
  5409. if test -n "$ac_ct_RANLIB"; then
  5410. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5411. else
  5412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5413. for as_dir in $PATH
  5414. do
  5415. IFS=$as_save_IFS
  5416. test -z "$as_dir" && as_dir=.
  5417. for ac_exec_ext in '' $ac_executable_extensions; do
  5418. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5419. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5420. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5421. break 2
  5422. fi
  5423. done
  5424. done
  5425. IFS=$as_save_IFS
  5426. fi
  5427. fi
  5428. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5429. if test -n "$ac_ct_RANLIB"; then
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5431. $as_echo "$ac_ct_RANLIB" >&6; }
  5432. else
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5434. $as_echo "no" >&6; }
  5435. fi
  5436. if test "x$ac_ct_RANLIB" = x; then
  5437. RANLIB=":"
  5438. else
  5439. case $cross_compiling:$ac_tool_warned in
  5440. yes:)
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5442. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5443. ac_tool_warned=yes ;;
  5444. esac
  5445. RANLIB=$ac_ct_RANLIB
  5446. fi
  5447. else
  5448. RANLIB="$ac_cv_prog_RANLIB"
  5449. fi
  5450. test -z "$RANLIB" && RANLIB=:
  5451. # Determine commands to create old-style static archives.
  5452. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5453. old_postinstall_cmds='chmod 644 $oldlib'
  5454. old_postuninstall_cmds=
  5455. if test -n "$RANLIB"; then
  5456. case $host_os in
  5457. openbsd*)
  5458. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5459. ;;
  5460. *)
  5461. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5462. ;;
  5463. esac
  5464. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5465. fi
  5466. case $host_os in
  5467. darwin*)
  5468. lock_old_archive_extraction=yes ;;
  5469. *)
  5470. lock_old_archive_extraction=no ;;
  5471. esac
  5472. # If no C compiler was specified, use CC.
  5473. LTCC=${LTCC-"$CC"}
  5474. # If no C compiler flags were specified, use CFLAGS.
  5475. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5476. # Allow CC to be a program name with arguments.
  5477. compiler=$CC
  5478. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5480. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5481. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5482. $as_echo_n "(cached) " >&6
  5483. else
  5484. # These are sane defaults that work on at least a few old systems.
  5485. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5486. # Character class describing NM global symbol codes.
  5487. symcode='[BCDEGRST]'
  5488. # Regexp to match symbols that can be accessed directly from C.
  5489. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5490. # Define system-specific variables.
  5491. case $host_os in
  5492. aix*)
  5493. symcode='[BCDT]'
  5494. ;;
  5495. cygwin* | mingw* | pw32* | cegcc*)
  5496. symcode='[ABCDGISTW]'
  5497. ;;
  5498. hpux*)
  5499. if test "$host_cpu" = ia64; then
  5500. symcode='[ABCDEGRST]'
  5501. fi
  5502. ;;
  5503. irix* | nonstopux*)
  5504. symcode='[BCDEGRST]'
  5505. ;;
  5506. osf*)
  5507. symcode='[BCDEGQRST]'
  5508. ;;
  5509. solaris*)
  5510. symcode='[BDRT]'
  5511. ;;
  5512. sco3.2v5*)
  5513. symcode='[DT]'
  5514. ;;
  5515. sysv4.2uw2*)
  5516. symcode='[DT]'
  5517. ;;
  5518. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5519. symcode='[ABDT]'
  5520. ;;
  5521. sysv4)
  5522. symcode='[DFNSTU]'
  5523. ;;
  5524. esac
  5525. # If we're using GNU nm, then use its standard symbol codes.
  5526. case `$NM -V 2>&1` in
  5527. *GNU* | *'with BFD'*)
  5528. symcode='[ABCDGIRSTW]' ;;
  5529. esac
  5530. # Transform an extracted symbol line into a proper C declaration.
  5531. # Some systems (esp. on ia64) link data and code symbols differently,
  5532. # so use this general approach.
  5533. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5534. # Transform an extracted symbol line into symbol name and symbol address
  5535. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5536. 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'"
  5537. # Handle CRLF in mingw tool chain
  5538. opt_cr=
  5539. case $build_os in
  5540. mingw*)
  5541. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5542. ;;
  5543. esac
  5544. # Try without a prefix underscore, then with it.
  5545. for ac_symprfx in "" "_"; do
  5546. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5547. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5548. # Write the raw and C identifiers.
  5549. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5550. # Fake it for dumpbin and say T for any non-static function
  5551. # and D for any global variable.
  5552. # Also find C++ and __fastcall symbols from MSVC++,
  5553. # which start with @ or ?.
  5554. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5555. " {last_section=section; section=\$ 3};"\
  5556. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5557. " \$ 0!~/External *\|/{next};"\
  5558. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5559. " {if(hide[section]) next};"\
  5560. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5561. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5562. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5563. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5564. " ' prfx=^$ac_symprfx"
  5565. else
  5566. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5567. fi
  5568. # Check to see that the pipe works correctly.
  5569. pipe_works=no
  5570. rm -f conftest*
  5571. cat > conftest.$ac_ext <<_LT_EOF
  5572. #ifdef __cplusplus
  5573. extern "C" {
  5574. #endif
  5575. char nm_test_var;
  5576. void nm_test_func(void);
  5577. void nm_test_func(void){}
  5578. #ifdef __cplusplus
  5579. }
  5580. #endif
  5581. int main(){nm_test_var='a';nm_test_func();return(0);}
  5582. _LT_EOF
  5583. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5584. (eval $ac_compile) 2>&5
  5585. ac_status=$?
  5586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5587. test $ac_status = 0; }; then
  5588. # Now try to grab the symbols.
  5589. nlist=conftest.nm
  5590. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5591. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5592. ac_status=$?
  5593. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5594. test $ac_status = 0; } && test -s "$nlist"; then
  5595. # Try sorting and uniquifying the output.
  5596. if sort "$nlist" | uniq > "$nlist"T; then
  5597. mv -f "$nlist"T "$nlist"
  5598. else
  5599. rm -f "$nlist"T
  5600. fi
  5601. # Make sure that we snagged all the symbols we need.
  5602. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5603. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5604. cat <<_LT_EOF > conftest.$ac_ext
  5605. #ifdef __cplusplus
  5606. extern "C" {
  5607. #endif
  5608. _LT_EOF
  5609. # Now generate the symbol file.
  5610. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5611. cat <<_LT_EOF >> conftest.$ac_ext
  5612. /* The mapping between symbol names and symbols. */
  5613. const struct {
  5614. const char *name;
  5615. void *address;
  5616. }
  5617. lt__PROGRAM__LTX_preloaded_symbols[] =
  5618. {
  5619. { "@PROGRAM@", (void *) 0 },
  5620. _LT_EOF
  5621. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5622. cat <<\_LT_EOF >> conftest.$ac_ext
  5623. {0, (void *) 0}
  5624. };
  5625. /* This works around a problem in FreeBSD linker */
  5626. #ifdef FREEBSD_WORKAROUND
  5627. static const void *lt_preloaded_setup() {
  5628. return lt__PROGRAM__LTX_preloaded_symbols;
  5629. }
  5630. #endif
  5631. #ifdef __cplusplus
  5632. }
  5633. #endif
  5634. _LT_EOF
  5635. # Now try linking the two files.
  5636. mv conftest.$ac_objext conftstm.$ac_objext
  5637. lt_save_LIBS="$LIBS"
  5638. lt_save_CFLAGS="$CFLAGS"
  5639. LIBS="conftstm.$ac_objext"
  5640. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5641. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5642. (eval $ac_link) 2>&5
  5643. ac_status=$?
  5644. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5645. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5646. pipe_works=yes
  5647. fi
  5648. LIBS="$lt_save_LIBS"
  5649. CFLAGS="$lt_save_CFLAGS"
  5650. else
  5651. echo "cannot find nm_test_func in $nlist" >&5
  5652. fi
  5653. else
  5654. echo "cannot find nm_test_var in $nlist" >&5
  5655. fi
  5656. else
  5657. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5658. fi
  5659. else
  5660. echo "$progname: failed program was:" >&5
  5661. cat conftest.$ac_ext >&5
  5662. fi
  5663. rm -rf conftest* conftst*
  5664. # Do not use the global_symbol_pipe unless it works.
  5665. if test "$pipe_works" = yes; then
  5666. break
  5667. else
  5668. lt_cv_sys_global_symbol_pipe=
  5669. fi
  5670. done
  5671. fi
  5672. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5673. lt_cv_sys_global_symbol_to_cdecl=
  5674. fi
  5675. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5677. $as_echo "failed" >&6; }
  5678. else
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5680. $as_echo "ok" >&6; }
  5681. fi
  5682. # Check whether --enable-libtool-lock was given.
  5683. if test "${enable_libtool_lock+set}" = set; then :
  5684. enableval=$enable_libtool_lock;
  5685. fi
  5686. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5687. # Some flags need to be propagated to the compiler or linker for good
  5688. # libtool support.
  5689. case $host in
  5690. ia64-*-hpux*)
  5691. # Find out which ABI we are using.
  5692. echo 'int i;' > conftest.$ac_ext
  5693. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5694. (eval $ac_compile) 2>&5
  5695. ac_status=$?
  5696. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5697. test $ac_status = 0; }; then
  5698. case `/usr/bin/file conftest.$ac_objext` in
  5699. *ELF-32*)
  5700. HPUX_IA64_MODE="32"
  5701. ;;
  5702. *ELF-64*)
  5703. HPUX_IA64_MODE="64"
  5704. ;;
  5705. esac
  5706. fi
  5707. rm -rf conftest*
  5708. ;;
  5709. *-*-irix6*)
  5710. # Find out which ABI we are using.
  5711. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5712. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5713. (eval $ac_compile) 2>&5
  5714. ac_status=$?
  5715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5716. test $ac_status = 0; }; then
  5717. if test "$lt_cv_prog_gnu_ld" = yes; then
  5718. case `/usr/bin/file conftest.$ac_objext` in
  5719. *32-bit*)
  5720. LD="${LD-ld} -melf32bsmip"
  5721. ;;
  5722. *N32*)
  5723. LD="${LD-ld} -melf32bmipn32"
  5724. ;;
  5725. *64-bit*)
  5726. LD="${LD-ld} -melf64bmip"
  5727. ;;
  5728. esac
  5729. else
  5730. case `/usr/bin/file conftest.$ac_objext` in
  5731. *32-bit*)
  5732. LD="${LD-ld} -32"
  5733. ;;
  5734. *N32*)
  5735. LD="${LD-ld} -n32"
  5736. ;;
  5737. *64-bit*)
  5738. LD="${LD-ld} -64"
  5739. ;;
  5740. esac
  5741. fi
  5742. fi
  5743. rm -rf conftest*
  5744. ;;
  5745. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5746. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5747. # Find out which ABI we are using.
  5748. echo 'int i;' > conftest.$ac_ext
  5749. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5750. (eval $ac_compile) 2>&5
  5751. ac_status=$?
  5752. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5753. test $ac_status = 0; }; then
  5754. case `/usr/bin/file conftest.o` in
  5755. *32-bit*)
  5756. case $host in
  5757. x86_64-*kfreebsd*-gnu)
  5758. LD="${LD-ld} -m elf_i386_fbsd"
  5759. ;;
  5760. x86_64-*linux*)
  5761. case `/usr/bin/file conftest.o` in
  5762. *x86-64*)
  5763. LD="${LD-ld} -m elf32_x86_64"
  5764. ;;
  5765. *)
  5766. LD="${LD-ld} -m elf_i386"
  5767. ;;
  5768. esac
  5769. ;;
  5770. powerpc64le-*linux*)
  5771. LD="${LD-ld} -m elf32lppclinux"
  5772. ;;
  5773. powerpc64-*linux*)
  5774. LD="${LD-ld} -m elf32ppclinux"
  5775. ;;
  5776. s390x-*linux*)
  5777. LD="${LD-ld} -m elf_s390"
  5778. ;;
  5779. sparc64-*linux*)
  5780. LD="${LD-ld} -m elf32_sparc"
  5781. ;;
  5782. esac
  5783. ;;
  5784. *64-bit*)
  5785. case $host in
  5786. x86_64-*kfreebsd*-gnu)
  5787. LD="${LD-ld} -m elf_x86_64_fbsd"
  5788. ;;
  5789. x86_64-*linux*)
  5790. LD="${LD-ld} -m elf_x86_64"
  5791. ;;
  5792. powerpcle-*linux*)
  5793. LD="${LD-ld} -m elf64lppc"
  5794. ;;
  5795. powerpc-*linux*)
  5796. LD="${LD-ld} -m elf64ppc"
  5797. ;;
  5798. s390*-*linux*|s390*-*tpf*)
  5799. LD="${LD-ld} -m elf64_s390"
  5800. ;;
  5801. sparc*-*linux*)
  5802. LD="${LD-ld} -m elf64_sparc"
  5803. ;;
  5804. esac
  5805. ;;
  5806. esac
  5807. fi
  5808. rm -rf conftest*
  5809. ;;
  5810. *-*-sco3.2v5*)
  5811. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5812. SAVE_CFLAGS="$CFLAGS"
  5813. CFLAGS="$CFLAGS -belf"
  5814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5815. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5816. if ${lt_cv_cc_needs_belf+:} false; then :
  5817. $as_echo_n "(cached) " >&6
  5818. else
  5819. ac_ext=c
  5820. ac_cpp='$CPP $CPPFLAGS'
  5821. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5822. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5823. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5825. /* end confdefs.h. */
  5826. int
  5827. main ()
  5828. {
  5829. ;
  5830. return 0;
  5831. }
  5832. _ACEOF
  5833. if ac_fn_c_try_link "$LINENO"; then :
  5834. lt_cv_cc_needs_belf=yes
  5835. else
  5836. lt_cv_cc_needs_belf=no
  5837. fi
  5838. rm -f core conftest.err conftest.$ac_objext \
  5839. conftest$ac_exeext conftest.$ac_ext
  5840. ac_ext=c
  5841. ac_cpp='$CPP $CPPFLAGS'
  5842. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5843. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5844. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5845. fi
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5847. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5848. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5849. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5850. CFLAGS="$SAVE_CFLAGS"
  5851. fi
  5852. ;;
  5853. sparc*-*solaris*)
  5854. # Find out which ABI we are using.
  5855. echo 'int i;' > conftest.$ac_ext
  5856. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5857. (eval $ac_compile) 2>&5
  5858. ac_status=$?
  5859. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5860. test $ac_status = 0; }; then
  5861. case `/usr/bin/file conftest.o` in
  5862. *64-bit*)
  5863. case $lt_cv_prog_gnu_ld in
  5864. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5865. *)
  5866. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5867. LD="${LD-ld} -64"
  5868. fi
  5869. ;;
  5870. esac
  5871. ;;
  5872. esac
  5873. fi
  5874. rm -rf conftest*
  5875. ;;
  5876. esac
  5877. need_locks="$enable_libtool_lock"
  5878. case $host_os in
  5879. rhapsody* | darwin*)
  5880. if test -n "$ac_tool_prefix"; then
  5881. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5882. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5884. $as_echo_n "checking for $ac_word... " >&6; }
  5885. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5886. $as_echo_n "(cached) " >&6
  5887. else
  5888. if test -n "$DSYMUTIL"; then
  5889. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5890. else
  5891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5892. for as_dir in $PATH
  5893. do
  5894. IFS=$as_save_IFS
  5895. test -z "$as_dir" && as_dir=.
  5896. for ac_exec_ext in '' $ac_executable_extensions; do
  5897. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5898. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5900. break 2
  5901. fi
  5902. done
  5903. done
  5904. IFS=$as_save_IFS
  5905. fi
  5906. fi
  5907. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5908. if test -n "$DSYMUTIL"; then
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5910. $as_echo "$DSYMUTIL" >&6; }
  5911. else
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5913. $as_echo "no" >&6; }
  5914. fi
  5915. fi
  5916. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5917. ac_ct_DSYMUTIL=$DSYMUTIL
  5918. # Extract the first word of "dsymutil", so it can be a program name with args.
  5919. set dummy dsymutil; ac_word=$2
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5921. $as_echo_n "checking for $ac_word... " >&6; }
  5922. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5923. $as_echo_n "(cached) " >&6
  5924. else
  5925. if test -n "$ac_ct_DSYMUTIL"; then
  5926. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5927. else
  5928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5929. for as_dir in $PATH
  5930. do
  5931. IFS=$as_save_IFS
  5932. test -z "$as_dir" && as_dir=.
  5933. for ac_exec_ext in '' $ac_executable_extensions; do
  5934. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5935. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5936. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5937. break 2
  5938. fi
  5939. done
  5940. done
  5941. IFS=$as_save_IFS
  5942. fi
  5943. fi
  5944. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5945. if test -n "$ac_ct_DSYMUTIL"; then
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5947. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5948. else
  5949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5950. $as_echo "no" >&6; }
  5951. fi
  5952. if test "x$ac_ct_DSYMUTIL" = x; then
  5953. DSYMUTIL=":"
  5954. else
  5955. case $cross_compiling:$ac_tool_warned in
  5956. yes:)
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5958. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5959. ac_tool_warned=yes ;;
  5960. esac
  5961. DSYMUTIL=$ac_ct_DSYMUTIL
  5962. fi
  5963. else
  5964. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5965. fi
  5966. if test -n "$ac_tool_prefix"; then
  5967. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5968. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5970. $as_echo_n "checking for $ac_word... " >&6; }
  5971. if ${ac_cv_prog_NMEDIT+:} false; then :
  5972. $as_echo_n "(cached) " >&6
  5973. else
  5974. if test -n "$NMEDIT"; then
  5975. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5976. else
  5977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5978. for as_dir in $PATH
  5979. do
  5980. IFS=$as_save_IFS
  5981. test -z "$as_dir" && as_dir=.
  5982. for ac_exec_ext in '' $ac_executable_extensions; do
  5983. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5984. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5985. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5986. break 2
  5987. fi
  5988. done
  5989. done
  5990. IFS=$as_save_IFS
  5991. fi
  5992. fi
  5993. NMEDIT=$ac_cv_prog_NMEDIT
  5994. if test -n "$NMEDIT"; then
  5995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5996. $as_echo "$NMEDIT" >&6; }
  5997. else
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5999. $as_echo "no" >&6; }
  6000. fi
  6001. fi
  6002. if test -z "$ac_cv_prog_NMEDIT"; then
  6003. ac_ct_NMEDIT=$NMEDIT
  6004. # Extract the first word of "nmedit", so it can be a program name with args.
  6005. set dummy nmedit; ac_word=$2
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6007. $as_echo_n "checking for $ac_word... " >&6; }
  6008. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6009. $as_echo_n "(cached) " >&6
  6010. else
  6011. if test -n "$ac_ct_NMEDIT"; then
  6012. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6013. else
  6014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6015. for as_dir in $PATH
  6016. do
  6017. IFS=$as_save_IFS
  6018. test -z "$as_dir" && as_dir=.
  6019. for ac_exec_ext in '' $ac_executable_extensions; do
  6020. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6021. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6022. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6023. break 2
  6024. fi
  6025. done
  6026. done
  6027. IFS=$as_save_IFS
  6028. fi
  6029. fi
  6030. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6031. if test -n "$ac_ct_NMEDIT"; then
  6032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6033. $as_echo "$ac_ct_NMEDIT" >&6; }
  6034. else
  6035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6036. $as_echo "no" >&6; }
  6037. fi
  6038. if test "x$ac_ct_NMEDIT" = x; then
  6039. NMEDIT=":"
  6040. else
  6041. case $cross_compiling:$ac_tool_warned in
  6042. yes:)
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6044. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6045. ac_tool_warned=yes ;;
  6046. esac
  6047. NMEDIT=$ac_ct_NMEDIT
  6048. fi
  6049. else
  6050. NMEDIT="$ac_cv_prog_NMEDIT"
  6051. fi
  6052. if test -n "$ac_tool_prefix"; then
  6053. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6054. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6056. $as_echo_n "checking for $ac_word... " >&6; }
  6057. if ${ac_cv_prog_LIPO+:} false; then :
  6058. $as_echo_n "(cached) " >&6
  6059. else
  6060. if test -n "$LIPO"; then
  6061. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6062. else
  6063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6064. for as_dir in $PATH
  6065. do
  6066. IFS=$as_save_IFS
  6067. test -z "$as_dir" && as_dir=.
  6068. for ac_exec_ext in '' $ac_executable_extensions; do
  6069. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6070. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6071. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6072. break 2
  6073. fi
  6074. done
  6075. done
  6076. IFS=$as_save_IFS
  6077. fi
  6078. fi
  6079. LIPO=$ac_cv_prog_LIPO
  6080. if test -n "$LIPO"; then
  6081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6082. $as_echo "$LIPO" >&6; }
  6083. else
  6084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6085. $as_echo "no" >&6; }
  6086. fi
  6087. fi
  6088. if test -z "$ac_cv_prog_LIPO"; then
  6089. ac_ct_LIPO=$LIPO
  6090. # Extract the first word of "lipo", so it can be a program name with args.
  6091. set dummy lipo; ac_word=$2
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6093. $as_echo_n "checking for $ac_word... " >&6; }
  6094. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6095. $as_echo_n "(cached) " >&6
  6096. else
  6097. if test -n "$ac_ct_LIPO"; then
  6098. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6099. else
  6100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6101. for as_dir in $PATH
  6102. do
  6103. IFS=$as_save_IFS
  6104. test -z "$as_dir" && as_dir=.
  6105. for ac_exec_ext in '' $ac_executable_extensions; do
  6106. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6107. ac_cv_prog_ac_ct_LIPO="lipo"
  6108. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6109. break 2
  6110. fi
  6111. done
  6112. done
  6113. IFS=$as_save_IFS
  6114. fi
  6115. fi
  6116. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6117. if test -n "$ac_ct_LIPO"; then
  6118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6119. $as_echo "$ac_ct_LIPO" >&6; }
  6120. else
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6122. $as_echo "no" >&6; }
  6123. fi
  6124. if test "x$ac_ct_LIPO" = x; then
  6125. LIPO=":"
  6126. else
  6127. case $cross_compiling:$ac_tool_warned in
  6128. yes:)
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6130. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6131. ac_tool_warned=yes ;;
  6132. esac
  6133. LIPO=$ac_ct_LIPO
  6134. fi
  6135. else
  6136. LIPO="$ac_cv_prog_LIPO"
  6137. fi
  6138. if test -n "$ac_tool_prefix"; then
  6139. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6140. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6142. $as_echo_n "checking for $ac_word... " >&6; }
  6143. if ${ac_cv_prog_OTOOL+:} false; then :
  6144. $as_echo_n "(cached) " >&6
  6145. else
  6146. if test -n "$OTOOL"; then
  6147. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6148. else
  6149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6150. for as_dir in $PATH
  6151. do
  6152. IFS=$as_save_IFS
  6153. test -z "$as_dir" && as_dir=.
  6154. for ac_exec_ext in '' $ac_executable_extensions; do
  6155. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6156. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6157. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6158. break 2
  6159. fi
  6160. done
  6161. done
  6162. IFS=$as_save_IFS
  6163. fi
  6164. fi
  6165. OTOOL=$ac_cv_prog_OTOOL
  6166. if test -n "$OTOOL"; then
  6167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6168. $as_echo "$OTOOL" >&6; }
  6169. else
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6171. $as_echo "no" >&6; }
  6172. fi
  6173. fi
  6174. if test -z "$ac_cv_prog_OTOOL"; then
  6175. ac_ct_OTOOL=$OTOOL
  6176. # Extract the first word of "otool", so it can be a program name with args.
  6177. set dummy otool; ac_word=$2
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6179. $as_echo_n "checking for $ac_word... " >&6; }
  6180. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6181. $as_echo_n "(cached) " >&6
  6182. else
  6183. if test -n "$ac_ct_OTOOL"; then
  6184. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6185. else
  6186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6187. for as_dir in $PATH
  6188. do
  6189. IFS=$as_save_IFS
  6190. test -z "$as_dir" && as_dir=.
  6191. for ac_exec_ext in '' $ac_executable_extensions; do
  6192. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6193. ac_cv_prog_ac_ct_OTOOL="otool"
  6194. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6195. break 2
  6196. fi
  6197. done
  6198. done
  6199. IFS=$as_save_IFS
  6200. fi
  6201. fi
  6202. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6203. if test -n "$ac_ct_OTOOL"; then
  6204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6205. $as_echo "$ac_ct_OTOOL" >&6; }
  6206. else
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6208. $as_echo "no" >&6; }
  6209. fi
  6210. if test "x$ac_ct_OTOOL" = x; then
  6211. OTOOL=":"
  6212. else
  6213. case $cross_compiling:$ac_tool_warned in
  6214. yes:)
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6216. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6217. ac_tool_warned=yes ;;
  6218. esac
  6219. OTOOL=$ac_ct_OTOOL
  6220. fi
  6221. else
  6222. OTOOL="$ac_cv_prog_OTOOL"
  6223. fi
  6224. if test -n "$ac_tool_prefix"; then
  6225. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6226. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6228. $as_echo_n "checking for $ac_word... " >&6; }
  6229. if ${ac_cv_prog_OTOOL64+:} false; then :
  6230. $as_echo_n "(cached) " >&6
  6231. else
  6232. if test -n "$OTOOL64"; then
  6233. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6234. else
  6235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6236. for as_dir in $PATH
  6237. do
  6238. IFS=$as_save_IFS
  6239. test -z "$as_dir" && as_dir=.
  6240. for ac_exec_ext in '' $ac_executable_extensions; do
  6241. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6242. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6243. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6244. break 2
  6245. fi
  6246. done
  6247. done
  6248. IFS=$as_save_IFS
  6249. fi
  6250. fi
  6251. OTOOL64=$ac_cv_prog_OTOOL64
  6252. if test -n "$OTOOL64"; then
  6253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6254. $as_echo "$OTOOL64" >&6; }
  6255. else
  6256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6257. $as_echo "no" >&6; }
  6258. fi
  6259. fi
  6260. if test -z "$ac_cv_prog_OTOOL64"; then
  6261. ac_ct_OTOOL64=$OTOOL64
  6262. # Extract the first word of "otool64", so it can be a program name with args.
  6263. set dummy otool64; ac_word=$2
  6264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6265. $as_echo_n "checking for $ac_word... " >&6; }
  6266. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6267. $as_echo_n "(cached) " >&6
  6268. else
  6269. if test -n "$ac_ct_OTOOL64"; then
  6270. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6271. else
  6272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6273. for as_dir in $PATH
  6274. do
  6275. IFS=$as_save_IFS
  6276. test -z "$as_dir" && as_dir=.
  6277. for ac_exec_ext in '' $ac_executable_extensions; do
  6278. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6279. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6280. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6281. break 2
  6282. fi
  6283. done
  6284. done
  6285. IFS=$as_save_IFS
  6286. fi
  6287. fi
  6288. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6289. if test -n "$ac_ct_OTOOL64"; then
  6290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6291. $as_echo "$ac_ct_OTOOL64" >&6; }
  6292. else
  6293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6294. $as_echo "no" >&6; }
  6295. fi
  6296. if test "x$ac_ct_OTOOL64" = x; then
  6297. OTOOL64=":"
  6298. else
  6299. case $cross_compiling:$ac_tool_warned in
  6300. yes:)
  6301. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6302. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6303. ac_tool_warned=yes ;;
  6304. esac
  6305. OTOOL64=$ac_ct_OTOOL64
  6306. fi
  6307. else
  6308. OTOOL64="$ac_cv_prog_OTOOL64"
  6309. fi
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6311. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6312. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6313. $as_echo_n "(cached) " >&6
  6314. else
  6315. lt_cv_apple_cc_single_mod=no
  6316. if test -z "${LT_MULTI_MODULE}"; then
  6317. # By default we will add the -single_module flag. You can override
  6318. # by either setting the environment variable LT_MULTI_MODULE
  6319. # non-empty at configure time, or by adding -multi_module to the
  6320. # link flags.
  6321. rm -rf libconftest.dylib*
  6322. echo "int foo(void){return 1;}" > conftest.c
  6323. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6324. -dynamiclib -Wl,-single_module conftest.c" >&5
  6325. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6326. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6327. _lt_result=$?
  6328. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6329. lt_cv_apple_cc_single_mod=yes
  6330. else
  6331. cat conftest.err >&5
  6332. fi
  6333. rm -rf libconftest.dylib*
  6334. rm -f conftest.*
  6335. fi
  6336. fi
  6337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6338. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6340. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6341. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6342. $as_echo_n "(cached) " >&6
  6343. else
  6344. lt_cv_ld_exported_symbols_list=no
  6345. save_LDFLAGS=$LDFLAGS
  6346. echo "_main" > conftest.sym
  6347. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6349. /* end confdefs.h. */
  6350. int
  6351. main ()
  6352. {
  6353. ;
  6354. return 0;
  6355. }
  6356. _ACEOF
  6357. if ac_fn_c_try_link "$LINENO"; then :
  6358. lt_cv_ld_exported_symbols_list=yes
  6359. else
  6360. lt_cv_ld_exported_symbols_list=no
  6361. fi
  6362. rm -f core conftest.err conftest.$ac_objext \
  6363. conftest$ac_exeext conftest.$ac_ext
  6364. LDFLAGS="$save_LDFLAGS"
  6365. fi
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6367. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6369. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6370. if ${lt_cv_ld_force_load+:} false; then :
  6371. $as_echo_n "(cached) " >&6
  6372. else
  6373. lt_cv_ld_force_load=no
  6374. cat > conftest.c << _LT_EOF
  6375. int forced_loaded() { return 2;}
  6376. _LT_EOF
  6377. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6378. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6379. echo "$AR cru libconftest.a conftest.o" >&5
  6380. $AR cru libconftest.a conftest.o 2>&5
  6381. cat > conftest.c << _LT_EOF
  6382. int main() { return 0;}
  6383. _LT_EOF
  6384. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6385. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6386. _lt_result=$?
  6387. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6388. lt_cv_ld_force_load=yes
  6389. else
  6390. cat conftest.err >&5
  6391. fi
  6392. rm -f conftest.err libconftest.a conftest conftest.c
  6393. rm -rf conftest.dSYM
  6394. fi
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6396. $as_echo "$lt_cv_ld_force_load" >&6; }
  6397. # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
  6398. # build without first building modern cctools / linker.
  6399. case $host_cpu-$host_os in
  6400. *-rhapsody* | *-darwin1.[012])
  6401. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6402. *-darwin1.*)
  6403. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6404. *-darwin*)
  6405. # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
  6406. # deployment target is forced to an earlier version.
  6407. case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
  6408. UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
  6409. ;;
  6410. 10.[012][,.]*)
  6411. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6412. ;;
  6413. *)
  6414. ;;
  6415. esac
  6416. ;;
  6417. esac
  6418. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6419. _lt_dar_single_mod='$single_module'
  6420. fi
  6421. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6422. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6423. else
  6424. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6425. fi
  6426. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6427. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6428. else
  6429. _lt_dsymutil=
  6430. fi
  6431. ;;
  6432. esac
  6433. for ac_header in dlfcn.h
  6434. do :
  6435. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6436. "
  6437. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6438. cat >>confdefs.h <<_ACEOF
  6439. #define HAVE_DLFCN_H 1
  6440. _ACEOF
  6441. fi
  6442. done
  6443. # Set options
  6444. # Check whether --enable-static was given.
  6445. if test "${enable_static+set}" = set; then :
  6446. enableval=$enable_static; p=${PACKAGE-default}
  6447. case $enableval in
  6448. yes) enable_static=yes ;;
  6449. no) enable_static=no ;;
  6450. *)
  6451. enable_static=no
  6452. # Look at the argument we got. We use all the common list separators.
  6453. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6454. for pkg in $enableval; do
  6455. IFS="$lt_save_ifs"
  6456. if test "X$pkg" = "X$p"; then
  6457. enable_static=yes
  6458. fi
  6459. done
  6460. IFS="$lt_save_ifs"
  6461. ;;
  6462. esac
  6463. else
  6464. enable_static=no
  6465. fi
  6466. enable_dlopen=no
  6467. enable_win32_dll=no
  6468. # Check whether --enable-shared was given.
  6469. if test "${enable_shared+set}" = set; then :
  6470. enableval=$enable_shared; p=${PACKAGE-default}
  6471. case $enableval in
  6472. yes) enable_shared=yes ;;
  6473. no) enable_shared=no ;;
  6474. *)
  6475. enable_shared=no
  6476. # Look at the argument we got. We use all the common list separators.
  6477. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6478. for pkg in $enableval; do
  6479. IFS="$lt_save_ifs"
  6480. if test "X$pkg" = "X$p"; then
  6481. enable_shared=yes
  6482. fi
  6483. done
  6484. IFS="$lt_save_ifs"
  6485. ;;
  6486. esac
  6487. else
  6488. enable_shared=yes
  6489. fi
  6490. # Check whether --with-pic was given.
  6491. if test "${with_pic+set}" = set; then :
  6492. withval=$with_pic; pic_mode="$withval"
  6493. else
  6494. pic_mode=default
  6495. fi
  6496. test -z "$pic_mode" && pic_mode=default
  6497. # Check whether --enable-fast-install was given.
  6498. if test "${enable_fast_install+set}" = set; then :
  6499. enableval=$enable_fast_install; p=${PACKAGE-default}
  6500. case $enableval in
  6501. yes) enable_fast_install=yes ;;
  6502. no) enable_fast_install=no ;;
  6503. *)
  6504. enable_fast_install=no
  6505. # Look at the argument we got. We use all the common list separators.
  6506. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6507. for pkg in $enableval; do
  6508. IFS="$lt_save_ifs"
  6509. if test "X$pkg" = "X$p"; then
  6510. enable_fast_install=yes
  6511. fi
  6512. done
  6513. IFS="$lt_save_ifs"
  6514. ;;
  6515. esac
  6516. else
  6517. enable_fast_install=yes
  6518. fi
  6519. # This can be used to rebuild libtool when needed
  6520. LIBTOOL_DEPS="$ltmain"
  6521. # Always use our own libtool.
  6522. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6523. test -z "$LN_S" && LN_S="ln -s"
  6524. if test -n "${ZSH_VERSION+set}" ; then
  6525. setopt NO_GLOB_SUBST
  6526. fi
  6527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6528. $as_echo_n "checking for objdir... " >&6; }
  6529. if ${lt_cv_objdir+:} false; then :
  6530. $as_echo_n "(cached) " >&6
  6531. else
  6532. rm -f .libs 2>/dev/null
  6533. mkdir .libs 2>/dev/null
  6534. if test -d .libs; then
  6535. lt_cv_objdir=.libs
  6536. else
  6537. # MS-DOS does not allow filenames that begin with a dot.
  6538. lt_cv_objdir=_libs
  6539. fi
  6540. rmdir .libs 2>/dev/null
  6541. fi
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6543. $as_echo "$lt_cv_objdir" >&6; }
  6544. objdir=$lt_cv_objdir
  6545. cat >>confdefs.h <<_ACEOF
  6546. #define LT_OBJDIR "$lt_cv_objdir/"
  6547. _ACEOF
  6548. case $host_os in
  6549. aix3*)
  6550. # AIX sometimes has problems with the GCC collect2 program. For some
  6551. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6552. # vanish in a puff of smoke.
  6553. if test "X${COLLECT_NAMES+set}" != Xset; then
  6554. COLLECT_NAMES=
  6555. export COLLECT_NAMES
  6556. fi
  6557. ;;
  6558. esac
  6559. # Global variables:
  6560. ofile=libtool
  6561. can_build_shared=yes
  6562. # All known linkers require a `.a' archive for static linking (except MSVC,
  6563. # which needs '.lib').
  6564. libext=a
  6565. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6566. old_CC="$CC"
  6567. old_CFLAGS="$CFLAGS"
  6568. # Set sane defaults for various variables
  6569. test -z "$CC" && CC=cc
  6570. test -z "$LTCC" && LTCC=$CC
  6571. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6572. test -z "$LD" && LD=ld
  6573. test -z "$ac_objext" && ac_objext=o
  6574. for cc_temp in $compiler""; do
  6575. case $cc_temp in
  6576. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6577. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6578. \-*) ;;
  6579. *) break;;
  6580. esac
  6581. done
  6582. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6583. # Only perform the check for file, if the check method requires it
  6584. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6585. case $deplibs_check_method in
  6586. file_magic*)
  6587. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6589. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6590. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6591. $as_echo_n "(cached) " >&6
  6592. else
  6593. case $MAGIC_CMD in
  6594. [\\/*] | ?:[\\/]*)
  6595. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6596. ;;
  6597. *)
  6598. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6599. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6600. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6601. for ac_dir in $ac_dummy; do
  6602. IFS="$lt_save_ifs"
  6603. test -z "$ac_dir" && ac_dir=.
  6604. if test -f $ac_dir/${ac_tool_prefix}file; then
  6605. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6606. if test -n "$file_magic_test_file"; then
  6607. case $deplibs_check_method in
  6608. "file_magic "*)
  6609. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6610. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6611. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6612. $EGREP "$file_magic_regex" > /dev/null; then
  6613. :
  6614. else
  6615. cat <<_LT_EOF 1>&2
  6616. *** Warning: the command libtool uses to detect shared libraries,
  6617. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6618. *** The result is that libtool may fail to recognize shared libraries
  6619. *** as such. This will affect the creation of libtool libraries that
  6620. *** depend on shared libraries, but programs linked with such libtool
  6621. *** libraries will work regardless of this problem. Nevertheless, you
  6622. *** may want to report the problem to your system manager and/or to
  6623. *** bug-libtool@gnu.org
  6624. _LT_EOF
  6625. fi ;;
  6626. esac
  6627. fi
  6628. break
  6629. fi
  6630. done
  6631. IFS="$lt_save_ifs"
  6632. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6633. ;;
  6634. esac
  6635. fi
  6636. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6637. if test -n "$MAGIC_CMD"; then
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6639. $as_echo "$MAGIC_CMD" >&6; }
  6640. else
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6642. $as_echo "no" >&6; }
  6643. fi
  6644. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6645. if test -n "$ac_tool_prefix"; then
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6647. $as_echo_n "checking for file... " >&6; }
  6648. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6649. $as_echo_n "(cached) " >&6
  6650. else
  6651. case $MAGIC_CMD in
  6652. [\\/*] | ?:[\\/]*)
  6653. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6654. ;;
  6655. *)
  6656. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6657. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6658. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6659. for ac_dir in $ac_dummy; do
  6660. IFS="$lt_save_ifs"
  6661. test -z "$ac_dir" && ac_dir=.
  6662. if test -f $ac_dir/file; then
  6663. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6664. if test -n "$file_magic_test_file"; then
  6665. case $deplibs_check_method in
  6666. "file_magic "*)
  6667. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6668. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6669. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6670. $EGREP "$file_magic_regex" > /dev/null; then
  6671. :
  6672. else
  6673. cat <<_LT_EOF 1>&2
  6674. *** Warning: the command libtool uses to detect shared libraries,
  6675. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6676. *** The result is that libtool may fail to recognize shared libraries
  6677. *** as such. This will affect the creation of libtool libraries that
  6678. *** depend on shared libraries, but programs linked with such libtool
  6679. *** libraries will work regardless of this problem. Nevertheless, you
  6680. *** may want to report the problem to your system manager and/or to
  6681. *** bug-libtool@gnu.org
  6682. _LT_EOF
  6683. fi ;;
  6684. esac
  6685. fi
  6686. break
  6687. fi
  6688. done
  6689. IFS="$lt_save_ifs"
  6690. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6691. ;;
  6692. esac
  6693. fi
  6694. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6695. if test -n "$MAGIC_CMD"; then
  6696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6697. $as_echo "$MAGIC_CMD" >&6; }
  6698. else
  6699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6700. $as_echo "no" >&6; }
  6701. fi
  6702. else
  6703. MAGIC_CMD=:
  6704. fi
  6705. fi
  6706. fi
  6707. ;;
  6708. esac
  6709. # Use C for the default configuration in the libtool script
  6710. lt_save_CC="$CC"
  6711. ac_ext=c
  6712. ac_cpp='$CPP $CPPFLAGS'
  6713. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6714. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6715. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6716. # Source file extension for C test sources.
  6717. ac_ext=c
  6718. # Object file extension for compiled C test sources.
  6719. objext=o
  6720. objext=$objext
  6721. # Code to be used in simple compile tests
  6722. lt_simple_compile_test_code="int some_variable = 0;"
  6723. # Code to be used in simple link tests
  6724. lt_simple_link_test_code='int main(){return(0);}'
  6725. # If no C compiler was specified, use CC.
  6726. LTCC=${LTCC-"$CC"}
  6727. # If no C compiler flags were specified, use CFLAGS.
  6728. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6729. # Allow CC to be a program name with arguments.
  6730. compiler=$CC
  6731. # Save the default compiler, since it gets overwritten when the other
  6732. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6733. compiler_DEFAULT=$CC
  6734. # save warnings/boilerplate of simple test code
  6735. ac_outfile=conftest.$ac_objext
  6736. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6737. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6738. _lt_compiler_boilerplate=`cat conftest.err`
  6739. $RM conftest*
  6740. ac_outfile=conftest.$ac_objext
  6741. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6742. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6743. _lt_linker_boilerplate=`cat conftest.err`
  6744. $RM -r conftest*
  6745. ## CAVEAT EMPTOR:
  6746. ## There is no encapsulation within the following macros, do not change
  6747. ## the running order or otherwise move them around unless you know exactly
  6748. ## what you are doing...
  6749. if test -n "$compiler"; then
  6750. lt_prog_compiler_no_builtin_flag=
  6751. if test "$GCC" = yes; then
  6752. case $cc_basename in
  6753. nvcc*)
  6754. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6755. *)
  6756. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6757. esac
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6759. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6760. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6761. $as_echo_n "(cached) " >&6
  6762. else
  6763. lt_cv_prog_compiler_rtti_exceptions=no
  6764. ac_outfile=conftest.$ac_objext
  6765. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6766. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6767. # Insert the option either (1) after the last *FLAGS variable, or
  6768. # (2) before a word containing "conftest.", or (3) at the end.
  6769. # Note that $ac_compile itself does not contain backslashes and begins
  6770. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6771. # The option is referenced via a variable to avoid confusing sed.
  6772. lt_compile=`echo "$ac_compile" | $SED \
  6773. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6774. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6775. -e 's:$: $lt_compiler_flag:'`
  6776. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6777. (eval "$lt_compile" 2>conftest.err)
  6778. ac_status=$?
  6779. cat conftest.err >&5
  6780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6781. if (exit $ac_status) && test -s "$ac_outfile"; then
  6782. # The compiler can only warn and ignore the option if not recognized
  6783. # So say no if there are warnings other than the usual output.
  6784. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6785. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6786. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6787. lt_cv_prog_compiler_rtti_exceptions=yes
  6788. fi
  6789. fi
  6790. $RM conftest*
  6791. fi
  6792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6793. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6794. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6795. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6796. else
  6797. :
  6798. fi
  6799. fi
  6800. lt_prog_compiler_wl=
  6801. lt_prog_compiler_pic=
  6802. lt_prog_compiler_static=
  6803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6804. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6805. if test "$GCC" = yes; then
  6806. lt_prog_compiler_wl='-Wl,'
  6807. lt_prog_compiler_static='-static'
  6808. case $host_os in
  6809. aix*)
  6810. # All AIX code is PIC.
  6811. if test "$host_cpu" = ia64; then
  6812. # AIX 5 now supports IA64 processor
  6813. lt_prog_compiler_static='-Bstatic'
  6814. fi
  6815. lt_prog_compiler_pic='-fPIC'
  6816. ;;
  6817. amigaos*)
  6818. case $host_cpu in
  6819. powerpc)
  6820. # see comment about AmigaOS4 .so support
  6821. lt_prog_compiler_pic='-fPIC'
  6822. ;;
  6823. m68k)
  6824. # FIXME: we need at least 68020 code to build shared libraries, but
  6825. # adding the `-m68020' flag to GCC prevents building anything better,
  6826. # like `-m68040'.
  6827. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6828. ;;
  6829. esac
  6830. ;;
  6831. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6832. # PIC is the default for these OSes.
  6833. ;;
  6834. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6835. # This hack is so that the source file can tell whether it is being
  6836. # built for inclusion in a dll (and should export symbols for example).
  6837. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6838. # (--disable-auto-import) libraries
  6839. lt_prog_compiler_pic='-DDLL_EXPORT'
  6840. ;;
  6841. darwin* | rhapsody*)
  6842. # PIC is the default on this platform
  6843. # Common symbols not allowed in MH_DYLIB files
  6844. lt_prog_compiler_pic='-fno-common'
  6845. ;;
  6846. haiku*)
  6847. # PIC is the default for Haiku.
  6848. # The "-static" flag exists, but is broken.
  6849. lt_prog_compiler_static=
  6850. ;;
  6851. hpux*)
  6852. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6853. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6854. # sets the default TLS model and affects inlining.
  6855. case $host_cpu in
  6856. hppa*64*)
  6857. # +Z the default
  6858. ;;
  6859. *)
  6860. lt_prog_compiler_pic='-fPIC'
  6861. ;;
  6862. esac
  6863. ;;
  6864. interix[3-9]*)
  6865. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6866. # Instead, we relocate shared libraries at runtime.
  6867. ;;
  6868. msdosdjgpp*)
  6869. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6870. # on systems that don't support them.
  6871. lt_prog_compiler_can_build_shared=no
  6872. enable_shared=no
  6873. ;;
  6874. *nto* | *qnx*)
  6875. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6876. # it will coredump.
  6877. lt_prog_compiler_pic='-fPIC -shared'
  6878. ;;
  6879. sysv4*MP*)
  6880. if test -d /usr/nec; then
  6881. lt_prog_compiler_pic=-Kconform_pic
  6882. fi
  6883. ;;
  6884. *)
  6885. lt_prog_compiler_pic='-fPIC'
  6886. ;;
  6887. esac
  6888. case $cc_basename in
  6889. nvcc*) # Cuda Compiler Driver 2.2
  6890. lt_prog_compiler_wl='-Xlinker '
  6891. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6892. ;;
  6893. esac
  6894. else
  6895. # PORTME Check for flag to pass linker flags through the system compiler.
  6896. case $host_os in
  6897. aix*)
  6898. lt_prog_compiler_wl='-Wl,'
  6899. if test "$host_cpu" = ia64; then
  6900. # AIX 5 now supports IA64 processor
  6901. lt_prog_compiler_static='-Bstatic'
  6902. else
  6903. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6904. fi
  6905. ;;
  6906. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6907. # This hack is so that the source file can tell whether it is being
  6908. # built for inclusion in a dll (and should export symbols for example).
  6909. lt_prog_compiler_pic='-DDLL_EXPORT'
  6910. ;;
  6911. hpux9* | hpux10* | hpux11*)
  6912. lt_prog_compiler_wl='-Wl,'
  6913. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6914. # not for PA HP-UX.
  6915. case $host_cpu in
  6916. hppa*64*|ia64*)
  6917. # +Z the default
  6918. ;;
  6919. *)
  6920. lt_prog_compiler_pic='+Z'
  6921. ;;
  6922. esac
  6923. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6924. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6925. ;;
  6926. irix5* | irix6* | nonstopux*)
  6927. lt_prog_compiler_wl='-Wl,'
  6928. # PIC (with -KPIC) is the default.
  6929. lt_prog_compiler_static='-non_shared'
  6930. ;;
  6931. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6932. case $cc_basename in
  6933. # old Intel for x86_64 which still supported -KPIC.
  6934. ecc*)
  6935. lt_prog_compiler_wl='-Wl,'
  6936. lt_prog_compiler_pic='-KPIC'
  6937. lt_prog_compiler_static='-static'
  6938. ;;
  6939. # icc used to be incompatible with GCC.
  6940. # ICC 10 doesn't accept -KPIC any more.
  6941. icc* | ifort*)
  6942. lt_prog_compiler_wl='-Wl,'
  6943. lt_prog_compiler_pic='-fPIC'
  6944. lt_prog_compiler_static='-static'
  6945. ;;
  6946. # Lahey Fortran 8.1.
  6947. lf95*)
  6948. lt_prog_compiler_wl='-Wl,'
  6949. lt_prog_compiler_pic='--shared'
  6950. lt_prog_compiler_static='--static'
  6951. ;;
  6952. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6953. # Portland Group compilers (*not* the Pentium gcc compiler,
  6954. # which looks to be a dead project)
  6955. lt_prog_compiler_wl='-Wl,'
  6956. lt_prog_compiler_pic='-fpic'
  6957. lt_prog_compiler_static='-Bstatic'
  6958. ;;
  6959. ccc*)
  6960. lt_prog_compiler_wl='-Wl,'
  6961. # All Alpha code is PIC.
  6962. lt_prog_compiler_static='-non_shared'
  6963. ;;
  6964. xl* | bgxl* | bgf* | mpixl*)
  6965. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6966. lt_prog_compiler_wl='-Wl,'
  6967. lt_prog_compiler_pic='-qpic'
  6968. lt_prog_compiler_static='-qstaticlink'
  6969. ;;
  6970. *)
  6971. case `$CC -V 2>&1 | sed 5q` in
  6972. *Sun\ F* | *Sun*Fortran*)
  6973. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6974. lt_prog_compiler_pic='-KPIC'
  6975. lt_prog_compiler_static='-Bstatic'
  6976. lt_prog_compiler_wl=''
  6977. ;;
  6978. *Sun\ C*)
  6979. # Sun C 5.9
  6980. lt_prog_compiler_pic='-KPIC'
  6981. lt_prog_compiler_static='-Bstatic'
  6982. lt_prog_compiler_wl='-Wl,'
  6983. ;;
  6984. esac
  6985. ;;
  6986. esac
  6987. ;;
  6988. newsos6)
  6989. lt_prog_compiler_pic='-KPIC'
  6990. lt_prog_compiler_static='-Bstatic'
  6991. ;;
  6992. *nto* | *qnx*)
  6993. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6994. # it will coredump.
  6995. lt_prog_compiler_pic='-fPIC -shared'
  6996. ;;
  6997. osf3* | osf4* | osf5*)
  6998. lt_prog_compiler_wl='-Wl,'
  6999. # All OSF/1 code is PIC.
  7000. lt_prog_compiler_static='-non_shared'
  7001. ;;
  7002. rdos*)
  7003. lt_prog_compiler_static='-non_shared'
  7004. ;;
  7005. solaris*)
  7006. lt_prog_compiler_pic='-KPIC'
  7007. lt_prog_compiler_static='-Bstatic'
  7008. case $cc_basename in
  7009. f77* | f90* | f95*)
  7010. lt_prog_compiler_wl='-Qoption ld ';;
  7011. *)
  7012. lt_prog_compiler_wl='-Wl,';;
  7013. esac
  7014. ;;
  7015. sunos4*)
  7016. lt_prog_compiler_wl='-Qoption ld '
  7017. lt_prog_compiler_pic='-PIC'
  7018. lt_prog_compiler_static='-Bstatic'
  7019. ;;
  7020. sysv4 | sysv4.2uw2* | sysv4.3*)
  7021. lt_prog_compiler_wl='-Wl,'
  7022. lt_prog_compiler_pic='-KPIC'
  7023. lt_prog_compiler_static='-Bstatic'
  7024. ;;
  7025. sysv4*MP*)
  7026. if test -d /usr/nec ;then
  7027. lt_prog_compiler_pic='-Kconform_pic'
  7028. lt_prog_compiler_static='-Bstatic'
  7029. fi
  7030. ;;
  7031. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7032. lt_prog_compiler_wl='-Wl,'
  7033. lt_prog_compiler_pic='-KPIC'
  7034. lt_prog_compiler_static='-Bstatic'
  7035. ;;
  7036. unicos*)
  7037. lt_prog_compiler_wl='-Wl,'
  7038. lt_prog_compiler_can_build_shared=no
  7039. ;;
  7040. uts4*)
  7041. lt_prog_compiler_pic='-pic'
  7042. lt_prog_compiler_static='-Bstatic'
  7043. ;;
  7044. *)
  7045. lt_prog_compiler_can_build_shared=no
  7046. ;;
  7047. esac
  7048. fi
  7049. case $host_os in
  7050. # For platforms which do not support PIC, -DPIC is meaningless:
  7051. *djgpp*)
  7052. lt_prog_compiler_pic=
  7053. ;;
  7054. *)
  7055. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7056. ;;
  7057. esac
  7058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7059. $as_echo "$lt_prog_compiler_pic" >&6; }
  7060. #
  7061. # Check to make sure the PIC flag actually works.
  7062. #
  7063. if test -n "$lt_prog_compiler_pic"; then
  7064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7065. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7066. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7067. $as_echo_n "(cached) " >&6
  7068. else
  7069. lt_cv_prog_compiler_pic_works=no
  7070. ac_outfile=conftest.$ac_objext
  7071. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7072. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7073. # Insert the option either (1) after the last *FLAGS variable, or
  7074. # (2) before a word containing "conftest.", or (3) at the end.
  7075. # Note that $ac_compile itself does not contain backslashes and begins
  7076. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7077. # The option is referenced via a variable to avoid confusing sed.
  7078. lt_compile=`echo "$ac_compile" | $SED \
  7079. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7080. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7081. -e 's:$: $lt_compiler_flag:'`
  7082. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7083. (eval "$lt_compile" 2>conftest.err)
  7084. ac_status=$?
  7085. cat conftest.err >&5
  7086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7087. if (exit $ac_status) && test -s "$ac_outfile"; then
  7088. # The compiler can only warn and ignore the option if not recognized
  7089. # So say no if there are warnings other than the usual output.
  7090. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7091. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7092. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7093. lt_cv_prog_compiler_pic_works=yes
  7094. fi
  7095. fi
  7096. $RM conftest*
  7097. fi
  7098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7099. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7100. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7101. case $lt_prog_compiler_pic in
  7102. "" | " "*) ;;
  7103. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7104. esac
  7105. else
  7106. lt_prog_compiler_pic=
  7107. lt_prog_compiler_can_build_shared=no
  7108. fi
  7109. fi
  7110. #
  7111. # Check to make sure the static flag actually works.
  7112. #
  7113. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7115. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7116. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7117. $as_echo_n "(cached) " >&6
  7118. else
  7119. lt_cv_prog_compiler_static_works=no
  7120. save_LDFLAGS="$LDFLAGS"
  7121. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7122. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7123. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7124. # The linker can only warn and ignore the option if not recognized
  7125. # So say no if there are warnings
  7126. if test -s conftest.err; then
  7127. # Append any errors to the config.log.
  7128. cat conftest.err 1>&5
  7129. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7130. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7131. if diff conftest.exp conftest.er2 >/dev/null; then
  7132. lt_cv_prog_compiler_static_works=yes
  7133. fi
  7134. else
  7135. lt_cv_prog_compiler_static_works=yes
  7136. fi
  7137. fi
  7138. $RM -r conftest*
  7139. LDFLAGS="$save_LDFLAGS"
  7140. fi
  7141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7142. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7143. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7144. :
  7145. else
  7146. lt_prog_compiler_static=
  7147. fi
  7148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7149. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7150. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7151. $as_echo_n "(cached) " >&6
  7152. else
  7153. lt_cv_prog_compiler_c_o=no
  7154. $RM -r conftest 2>/dev/null
  7155. mkdir conftest
  7156. cd conftest
  7157. mkdir out
  7158. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7159. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7160. # Insert the option either (1) after the last *FLAGS variable, or
  7161. # (2) before a word containing "conftest.", or (3) at the end.
  7162. # Note that $ac_compile itself does not contain backslashes and begins
  7163. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7164. lt_compile=`echo "$ac_compile" | $SED \
  7165. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7166. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7167. -e 's:$: $lt_compiler_flag:'`
  7168. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7169. (eval "$lt_compile" 2>out/conftest.err)
  7170. ac_status=$?
  7171. cat out/conftest.err >&5
  7172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7173. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7174. then
  7175. # The compiler can only warn and ignore the option if not recognized
  7176. # So say no if there are warnings
  7177. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7178. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7179. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7180. lt_cv_prog_compiler_c_o=yes
  7181. fi
  7182. fi
  7183. chmod u+w . 2>&5
  7184. $RM conftest*
  7185. # SGI C++ compiler will create directory out/ii_files/ for
  7186. # template instantiation
  7187. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7188. $RM out/* && rmdir out
  7189. cd ..
  7190. $RM -r conftest
  7191. $RM conftest*
  7192. fi
  7193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7194. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7196. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7197. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7198. $as_echo_n "(cached) " >&6
  7199. else
  7200. lt_cv_prog_compiler_c_o=no
  7201. $RM -r conftest 2>/dev/null
  7202. mkdir conftest
  7203. cd conftest
  7204. mkdir out
  7205. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7206. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7207. # Insert the option either (1) after the last *FLAGS variable, or
  7208. # (2) before a word containing "conftest.", or (3) at the end.
  7209. # Note that $ac_compile itself does not contain backslashes and begins
  7210. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7211. lt_compile=`echo "$ac_compile" | $SED \
  7212. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7213. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7214. -e 's:$: $lt_compiler_flag:'`
  7215. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7216. (eval "$lt_compile" 2>out/conftest.err)
  7217. ac_status=$?
  7218. cat out/conftest.err >&5
  7219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7220. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7221. then
  7222. # The compiler can only warn and ignore the option if not recognized
  7223. # So say no if there are warnings
  7224. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7225. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7226. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7227. lt_cv_prog_compiler_c_o=yes
  7228. fi
  7229. fi
  7230. chmod u+w . 2>&5
  7231. $RM conftest*
  7232. # SGI C++ compiler will create directory out/ii_files/ for
  7233. # template instantiation
  7234. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7235. $RM out/* && rmdir out
  7236. cd ..
  7237. $RM -r conftest
  7238. $RM conftest*
  7239. fi
  7240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7241. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7242. hard_links="nottested"
  7243. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7244. # do not overwrite the value of need_locks provided by the user
  7245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7246. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7247. hard_links=yes
  7248. $RM conftest*
  7249. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7250. touch conftest.a
  7251. ln conftest.a conftest.b 2>&5 || hard_links=no
  7252. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7254. $as_echo "$hard_links" >&6; }
  7255. if test "$hard_links" = no; then
  7256. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7257. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7258. need_locks=warn
  7259. fi
  7260. else
  7261. need_locks=no
  7262. fi
  7263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7264. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7265. runpath_var=
  7266. allow_undefined_flag=
  7267. always_export_symbols=no
  7268. archive_cmds=
  7269. archive_expsym_cmds=
  7270. compiler_needs_object=no
  7271. enable_shared_with_static_runtimes=no
  7272. export_dynamic_flag_spec=
  7273. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7274. hardcode_automatic=no
  7275. hardcode_direct=no
  7276. hardcode_direct_absolute=no
  7277. hardcode_libdir_flag_spec=
  7278. hardcode_libdir_flag_spec_ld=
  7279. hardcode_libdir_separator=
  7280. hardcode_minus_L=no
  7281. hardcode_shlibpath_var=unsupported
  7282. inherit_rpath=no
  7283. link_all_deplibs=unknown
  7284. module_cmds=
  7285. module_expsym_cmds=
  7286. old_archive_from_new_cmds=
  7287. old_archive_from_expsyms_cmds=
  7288. thread_safe_flag_spec=
  7289. whole_archive_flag_spec=
  7290. # include_expsyms should be a list of space-separated symbols to be *always*
  7291. # included in the symbol list
  7292. include_expsyms=
  7293. # exclude_expsyms can be an extended regexp of symbols to exclude
  7294. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7295. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7296. # as well as any symbol that contains `d'.
  7297. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7298. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7299. # platforms (ab)use it in PIC code, but their linkers get confused if
  7300. # the symbol is explicitly referenced. Since portable code cannot
  7301. # rely on this symbol name, it's probably fine to never include it in
  7302. # preloaded symbol tables.
  7303. # Exclude shared library initialization/finalization symbols.
  7304. extract_expsyms_cmds=
  7305. case $host_os in
  7306. cygwin* | mingw* | pw32* | cegcc*)
  7307. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7308. # When not using gcc, we currently assume that we are using
  7309. # Microsoft Visual C++.
  7310. if test "$GCC" != yes; then
  7311. with_gnu_ld=no
  7312. fi
  7313. ;;
  7314. interix*)
  7315. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7316. with_gnu_ld=yes
  7317. ;;
  7318. openbsd*)
  7319. with_gnu_ld=no
  7320. ;;
  7321. esac
  7322. ld_shlibs=yes
  7323. # On some targets, GNU ld is compatible enough with the native linker
  7324. # that we're better off using the native interface for both.
  7325. lt_use_gnu_ld_interface=no
  7326. if test "$with_gnu_ld" = yes; then
  7327. case $host_os in
  7328. aix*)
  7329. # The AIX port of GNU ld has always aspired to compatibility
  7330. # with the native linker. However, as the warning in the GNU ld
  7331. # block says, versions before 2.19.5* couldn't really create working
  7332. # shared libraries, regardless of the interface used.
  7333. case `$LD -v 2>&1` in
  7334. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7335. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7336. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7337. *)
  7338. lt_use_gnu_ld_interface=yes
  7339. ;;
  7340. esac
  7341. ;;
  7342. *)
  7343. lt_use_gnu_ld_interface=yes
  7344. ;;
  7345. esac
  7346. fi
  7347. if test "$lt_use_gnu_ld_interface" = yes; then
  7348. # If archive_cmds runs LD, not CC, wlarc should be empty
  7349. wlarc='${wl}'
  7350. # Set some defaults for GNU ld with shared library support. These
  7351. # are reset later if shared libraries are not supported. Putting them
  7352. # here allows them to be overridden if necessary.
  7353. runpath_var=LD_RUN_PATH
  7354. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7355. export_dynamic_flag_spec='${wl}--export-dynamic'
  7356. # ancient GNU ld didn't support --whole-archive et. al.
  7357. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7358. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7359. else
  7360. whole_archive_flag_spec=
  7361. fi
  7362. supports_anon_versioning=no
  7363. case `$LD -v 2>&1` in
  7364. *GNU\ gold*) supports_anon_versioning=yes ;;
  7365. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7366. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7367. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7368. *\ 2.11.*) ;; # other 2.11 versions
  7369. *) supports_anon_versioning=yes ;;
  7370. esac
  7371. # See if GNU ld supports shared libraries.
  7372. case $host_os in
  7373. aix[3-9]*)
  7374. # On AIX/PPC, the GNU linker is very broken
  7375. if test "$host_cpu" != ia64; then
  7376. ld_shlibs=no
  7377. cat <<_LT_EOF 1>&2
  7378. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7379. *** to be unable to reliably create shared libraries on AIX.
  7380. *** Therefore, libtool is disabling shared libraries support. If you
  7381. *** really care for shared libraries, you may want to install binutils
  7382. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7383. *** You will then need to restart the configuration process.
  7384. _LT_EOF
  7385. fi
  7386. ;;
  7387. amigaos*)
  7388. case $host_cpu in
  7389. powerpc)
  7390. # see comment about AmigaOS4 .so support
  7391. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7392. archive_expsym_cmds=''
  7393. ;;
  7394. m68k)
  7395. 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)'
  7396. hardcode_libdir_flag_spec='-L$libdir'
  7397. hardcode_minus_L=yes
  7398. ;;
  7399. esac
  7400. ;;
  7401. beos*)
  7402. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7403. allow_undefined_flag=unsupported
  7404. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7405. # support --undefined. This deserves some investigation. FIXME
  7406. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7407. else
  7408. ld_shlibs=no
  7409. fi
  7410. ;;
  7411. cygwin* | mingw* | pw32* | cegcc*)
  7412. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7413. # as there is no search path for DLLs.
  7414. hardcode_libdir_flag_spec='-L$libdir'
  7415. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7416. allow_undefined_flag=unsupported
  7417. always_export_symbols=no
  7418. enable_shared_with_static_runtimes=yes
  7419. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7420. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7421. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7422. # If the export-symbols file already is a .def file (1st line
  7423. # is EXPORTS), use it as is; otherwise, prepend...
  7424. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7425. cp $export_symbols $output_objdir/$soname.def;
  7426. else
  7427. echo EXPORTS > $output_objdir/$soname.def;
  7428. cat $export_symbols >> $output_objdir/$soname.def;
  7429. fi~
  7430. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7431. else
  7432. ld_shlibs=no
  7433. fi
  7434. ;;
  7435. haiku*)
  7436. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7437. link_all_deplibs=yes
  7438. ;;
  7439. interix[3-9]*)
  7440. hardcode_direct=no
  7441. hardcode_shlibpath_var=no
  7442. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7443. export_dynamic_flag_spec='${wl}-E'
  7444. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7445. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7446. # default) and relocated if they conflict, which is a slow very memory
  7447. # consuming and fragmenting process. To avoid this, we pick a random,
  7448. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7449. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7450. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7451. 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'
  7452. ;;
  7453. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  7454. tmp_diet=no
  7455. if test "$host_os" = linux-dietlibc; then
  7456. case $cc_basename in
  7457. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7458. esac
  7459. fi
  7460. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7461. && test "$tmp_diet" = no
  7462. then
  7463. tmp_addflag=' $pic_flag'
  7464. tmp_sharedflag='-shared'
  7465. case $cc_basename,$host_cpu in
  7466. pgcc*) # Portland Group C compiler
  7467. 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'
  7468. tmp_addflag=' $pic_flag'
  7469. ;;
  7470. pgf77* | pgf90* | pgf95* | pgfortran*)
  7471. # Portland Group f77 and f90 compilers
  7472. 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'
  7473. tmp_addflag=' $pic_flag -Mnomain' ;;
  7474. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7475. tmp_addflag=' -i_dynamic' ;;
  7476. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7477. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7478. ifc* | ifort*) # Intel Fortran compiler
  7479. tmp_addflag=' -nofor_main' ;;
  7480. lf95*) # Lahey Fortran 8.1
  7481. whole_archive_flag_spec=
  7482. tmp_sharedflag='--shared' ;;
  7483. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7484. tmp_sharedflag='-qmkshrobj'
  7485. tmp_addflag= ;;
  7486. nvcc*) # Cuda Compiler Driver 2.2
  7487. 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'
  7488. compiler_needs_object=yes
  7489. ;;
  7490. esac
  7491. case `$CC -V 2>&1 | sed 5q` in
  7492. *Sun\ C*) # Sun C 5.9
  7493. 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'
  7494. compiler_needs_object=yes
  7495. tmp_sharedflag='-G' ;;
  7496. *Sun\ F*) # Sun Fortran 8.3
  7497. tmp_sharedflag='-G' ;;
  7498. esac
  7499. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7500. if test "x$supports_anon_versioning" = xyes; then
  7501. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7502. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7503. echo "local: *; };" >> $output_objdir/$libname.ver~
  7504. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7505. fi
  7506. case $cc_basename in
  7507. xlf* | bgf* | bgxlf* | mpixlf*)
  7508. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7509. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7510. hardcode_libdir_flag_spec=
  7511. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7512. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7513. if test "x$supports_anon_versioning" = xyes; then
  7514. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7515. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7516. echo "local: *; };" >> $output_objdir/$libname.ver~
  7517. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7518. fi
  7519. ;;
  7520. esac
  7521. else
  7522. ld_shlibs=no
  7523. fi
  7524. ;;
  7525. netbsd*)
  7526. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7527. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7528. wlarc=
  7529. else
  7530. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7531. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7532. fi
  7533. ;;
  7534. solaris*)
  7535. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7536. ld_shlibs=no
  7537. cat <<_LT_EOF 1>&2
  7538. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7539. *** create shared libraries on Solaris systems. Therefore, libtool
  7540. *** is disabling shared libraries support. We urge you to upgrade GNU
  7541. *** binutils to release 2.9.1 or newer. Another option is to modify
  7542. *** your PATH or compiler configuration so that the native linker is
  7543. *** used, and then restart.
  7544. _LT_EOF
  7545. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7546. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7547. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7548. else
  7549. ld_shlibs=no
  7550. fi
  7551. ;;
  7552. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7553. case `$LD -v 2>&1` in
  7554. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7555. ld_shlibs=no
  7556. cat <<_LT_EOF 1>&2
  7557. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7558. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7559. *** is disabling shared libraries support. We urge you to upgrade GNU
  7560. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7561. *** your PATH or compiler configuration so that the native linker is
  7562. *** used, and then restart.
  7563. _LT_EOF
  7564. ;;
  7565. *)
  7566. # For security reasons, it is highly recommended that you always
  7567. # use absolute paths for naming shared libraries, and exclude the
  7568. # DT_RUNPATH tag from executables and libraries. But doing so
  7569. # requires that you compile everything twice, which is a pain.
  7570. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7571. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7572. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7573. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7574. else
  7575. ld_shlibs=no
  7576. fi
  7577. ;;
  7578. esac
  7579. ;;
  7580. sunos4*)
  7581. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7582. wlarc=
  7583. hardcode_direct=yes
  7584. hardcode_shlibpath_var=no
  7585. ;;
  7586. *)
  7587. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7588. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7589. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7590. else
  7591. ld_shlibs=no
  7592. fi
  7593. ;;
  7594. esac
  7595. if test "$ld_shlibs" = no; then
  7596. runpath_var=
  7597. hardcode_libdir_flag_spec=
  7598. export_dynamic_flag_spec=
  7599. whole_archive_flag_spec=
  7600. fi
  7601. else
  7602. # PORTME fill in a description of your system's linker (not GNU ld)
  7603. case $host_os in
  7604. aix3*)
  7605. allow_undefined_flag=unsupported
  7606. always_export_symbols=yes
  7607. 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'
  7608. # Note: this linker hardcodes the directories in LIBPATH if there
  7609. # are no directories specified by -L.
  7610. hardcode_minus_L=yes
  7611. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7612. # Neither direct hardcoding nor static linking is supported with a
  7613. # broken collect2.
  7614. hardcode_direct=unsupported
  7615. fi
  7616. ;;
  7617. aix[4-9]*)
  7618. if test "$host_cpu" = ia64; then
  7619. # On IA64, the linker does run time linking by default, so we don't
  7620. # have to do anything special.
  7621. aix_use_runtimelinking=no
  7622. exp_sym_flag='-Bexport'
  7623. no_entry_flag=""
  7624. else
  7625. # If we're using GNU nm, then we don't want the "-C" option.
  7626. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7627. # Also, AIX nm treats weak defined symbols like other global
  7628. # defined symbols, whereas GNU nm marks them as "W".
  7629. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7630. 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'
  7631. else
  7632. 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'
  7633. fi
  7634. aix_use_runtimelinking=no
  7635. # Test if we are trying to use run time linking or normal
  7636. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7637. # need to do runtime linking.
  7638. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7639. for ld_flag in $LDFLAGS; do
  7640. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7641. aix_use_runtimelinking=yes
  7642. break
  7643. fi
  7644. done
  7645. ;;
  7646. esac
  7647. exp_sym_flag='-bexport'
  7648. no_entry_flag='-bnoentry'
  7649. fi
  7650. # When large executables or shared objects are built, AIX ld can
  7651. # have problems creating the table of contents. If linking a library
  7652. # or program results in "error TOC overflow" add -mminimal-toc to
  7653. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7654. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7655. archive_cmds=''
  7656. hardcode_direct=yes
  7657. hardcode_direct_absolute=yes
  7658. hardcode_libdir_separator=':'
  7659. link_all_deplibs=yes
  7660. file_list_spec='${wl}-f,'
  7661. if test "$GCC" = yes; then
  7662. case $host_os in aix4.[012]|aix4.[012].*)
  7663. # We only want to do this on AIX 4.2 and lower, the check
  7664. # below for broken collect2 doesn't work under 4.3+
  7665. collect2name=`${CC} -print-prog-name=collect2`
  7666. if test -f "$collect2name" &&
  7667. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7668. then
  7669. # We have reworked collect2
  7670. :
  7671. else
  7672. # We have old collect2
  7673. hardcode_direct=unsupported
  7674. # It fails to find uninstalled libraries when the uninstalled
  7675. # path is not listed in the libpath. Setting hardcode_minus_L
  7676. # to unsupported forces relinking
  7677. hardcode_minus_L=yes
  7678. hardcode_libdir_flag_spec='-L$libdir'
  7679. hardcode_libdir_separator=
  7680. fi
  7681. ;;
  7682. esac
  7683. shared_flag='-shared'
  7684. if test "$aix_use_runtimelinking" = yes; then
  7685. shared_flag="$shared_flag "'${wl}-G'
  7686. fi
  7687. else
  7688. # not using gcc
  7689. if test "$host_cpu" = ia64; then
  7690. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7691. # chokes on -Wl,-G. The following line is correct:
  7692. shared_flag='-G'
  7693. else
  7694. if test "$aix_use_runtimelinking" = yes; then
  7695. shared_flag='${wl}-G'
  7696. else
  7697. shared_flag='${wl}-bM:SRE'
  7698. fi
  7699. fi
  7700. fi
  7701. export_dynamic_flag_spec='${wl}-bexpall'
  7702. # It seems that -bexpall does not export symbols beginning with
  7703. # underscore (_), so it is better to generate a list of symbols to export.
  7704. always_export_symbols=yes
  7705. if test "$aix_use_runtimelinking" = yes; then
  7706. # Warning - without using the other runtime loading flags (-brtl),
  7707. # -berok will link without error, but may produce a broken library.
  7708. allow_undefined_flag='-berok'
  7709. # Determine the default libpath from the value encoded in an
  7710. # empty executable.
  7711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7712. /* end confdefs.h. */
  7713. int
  7714. main ()
  7715. {
  7716. ;
  7717. return 0;
  7718. }
  7719. _ACEOF
  7720. if ac_fn_c_try_link "$LINENO"; then :
  7721. lt_aix_libpath_sed='
  7722. /Import File Strings/,/^$/ {
  7723. /^0/ {
  7724. s/^0 *\(.*\)$/\1/
  7725. p
  7726. }
  7727. }'
  7728. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7729. # Check for a 64-bit object if we didn't find anything.
  7730. if test -z "$aix_libpath"; then
  7731. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7732. fi
  7733. fi
  7734. rm -f core conftest.err conftest.$ac_objext \
  7735. conftest$ac_exeext conftest.$ac_ext
  7736. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7737. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7738. 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"
  7739. else
  7740. if test "$host_cpu" = ia64; then
  7741. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7742. allow_undefined_flag="-z nodefs"
  7743. 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"
  7744. else
  7745. # Determine the default libpath from the value encoded in an
  7746. # empty executable.
  7747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7748. /* end confdefs.h. */
  7749. int
  7750. main ()
  7751. {
  7752. ;
  7753. return 0;
  7754. }
  7755. _ACEOF
  7756. if ac_fn_c_try_link "$LINENO"; then :
  7757. lt_aix_libpath_sed='
  7758. /Import File Strings/,/^$/ {
  7759. /^0/ {
  7760. s/^0 *\(.*\)$/\1/
  7761. p
  7762. }
  7763. }'
  7764. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7765. # Check for a 64-bit object if we didn't find anything.
  7766. if test -z "$aix_libpath"; then
  7767. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7768. fi
  7769. fi
  7770. rm -f core conftest.err conftest.$ac_objext \
  7771. conftest$ac_exeext conftest.$ac_ext
  7772. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7773. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7774. # Warning - without using the other run time loading flags,
  7775. # -berok will link without error, but may produce a broken library.
  7776. no_undefined_flag=' ${wl}-bernotok'
  7777. allow_undefined_flag=' ${wl}-berok'
  7778. if test "$with_gnu_ld" = yes; then
  7779. # We only use this code for GNU lds that support --whole-archive.
  7780. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7781. else
  7782. # Exported symbols can be pulled into shared objects from archives
  7783. whole_archive_flag_spec='$convenience'
  7784. fi
  7785. archive_cmds_need_lc=yes
  7786. # This is similar to how AIX traditionally builds its shared libraries.
  7787. 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'
  7788. fi
  7789. fi
  7790. ;;
  7791. amigaos*)
  7792. case $host_cpu in
  7793. powerpc)
  7794. # see comment about AmigaOS4 .so support
  7795. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7796. archive_expsym_cmds=''
  7797. ;;
  7798. m68k)
  7799. 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)'
  7800. hardcode_libdir_flag_spec='-L$libdir'
  7801. hardcode_minus_L=yes
  7802. ;;
  7803. esac
  7804. ;;
  7805. bsdi[45]*)
  7806. export_dynamic_flag_spec=-rdynamic
  7807. ;;
  7808. cygwin* | mingw* | pw32* | cegcc*)
  7809. # When not using gcc, we currently assume that we are using
  7810. # Microsoft Visual C++.
  7811. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7812. # no search path for DLLs.
  7813. hardcode_libdir_flag_spec=' '
  7814. allow_undefined_flag=unsupported
  7815. # Tell ltmain to make .lib files, not .a files.
  7816. libext=lib
  7817. # Tell ltmain to make .dll files, not .so files.
  7818. shrext_cmds=".dll"
  7819. # FIXME: Setting linknames here is a bad hack.
  7820. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7821. # The linker will automatically build a .lib file if we build a DLL.
  7822. old_archive_from_new_cmds='true'
  7823. # FIXME: Should let the user specify the lib program.
  7824. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7825. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7826. enable_shared_with_static_runtimes=yes
  7827. ;;
  7828. darwin* | rhapsody*)
  7829. archive_cmds_need_lc=no
  7830. hardcode_direct=no
  7831. hardcode_automatic=yes
  7832. hardcode_shlibpath_var=unsupported
  7833. if test "$lt_cv_ld_force_load" = "yes"; then
  7834. 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\"`'
  7835. else
  7836. whole_archive_flag_spec=''
  7837. fi
  7838. link_all_deplibs=yes
  7839. allow_undefined_flag="$_lt_dar_allow_undefined"
  7840. case $cc_basename in
  7841. ifort*) _lt_dar_can_shared=yes ;;
  7842. *) _lt_dar_can_shared=$GCC ;;
  7843. esac
  7844. if test "$_lt_dar_can_shared" = "yes"; then
  7845. output_verbose_link_cmd=func_echo_all
  7846. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7847. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7848. 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}"
  7849. 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}"
  7850. else
  7851. ld_shlibs=no
  7852. fi
  7853. ;;
  7854. dgux*)
  7855. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7856. hardcode_libdir_flag_spec='-L$libdir'
  7857. hardcode_shlibpath_var=no
  7858. ;;
  7859. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7860. # support. Future versions do this automatically, but an explicit c++rt0.o
  7861. # does not break anything, and helps significantly (at the cost of a little
  7862. # extra space).
  7863. freebsd2.2*)
  7864. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7865. hardcode_libdir_flag_spec='-R$libdir'
  7866. hardcode_direct=yes
  7867. hardcode_shlibpath_var=no
  7868. ;;
  7869. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7870. freebsd2.*)
  7871. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7872. hardcode_direct=yes
  7873. hardcode_minus_L=yes
  7874. hardcode_shlibpath_var=no
  7875. ;;
  7876. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7877. freebsd* | dragonfly*)
  7878. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7879. hardcode_libdir_flag_spec='-R$libdir'
  7880. hardcode_direct=yes
  7881. hardcode_shlibpath_var=no
  7882. ;;
  7883. hpux9*)
  7884. if test "$GCC" = yes; then
  7885. 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'
  7886. else
  7887. 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'
  7888. fi
  7889. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7890. hardcode_libdir_separator=:
  7891. hardcode_direct=yes
  7892. # hardcode_minus_L: Not really in the search PATH,
  7893. # but as the default location of the library.
  7894. hardcode_minus_L=yes
  7895. export_dynamic_flag_spec='${wl}-E'
  7896. ;;
  7897. hpux10*)
  7898. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7899. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7900. else
  7901. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7902. fi
  7903. if test "$with_gnu_ld" = no; then
  7904. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7905. hardcode_libdir_flag_spec_ld='+b $libdir'
  7906. hardcode_libdir_separator=:
  7907. hardcode_direct=yes
  7908. hardcode_direct_absolute=yes
  7909. export_dynamic_flag_spec='${wl}-E'
  7910. # hardcode_minus_L: Not really in the search PATH,
  7911. # but as the default location of the library.
  7912. hardcode_minus_L=yes
  7913. fi
  7914. ;;
  7915. hpux11*)
  7916. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7917. case $host_cpu in
  7918. hppa*64*)
  7919. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7920. ;;
  7921. ia64*)
  7922. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7923. ;;
  7924. *)
  7925. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7926. ;;
  7927. esac
  7928. else
  7929. case $host_cpu in
  7930. hppa*64*)
  7931. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7932. ;;
  7933. ia64*)
  7934. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7935. ;;
  7936. *)
  7937. # Older versions of the 11.00 compiler do not understand -b yet
  7938. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  7939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  7940. $as_echo_n "checking if $CC understands -b... " >&6; }
  7941. if ${lt_cv_prog_compiler__b+:} false; then :
  7942. $as_echo_n "(cached) " >&6
  7943. else
  7944. lt_cv_prog_compiler__b=no
  7945. save_LDFLAGS="$LDFLAGS"
  7946. LDFLAGS="$LDFLAGS -b"
  7947. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7948. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7949. # The linker can only warn and ignore the option if not recognized
  7950. # So say no if there are warnings
  7951. if test -s conftest.err; then
  7952. # Append any errors to the config.log.
  7953. cat conftest.err 1>&5
  7954. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7955. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7956. if diff conftest.exp conftest.er2 >/dev/null; then
  7957. lt_cv_prog_compiler__b=yes
  7958. fi
  7959. else
  7960. lt_cv_prog_compiler__b=yes
  7961. fi
  7962. fi
  7963. $RM -r conftest*
  7964. LDFLAGS="$save_LDFLAGS"
  7965. fi
  7966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  7967. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  7968. if test x"$lt_cv_prog_compiler__b" = xyes; then
  7969. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7970. else
  7971. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7972. fi
  7973. ;;
  7974. esac
  7975. fi
  7976. if test "$with_gnu_ld" = no; then
  7977. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7978. hardcode_libdir_separator=:
  7979. case $host_cpu in
  7980. hppa*64*|ia64*)
  7981. hardcode_direct=no
  7982. hardcode_shlibpath_var=no
  7983. ;;
  7984. *)
  7985. hardcode_direct=yes
  7986. hardcode_direct_absolute=yes
  7987. export_dynamic_flag_spec='${wl}-E'
  7988. # hardcode_minus_L: Not really in the search PATH,
  7989. # but as the default location of the library.
  7990. hardcode_minus_L=yes
  7991. ;;
  7992. esac
  7993. fi
  7994. ;;
  7995. irix5* | irix6* | nonstopux*)
  7996. if test "$GCC" = yes; then
  7997. 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'
  7998. # Try to use the -exported_symbol ld option, if it does not
  7999. # work, assume that -exports_file does not work either and
  8000. # implicitly export all symbols.
  8001. save_LDFLAGS="$LDFLAGS"
  8002. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8004. /* end confdefs.h. */
  8005. int foo(void) {}
  8006. _ACEOF
  8007. if ac_fn_c_try_link "$LINENO"; then :
  8008. 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'
  8009. fi
  8010. rm -f core conftest.err conftest.$ac_objext \
  8011. conftest$ac_exeext conftest.$ac_ext
  8012. LDFLAGS="$save_LDFLAGS"
  8013. else
  8014. 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'
  8015. 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'
  8016. fi
  8017. archive_cmds_need_lc='no'
  8018. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8019. hardcode_libdir_separator=:
  8020. inherit_rpath=yes
  8021. link_all_deplibs=yes
  8022. ;;
  8023. netbsd*)
  8024. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8025. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8026. else
  8027. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8028. fi
  8029. hardcode_libdir_flag_spec='-R$libdir'
  8030. hardcode_direct=yes
  8031. hardcode_shlibpath_var=no
  8032. ;;
  8033. newsos6)
  8034. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8035. hardcode_direct=yes
  8036. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8037. hardcode_libdir_separator=:
  8038. hardcode_shlibpath_var=no
  8039. ;;
  8040. *nto* | *qnx*)
  8041. ;;
  8042. openbsd*)
  8043. if test -f /usr/libexec/ld.so; then
  8044. hardcode_direct=yes
  8045. hardcode_shlibpath_var=no
  8046. hardcode_direct_absolute=yes
  8047. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8048. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8049. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8050. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8051. export_dynamic_flag_spec='${wl}-E'
  8052. else
  8053. case $host_os in
  8054. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8055. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8056. hardcode_libdir_flag_spec='-R$libdir'
  8057. ;;
  8058. *)
  8059. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8060. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8061. ;;
  8062. esac
  8063. fi
  8064. else
  8065. ld_shlibs=no
  8066. fi
  8067. ;;
  8068. os2*)
  8069. hardcode_libdir_flag_spec='-L$libdir'
  8070. hardcode_minus_L=yes
  8071. allow_undefined_flag=unsupported
  8072. 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'
  8073. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8074. ;;
  8075. osf3*)
  8076. if test "$GCC" = yes; then
  8077. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8078. 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'
  8079. else
  8080. allow_undefined_flag=' -expect_unresolved \*'
  8081. 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'
  8082. fi
  8083. archive_cmds_need_lc='no'
  8084. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8085. hardcode_libdir_separator=:
  8086. ;;
  8087. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8088. if test "$GCC" = yes; then
  8089. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8090. 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'
  8091. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8092. else
  8093. allow_undefined_flag=' -expect_unresolved \*'
  8094. 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'
  8095. 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~
  8096. $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'
  8097. # Both c and cxx compiler support -rpath directly
  8098. hardcode_libdir_flag_spec='-rpath $libdir'
  8099. fi
  8100. archive_cmds_need_lc='no'
  8101. hardcode_libdir_separator=:
  8102. ;;
  8103. solaris*)
  8104. no_undefined_flag=' -z defs'
  8105. if test "$GCC" = yes; then
  8106. wlarc='${wl}'
  8107. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8108. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8109. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8110. else
  8111. case `$CC -V 2>&1` in
  8112. *"Compilers 5.0"*)
  8113. wlarc=''
  8114. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8115. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8116. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8117. ;;
  8118. *)
  8119. wlarc='${wl}'
  8120. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8121. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8122. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8123. ;;
  8124. esac
  8125. fi
  8126. hardcode_libdir_flag_spec='-R$libdir'
  8127. hardcode_shlibpath_var=no
  8128. case $host_os in
  8129. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8130. *)
  8131. # The compiler driver will combine and reorder linker options,
  8132. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8133. # but is careful enough not to reorder.
  8134. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8135. if test "$GCC" = yes; then
  8136. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8137. else
  8138. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8139. fi
  8140. ;;
  8141. esac
  8142. link_all_deplibs=yes
  8143. ;;
  8144. sunos4*)
  8145. if test "x$host_vendor" = xsequent; then
  8146. # Use $CC to link under sequent, because it throws in some extra .o
  8147. # files that make .init and .fini sections work.
  8148. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8149. else
  8150. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8151. fi
  8152. hardcode_libdir_flag_spec='-L$libdir'
  8153. hardcode_direct=yes
  8154. hardcode_minus_L=yes
  8155. hardcode_shlibpath_var=no
  8156. ;;
  8157. sysv4)
  8158. case $host_vendor in
  8159. sni)
  8160. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8161. hardcode_direct=yes # is this really true???
  8162. ;;
  8163. siemens)
  8164. ## LD is ld it makes a PLAMLIB
  8165. ## CC just makes a GrossModule.
  8166. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8167. reload_cmds='$CC -r -o $output$reload_objs'
  8168. hardcode_direct=no
  8169. ;;
  8170. motorola)
  8171. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8172. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8173. ;;
  8174. esac
  8175. runpath_var='LD_RUN_PATH'
  8176. hardcode_shlibpath_var=no
  8177. ;;
  8178. sysv4.3*)
  8179. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8180. hardcode_shlibpath_var=no
  8181. export_dynamic_flag_spec='-Bexport'
  8182. ;;
  8183. sysv4*MP*)
  8184. if test -d /usr/nec; then
  8185. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8186. hardcode_shlibpath_var=no
  8187. runpath_var=LD_RUN_PATH
  8188. hardcode_runpath_var=yes
  8189. ld_shlibs=yes
  8190. fi
  8191. ;;
  8192. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8193. no_undefined_flag='${wl}-z,text'
  8194. archive_cmds_need_lc=no
  8195. hardcode_shlibpath_var=no
  8196. runpath_var='LD_RUN_PATH'
  8197. if test "$GCC" = yes; then
  8198. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8199. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8200. else
  8201. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8202. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8203. fi
  8204. ;;
  8205. sysv5* | sco3.2v5* | sco5v6*)
  8206. # Note: We can NOT use -z defs as we might desire, because we do not
  8207. # link with -lc, and that would cause any symbols used from libc to
  8208. # always be unresolved, which means just about no library would
  8209. # ever link correctly. If we're not using GNU ld we use -z text
  8210. # though, which does catch some bad symbols but isn't as heavy-handed
  8211. # as -z defs.
  8212. no_undefined_flag='${wl}-z,text'
  8213. allow_undefined_flag='${wl}-z,nodefs'
  8214. archive_cmds_need_lc=no
  8215. hardcode_shlibpath_var=no
  8216. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8217. hardcode_libdir_separator=':'
  8218. link_all_deplibs=yes
  8219. export_dynamic_flag_spec='${wl}-Bexport'
  8220. runpath_var='LD_RUN_PATH'
  8221. if test "$GCC" = yes; then
  8222. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8223. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8224. else
  8225. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8226. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8227. fi
  8228. ;;
  8229. uts4*)
  8230. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8231. hardcode_libdir_flag_spec='-L$libdir'
  8232. hardcode_shlibpath_var=no
  8233. ;;
  8234. *)
  8235. ld_shlibs=no
  8236. ;;
  8237. esac
  8238. if test x$host_vendor = xsni; then
  8239. case $host in
  8240. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8241. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8242. ;;
  8243. esac
  8244. fi
  8245. fi
  8246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8247. $as_echo "$ld_shlibs" >&6; }
  8248. test "$ld_shlibs" = no && can_build_shared=no
  8249. with_gnu_ld=$with_gnu_ld
  8250. #
  8251. # Do we need to explicitly link libc?
  8252. #
  8253. case "x$archive_cmds_need_lc" in
  8254. x|xyes)
  8255. # Assume -lc should be added
  8256. archive_cmds_need_lc=yes
  8257. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8258. case $archive_cmds in
  8259. *'~'*)
  8260. # FIXME: we may have to deal with multi-command sequences.
  8261. ;;
  8262. '$CC '*)
  8263. # Test whether the compiler implicitly links with -lc since on some
  8264. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8265. # to ld, don't add -lc before -lgcc.
  8266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8267. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8268. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8269. $as_echo_n "(cached) " >&6
  8270. else
  8271. $RM conftest*
  8272. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8273. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8274. (eval $ac_compile) 2>&5
  8275. ac_status=$?
  8276. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8277. test $ac_status = 0; } 2>conftest.err; then
  8278. soname=conftest
  8279. lib=conftest
  8280. libobjs=conftest.$ac_objext
  8281. deplibs=
  8282. wl=$lt_prog_compiler_wl
  8283. pic_flag=$lt_prog_compiler_pic
  8284. compiler_flags=-v
  8285. linker_flags=-v
  8286. verstring=
  8287. output_objdir=.
  8288. libname=conftest
  8289. lt_save_allow_undefined_flag=$allow_undefined_flag
  8290. allow_undefined_flag=
  8291. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8292. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8293. ac_status=$?
  8294. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8295. test $ac_status = 0; }
  8296. then
  8297. lt_cv_archive_cmds_need_lc=no
  8298. else
  8299. lt_cv_archive_cmds_need_lc=yes
  8300. fi
  8301. allow_undefined_flag=$lt_save_allow_undefined_flag
  8302. else
  8303. cat conftest.err 1>&5
  8304. fi
  8305. $RM conftest*
  8306. fi
  8307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8308. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8309. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8310. ;;
  8311. esac
  8312. fi
  8313. ;;
  8314. esac
  8315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8316. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8317. if test "$GCC" = yes; then
  8318. case $host_os in
  8319. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8320. *) lt_awk_arg="/^libraries:/" ;;
  8321. esac
  8322. case $host_os in
  8323. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8324. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8325. esac
  8326. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8327. case $lt_search_path_spec in
  8328. *\;*)
  8329. # if the path contains ";" then we assume it to be the separator
  8330. # otherwise default to the standard path separator (i.e. ":") - it is
  8331. # assumed that no part of a normal pathname contains ";" but that should
  8332. # okay in the real world where ";" in dirpaths is itself problematic.
  8333. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8334. ;;
  8335. *)
  8336. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8337. ;;
  8338. esac
  8339. # Ok, now we have the path, separated by spaces, we can step through it
  8340. # and add multilib dir if necessary.
  8341. lt_tmp_lt_search_path_spec=
  8342. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8343. for lt_sys_path in $lt_search_path_spec; do
  8344. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8345. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8346. else
  8347. test -d "$lt_sys_path" && \
  8348. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8349. fi
  8350. done
  8351. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8352. BEGIN {RS=" "; FS="/|\n";} {
  8353. lt_foo="";
  8354. lt_count=0;
  8355. for (lt_i = NF; lt_i > 0; lt_i--) {
  8356. if ($lt_i != "" && $lt_i != ".") {
  8357. if ($lt_i == "..") {
  8358. lt_count++;
  8359. } else {
  8360. if (lt_count == 0) {
  8361. lt_foo="/" $lt_i lt_foo;
  8362. } else {
  8363. lt_count--;
  8364. }
  8365. }
  8366. }
  8367. }
  8368. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8369. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8370. }'`
  8371. # AWK program above erroneously prepends '/' to C:/dos/paths
  8372. # for these hosts.
  8373. case $host_os in
  8374. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8375. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8376. esac
  8377. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8378. else
  8379. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8380. fi
  8381. library_names_spec=
  8382. libname_spec='lib$name'
  8383. soname_spec=
  8384. shrext_cmds=".so"
  8385. postinstall_cmds=
  8386. postuninstall_cmds=
  8387. finish_cmds=
  8388. finish_eval=
  8389. shlibpath_var=
  8390. shlibpath_overrides_runpath=unknown
  8391. version_type=none
  8392. dynamic_linker="$host_os ld.so"
  8393. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8394. need_lib_prefix=unknown
  8395. hardcode_into_libs=no
  8396. # when you set need_version to no, make sure it does not cause -set_version
  8397. # flags to be left without arguments
  8398. need_version=unknown
  8399. case $host_os in
  8400. aix3*)
  8401. version_type=linux
  8402. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8403. shlibpath_var=LIBPATH
  8404. # AIX 3 has no versioning support, so we append a major version to the name.
  8405. soname_spec='${libname}${release}${shared_ext}$major'
  8406. ;;
  8407. aix[4-9]*)
  8408. version_type=linux
  8409. need_lib_prefix=no
  8410. need_version=no
  8411. hardcode_into_libs=yes
  8412. if test "$host_cpu" = ia64; then
  8413. # AIX 5 supports IA64
  8414. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8415. shlibpath_var=LD_LIBRARY_PATH
  8416. else
  8417. # With GCC up to 2.95.x, collect2 would create an import file
  8418. # for dependence libraries. The import file would start with
  8419. # the line `#! .'. This would cause the generated library to
  8420. # depend on `.', always an invalid library. This was fixed in
  8421. # development snapshots of GCC prior to 3.0.
  8422. case $host_os in
  8423. aix4 | aix4.[01] | aix4.[01].*)
  8424. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8425. echo ' yes '
  8426. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8427. :
  8428. else
  8429. can_build_shared=no
  8430. fi
  8431. ;;
  8432. esac
  8433. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8434. # soname into executable. Probably we can add versioning support to
  8435. # collect2, so additional links can be useful in future.
  8436. if test "$aix_use_runtimelinking" = yes; then
  8437. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8438. # instead of lib<name>.a to let people know that these are not
  8439. # typical AIX shared libraries.
  8440. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8441. else
  8442. # We preserve .a as extension for shared libraries through AIX4.2
  8443. # and later when we are not doing run time linking.
  8444. library_names_spec='${libname}${release}.a $libname.a'
  8445. soname_spec='${libname}${release}${shared_ext}$major'
  8446. fi
  8447. shlibpath_var=LIBPATH
  8448. fi
  8449. ;;
  8450. amigaos*)
  8451. case $host_cpu in
  8452. powerpc)
  8453. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8454. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8455. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8456. ;;
  8457. m68k)
  8458. library_names_spec='$libname.ixlibrary $libname.a'
  8459. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8460. 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'
  8461. ;;
  8462. esac
  8463. ;;
  8464. beos*)
  8465. library_names_spec='${libname}${shared_ext}'
  8466. dynamic_linker="$host_os ld.so"
  8467. shlibpath_var=LIBRARY_PATH
  8468. ;;
  8469. bsdi[45]*)
  8470. version_type=linux
  8471. need_version=no
  8472. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8473. soname_spec='${libname}${release}${shared_ext}$major'
  8474. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8475. shlibpath_var=LD_LIBRARY_PATH
  8476. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8477. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8478. # the default ld.so.conf also contains /usr/contrib/lib and
  8479. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8480. # libtool to hard-code these into programs
  8481. ;;
  8482. cygwin* | mingw* | pw32* | cegcc*)
  8483. version_type=windows
  8484. shrext_cmds=".dll"
  8485. need_version=no
  8486. need_lib_prefix=no
  8487. case $GCC,$host_os in
  8488. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8489. library_names_spec='$libname.dll.a'
  8490. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8491. postinstall_cmds='base_file=`basename \${file}`~
  8492. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8493. dldir=$destdir/`dirname \$dlpath`~
  8494. test -d \$dldir || mkdir -p \$dldir~
  8495. $install_prog $dir/$dlname \$dldir/$dlname~
  8496. chmod a+x \$dldir/$dlname~
  8497. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8498. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8499. fi'
  8500. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8501. dlpath=$dir/\$dldll~
  8502. $RM \$dlpath'
  8503. shlibpath_overrides_runpath=yes
  8504. case $host_os in
  8505. cygwin*)
  8506. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8507. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8508. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8509. ;;
  8510. mingw* | cegcc*)
  8511. # MinGW DLLs use traditional 'lib' prefix
  8512. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8513. ;;
  8514. pw32*)
  8515. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8516. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8517. ;;
  8518. esac
  8519. ;;
  8520. *)
  8521. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8522. ;;
  8523. esac
  8524. dynamic_linker='Win32 ld.exe'
  8525. # FIXME: first we should search . and the directory the executable is in
  8526. shlibpath_var=PATH
  8527. ;;
  8528. darwin* | rhapsody*)
  8529. dynamic_linker="$host_os dyld"
  8530. version_type=darwin
  8531. need_lib_prefix=no
  8532. need_version=no
  8533. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8534. soname_spec='${libname}${release}${major}$shared_ext'
  8535. shlibpath_overrides_runpath=yes
  8536. shlibpath_var=DYLD_LIBRARY_PATH
  8537. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8538. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8539. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8540. ;;
  8541. dgux*)
  8542. version_type=linux
  8543. need_lib_prefix=no
  8544. need_version=no
  8545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8546. soname_spec='${libname}${release}${shared_ext}$major'
  8547. shlibpath_var=LD_LIBRARY_PATH
  8548. ;;
  8549. freebsd* | dragonfly*)
  8550. # DragonFly does not have aout. When/if they implement a new
  8551. # versioning mechanism, adjust this.
  8552. if test -x /usr/bin/objformat; then
  8553. objformat=`/usr/bin/objformat`
  8554. else
  8555. case $host_os in
  8556. freebsd[23].*) objformat=aout ;;
  8557. *) objformat=elf ;;
  8558. esac
  8559. fi
  8560. version_type=freebsd-$objformat
  8561. case $version_type in
  8562. freebsd-elf*)
  8563. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8564. need_version=no
  8565. need_lib_prefix=no
  8566. ;;
  8567. freebsd-*)
  8568. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8569. need_version=yes
  8570. ;;
  8571. esac
  8572. shlibpath_var=LD_LIBRARY_PATH
  8573. case $host_os in
  8574. freebsd2.*)
  8575. shlibpath_overrides_runpath=yes
  8576. ;;
  8577. freebsd3.[01]* | freebsdelf3.[01]*)
  8578. shlibpath_overrides_runpath=yes
  8579. hardcode_into_libs=yes
  8580. ;;
  8581. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8582. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8583. shlibpath_overrides_runpath=no
  8584. hardcode_into_libs=yes
  8585. ;;
  8586. *) # from 4.6 on, and DragonFly
  8587. shlibpath_overrides_runpath=yes
  8588. hardcode_into_libs=yes
  8589. ;;
  8590. esac
  8591. ;;
  8592. haiku*)
  8593. version_type=linux
  8594. need_lib_prefix=no
  8595. need_version=no
  8596. dynamic_linker="$host_os runtime_loader"
  8597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8598. soname_spec='${libname}${release}${shared_ext}$major'
  8599. shlibpath_var=LIBRARY_PATH
  8600. shlibpath_overrides_runpath=yes
  8601. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8602. hardcode_into_libs=yes
  8603. ;;
  8604. hpux9* | hpux10* | hpux11*)
  8605. # Give a soname corresponding to the major version so that dld.sl refuses to
  8606. # link against other versions.
  8607. version_type=sunos
  8608. need_lib_prefix=no
  8609. need_version=no
  8610. case $host_cpu in
  8611. ia64*)
  8612. shrext_cmds='.so'
  8613. hardcode_into_libs=yes
  8614. dynamic_linker="$host_os dld.so"
  8615. shlibpath_var=LD_LIBRARY_PATH
  8616. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8617. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8618. soname_spec='${libname}${release}${shared_ext}$major'
  8619. if test "X$HPUX_IA64_MODE" = X32; then
  8620. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8621. else
  8622. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8623. fi
  8624. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8625. ;;
  8626. hppa*64*)
  8627. shrext_cmds='.sl'
  8628. hardcode_into_libs=yes
  8629. dynamic_linker="$host_os dld.sl"
  8630. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8631. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8633. soname_spec='${libname}${release}${shared_ext}$major'
  8634. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8635. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8636. ;;
  8637. *)
  8638. shrext_cmds='.sl'
  8639. dynamic_linker="$host_os dld.sl"
  8640. shlibpath_var=SHLIB_PATH
  8641. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8642. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8643. soname_spec='${libname}${release}${shared_ext}$major'
  8644. ;;
  8645. esac
  8646. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8647. postinstall_cmds='chmod 555 $lib'
  8648. # or fails outright, so override atomically:
  8649. install_override_mode=555
  8650. ;;
  8651. interix[3-9]*)
  8652. version_type=linux
  8653. need_lib_prefix=no
  8654. need_version=no
  8655. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8656. soname_spec='${libname}${release}${shared_ext}$major'
  8657. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8658. shlibpath_var=LD_LIBRARY_PATH
  8659. shlibpath_overrides_runpath=no
  8660. hardcode_into_libs=yes
  8661. ;;
  8662. irix5* | irix6* | nonstopux*)
  8663. case $host_os in
  8664. nonstopux*) version_type=nonstopux ;;
  8665. *)
  8666. if test "$lt_cv_prog_gnu_ld" = yes; then
  8667. version_type=linux
  8668. else
  8669. version_type=irix
  8670. fi ;;
  8671. esac
  8672. need_lib_prefix=no
  8673. need_version=no
  8674. soname_spec='${libname}${release}${shared_ext}$major'
  8675. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8676. case $host_os in
  8677. irix5* | nonstopux*)
  8678. libsuff= shlibsuff=
  8679. ;;
  8680. *)
  8681. case $LD in # libtool.m4 will add one of these switches to LD
  8682. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8683. libsuff= shlibsuff= libmagic=32-bit;;
  8684. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8685. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8686. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8687. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8688. *) libsuff= shlibsuff= libmagic=never-match;;
  8689. esac
  8690. ;;
  8691. esac
  8692. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8693. shlibpath_overrides_runpath=no
  8694. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8695. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8696. hardcode_into_libs=yes
  8697. ;;
  8698. # No shared lib support for Linux oldld, aout, or coff.
  8699. linux*oldld* | linux*aout* | linux*coff*)
  8700. dynamic_linker=no
  8701. ;;
  8702. # This must be Linux ELF.
  8703. # uclinux* changes (here and below) have been submitted to the libtool
  8704. # project, but have not yet been accepted: they are GCC-local changes
  8705. # for the time being. (See
  8706. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  8707. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  8708. version_type=linux
  8709. need_lib_prefix=no
  8710. need_version=no
  8711. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8712. soname_spec='${libname}${release}${shared_ext}$major'
  8713. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8714. shlibpath_var=LD_LIBRARY_PATH
  8715. shlibpath_overrides_runpath=no
  8716. # Some binutils ld are patched to set DT_RUNPATH
  8717. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8718. $as_echo_n "(cached) " >&6
  8719. else
  8720. lt_cv_shlibpath_overrides_runpath=no
  8721. save_LDFLAGS=$LDFLAGS
  8722. save_libdir=$libdir
  8723. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8724. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8726. /* end confdefs.h. */
  8727. int
  8728. main ()
  8729. {
  8730. ;
  8731. return 0;
  8732. }
  8733. _ACEOF
  8734. if ac_fn_c_try_link "$LINENO"; then :
  8735. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8736. lt_cv_shlibpath_overrides_runpath=yes
  8737. fi
  8738. fi
  8739. rm -f core conftest.err conftest.$ac_objext \
  8740. conftest$ac_exeext conftest.$ac_ext
  8741. LDFLAGS=$save_LDFLAGS
  8742. libdir=$save_libdir
  8743. fi
  8744. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8745. # This implies no fast_install, which is unacceptable.
  8746. # Some rework will be needed to allow for fast_install
  8747. # before this can be enabled.
  8748. hardcode_into_libs=yes
  8749. # Append ld.so.conf contents to the search path
  8750. if test -f /etc/ld.so.conf; then
  8751. 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' ' '`
  8752. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8753. fi
  8754. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8755. # powerpc, because MkLinux only supported shared libraries with the
  8756. # GNU dynamic linker. Since this was broken with cross compilers,
  8757. # most powerpc-linux boxes support dynamic linking these days and
  8758. # people can always --disable-shared, the test was removed, and we
  8759. # assume the GNU/Linux dynamic linker is in use.
  8760. dynamic_linker='GNU/Linux ld.so'
  8761. ;;
  8762. netbsd*)
  8763. version_type=sunos
  8764. need_lib_prefix=no
  8765. need_version=no
  8766. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8767. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8768. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8769. dynamic_linker='NetBSD (a.out) ld.so'
  8770. else
  8771. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8772. soname_spec='${libname}${release}${shared_ext}$major'
  8773. dynamic_linker='NetBSD ld.elf_so'
  8774. fi
  8775. shlibpath_var=LD_LIBRARY_PATH
  8776. shlibpath_overrides_runpath=yes
  8777. hardcode_into_libs=yes
  8778. ;;
  8779. newsos6)
  8780. version_type=linux
  8781. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8782. shlibpath_var=LD_LIBRARY_PATH
  8783. shlibpath_overrides_runpath=yes
  8784. ;;
  8785. *nto* | *qnx*)
  8786. version_type=qnx
  8787. need_lib_prefix=no
  8788. need_version=no
  8789. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8790. soname_spec='${libname}${release}${shared_ext}$major'
  8791. shlibpath_var=LD_LIBRARY_PATH
  8792. shlibpath_overrides_runpath=no
  8793. hardcode_into_libs=yes
  8794. dynamic_linker='ldqnx.so'
  8795. ;;
  8796. openbsd*)
  8797. version_type=sunos
  8798. sys_lib_dlsearch_path_spec="/usr/lib"
  8799. need_lib_prefix=no
  8800. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8801. case $host_os in
  8802. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8803. *) need_version=no ;;
  8804. esac
  8805. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8806. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8807. shlibpath_var=LD_LIBRARY_PATH
  8808. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8809. case $host_os in
  8810. openbsd2.[89] | openbsd2.[89].*)
  8811. shlibpath_overrides_runpath=no
  8812. ;;
  8813. *)
  8814. shlibpath_overrides_runpath=yes
  8815. ;;
  8816. esac
  8817. else
  8818. shlibpath_overrides_runpath=yes
  8819. fi
  8820. ;;
  8821. os2*)
  8822. libname_spec='$name'
  8823. shrext_cmds=".dll"
  8824. need_lib_prefix=no
  8825. library_names_spec='$libname${shared_ext} $libname.a'
  8826. dynamic_linker='OS/2 ld.exe'
  8827. shlibpath_var=LIBPATH
  8828. ;;
  8829. osf3* | osf4* | osf5*)
  8830. version_type=osf
  8831. need_lib_prefix=no
  8832. need_version=no
  8833. soname_spec='${libname}${release}${shared_ext}$major'
  8834. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8835. shlibpath_var=LD_LIBRARY_PATH
  8836. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8837. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8838. ;;
  8839. rdos*)
  8840. dynamic_linker=no
  8841. ;;
  8842. solaris*)
  8843. version_type=linux
  8844. need_lib_prefix=no
  8845. need_version=no
  8846. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8847. soname_spec='${libname}${release}${shared_ext}$major'
  8848. shlibpath_var=LD_LIBRARY_PATH
  8849. shlibpath_overrides_runpath=yes
  8850. hardcode_into_libs=yes
  8851. # ldd complains unless libraries are executable
  8852. postinstall_cmds='chmod +x $lib'
  8853. ;;
  8854. sunos4*)
  8855. version_type=sunos
  8856. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8857. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8858. shlibpath_var=LD_LIBRARY_PATH
  8859. shlibpath_overrides_runpath=yes
  8860. if test "$with_gnu_ld" = yes; then
  8861. need_lib_prefix=no
  8862. fi
  8863. need_version=yes
  8864. ;;
  8865. sysv4 | sysv4.3*)
  8866. version_type=linux
  8867. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8868. soname_spec='${libname}${release}${shared_ext}$major'
  8869. shlibpath_var=LD_LIBRARY_PATH
  8870. case $host_vendor in
  8871. sni)
  8872. shlibpath_overrides_runpath=no
  8873. need_lib_prefix=no
  8874. runpath_var=LD_RUN_PATH
  8875. ;;
  8876. siemens)
  8877. need_lib_prefix=no
  8878. ;;
  8879. motorola)
  8880. need_lib_prefix=no
  8881. need_version=no
  8882. shlibpath_overrides_runpath=no
  8883. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8884. ;;
  8885. esac
  8886. ;;
  8887. sysv4*MP*)
  8888. if test -d /usr/nec ;then
  8889. version_type=linux
  8890. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8891. soname_spec='$libname${shared_ext}.$major'
  8892. shlibpath_var=LD_LIBRARY_PATH
  8893. fi
  8894. ;;
  8895. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8896. version_type=freebsd-elf
  8897. need_lib_prefix=no
  8898. need_version=no
  8899. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8900. soname_spec='${libname}${release}${shared_ext}$major'
  8901. shlibpath_var=LD_LIBRARY_PATH
  8902. shlibpath_overrides_runpath=yes
  8903. hardcode_into_libs=yes
  8904. if test "$with_gnu_ld" = yes; then
  8905. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8906. else
  8907. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8908. case $host_os in
  8909. sco3.2v5*)
  8910. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8911. ;;
  8912. esac
  8913. fi
  8914. sys_lib_dlsearch_path_spec='/usr/lib'
  8915. ;;
  8916. tpf*)
  8917. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8918. version_type=linux
  8919. need_lib_prefix=no
  8920. need_version=no
  8921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8922. shlibpath_var=LD_LIBRARY_PATH
  8923. shlibpath_overrides_runpath=no
  8924. hardcode_into_libs=yes
  8925. ;;
  8926. uts4*)
  8927. version_type=linux
  8928. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8929. soname_spec='${libname}${release}${shared_ext}$major'
  8930. shlibpath_var=LD_LIBRARY_PATH
  8931. ;;
  8932. *)
  8933. dynamic_linker=no
  8934. ;;
  8935. esac
  8936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8937. $as_echo "$dynamic_linker" >&6; }
  8938. test "$dynamic_linker" = no && can_build_shared=no
  8939. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8940. if test "$GCC" = yes; then
  8941. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8942. fi
  8943. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8944. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8945. fi
  8946. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8947. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8948. fi
  8949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8950. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8951. hardcode_action=
  8952. if test -n "$hardcode_libdir_flag_spec" ||
  8953. test -n "$runpath_var" ||
  8954. test "X$hardcode_automatic" = "Xyes" ; then
  8955. # We can hardcode non-existent directories.
  8956. if test "$hardcode_direct" != no &&
  8957. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8958. # have to relink, otherwise we might link with an installed library
  8959. # when we should be linking with a yet-to-be-installed one
  8960. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8961. test "$hardcode_minus_L" != no; then
  8962. # Linking always hardcodes the temporary library directory.
  8963. hardcode_action=relink
  8964. else
  8965. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8966. hardcode_action=immediate
  8967. fi
  8968. else
  8969. # We cannot hardcode anything, or else we can only hardcode existing
  8970. # directories.
  8971. hardcode_action=unsupported
  8972. fi
  8973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8974. $as_echo "$hardcode_action" >&6; }
  8975. if test "$hardcode_action" = relink ||
  8976. test "$inherit_rpath" = yes; then
  8977. # Fast installation is not supported
  8978. enable_fast_install=no
  8979. elif test "$shlibpath_overrides_runpath" = yes ||
  8980. test "$enable_shared" = no; then
  8981. # Fast installation is not necessary
  8982. enable_fast_install=needless
  8983. fi
  8984. if test "x$enable_dlopen" != xyes; then
  8985. enable_dlopen=unknown
  8986. enable_dlopen_self=unknown
  8987. enable_dlopen_self_static=unknown
  8988. else
  8989. lt_cv_dlopen=no
  8990. lt_cv_dlopen_libs=
  8991. case $host_os in
  8992. beos*)
  8993. lt_cv_dlopen="load_add_on"
  8994. lt_cv_dlopen_libs=
  8995. lt_cv_dlopen_self=yes
  8996. ;;
  8997. mingw* | pw32* | cegcc*)
  8998. lt_cv_dlopen="LoadLibrary"
  8999. lt_cv_dlopen_libs=
  9000. ;;
  9001. cygwin*)
  9002. lt_cv_dlopen="dlopen"
  9003. lt_cv_dlopen_libs=
  9004. ;;
  9005. darwin*)
  9006. # if libdl is installed we need to link against it
  9007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9008. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9009. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9010. $as_echo_n "(cached) " >&6
  9011. else
  9012. ac_check_lib_save_LIBS=$LIBS
  9013. LIBS="-ldl $LIBS"
  9014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9015. /* end confdefs.h. */
  9016. /* Override any GCC internal prototype to avoid an error.
  9017. Use char because int might match the return type of a GCC
  9018. builtin and then its argument prototype would still apply. */
  9019. #ifdef __cplusplus
  9020. extern "C"
  9021. #endif
  9022. char dlopen ();
  9023. int
  9024. main ()
  9025. {
  9026. return dlopen ();
  9027. ;
  9028. return 0;
  9029. }
  9030. _ACEOF
  9031. if ac_fn_c_try_link "$LINENO"; then :
  9032. ac_cv_lib_dl_dlopen=yes
  9033. else
  9034. ac_cv_lib_dl_dlopen=no
  9035. fi
  9036. rm -f core conftest.err conftest.$ac_objext \
  9037. conftest$ac_exeext conftest.$ac_ext
  9038. LIBS=$ac_check_lib_save_LIBS
  9039. fi
  9040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9041. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9042. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9043. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9044. else
  9045. lt_cv_dlopen="dyld"
  9046. lt_cv_dlopen_libs=
  9047. lt_cv_dlopen_self=yes
  9048. fi
  9049. ;;
  9050. *)
  9051. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9052. if test "x$ac_cv_func_shl_load" = xyes; then :
  9053. lt_cv_dlopen="shl_load"
  9054. else
  9055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9056. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9057. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9058. $as_echo_n "(cached) " >&6
  9059. else
  9060. ac_check_lib_save_LIBS=$LIBS
  9061. LIBS="-ldld $LIBS"
  9062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9063. /* end confdefs.h. */
  9064. /* Override any GCC internal prototype to avoid an error.
  9065. Use char because int might match the return type of a GCC
  9066. builtin and then its argument prototype would still apply. */
  9067. #ifdef __cplusplus
  9068. extern "C"
  9069. #endif
  9070. char shl_load ();
  9071. int
  9072. main ()
  9073. {
  9074. return shl_load ();
  9075. ;
  9076. return 0;
  9077. }
  9078. _ACEOF
  9079. if ac_fn_c_try_link "$LINENO"; then :
  9080. ac_cv_lib_dld_shl_load=yes
  9081. else
  9082. ac_cv_lib_dld_shl_load=no
  9083. fi
  9084. rm -f core conftest.err conftest.$ac_objext \
  9085. conftest$ac_exeext conftest.$ac_ext
  9086. LIBS=$ac_check_lib_save_LIBS
  9087. fi
  9088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9089. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9090. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9091. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9092. else
  9093. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9094. if test "x$ac_cv_func_dlopen" = xyes; then :
  9095. lt_cv_dlopen="dlopen"
  9096. else
  9097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9098. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9099. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9100. $as_echo_n "(cached) " >&6
  9101. else
  9102. ac_check_lib_save_LIBS=$LIBS
  9103. LIBS="-ldl $LIBS"
  9104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9105. /* end confdefs.h. */
  9106. /* Override any GCC internal prototype to avoid an error.
  9107. Use char because int might match the return type of a GCC
  9108. builtin and then its argument prototype would still apply. */
  9109. #ifdef __cplusplus
  9110. extern "C"
  9111. #endif
  9112. char dlopen ();
  9113. int
  9114. main ()
  9115. {
  9116. return dlopen ();
  9117. ;
  9118. return 0;
  9119. }
  9120. _ACEOF
  9121. if ac_fn_c_try_link "$LINENO"; then :
  9122. ac_cv_lib_dl_dlopen=yes
  9123. else
  9124. ac_cv_lib_dl_dlopen=no
  9125. fi
  9126. rm -f core conftest.err conftest.$ac_objext \
  9127. conftest$ac_exeext conftest.$ac_ext
  9128. LIBS=$ac_check_lib_save_LIBS
  9129. fi
  9130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9131. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9132. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9133. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9134. else
  9135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9136. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9137. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9138. $as_echo_n "(cached) " >&6
  9139. else
  9140. ac_check_lib_save_LIBS=$LIBS
  9141. LIBS="-lsvld $LIBS"
  9142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9143. /* end confdefs.h. */
  9144. /* Override any GCC internal prototype to avoid an error.
  9145. Use char because int might match the return type of a GCC
  9146. builtin and then its argument prototype would still apply. */
  9147. #ifdef __cplusplus
  9148. extern "C"
  9149. #endif
  9150. char dlopen ();
  9151. int
  9152. main ()
  9153. {
  9154. return dlopen ();
  9155. ;
  9156. return 0;
  9157. }
  9158. _ACEOF
  9159. if ac_fn_c_try_link "$LINENO"; then :
  9160. ac_cv_lib_svld_dlopen=yes
  9161. else
  9162. ac_cv_lib_svld_dlopen=no
  9163. fi
  9164. rm -f core conftest.err conftest.$ac_objext \
  9165. conftest$ac_exeext conftest.$ac_ext
  9166. LIBS=$ac_check_lib_save_LIBS
  9167. fi
  9168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9169. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9170. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9171. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9172. else
  9173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9174. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9175. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9176. $as_echo_n "(cached) " >&6
  9177. else
  9178. ac_check_lib_save_LIBS=$LIBS
  9179. LIBS="-ldld $LIBS"
  9180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9181. /* end confdefs.h. */
  9182. /* Override any GCC internal prototype to avoid an error.
  9183. Use char because int might match the return type of a GCC
  9184. builtin and then its argument prototype would still apply. */
  9185. #ifdef __cplusplus
  9186. extern "C"
  9187. #endif
  9188. char dld_link ();
  9189. int
  9190. main ()
  9191. {
  9192. return dld_link ();
  9193. ;
  9194. return 0;
  9195. }
  9196. _ACEOF
  9197. if ac_fn_c_try_link "$LINENO"; then :
  9198. ac_cv_lib_dld_dld_link=yes
  9199. else
  9200. ac_cv_lib_dld_dld_link=no
  9201. fi
  9202. rm -f core conftest.err conftest.$ac_objext \
  9203. conftest$ac_exeext conftest.$ac_ext
  9204. LIBS=$ac_check_lib_save_LIBS
  9205. fi
  9206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9207. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9208. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9209. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9210. fi
  9211. fi
  9212. fi
  9213. fi
  9214. fi
  9215. fi
  9216. ;;
  9217. esac
  9218. if test "x$lt_cv_dlopen" != xno; then
  9219. enable_dlopen=yes
  9220. else
  9221. enable_dlopen=no
  9222. fi
  9223. case $lt_cv_dlopen in
  9224. dlopen)
  9225. save_CPPFLAGS="$CPPFLAGS"
  9226. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9227. save_LDFLAGS="$LDFLAGS"
  9228. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9229. save_LIBS="$LIBS"
  9230. LIBS="$lt_cv_dlopen_libs $LIBS"
  9231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9232. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9233. if ${lt_cv_dlopen_self+:} false; then :
  9234. $as_echo_n "(cached) " >&6
  9235. else
  9236. if test "$cross_compiling" = yes; then :
  9237. lt_cv_dlopen_self=cross
  9238. else
  9239. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9240. lt_status=$lt_dlunknown
  9241. cat > conftest.$ac_ext <<_LT_EOF
  9242. #line 10780 "configure"
  9243. #include "confdefs.h"
  9244. #if HAVE_DLFCN_H
  9245. #include <dlfcn.h>
  9246. #endif
  9247. #include <stdio.h>
  9248. #ifdef RTLD_GLOBAL
  9249. # define LT_DLGLOBAL RTLD_GLOBAL
  9250. #else
  9251. # ifdef DL_GLOBAL
  9252. # define LT_DLGLOBAL DL_GLOBAL
  9253. # else
  9254. # define LT_DLGLOBAL 0
  9255. # endif
  9256. #endif
  9257. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9258. find out it does not work in some platform. */
  9259. #ifndef LT_DLLAZY_OR_NOW
  9260. # ifdef RTLD_LAZY
  9261. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9262. # else
  9263. # ifdef DL_LAZY
  9264. # define LT_DLLAZY_OR_NOW DL_LAZY
  9265. # else
  9266. # ifdef RTLD_NOW
  9267. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9268. # else
  9269. # ifdef DL_NOW
  9270. # define LT_DLLAZY_OR_NOW DL_NOW
  9271. # else
  9272. # define LT_DLLAZY_OR_NOW 0
  9273. # endif
  9274. # endif
  9275. # endif
  9276. # endif
  9277. #endif
  9278. /* When -fvisbility=hidden is used, assume the code has been annotated
  9279. correspondingly for the symbols needed. */
  9280. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9281. void fnord () __attribute__((visibility("default")));
  9282. #endif
  9283. void fnord () { int i=42; }
  9284. int main ()
  9285. {
  9286. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9287. int status = $lt_dlunknown;
  9288. if (self)
  9289. {
  9290. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9291. else
  9292. {
  9293. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9294. else puts (dlerror ());
  9295. }
  9296. /* dlclose (self); */
  9297. }
  9298. else
  9299. puts (dlerror ());
  9300. return status;
  9301. }
  9302. _LT_EOF
  9303. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9304. (eval $ac_link) 2>&5
  9305. ac_status=$?
  9306. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9307. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9308. (./conftest; exit; ) >&5 2>/dev/null
  9309. lt_status=$?
  9310. case x$lt_status in
  9311. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9312. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9313. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9314. esac
  9315. else :
  9316. # compilation failed
  9317. lt_cv_dlopen_self=no
  9318. fi
  9319. fi
  9320. rm -fr conftest*
  9321. fi
  9322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9323. $as_echo "$lt_cv_dlopen_self" >&6; }
  9324. if test "x$lt_cv_dlopen_self" = xyes; then
  9325. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9327. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9328. if ${lt_cv_dlopen_self_static+:} false; then :
  9329. $as_echo_n "(cached) " >&6
  9330. else
  9331. if test "$cross_compiling" = yes; then :
  9332. lt_cv_dlopen_self_static=cross
  9333. else
  9334. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9335. lt_status=$lt_dlunknown
  9336. cat > conftest.$ac_ext <<_LT_EOF
  9337. #line 10886 "configure"
  9338. #include "confdefs.h"
  9339. #if HAVE_DLFCN_H
  9340. #include <dlfcn.h>
  9341. #endif
  9342. #include <stdio.h>
  9343. #ifdef RTLD_GLOBAL
  9344. # define LT_DLGLOBAL RTLD_GLOBAL
  9345. #else
  9346. # ifdef DL_GLOBAL
  9347. # define LT_DLGLOBAL DL_GLOBAL
  9348. # else
  9349. # define LT_DLGLOBAL 0
  9350. # endif
  9351. #endif
  9352. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9353. find out it does not work in some platform. */
  9354. #ifndef LT_DLLAZY_OR_NOW
  9355. # ifdef RTLD_LAZY
  9356. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9357. # else
  9358. # ifdef DL_LAZY
  9359. # define LT_DLLAZY_OR_NOW DL_LAZY
  9360. # else
  9361. # ifdef RTLD_NOW
  9362. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9363. # else
  9364. # ifdef DL_NOW
  9365. # define LT_DLLAZY_OR_NOW DL_NOW
  9366. # else
  9367. # define LT_DLLAZY_OR_NOW 0
  9368. # endif
  9369. # endif
  9370. # endif
  9371. # endif
  9372. #endif
  9373. /* When -fvisbility=hidden is used, assume the code has been annotated
  9374. correspondingly for the symbols needed. */
  9375. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9376. void fnord () __attribute__((visibility("default")));
  9377. #endif
  9378. void fnord () { int i=42; }
  9379. int main ()
  9380. {
  9381. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9382. int status = $lt_dlunknown;
  9383. if (self)
  9384. {
  9385. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9386. else
  9387. {
  9388. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9389. else puts (dlerror ());
  9390. }
  9391. /* dlclose (self); */
  9392. }
  9393. else
  9394. puts (dlerror ());
  9395. return status;
  9396. }
  9397. _LT_EOF
  9398. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9399. (eval $ac_link) 2>&5
  9400. ac_status=$?
  9401. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9402. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9403. (./conftest; exit; ) >&5 2>/dev/null
  9404. lt_status=$?
  9405. case x$lt_status in
  9406. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9407. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9408. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9409. esac
  9410. else :
  9411. # compilation failed
  9412. lt_cv_dlopen_self_static=no
  9413. fi
  9414. fi
  9415. rm -fr conftest*
  9416. fi
  9417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9418. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9419. fi
  9420. CPPFLAGS="$save_CPPFLAGS"
  9421. LDFLAGS="$save_LDFLAGS"
  9422. LIBS="$save_LIBS"
  9423. ;;
  9424. esac
  9425. case $lt_cv_dlopen_self in
  9426. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9427. *) enable_dlopen_self=unknown ;;
  9428. esac
  9429. case $lt_cv_dlopen_self_static in
  9430. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9431. *) enable_dlopen_self_static=unknown ;;
  9432. esac
  9433. fi
  9434. striplib=
  9435. old_striplib=
  9436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9437. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9438. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9439. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9440. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9442. $as_echo "yes" >&6; }
  9443. else
  9444. # FIXME - insert some real tests, host_os isn't really good enough
  9445. case $host_os in
  9446. darwin*)
  9447. if test -n "$STRIP" ; then
  9448. striplib="$STRIP -x"
  9449. old_striplib="$STRIP -S"
  9450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9451. $as_echo "yes" >&6; }
  9452. else
  9453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9454. $as_echo "no" >&6; }
  9455. fi
  9456. ;;
  9457. *)
  9458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9459. $as_echo "no" >&6; }
  9460. ;;
  9461. esac
  9462. fi
  9463. # Report which library types will actually be built
  9464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9465. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9467. $as_echo "$can_build_shared" >&6; }
  9468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9469. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9470. test "$can_build_shared" = "no" && enable_shared=no
  9471. # On AIX, shared libraries and static libraries use the same namespace, and
  9472. # are all built from PIC.
  9473. case $host_os in
  9474. aix3*)
  9475. test "$enable_shared" = yes && enable_static=no
  9476. if test -n "$RANLIB"; then
  9477. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9478. postinstall_cmds='$RANLIB $lib'
  9479. fi
  9480. ;;
  9481. aix[4-9]*)
  9482. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9483. test "$enable_shared" = yes && enable_static=no
  9484. fi
  9485. ;;
  9486. esac
  9487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9488. $as_echo "$enable_shared" >&6; }
  9489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9490. $as_echo_n "checking whether to build static libraries... " >&6; }
  9491. # Make sure either enable_shared or enable_static is yes.
  9492. test "$enable_shared" = yes || enable_static=yes
  9493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9494. $as_echo "$enable_static" >&6; }
  9495. fi
  9496. ac_ext=c
  9497. ac_cpp='$CPP $CPPFLAGS'
  9498. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9499. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9500. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9501. CC="$lt_save_CC"
  9502. ac_config_commands="$ac_config_commands libtool"
  9503. # Only expand once:
  9504. ac_ext=cpp
  9505. ac_cpp='$CXXCPP $CPPFLAGS'
  9506. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9507. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9508. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9509. if test -z "$CXX"; then
  9510. if test -n "$CCC"; then
  9511. CXX=$CCC
  9512. else
  9513. if test -n "$ac_tool_prefix"; then
  9514. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9515. do
  9516. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9517. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9519. $as_echo_n "checking for $ac_word... " >&6; }
  9520. if ${ac_cv_prog_CXX+:} false; then :
  9521. $as_echo_n "(cached) " >&6
  9522. else
  9523. if test -n "$CXX"; then
  9524. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9525. else
  9526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9527. for as_dir in $PATH
  9528. do
  9529. IFS=$as_save_IFS
  9530. test -z "$as_dir" && as_dir=.
  9531. for ac_exec_ext in '' $ac_executable_extensions; do
  9532. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9533. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  9534. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9535. break 2
  9536. fi
  9537. done
  9538. done
  9539. IFS=$as_save_IFS
  9540. fi
  9541. fi
  9542. CXX=$ac_cv_prog_CXX
  9543. if test -n "$CXX"; then
  9544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  9545. $as_echo "$CXX" >&6; }
  9546. else
  9547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9548. $as_echo "no" >&6; }
  9549. fi
  9550. test -n "$CXX" && break
  9551. done
  9552. fi
  9553. if test -z "$CXX"; then
  9554. ac_ct_CXX=$CXX
  9555. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9556. do
  9557. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9558. set dummy $ac_prog; ac_word=$2
  9559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9560. $as_echo_n "checking for $ac_word... " >&6; }
  9561. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  9562. $as_echo_n "(cached) " >&6
  9563. else
  9564. if test -n "$ac_ct_CXX"; then
  9565. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  9566. else
  9567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9568. for as_dir in $PATH
  9569. do
  9570. IFS=$as_save_IFS
  9571. test -z "$as_dir" && as_dir=.
  9572. for ac_exec_ext in '' $ac_executable_extensions; do
  9573. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9574. ac_cv_prog_ac_ct_CXX="$ac_prog"
  9575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9576. break 2
  9577. fi
  9578. done
  9579. done
  9580. IFS=$as_save_IFS
  9581. fi
  9582. fi
  9583. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  9584. if test -n "$ac_ct_CXX"; then
  9585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  9586. $as_echo "$ac_ct_CXX" >&6; }
  9587. else
  9588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9589. $as_echo "no" >&6; }
  9590. fi
  9591. test -n "$ac_ct_CXX" && break
  9592. done
  9593. if test "x$ac_ct_CXX" = x; then
  9594. CXX="g++"
  9595. else
  9596. case $cross_compiling:$ac_tool_warned in
  9597. yes:)
  9598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9599. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9600. ac_tool_warned=yes ;;
  9601. esac
  9602. CXX=$ac_ct_CXX
  9603. fi
  9604. fi
  9605. fi
  9606. fi
  9607. # Provide some information about the compiler.
  9608. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  9609. set X $ac_compile
  9610. ac_compiler=$2
  9611. for ac_option in --version -v -V -qversion; do
  9612. { { ac_try="$ac_compiler $ac_option >&5"
  9613. case "(($ac_try" in
  9614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9615. *) ac_try_echo=$ac_try;;
  9616. esac
  9617. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9618. $as_echo "$ac_try_echo"; } >&5
  9619. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  9620. ac_status=$?
  9621. if test -s conftest.err; then
  9622. sed '10a\
  9623. ... rest of stderr output deleted ...
  9624. 10q' conftest.err >conftest.er1
  9625. cat conftest.er1 >&5
  9626. fi
  9627. rm -f conftest.er1 conftest.err
  9628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9629. test $ac_status = 0; }
  9630. done
  9631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  9632. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  9633. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  9634. $as_echo_n "(cached) " >&6
  9635. else
  9636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9637. /* end confdefs.h. */
  9638. int
  9639. main ()
  9640. {
  9641. #ifndef __GNUC__
  9642. choke me
  9643. #endif
  9644. ;
  9645. return 0;
  9646. }
  9647. _ACEOF
  9648. if ac_fn_cxx_try_compile "$LINENO"; then :
  9649. ac_compiler_gnu=yes
  9650. else
  9651. ac_compiler_gnu=no
  9652. fi
  9653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9654. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  9655. fi
  9656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  9657. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  9658. if test $ac_compiler_gnu = yes; then
  9659. GXX=yes
  9660. else
  9661. GXX=
  9662. fi
  9663. ac_test_CXXFLAGS=${CXXFLAGS+set}
  9664. ac_save_CXXFLAGS=$CXXFLAGS
  9665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  9666. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  9667. if ${ac_cv_prog_cxx_g+:} false; then :
  9668. $as_echo_n "(cached) " >&6
  9669. else
  9670. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  9671. ac_cxx_werror_flag=yes
  9672. ac_cv_prog_cxx_g=no
  9673. CXXFLAGS="-g"
  9674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9675. /* end confdefs.h. */
  9676. int
  9677. main ()
  9678. {
  9679. ;
  9680. return 0;
  9681. }
  9682. _ACEOF
  9683. if ac_fn_cxx_try_compile "$LINENO"; then :
  9684. ac_cv_prog_cxx_g=yes
  9685. else
  9686. CXXFLAGS=""
  9687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9688. /* end confdefs.h. */
  9689. int
  9690. main ()
  9691. {
  9692. ;
  9693. return 0;
  9694. }
  9695. _ACEOF
  9696. if ac_fn_cxx_try_compile "$LINENO"; then :
  9697. else
  9698. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  9699. CXXFLAGS="-g"
  9700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9701. /* end confdefs.h. */
  9702. int
  9703. main ()
  9704. {
  9705. ;
  9706. return 0;
  9707. }
  9708. _ACEOF
  9709. if ac_fn_cxx_try_compile "$LINENO"; then :
  9710. ac_cv_prog_cxx_g=yes
  9711. fi
  9712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9713. fi
  9714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9715. fi
  9716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9717. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  9718. fi
  9719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  9720. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  9721. if test "$ac_test_CXXFLAGS" = set; then
  9722. CXXFLAGS=$ac_save_CXXFLAGS
  9723. elif test $ac_cv_prog_cxx_g = yes; then
  9724. if test "$GXX" = yes; then
  9725. CXXFLAGS="-g -O2"
  9726. else
  9727. CXXFLAGS="-g"
  9728. fi
  9729. else
  9730. if test "$GXX" = yes; then
  9731. CXXFLAGS="-O2"
  9732. else
  9733. CXXFLAGS=
  9734. fi
  9735. fi
  9736. ac_ext=c
  9737. ac_cpp='$CPP $CPPFLAGS'
  9738. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9739. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9740. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9741. depcc="$CXX" am_compiler_list=
  9742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  9743. $as_echo_n "checking dependency style of $depcc... " >&6; }
  9744. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  9745. $as_echo_n "(cached) " >&6
  9746. else
  9747. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  9748. # We make a subdir and do the tests there. Otherwise we can end up
  9749. # making bogus files that we don't know about and never remove. For
  9750. # instance it was reported that on HP-UX the gcc test will end up
  9751. # making a dummy file named 'D' -- because '-MD' means "put the output
  9752. # in D".
  9753. rm -rf conftest.dir
  9754. mkdir conftest.dir
  9755. # Copy depcomp to subdir because otherwise we won't find it if we're
  9756. # using a relative directory.
  9757. cp "$am_depcomp" conftest.dir
  9758. cd conftest.dir
  9759. # We will build objects and dependencies in a subdirectory because
  9760. # it helps to detect inapplicable dependency modes. For instance
  9761. # both Tru64's cc and ICC support -MD to output dependencies as a
  9762. # side effect of compilation, but ICC will put the dependencies in
  9763. # the current directory while Tru64 will put them in the object
  9764. # directory.
  9765. mkdir sub
  9766. am_cv_CXX_dependencies_compiler_type=none
  9767. if test "$am_compiler_list" = ""; then
  9768. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  9769. fi
  9770. am__universal=false
  9771. case " $depcc " in #(
  9772. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  9773. esac
  9774. for depmode in $am_compiler_list; do
  9775. # Setup a source with many dependencies, because some compilers
  9776. # like to wrap large dependency lists on column 80 (with \), and
  9777. # we should not choose a depcomp mode which is confused by this.
  9778. #
  9779. # We need to recreate these files for each test, as the compiler may
  9780. # overwrite some of them when testing with obscure command lines.
  9781. # This happens at least with the AIX C compiler.
  9782. : > sub/conftest.c
  9783. for i in 1 2 3 4 5 6; do
  9784. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  9785. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  9786. # Solaris 10 /bin/sh.
  9787. echo '/* dummy */' > sub/conftst$i.h
  9788. done
  9789. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  9790. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  9791. # mode. It turns out that the SunPro C++ compiler does not properly
  9792. # handle '-M -o', and we need to detect this. Also, some Intel
  9793. # versions had trouble with output in subdirs.
  9794. am__obj=sub/conftest.${OBJEXT-o}
  9795. am__minus_obj="-o $am__obj"
  9796. case $depmode in
  9797. gcc)
  9798. # This depmode causes a compiler race in universal mode.
  9799. test "$am__universal" = false || continue
  9800. ;;
  9801. nosideeffect)
  9802. # After this tag, mechanisms are not by side-effect, so they'll
  9803. # only be used when explicitly requested.
  9804. if test "x$enable_dependency_tracking" = xyes; then
  9805. continue
  9806. else
  9807. break
  9808. fi
  9809. ;;
  9810. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  9811. # This compiler won't grok '-c -o', but also, the minuso test has
  9812. # not run yet. These depmodes are late enough in the game, and
  9813. # so weak that their functioning should not be impacted.
  9814. am__obj=conftest.${OBJEXT-o}
  9815. am__minus_obj=
  9816. ;;
  9817. none) break ;;
  9818. esac
  9819. if depmode=$depmode \
  9820. source=sub/conftest.c object=$am__obj \
  9821. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  9822. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  9823. >/dev/null 2>conftest.err &&
  9824. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  9825. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  9826. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  9827. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  9828. # icc doesn't choke on unknown options, it will just issue warnings
  9829. # or remarks (even with -Werror). So we grep stderr for any message
  9830. # that says an option was ignored or not supported.
  9831. # When given -MP, icc 7.0 and 7.1 complain thusly:
  9832. # icc: Command line warning: ignoring option '-M'; no argument required
  9833. # The diagnosis changed in icc 8.0:
  9834. # icc: Command line remark: option '-MP' not supported
  9835. if (grep 'ignoring option' conftest.err ||
  9836. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  9837. am_cv_CXX_dependencies_compiler_type=$depmode
  9838. break
  9839. fi
  9840. fi
  9841. done
  9842. cd ..
  9843. rm -rf conftest.dir
  9844. else
  9845. am_cv_CXX_dependencies_compiler_type=none
  9846. fi
  9847. fi
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  9849. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  9850. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  9851. if
  9852. test "x$enable_dependency_tracking" != xno \
  9853. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  9854. am__fastdepCXX_TRUE=
  9855. am__fastdepCXX_FALSE='#'
  9856. else
  9857. am__fastdepCXX_TRUE='#'
  9858. am__fastdepCXX_FALSE=
  9859. fi
  9860. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9861. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9862. (test "X$CXX" != "Xg++"))) ; then
  9863. ac_ext=cpp
  9864. ac_cpp='$CXXCPP $CPPFLAGS'
  9865. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9866. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9867. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  9869. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  9870. if test -z "$CXXCPP"; then
  9871. if ${ac_cv_prog_CXXCPP+:} false; then :
  9872. $as_echo_n "(cached) " >&6
  9873. else
  9874. # Double quotes because CXXCPP needs to be expanded
  9875. for CXXCPP in "$CXX -E" "/lib/cpp"
  9876. do
  9877. ac_preproc_ok=false
  9878. for ac_cxx_preproc_warn_flag in '' yes
  9879. do
  9880. # Use a header file that comes with gcc, so configuring glibc
  9881. # with a fresh cross-compiler works.
  9882. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9883. # <limits.h> exists even on freestanding compilers.
  9884. # On the NeXT, cc -E runs the code through the compiler's parser,
  9885. # not just through cpp. "Syntax error" is here to catch this case.
  9886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9887. /* end confdefs.h. */
  9888. #ifdef __STDC__
  9889. # include <limits.h>
  9890. #else
  9891. # include <assert.h>
  9892. #endif
  9893. Syntax error
  9894. _ACEOF
  9895. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9896. else
  9897. # Broken: fails on valid input.
  9898. continue
  9899. fi
  9900. rm -f conftest.err conftest.i conftest.$ac_ext
  9901. # OK, works on sane cases. Now check whether nonexistent headers
  9902. # can be detected and how.
  9903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9904. /* end confdefs.h. */
  9905. #include <ac_nonexistent.h>
  9906. _ACEOF
  9907. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9908. # Broken: success on invalid input.
  9909. continue
  9910. else
  9911. # Passes both tests.
  9912. ac_preproc_ok=:
  9913. break
  9914. fi
  9915. rm -f conftest.err conftest.i conftest.$ac_ext
  9916. done
  9917. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9918. rm -f conftest.i conftest.err conftest.$ac_ext
  9919. if $ac_preproc_ok; then :
  9920. break
  9921. fi
  9922. done
  9923. ac_cv_prog_CXXCPP=$CXXCPP
  9924. fi
  9925. CXXCPP=$ac_cv_prog_CXXCPP
  9926. else
  9927. ac_cv_prog_CXXCPP=$CXXCPP
  9928. fi
  9929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  9930. $as_echo "$CXXCPP" >&6; }
  9931. ac_preproc_ok=false
  9932. for ac_cxx_preproc_warn_flag in '' yes
  9933. do
  9934. # Use a header file that comes with gcc, so configuring glibc
  9935. # with a fresh cross-compiler works.
  9936. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9937. # <limits.h> exists even on freestanding compilers.
  9938. # On the NeXT, cc -E runs the code through the compiler's parser,
  9939. # not just through cpp. "Syntax error" is here to catch this case.
  9940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9941. /* end confdefs.h. */
  9942. #ifdef __STDC__
  9943. # include <limits.h>
  9944. #else
  9945. # include <assert.h>
  9946. #endif
  9947. Syntax error
  9948. _ACEOF
  9949. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9950. else
  9951. # Broken: fails on valid input.
  9952. continue
  9953. fi
  9954. rm -f conftest.err conftest.i conftest.$ac_ext
  9955. # OK, works on sane cases. Now check whether nonexistent headers
  9956. # can be detected and how.
  9957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9958. /* end confdefs.h. */
  9959. #include <ac_nonexistent.h>
  9960. _ACEOF
  9961. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9962. # Broken: success on invalid input.
  9963. continue
  9964. else
  9965. # Passes both tests.
  9966. ac_preproc_ok=:
  9967. break
  9968. fi
  9969. rm -f conftest.err conftest.i conftest.$ac_ext
  9970. done
  9971. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9972. rm -f conftest.i conftest.err conftest.$ac_ext
  9973. if $ac_preproc_ok; then :
  9974. else
  9975. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9976. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9977. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  9978. See \`config.log' for more details" "$LINENO" 5; }
  9979. fi
  9980. ac_ext=c
  9981. ac_cpp='$CPP $CPPFLAGS'
  9982. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9983. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9984. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9985. else
  9986. _lt_caught_CXX_error=yes
  9987. fi
  9988. ac_ext=cpp
  9989. ac_cpp='$CXXCPP $CPPFLAGS'
  9990. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9991. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9992. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9993. archive_cmds_need_lc_CXX=no
  9994. allow_undefined_flag_CXX=
  9995. always_export_symbols_CXX=no
  9996. archive_expsym_cmds_CXX=
  9997. compiler_needs_object_CXX=no
  9998. export_dynamic_flag_spec_CXX=
  9999. hardcode_direct_CXX=no
  10000. hardcode_direct_absolute_CXX=no
  10001. hardcode_libdir_flag_spec_CXX=
  10002. hardcode_libdir_flag_spec_ld_CXX=
  10003. hardcode_libdir_separator_CXX=
  10004. hardcode_minus_L_CXX=no
  10005. hardcode_shlibpath_var_CXX=unsupported
  10006. hardcode_automatic_CXX=no
  10007. inherit_rpath_CXX=no
  10008. module_cmds_CXX=
  10009. module_expsym_cmds_CXX=
  10010. link_all_deplibs_CXX=unknown
  10011. old_archive_cmds_CXX=$old_archive_cmds
  10012. reload_flag_CXX=$reload_flag
  10013. reload_cmds_CXX=$reload_cmds
  10014. no_undefined_flag_CXX=
  10015. whole_archive_flag_spec_CXX=
  10016. enable_shared_with_static_runtimes_CXX=no
  10017. # Source file extension for C++ test sources.
  10018. ac_ext=cpp
  10019. # Object file extension for compiled C++ test sources.
  10020. objext=o
  10021. objext_CXX=$objext
  10022. # No sense in running all these tests if we already determined that
  10023. # the CXX compiler isn't working. Some variables (like enable_shared)
  10024. # are currently assumed to apply to all compilers on this platform,
  10025. # and will be corrupted by setting them based on a non-working compiler.
  10026. if test "$_lt_caught_CXX_error" != yes; then
  10027. # Code to be used in simple compile tests
  10028. lt_simple_compile_test_code="int some_variable = 0;"
  10029. # Code to be used in simple link tests
  10030. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10031. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10032. # If no C compiler was specified, use CC.
  10033. LTCC=${LTCC-"$CC"}
  10034. # If no C compiler flags were specified, use CFLAGS.
  10035. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10036. # Allow CC to be a program name with arguments.
  10037. compiler=$CC
  10038. # save warnings/boilerplate of simple test code
  10039. ac_outfile=conftest.$ac_objext
  10040. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10041. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10042. _lt_compiler_boilerplate=`cat conftest.err`
  10043. $RM conftest*
  10044. ac_outfile=conftest.$ac_objext
  10045. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10046. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10047. _lt_linker_boilerplate=`cat conftest.err`
  10048. $RM -r conftest*
  10049. # Allow CC to be a program name with arguments.
  10050. lt_save_CC=$CC
  10051. lt_save_LD=$LD
  10052. lt_save_GCC=$GCC
  10053. GCC=$GXX
  10054. lt_save_with_gnu_ld=$with_gnu_ld
  10055. lt_save_path_LD=$lt_cv_path_LD
  10056. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10057. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10058. else
  10059. $as_unset lt_cv_prog_gnu_ld
  10060. fi
  10061. if test -n "${lt_cv_path_LDCXX+set}"; then
  10062. lt_cv_path_LD=$lt_cv_path_LDCXX
  10063. else
  10064. $as_unset lt_cv_path_LD
  10065. fi
  10066. test -z "${LDCXX+set}" || LD=$LDCXX
  10067. CC=${CXX-"c++"}
  10068. compiler=$CC
  10069. compiler_CXX=$CC
  10070. for cc_temp in $compiler""; do
  10071. case $cc_temp in
  10072. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10073. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10074. \-*) ;;
  10075. *) break;;
  10076. esac
  10077. done
  10078. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10079. if test -n "$compiler"; then
  10080. # We don't want -fno-exception when compiling C++ code, so set the
  10081. # no_builtin_flag separately
  10082. if test "$GXX" = yes; then
  10083. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10084. else
  10085. lt_prog_compiler_no_builtin_flag_CXX=
  10086. fi
  10087. if test "$GXX" = yes; then
  10088. # Set up default GNU C++ configuration
  10089. # Check whether --with-gnu-ld was given.
  10090. if test "${with_gnu_ld+set}" = set; then :
  10091. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10092. else
  10093. with_gnu_ld=no
  10094. fi
  10095. ac_prog=ld
  10096. if test "$GCC" = yes; then
  10097. # Check if gcc -print-prog-name=ld gives a path.
  10098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10099. $as_echo_n "checking for ld used by $CC... " >&6; }
  10100. case $host in
  10101. *-*-mingw*)
  10102. # gcc leaves a trailing carriage return which upsets mingw
  10103. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10104. *)
  10105. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10106. esac
  10107. case $ac_prog in
  10108. # Accept absolute paths.
  10109. [\\/]* | ?:[\\/]*)
  10110. re_direlt='/[^/][^/]*/\.\./'
  10111. # Canonicalize the pathname of ld
  10112. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10113. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10114. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10115. done
  10116. test -z "$LD" && LD="$ac_prog"
  10117. ;;
  10118. "")
  10119. # If it fails, then pretend we aren't using GCC.
  10120. ac_prog=ld
  10121. ;;
  10122. *)
  10123. # If it is relative, then search for the first ld in PATH.
  10124. with_gnu_ld=unknown
  10125. ;;
  10126. esac
  10127. elif test "$with_gnu_ld" = yes; then
  10128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10129. $as_echo_n "checking for GNU ld... " >&6; }
  10130. else
  10131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10132. $as_echo_n "checking for non-GNU ld... " >&6; }
  10133. fi
  10134. if ${lt_cv_path_LD+:} false; then :
  10135. $as_echo_n "(cached) " >&6
  10136. else
  10137. if test -z "$LD"; then
  10138. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10139. for ac_dir in $PATH; do
  10140. IFS="$lt_save_ifs"
  10141. test -z "$ac_dir" && ac_dir=.
  10142. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10143. lt_cv_path_LD="$ac_dir/$ac_prog"
  10144. # Check to see if the program is GNU ld. I'd rather use --version,
  10145. # but apparently some variants of GNU ld only accept -v.
  10146. # Break only if it was the GNU/non-GNU ld that we prefer.
  10147. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10148. *GNU* | *'with BFD'*)
  10149. test "$with_gnu_ld" != no && break
  10150. ;;
  10151. *)
  10152. test "$with_gnu_ld" != yes && break
  10153. ;;
  10154. esac
  10155. fi
  10156. done
  10157. IFS="$lt_save_ifs"
  10158. else
  10159. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10160. fi
  10161. fi
  10162. LD="$lt_cv_path_LD"
  10163. if test -n "$LD"; then
  10164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10165. $as_echo "$LD" >&6; }
  10166. else
  10167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10168. $as_echo "no" >&6; }
  10169. fi
  10170. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10172. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10173. if ${lt_cv_prog_gnu_ld+:} false; then :
  10174. $as_echo_n "(cached) " >&6
  10175. else
  10176. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10177. case `$LD -v 2>&1 </dev/null` in
  10178. *GNU* | *'with BFD'*)
  10179. lt_cv_prog_gnu_ld=yes
  10180. ;;
  10181. *)
  10182. lt_cv_prog_gnu_ld=no
  10183. ;;
  10184. esac
  10185. fi
  10186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10187. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10188. with_gnu_ld=$lt_cv_prog_gnu_ld
  10189. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10190. # archiving commands below assume that GNU ld is being used.
  10191. if test "$with_gnu_ld" = yes; then
  10192. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10193. 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'
  10194. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10195. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10196. # If archive_cmds runs LD, not CC, wlarc should be empty
  10197. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10198. # investigate it a little bit more. (MM)
  10199. wlarc='${wl}'
  10200. # ancient GNU ld didn't support --whole-archive et. al.
  10201. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10202. $GREP 'no-whole-archive' > /dev/null; then
  10203. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10204. else
  10205. whole_archive_flag_spec_CXX=
  10206. fi
  10207. else
  10208. with_gnu_ld=no
  10209. wlarc=
  10210. # A generic and very simple default shared library creation
  10211. # command for GNU C++ for the case where it uses the native
  10212. # linker, instead of GNU ld. If possible, this setting should
  10213. # overridden to take advantage of the native linker features on
  10214. # the platform it is being used on.
  10215. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10216. fi
  10217. # Commands to make compiler produce verbose output that lists
  10218. # what "hidden" libraries, object files and flags are used when
  10219. # linking a shared library.
  10220. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10221. else
  10222. GXX=no
  10223. with_gnu_ld=no
  10224. wlarc=
  10225. fi
  10226. # PORTME: fill in a description of your system's C++ link characteristics
  10227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10228. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10229. ld_shlibs_CXX=yes
  10230. case $host_os in
  10231. aix3*)
  10232. # FIXME: insert proper C++ library support
  10233. ld_shlibs_CXX=no
  10234. ;;
  10235. aix[4-9]*)
  10236. if test "$host_cpu" = ia64; then
  10237. # On IA64, the linker does run time linking by default, so we don't
  10238. # have to do anything special.
  10239. aix_use_runtimelinking=no
  10240. exp_sym_flag='-Bexport'
  10241. no_entry_flag=""
  10242. else
  10243. aix_use_runtimelinking=no
  10244. # Test if we are trying to use run time linking or normal
  10245. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10246. # need to do runtime linking.
  10247. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10248. for ld_flag in $LDFLAGS; do
  10249. case $ld_flag in
  10250. *-brtl*)
  10251. aix_use_runtimelinking=yes
  10252. break
  10253. ;;
  10254. esac
  10255. done
  10256. ;;
  10257. esac
  10258. exp_sym_flag='-bexport'
  10259. no_entry_flag='-bnoentry'
  10260. fi
  10261. # When large executables or shared objects are built, AIX ld can
  10262. # have problems creating the table of contents. If linking a library
  10263. # or program results in "error TOC overflow" add -mminimal-toc to
  10264. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10265. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10266. archive_cmds_CXX=''
  10267. hardcode_direct_CXX=yes
  10268. hardcode_direct_absolute_CXX=yes
  10269. hardcode_libdir_separator_CXX=':'
  10270. link_all_deplibs_CXX=yes
  10271. file_list_spec_CXX='${wl}-f,'
  10272. if test "$GXX" = yes; then
  10273. case $host_os in aix4.[012]|aix4.[012].*)
  10274. # We only want to do this on AIX 4.2 and lower, the check
  10275. # below for broken collect2 doesn't work under 4.3+
  10276. collect2name=`${CC} -print-prog-name=collect2`
  10277. if test -f "$collect2name" &&
  10278. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10279. then
  10280. # We have reworked collect2
  10281. :
  10282. else
  10283. # We have old collect2
  10284. hardcode_direct_CXX=unsupported
  10285. # It fails to find uninstalled libraries when the uninstalled
  10286. # path is not listed in the libpath. Setting hardcode_minus_L
  10287. # to unsupported forces relinking
  10288. hardcode_minus_L_CXX=yes
  10289. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10290. hardcode_libdir_separator_CXX=
  10291. fi
  10292. esac
  10293. shared_flag='-shared'
  10294. if test "$aix_use_runtimelinking" = yes; then
  10295. shared_flag="$shared_flag "'${wl}-G'
  10296. fi
  10297. else
  10298. # not using gcc
  10299. if test "$host_cpu" = ia64; then
  10300. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10301. # chokes on -Wl,-G. The following line is correct:
  10302. shared_flag='-G'
  10303. else
  10304. if test "$aix_use_runtimelinking" = yes; then
  10305. shared_flag='${wl}-G'
  10306. else
  10307. shared_flag='${wl}-bM:SRE'
  10308. fi
  10309. fi
  10310. fi
  10311. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10312. # It seems that -bexpall does not export symbols beginning with
  10313. # underscore (_), so it is better to generate a list of symbols to
  10314. # export.
  10315. always_export_symbols_CXX=yes
  10316. if test "$aix_use_runtimelinking" = yes; then
  10317. # Warning - without using the other runtime loading flags (-brtl),
  10318. # -berok will link without error, but may produce a broken library.
  10319. allow_undefined_flag_CXX='-berok'
  10320. # Determine the default libpath from the value encoded in an empty
  10321. # executable.
  10322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10323. /* end confdefs.h. */
  10324. int
  10325. main ()
  10326. {
  10327. ;
  10328. return 0;
  10329. }
  10330. _ACEOF
  10331. if ac_fn_cxx_try_link "$LINENO"; then :
  10332. lt_aix_libpath_sed='
  10333. /Import File Strings/,/^$/ {
  10334. /^0/ {
  10335. s/^0 *\(.*\)$/\1/
  10336. p
  10337. }
  10338. }'
  10339. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10340. # Check for a 64-bit object if we didn't find anything.
  10341. if test -z "$aix_libpath"; then
  10342. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10343. fi
  10344. fi
  10345. rm -f core conftest.err conftest.$ac_objext \
  10346. conftest$ac_exeext conftest.$ac_ext
  10347. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10348. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10349. 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"
  10350. else
  10351. if test "$host_cpu" = ia64; then
  10352. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10353. allow_undefined_flag_CXX="-z nodefs"
  10354. 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"
  10355. else
  10356. # Determine the default libpath from the value encoded in an
  10357. # empty executable.
  10358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10359. /* end confdefs.h. */
  10360. int
  10361. main ()
  10362. {
  10363. ;
  10364. return 0;
  10365. }
  10366. _ACEOF
  10367. if ac_fn_cxx_try_link "$LINENO"; then :
  10368. lt_aix_libpath_sed='
  10369. /Import File Strings/,/^$/ {
  10370. /^0/ {
  10371. s/^0 *\(.*\)$/\1/
  10372. p
  10373. }
  10374. }'
  10375. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10376. # Check for a 64-bit object if we didn't find anything.
  10377. if test -z "$aix_libpath"; then
  10378. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10379. fi
  10380. fi
  10381. rm -f core conftest.err conftest.$ac_objext \
  10382. conftest$ac_exeext conftest.$ac_ext
  10383. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10384. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10385. # Warning - without using the other run time loading flags,
  10386. # -berok will link without error, but may produce a broken library.
  10387. no_undefined_flag_CXX=' ${wl}-bernotok'
  10388. allow_undefined_flag_CXX=' ${wl}-berok'
  10389. if test "$with_gnu_ld" = yes; then
  10390. # We only use this code for GNU lds that support --whole-archive.
  10391. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10392. else
  10393. # Exported symbols can be pulled into shared objects from archives
  10394. whole_archive_flag_spec_CXX='$convenience'
  10395. fi
  10396. archive_cmds_need_lc_CXX=yes
  10397. # This is similar to how AIX traditionally builds its shared
  10398. # libraries.
  10399. 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'
  10400. fi
  10401. fi
  10402. ;;
  10403. beos*)
  10404. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10405. allow_undefined_flag_CXX=unsupported
  10406. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10407. # support --undefined. This deserves some investigation. FIXME
  10408. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10409. else
  10410. ld_shlibs_CXX=no
  10411. fi
  10412. ;;
  10413. chorus*)
  10414. case $cc_basename in
  10415. *)
  10416. # FIXME: insert proper C++ library support
  10417. ld_shlibs_CXX=no
  10418. ;;
  10419. esac
  10420. ;;
  10421. cygwin* | mingw* | pw32* | cegcc*)
  10422. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10423. # as there is no search path for DLLs.
  10424. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10425. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10426. allow_undefined_flag_CXX=unsupported
  10427. always_export_symbols_CXX=no
  10428. enable_shared_with_static_runtimes_CXX=yes
  10429. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10430. 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'
  10431. # If the export-symbols file already is a .def file (1st line
  10432. # is EXPORTS), use it as is; otherwise, prepend...
  10433. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10434. cp $export_symbols $output_objdir/$soname.def;
  10435. else
  10436. echo EXPORTS > $output_objdir/$soname.def;
  10437. cat $export_symbols >> $output_objdir/$soname.def;
  10438. fi~
  10439. $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'
  10440. else
  10441. ld_shlibs_CXX=no
  10442. fi
  10443. ;;
  10444. darwin* | rhapsody*)
  10445. archive_cmds_need_lc_CXX=no
  10446. hardcode_direct_CXX=no
  10447. hardcode_automatic_CXX=yes
  10448. hardcode_shlibpath_var_CXX=unsupported
  10449. if test "$lt_cv_ld_force_load" = "yes"; then
  10450. 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\"`'
  10451. else
  10452. whole_archive_flag_spec_CXX=''
  10453. fi
  10454. link_all_deplibs_CXX=yes
  10455. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10456. case $cc_basename in
  10457. ifort*) _lt_dar_can_shared=yes ;;
  10458. *) _lt_dar_can_shared=$GCC ;;
  10459. esac
  10460. if test "$_lt_dar_can_shared" = "yes"; then
  10461. output_verbose_link_cmd=func_echo_all
  10462. 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}"
  10463. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10464. 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}"
  10465. 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}"
  10466. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10467. 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}"
  10468. 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}"
  10469. fi
  10470. else
  10471. ld_shlibs_CXX=no
  10472. fi
  10473. ;;
  10474. dgux*)
  10475. case $cc_basename in
  10476. ec++*)
  10477. # FIXME: insert proper C++ library support
  10478. ld_shlibs_CXX=no
  10479. ;;
  10480. ghcx*)
  10481. # Green Hills C++ Compiler
  10482. # FIXME: insert proper C++ library support
  10483. ld_shlibs_CXX=no
  10484. ;;
  10485. *)
  10486. # FIXME: insert proper C++ library support
  10487. ld_shlibs_CXX=no
  10488. ;;
  10489. esac
  10490. ;;
  10491. freebsd2.*)
  10492. # C++ shared libraries reported to be fairly broken before
  10493. # switch to ELF
  10494. ld_shlibs_CXX=no
  10495. ;;
  10496. freebsd-elf*)
  10497. archive_cmds_need_lc_CXX=no
  10498. ;;
  10499. freebsd* | dragonfly*)
  10500. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10501. # conventions
  10502. ld_shlibs_CXX=yes
  10503. ;;
  10504. gnu*)
  10505. ;;
  10506. haiku*)
  10507. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10508. link_all_deplibs_CXX=yes
  10509. ;;
  10510. hpux9*)
  10511. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10512. hardcode_libdir_separator_CXX=:
  10513. export_dynamic_flag_spec_CXX='${wl}-E'
  10514. hardcode_direct_CXX=yes
  10515. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10516. # but as the default
  10517. # location of the library.
  10518. case $cc_basename in
  10519. CC*)
  10520. # FIXME: insert proper C++ library support
  10521. ld_shlibs_CXX=no
  10522. ;;
  10523. aCC*)
  10524. 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'
  10525. # Commands to make compiler produce verbose output that lists
  10526. # what "hidden" libraries, object files and flags are used when
  10527. # linking a shared library.
  10528. #
  10529. # There doesn't appear to be a way to prevent this compiler from
  10530. # explicitly linking system object files so we need to strip them
  10531. # from the output so that they don't get included in the library
  10532. # dependencies.
  10533. 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"'
  10534. ;;
  10535. *)
  10536. if test "$GXX" = yes; then
  10537. 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'
  10538. else
  10539. # FIXME: insert proper C++ library support
  10540. ld_shlibs_CXX=no
  10541. fi
  10542. ;;
  10543. esac
  10544. ;;
  10545. hpux10*|hpux11*)
  10546. if test $with_gnu_ld = no; then
  10547. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10548. hardcode_libdir_separator_CXX=:
  10549. case $host_cpu in
  10550. hppa*64*|ia64*)
  10551. ;;
  10552. *)
  10553. export_dynamic_flag_spec_CXX='${wl}-E'
  10554. ;;
  10555. esac
  10556. fi
  10557. case $host_cpu in
  10558. hppa*64*|ia64*)
  10559. hardcode_direct_CXX=no
  10560. hardcode_shlibpath_var_CXX=no
  10561. ;;
  10562. *)
  10563. hardcode_direct_CXX=yes
  10564. hardcode_direct_absolute_CXX=yes
  10565. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10566. # but as the default
  10567. # location of the library.
  10568. ;;
  10569. esac
  10570. case $cc_basename in
  10571. CC*)
  10572. # FIXME: insert proper C++ library support
  10573. ld_shlibs_CXX=no
  10574. ;;
  10575. aCC*)
  10576. case $host_cpu in
  10577. hppa*64*)
  10578. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10579. ;;
  10580. ia64*)
  10581. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10582. ;;
  10583. *)
  10584. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10585. ;;
  10586. esac
  10587. # Commands to make compiler produce verbose output that lists
  10588. # what "hidden" libraries, object files and flags are used when
  10589. # linking a shared library.
  10590. #
  10591. # There doesn't appear to be a way to prevent this compiler from
  10592. # explicitly linking system object files so we need to strip them
  10593. # from the output so that they don't get included in the library
  10594. # dependencies.
  10595. 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"'
  10596. ;;
  10597. *)
  10598. if test "$GXX" = yes; then
  10599. if test $with_gnu_ld = no; then
  10600. case $host_cpu in
  10601. hppa*64*)
  10602. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10603. ;;
  10604. ia64*)
  10605. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10606. ;;
  10607. *)
  10608. 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'
  10609. ;;
  10610. esac
  10611. fi
  10612. else
  10613. # FIXME: insert proper C++ library support
  10614. ld_shlibs_CXX=no
  10615. fi
  10616. ;;
  10617. esac
  10618. ;;
  10619. interix[3-9]*)
  10620. hardcode_direct_CXX=no
  10621. hardcode_shlibpath_var_CXX=no
  10622. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10623. export_dynamic_flag_spec_CXX='${wl}-E'
  10624. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10625. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10626. # default) and relocated if they conflict, which is a slow very memory
  10627. # consuming and fragmenting process. To avoid this, we pick a random,
  10628. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10629. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10630. 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'
  10631. 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'
  10632. ;;
  10633. irix5* | irix6*)
  10634. case $cc_basename in
  10635. CC*)
  10636. # SGI C++
  10637. 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'
  10638. # Archives containing C++ object files must be created using
  10639. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10640. # necessary to make sure instantiated templates are included
  10641. # in the archive.
  10642. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10643. ;;
  10644. *)
  10645. if test "$GXX" = yes; then
  10646. if test "$with_gnu_ld" = no; then
  10647. 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'
  10648. else
  10649. 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'
  10650. fi
  10651. fi
  10652. link_all_deplibs_CXX=yes
  10653. ;;
  10654. esac
  10655. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10656. hardcode_libdir_separator_CXX=:
  10657. inherit_rpath_CXX=yes
  10658. ;;
  10659. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10660. case $cc_basename in
  10661. KCC*)
  10662. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10663. # KCC will only create a shared library if the output file
  10664. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10665. # to its proper name (with version) after linking.
  10666. 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'
  10667. 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'
  10668. # Commands to make compiler produce verbose output that lists
  10669. # what "hidden" libraries, object files and flags are used when
  10670. # linking a shared library.
  10671. #
  10672. # There doesn't appear to be a way to prevent this compiler from
  10673. # explicitly linking system object files so we need to strip them
  10674. # from the output so that they don't get included in the library
  10675. # dependencies.
  10676. 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"'
  10677. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10678. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10679. # Archives containing C++ object files must be created using
  10680. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10681. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10682. ;;
  10683. icpc* | ecpc* )
  10684. # Intel C++
  10685. with_gnu_ld=yes
  10686. # version 8.0 and above of icpc choke on multiply defined symbols
  10687. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10688. # earlier do not add the objects themselves.
  10689. case `$CC -V 2>&1` in
  10690. *"Version 7."*)
  10691. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10692. 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'
  10693. ;;
  10694. *) # Version 8.0 or newer
  10695. tmp_idyn=
  10696. case $host_cpu in
  10697. ia64*) tmp_idyn=' -i_dynamic';;
  10698. esac
  10699. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10700. 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'
  10701. ;;
  10702. esac
  10703. archive_cmds_need_lc_CXX=no
  10704. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10705. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10706. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10707. ;;
  10708. pgCC* | pgcpp*)
  10709. # Portland Group C++ compiler
  10710. case `$CC -V` in
  10711. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  10712. prelink_cmds_CXX='tpldir=Template.dir~
  10713. rm -rf $tpldir~
  10714. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10715. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  10716. old_archive_cmds_CXX='tpldir=Template.dir~
  10717. rm -rf $tpldir~
  10718. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10719. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  10720. $RANLIB $oldlib'
  10721. archive_cmds_CXX='tpldir=Template.dir~
  10722. rm -rf $tpldir~
  10723. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10724. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10725. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10726. rm -rf $tpldir~
  10727. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10728. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10729. ;;
  10730. *) # Version 6 and above use weak symbols
  10731. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10732. 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'
  10733. ;;
  10734. esac
  10735. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10736. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10737. 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'
  10738. ;;
  10739. cxx*)
  10740. # Compaq C++
  10741. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10742. 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'
  10743. runpath_var=LD_RUN_PATH
  10744. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10745. hardcode_libdir_separator_CXX=:
  10746. # Commands to make compiler produce verbose output that lists
  10747. # what "hidden" libraries, object files and flags are used when
  10748. # linking a shared library.
  10749. #
  10750. # There doesn't appear to be a way to prevent this compiler from
  10751. # explicitly linking system object files so we need to strip them
  10752. # from the output so that they don't get included in the library
  10753. # dependencies.
  10754. 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'
  10755. ;;
  10756. xl* | mpixl* | bgxl*)
  10757. # IBM XL 8.0 on PPC, with GNU ld
  10758. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10759. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10760. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10761. if test "x$supports_anon_versioning" = xyes; then
  10762. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10763. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10764. echo "local: *; };" >> $output_objdir/$libname.ver~
  10765. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10766. fi
  10767. ;;
  10768. *)
  10769. case `$CC -V 2>&1 | sed 5q` in
  10770. *Sun\ C*)
  10771. # Sun C++ 5.9
  10772. no_undefined_flag_CXX=' -zdefs'
  10773. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10774. 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'
  10775. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10776. 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'
  10777. compiler_needs_object_CXX=yes
  10778. # Not sure whether something based on
  10779. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10780. # would be better.
  10781. output_verbose_link_cmd='func_echo_all'
  10782. # Archives containing C++ object files must be created using
  10783. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10784. # necessary to make sure instantiated templates are included
  10785. # in the archive.
  10786. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10787. ;;
  10788. esac
  10789. ;;
  10790. esac
  10791. ;;
  10792. lynxos*)
  10793. # FIXME: insert proper C++ library support
  10794. ld_shlibs_CXX=no
  10795. ;;
  10796. m88k*)
  10797. # FIXME: insert proper C++ library support
  10798. ld_shlibs_CXX=no
  10799. ;;
  10800. mvs*)
  10801. case $cc_basename in
  10802. cxx*)
  10803. # FIXME: insert proper C++ library support
  10804. ld_shlibs_CXX=no
  10805. ;;
  10806. *)
  10807. # FIXME: insert proper C++ library support
  10808. ld_shlibs_CXX=no
  10809. ;;
  10810. esac
  10811. ;;
  10812. netbsd*)
  10813. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10814. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10815. wlarc=
  10816. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10817. hardcode_direct_CXX=yes
  10818. hardcode_shlibpath_var_CXX=no
  10819. fi
  10820. # Workaround some broken pre-1.5 toolchains
  10821. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10822. ;;
  10823. *nto* | *qnx*)
  10824. ld_shlibs_CXX=yes
  10825. ;;
  10826. openbsd2*)
  10827. # C++ shared libraries are fairly broken
  10828. ld_shlibs_CXX=no
  10829. ;;
  10830. openbsd*)
  10831. if test -f /usr/libexec/ld.so; then
  10832. hardcode_direct_CXX=yes
  10833. hardcode_shlibpath_var_CXX=no
  10834. hardcode_direct_absolute_CXX=yes
  10835. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10836. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10837. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10838. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10839. export_dynamic_flag_spec_CXX='${wl}-E'
  10840. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10841. fi
  10842. output_verbose_link_cmd=func_echo_all
  10843. else
  10844. ld_shlibs_CXX=no
  10845. fi
  10846. ;;
  10847. osf3* | osf4* | osf5*)
  10848. case $cc_basename in
  10849. KCC*)
  10850. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10851. # KCC will only create a shared library if the output file
  10852. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10853. # to its proper name (with version) after linking.
  10854. 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'
  10855. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10856. hardcode_libdir_separator_CXX=:
  10857. # Archives containing C++ object files must be created using
  10858. # the KAI C++ compiler.
  10859. case $host in
  10860. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10861. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10862. esac
  10863. ;;
  10864. RCC*)
  10865. # Rational C++ 2.4.1
  10866. # FIXME: insert proper C++ library support
  10867. ld_shlibs_CXX=no
  10868. ;;
  10869. cxx*)
  10870. case $host in
  10871. osf3*)
  10872. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10873. 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'
  10874. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10875. ;;
  10876. *)
  10877. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10878. 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'
  10879. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10880. echo "-hidden">> $lib.exp~
  10881. $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~
  10882. $RM $lib.exp'
  10883. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10884. ;;
  10885. esac
  10886. hardcode_libdir_separator_CXX=:
  10887. # Commands to make compiler produce verbose output that lists
  10888. # what "hidden" libraries, object files and flags are used when
  10889. # linking a shared library.
  10890. #
  10891. # There doesn't appear to be a way to prevent this compiler from
  10892. # explicitly linking system object files so we need to strip them
  10893. # from the output so that they don't get included in the library
  10894. # dependencies.
  10895. 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"'
  10896. ;;
  10897. *)
  10898. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10899. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10900. case $host in
  10901. osf3*)
  10902. 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'
  10903. ;;
  10904. *)
  10905. 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'
  10906. ;;
  10907. esac
  10908. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10909. hardcode_libdir_separator_CXX=:
  10910. # Commands to make compiler produce verbose output that lists
  10911. # what "hidden" libraries, object files and flags are used when
  10912. # linking a shared library.
  10913. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10914. else
  10915. # FIXME: insert proper C++ library support
  10916. ld_shlibs_CXX=no
  10917. fi
  10918. ;;
  10919. esac
  10920. ;;
  10921. psos*)
  10922. # FIXME: insert proper C++ library support
  10923. ld_shlibs_CXX=no
  10924. ;;
  10925. sunos4*)
  10926. case $cc_basename in
  10927. CC*)
  10928. # Sun C++ 4.x
  10929. # FIXME: insert proper C++ library support
  10930. ld_shlibs_CXX=no
  10931. ;;
  10932. lcc*)
  10933. # Lucid
  10934. # FIXME: insert proper C++ library support
  10935. ld_shlibs_CXX=no
  10936. ;;
  10937. *)
  10938. # FIXME: insert proper C++ library support
  10939. ld_shlibs_CXX=no
  10940. ;;
  10941. esac
  10942. ;;
  10943. solaris*)
  10944. case $cc_basename in
  10945. CC*)
  10946. # Sun C++ 4.2, 5.x and Centerline C++
  10947. archive_cmds_need_lc_CXX=yes
  10948. no_undefined_flag_CXX=' -zdefs'
  10949. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10950. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10951. $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'
  10952. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10953. hardcode_shlibpath_var_CXX=no
  10954. case $host_os in
  10955. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10956. *)
  10957. # The compiler driver will combine and reorder linker options,
  10958. # but understands `-z linker_flag'.
  10959. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10960. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10961. ;;
  10962. esac
  10963. link_all_deplibs_CXX=yes
  10964. output_verbose_link_cmd='func_echo_all'
  10965. # Archives containing C++ object files must be created using
  10966. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10967. # necessary to make sure instantiated templates are included
  10968. # in the archive.
  10969. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10970. ;;
  10971. gcx*)
  10972. # Green Hills C++ Compiler
  10973. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10974. # The C++ compiler must be used to create the archive.
  10975. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10976. ;;
  10977. *)
  10978. # GNU C++ compiler with Solaris linker
  10979. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10980. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10981. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10982. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10983. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10984. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10985. # Commands to make compiler produce verbose output that lists
  10986. # what "hidden" libraries, object files and flags are used when
  10987. # linking a shared library.
  10988. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10989. else
  10990. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10991. # platform.
  10992. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10993. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10994. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10995. # Commands to make compiler produce verbose output that lists
  10996. # what "hidden" libraries, object files and flags are used when
  10997. # linking a shared library.
  10998. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10999. fi
  11000. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11001. case $host_os in
  11002. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11003. *)
  11004. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11005. ;;
  11006. esac
  11007. fi
  11008. ;;
  11009. esac
  11010. ;;
  11011. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11012. no_undefined_flag_CXX='${wl}-z,text'
  11013. archive_cmds_need_lc_CXX=no
  11014. hardcode_shlibpath_var_CXX=no
  11015. runpath_var='LD_RUN_PATH'
  11016. case $cc_basename in
  11017. CC*)
  11018. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11019. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11020. ;;
  11021. *)
  11022. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11023. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11024. ;;
  11025. esac
  11026. ;;
  11027. sysv5* | sco3.2v5* | sco5v6*)
  11028. # Note: We can NOT use -z defs as we might desire, because we do not
  11029. # link with -lc, and that would cause any symbols used from libc to
  11030. # always be unresolved, which means just about no library would
  11031. # ever link correctly. If we're not using GNU ld we use -z text
  11032. # though, which does catch some bad symbols but isn't as heavy-handed
  11033. # as -z defs.
  11034. no_undefined_flag_CXX='${wl}-z,text'
  11035. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11036. archive_cmds_need_lc_CXX=no
  11037. hardcode_shlibpath_var_CXX=no
  11038. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11039. hardcode_libdir_separator_CXX=':'
  11040. link_all_deplibs_CXX=yes
  11041. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11042. runpath_var='LD_RUN_PATH'
  11043. case $cc_basename in
  11044. CC*)
  11045. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11046. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11047. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11048. '"$old_archive_cmds_CXX"
  11049. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11050. '"$reload_cmds_CXX"
  11051. ;;
  11052. *)
  11053. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11054. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11055. ;;
  11056. esac
  11057. ;;
  11058. tandem*)
  11059. case $cc_basename in
  11060. NCC*)
  11061. # NonStop-UX NCC 3.20
  11062. # FIXME: insert proper C++ library support
  11063. ld_shlibs_CXX=no
  11064. ;;
  11065. *)
  11066. # FIXME: insert proper C++ library support
  11067. ld_shlibs_CXX=no
  11068. ;;
  11069. esac
  11070. ;;
  11071. vxworks*)
  11072. # FIXME: insert proper C++ library support
  11073. ld_shlibs_CXX=no
  11074. ;;
  11075. *)
  11076. # FIXME: insert proper C++ library support
  11077. ld_shlibs_CXX=no
  11078. ;;
  11079. esac
  11080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11081. $as_echo "$ld_shlibs_CXX" >&6; }
  11082. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11083. GCC_CXX="$GXX"
  11084. LD_CXX="$LD"
  11085. ## CAVEAT EMPTOR:
  11086. ## There is no encapsulation within the following macros, do not change
  11087. ## the running order or otherwise move them around unless you know exactly
  11088. ## what you are doing...
  11089. # Dependencies to place before and after the object being linked:
  11090. predep_objects_CXX=
  11091. postdep_objects_CXX=
  11092. predeps_CXX=
  11093. postdeps_CXX=
  11094. compiler_lib_search_path_CXX=
  11095. cat > conftest.$ac_ext <<_LT_EOF
  11096. class Foo
  11097. {
  11098. public:
  11099. Foo (void) { a = 0; }
  11100. private:
  11101. int a;
  11102. };
  11103. _LT_EOF
  11104. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11105. (eval $ac_compile) 2>&5
  11106. ac_status=$?
  11107. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11108. test $ac_status = 0; }; then
  11109. # Parse the compiler output and extract the necessary
  11110. # objects, libraries and library flags.
  11111. # Sentinel used to keep track of whether or not we are before
  11112. # the conftest object file.
  11113. pre_test_object_deps_done=no
  11114. for p in `eval "$output_verbose_link_cmd"`; do
  11115. case $p in
  11116. -L* | -R* | -l*)
  11117. # Some compilers place space between "-{L,R}" and the path.
  11118. # Remove the space.
  11119. if test $p = "-L" ||
  11120. test $p = "-R"; then
  11121. prev=$p
  11122. continue
  11123. else
  11124. prev=
  11125. fi
  11126. if test "$pre_test_object_deps_done" = no; then
  11127. case $p in
  11128. -L* | -R*)
  11129. # Internal compiler library paths should come after those
  11130. # provided the user. The postdeps already come after the
  11131. # user supplied libs so there is no need to process them.
  11132. if test -z "$compiler_lib_search_path_CXX"; then
  11133. compiler_lib_search_path_CXX="${prev}${p}"
  11134. else
  11135. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11136. fi
  11137. ;;
  11138. # The "-l" case would never come before the object being
  11139. # linked, so don't bother handling this case.
  11140. esac
  11141. else
  11142. if test -z "$postdeps_CXX"; then
  11143. postdeps_CXX="${prev}${p}"
  11144. else
  11145. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11146. fi
  11147. fi
  11148. ;;
  11149. *.$objext)
  11150. # This assumes that the test object file only shows up
  11151. # once in the compiler output.
  11152. if test "$p" = "conftest.$objext"; then
  11153. pre_test_object_deps_done=yes
  11154. continue
  11155. fi
  11156. if test "$pre_test_object_deps_done" = no; then
  11157. if test -z "$predep_objects_CXX"; then
  11158. predep_objects_CXX="$p"
  11159. else
  11160. predep_objects_CXX="$predep_objects_CXX $p"
  11161. fi
  11162. else
  11163. if test -z "$postdep_objects_CXX"; then
  11164. postdep_objects_CXX="$p"
  11165. else
  11166. postdep_objects_CXX="$postdep_objects_CXX $p"
  11167. fi
  11168. fi
  11169. ;;
  11170. *) ;; # Ignore the rest.
  11171. esac
  11172. done
  11173. # Clean up.
  11174. rm -f a.out a.exe
  11175. else
  11176. echo "libtool.m4: error: problem compiling CXX test program"
  11177. fi
  11178. $RM -f confest.$objext
  11179. # PORTME: override above test on systems where it is broken
  11180. case $host_os in
  11181. interix[3-9]*)
  11182. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11183. # hack all around it, let's just trust "g++" to DTRT.
  11184. predep_objects_CXX=
  11185. postdep_objects_CXX=
  11186. postdeps_CXX=
  11187. ;;
  11188. linux*)
  11189. case `$CC -V 2>&1 | sed 5q` in
  11190. *Sun\ C*)
  11191. # Sun C++ 5.9
  11192. # The more standards-conforming stlport4 library is
  11193. # incompatible with the Cstd library. Avoid specifying
  11194. # it if it's in CXXFLAGS. Ignore libCrun as
  11195. # -library=stlport4 depends on it.
  11196. case " $CXX $CXXFLAGS " in
  11197. *" -library=stlport4 "*)
  11198. solaris_use_stlport4=yes
  11199. ;;
  11200. esac
  11201. if test "$solaris_use_stlport4" != yes; then
  11202. postdeps_CXX='-library=Cstd -library=Crun'
  11203. fi
  11204. ;;
  11205. esac
  11206. ;;
  11207. solaris*)
  11208. case $cc_basename in
  11209. CC*)
  11210. # The more standards-conforming stlport4 library is
  11211. # incompatible with the Cstd library. Avoid specifying
  11212. # it if it's in CXXFLAGS. Ignore libCrun as
  11213. # -library=stlport4 depends on it.
  11214. case " $CXX $CXXFLAGS " in
  11215. *" -library=stlport4 "*)
  11216. solaris_use_stlport4=yes
  11217. ;;
  11218. esac
  11219. # Adding this requires a known-good setup of shared libraries for
  11220. # Sun compiler versions before 5.6, else PIC objects from an old
  11221. # archive will be linked into the output, leading to subtle bugs.
  11222. if test "$solaris_use_stlport4" != yes; then
  11223. postdeps_CXX='-library=Cstd -library=Crun'
  11224. fi
  11225. ;;
  11226. esac
  11227. ;;
  11228. esac
  11229. case " $postdeps_CXX " in
  11230. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11231. esac
  11232. compiler_lib_search_dirs_CXX=
  11233. if test -n "${compiler_lib_search_path_CXX}"; then
  11234. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11235. fi
  11236. lt_prog_compiler_wl_CXX=
  11237. lt_prog_compiler_pic_CXX=
  11238. lt_prog_compiler_static_CXX=
  11239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11240. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11241. # C++ specific cases for pic, static, wl, etc.
  11242. if test "$GXX" = yes; then
  11243. lt_prog_compiler_wl_CXX='-Wl,'
  11244. lt_prog_compiler_static_CXX='-static'
  11245. case $host_os in
  11246. aix*)
  11247. # All AIX code is PIC.
  11248. if test "$host_cpu" = ia64; then
  11249. # AIX 5 now supports IA64 processor
  11250. lt_prog_compiler_static_CXX='-Bstatic'
  11251. fi
  11252. lt_prog_compiler_pic_CXX='-fPIC'
  11253. ;;
  11254. amigaos*)
  11255. case $host_cpu in
  11256. powerpc)
  11257. # see comment about AmigaOS4 .so support
  11258. lt_prog_compiler_pic_CXX='-fPIC'
  11259. ;;
  11260. m68k)
  11261. # FIXME: we need at least 68020 code to build shared libraries, but
  11262. # adding the `-m68020' flag to GCC prevents building anything better,
  11263. # like `-m68040'.
  11264. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11265. ;;
  11266. esac
  11267. ;;
  11268. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11269. # PIC is the default for these OSes.
  11270. ;;
  11271. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11272. # This hack is so that the source file can tell whether it is being
  11273. # built for inclusion in a dll (and should export symbols for example).
  11274. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11275. # (--disable-auto-import) libraries
  11276. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11277. ;;
  11278. darwin* | rhapsody*)
  11279. # PIC is the default on this platform
  11280. # Common symbols not allowed in MH_DYLIB files
  11281. lt_prog_compiler_pic_CXX='-fno-common'
  11282. ;;
  11283. *djgpp*)
  11284. # DJGPP does not support shared libraries at all
  11285. lt_prog_compiler_pic_CXX=
  11286. ;;
  11287. haiku*)
  11288. # PIC is the default for Haiku.
  11289. # The "-static" flag exists, but is broken.
  11290. lt_prog_compiler_static_CXX=
  11291. ;;
  11292. interix[3-9]*)
  11293. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11294. # Instead, we relocate shared libraries at runtime.
  11295. ;;
  11296. sysv4*MP*)
  11297. if test -d /usr/nec; then
  11298. lt_prog_compiler_pic_CXX=-Kconform_pic
  11299. fi
  11300. ;;
  11301. hpux*)
  11302. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11303. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11304. # sets the default TLS model and affects inlining.
  11305. case $host_cpu in
  11306. hppa*64*)
  11307. ;;
  11308. *)
  11309. lt_prog_compiler_pic_CXX='-fPIC'
  11310. ;;
  11311. esac
  11312. ;;
  11313. *qnx* | *nto*)
  11314. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11315. # it will coredump.
  11316. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11317. ;;
  11318. *)
  11319. lt_prog_compiler_pic_CXX='-fPIC'
  11320. ;;
  11321. esac
  11322. else
  11323. case $host_os in
  11324. aix[4-9]*)
  11325. # All AIX code is PIC.
  11326. if test "$host_cpu" = ia64; then
  11327. # AIX 5 now supports IA64 processor
  11328. lt_prog_compiler_static_CXX='-Bstatic'
  11329. else
  11330. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11331. fi
  11332. ;;
  11333. chorus*)
  11334. case $cc_basename in
  11335. cxch68*)
  11336. # Green Hills C++ Compiler
  11337. # _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"
  11338. ;;
  11339. esac
  11340. ;;
  11341. dgux*)
  11342. case $cc_basename in
  11343. ec++*)
  11344. lt_prog_compiler_pic_CXX='-KPIC'
  11345. ;;
  11346. ghcx*)
  11347. # Green Hills C++ Compiler
  11348. lt_prog_compiler_pic_CXX='-pic'
  11349. ;;
  11350. *)
  11351. ;;
  11352. esac
  11353. ;;
  11354. freebsd* | dragonfly*)
  11355. # FreeBSD uses GNU C++
  11356. ;;
  11357. hpux9* | hpux10* | hpux11*)
  11358. case $cc_basename in
  11359. CC*)
  11360. lt_prog_compiler_wl_CXX='-Wl,'
  11361. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11362. if test "$host_cpu" != ia64; then
  11363. lt_prog_compiler_pic_CXX='+Z'
  11364. fi
  11365. ;;
  11366. aCC*)
  11367. lt_prog_compiler_wl_CXX='-Wl,'
  11368. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11369. case $host_cpu in
  11370. hppa*64*|ia64*)
  11371. # +Z the default
  11372. ;;
  11373. *)
  11374. lt_prog_compiler_pic_CXX='+Z'
  11375. ;;
  11376. esac
  11377. ;;
  11378. *)
  11379. ;;
  11380. esac
  11381. ;;
  11382. interix*)
  11383. # This is c89, which is MS Visual C++ (no shared libs)
  11384. # Anyone wants to do a port?
  11385. ;;
  11386. irix5* | irix6* | nonstopux*)
  11387. case $cc_basename in
  11388. CC*)
  11389. lt_prog_compiler_wl_CXX='-Wl,'
  11390. lt_prog_compiler_static_CXX='-non_shared'
  11391. # CC pic flag -KPIC is the default.
  11392. ;;
  11393. *)
  11394. ;;
  11395. esac
  11396. ;;
  11397. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11398. case $cc_basename in
  11399. KCC*)
  11400. # KAI C++ Compiler
  11401. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11402. lt_prog_compiler_pic_CXX='-fPIC'
  11403. ;;
  11404. ecpc* )
  11405. # old Intel C++ for x86_64 which still supported -KPIC.
  11406. lt_prog_compiler_wl_CXX='-Wl,'
  11407. lt_prog_compiler_pic_CXX='-KPIC'
  11408. lt_prog_compiler_static_CXX='-static'
  11409. ;;
  11410. icpc* )
  11411. # Intel C++, used to be incompatible with GCC.
  11412. # ICC 10 doesn't accept -KPIC any more.
  11413. lt_prog_compiler_wl_CXX='-Wl,'
  11414. lt_prog_compiler_pic_CXX='-fPIC'
  11415. lt_prog_compiler_static_CXX='-static'
  11416. ;;
  11417. pgCC* | pgcpp*)
  11418. # Portland Group C++ compiler
  11419. lt_prog_compiler_wl_CXX='-Wl,'
  11420. lt_prog_compiler_pic_CXX='-fpic'
  11421. lt_prog_compiler_static_CXX='-Bstatic'
  11422. ;;
  11423. cxx*)
  11424. # Compaq C++
  11425. # Make sure the PIC flag is empty. It appears that all Alpha
  11426. # Linux and Compaq Tru64 Unix objects are PIC.
  11427. lt_prog_compiler_pic_CXX=
  11428. lt_prog_compiler_static_CXX='-non_shared'
  11429. ;;
  11430. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11431. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11432. lt_prog_compiler_wl_CXX='-Wl,'
  11433. lt_prog_compiler_pic_CXX='-qpic'
  11434. lt_prog_compiler_static_CXX='-qstaticlink'
  11435. ;;
  11436. *)
  11437. case `$CC -V 2>&1 | sed 5q` in
  11438. *Sun\ C*)
  11439. # Sun C++ 5.9
  11440. lt_prog_compiler_pic_CXX='-KPIC'
  11441. lt_prog_compiler_static_CXX='-Bstatic'
  11442. lt_prog_compiler_wl_CXX='-Qoption ld '
  11443. ;;
  11444. esac
  11445. ;;
  11446. esac
  11447. ;;
  11448. lynxos*)
  11449. ;;
  11450. m88k*)
  11451. ;;
  11452. mvs*)
  11453. case $cc_basename in
  11454. cxx*)
  11455. lt_prog_compiler_pic_CXX='-W c,exportall'
  11456. ;;
  11457. *)
  11458. ;;
  11459. esac
  11460. ;;
  11461. netbsd*)
  11462. ;;
  11463. *qnx* | *nto*)
  11464. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11465. # it will coredump.
  11466. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11467. ;;
  11468. osf3* | osf4* | osf5*)
  11469. case $cc_basename in
  11470. KCC*)
  11471. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11472. ;;
  11473. RCC*)
  11474. # Rational C++ 2.4.1
  11475. lt_prog_compiler_pic_CXX='-pic'
  11476. ;;
  11477. cxx*)
  11478. # Digital/Compaq C++
  11479. lt_prog_compiler_wl_CXX='-Wl,'
  11480. # Make sure the PIC flag is empty. It appears that all Alpha
  11481. # Linux and Compaq Tru64 Unix objects are PIC.
  11482. lt_prog_compiler_pic_CXX=
  11483. lt_prog_compiler_static_CXX='-non_shared'
  11484. ;;
  11485. *)
  11486. ;;
  11487. esac
  11488. ;;
  11489. psos*)
  11490. ;;
  11491. solaris*)
  11492. case $cc_basename in
  11493. CC*)
  11494. # Sun C++ 4.2, 5.x and Centerline C++
  11495. lt_prog_compiler_pic_CXX='-KPIC'
  11496. lt_prog_compiler_static_CXX='-Bstatic'
  11497. lt_prog_compiler_wl_CXX='-Qoption ld '
  11498. ;;
  11499. gcx*)
  11500. # Green Hills C++ Compiler
  11501. lt_prog_compiler_pic_CXX='-PIC'
  11502. ;;
  11503. *)
  11504. ;;
  11505. esac
  11506. ;;
  11507. sunos4*)
  11508. case $cc_basename in
  11509. CC*)
  11510. # Sun C++ 4.x
  11511. lt_prog_compiler_pic_CXX='-pic'
  11512. lt_prog_compiler_static_CXX='-Bstatic'
  11513. ;;
  11514. lcc*)
  11515. # Lucid
  11516. lt_prog_compiler_pic_CXX='-pic'
  11517. ;;
  11518. *)
  11519. ;;
  11520. esac
  11521. ;;
  11522. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11523. case $cc_basename in
  11524. CC*)
  11525. lt_prog_compiler_wl_CXX='-Wl,'
  11526. lt_prog_compiler_pic_CXX='-KPIC'
  11527. lt_prog_compiler_static_CXX='-Bstatic'
  11528. ;;
  11529. esac
  11530. ;;
  11531. tandem*)
  11532. case $cc_basename in
  11533. NCC*)
  11534. # NonStop-UX NCC 3.20
  11535. lt_prog_compiler_pic_CXX='-KPIC'
  11536. ;;
  11537. *)
  11538. ;;
  11539. esac
  11540. ;;
  11541. vxworks*)
  11542. ;;
  11543. *)
  11544. lt_prog_compiler_can_build_shared_CXX=no
  11545. ;;
  11546. esac
  11547. fi
  11548. case $host_os in
  11549. # For platforms which do not support PIC, -DPIC is meaningless:
  11550. *djgpp*)
  11551. lt_prog_compiler_pic_CXX=
  11552. ;;
  11553. *)
  11554. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11555. ;;
  11556. esac
  11557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11558. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11559. #
  11560. # Check to make sure the PIC flag actually works.
  11561. #
  11562. if test -n "$lt_prog_compiler_pic_CXX"; then
  11563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11564. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11565. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  11566. $as_echo_n "(cached) " >&6
  11567. else
  11568. lt_cv_prog_compiler_pic_works_CXX=no
  11569. ac_outfile=conftest.$ac_objext
  11570. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11571. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11572. # Insert the option either (1) after the last *FLAGS variable, or
  11573. # (2) before a word containing "conftest.", or (3) at the end.
  11574. # Note that $ac_compile itself does not contain backslashes and begins
  11575. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11576. # The option is referenced via a variable to avoid confusing sed.
  11577. lt_compile=`echo "$ac_compile" | $SED \
  11578. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11579. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11580. -e 's:$: $lt_compiler_flag:'`
  11581. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11582. (eval "$lt_compile" 2>conftest.err)
  11583. ac_status=$?
  11584. cat conftest.err >&5
  11585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11586. if (exit $ac_status) && test -s "$ac_outfile"; then
  11587. # The compiler can only warn and ignore the option if not recognized
  11588. # So say no if there are warnings other than the usual output.
  11589. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11590. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11591. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11592. lt_cv_prog_compiler_pic_works_CXX=yes
  11593. fi
  11594. fi
  11595. $RM conftest*
  11596. fi
  11597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11598. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11599. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11600. case $lt_prog_compiler_pic_CXX in
  11601. "" | " "*) ;;
  11602. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11603. esac
  11604. else
  11605. lt_prog_compiler_pic_CXX=
  11606. lt_prog_compiler_can_build_shared_CXX=no
  11607. fi
  11608. fi
  11609. #
  11610. # Check to make sure the static flag actually works.
  11611. #
  11612. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11614. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11615. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  11616. $as_echo_n "(cached) " >&6
  11617. else
  11618. lt_cv_prog_compiler_static_works_CXX=no
  11619. save_LDFLAGS="$LDFLAGS"
  11620. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11621. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11622. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11623. # The linker can only warn and ignore the option if not recognized
  11624. # So say no if there are warnings
  11625. if test -s conftest.err; then
  11626. # Append any errors to the config.log.
  11627. cat conftest.err 1>&5
  11628. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11629. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11630. if diff conftest.exp conftest.er2 >/dev/null; then
  11631. lt_cv_prog_compiler_static_works_CXX=yes
  11632. fi
  11633. else
  11634. lt_cv_prog_compiler_static_works_CXX=yes
  11635. fi
  11636. fi
  11637. $RM -r conftest*
  11638. LDFLAGS="$save_LDFLAGS"
  11639. fi
  11640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11641. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11642. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11643. :
  11644. else
  11645. lt_prog_compiler_static_CXX=
  11646. fi
  11647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11648. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11649. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  11650. $as_echo_n "(cached) " >&6
  11651. else
  11652. lt_cv_prog_compiler_c_o_CXX=no
  11653. $RM -r conftest 2>/dev/null
  11654. mkdir conftest
  11655. cd conftest
  11656. mkdir out
  11657. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11658. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11659. # Insert the option either (1) after the last *FLAGS variable, or
  11660. # (2) before a word containing "conftest.", or (3) at the end.
  11661. # Note that $ac_compile itself does not contain backslashes and begins
  11662. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11663. lt_compile=`echo "$ac_compile" | $SED \
  11664. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11665. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11666. -e 's:$: $lt_compiler_flag:'`
  11667. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11668. (eval "$lt_compile" 2>out/conftest.err)
  11669. ac_status=$?
  11670. cat out/conftest.err >&5
  11671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11672. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11673. then
  11674. # The compiler can only warn and ignore the option if not recognized
  11675. # So say no if there are warnings
  11676. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11677. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11678. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11679. lt_cv_prog_compiler_c_o_CXX=yes
  11680. fi
  11681. fi
  11682. chmod u+w . 2>&5
  11683. $RM conftest*
  11684. # SGI C++ compiler will create directory out/ii_files/ for
  11685. # template instantiation
  11686. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11687. $RM out/* && rmdir out
  11688. cd ..
  11689. $RM -r conftest
  11690. $RM conftest*
  11691. fi
  11692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11693. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11695. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11696. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  11697. $as_echo_n "(cached) " >&6
  11698. else
  11699. lt_cv_prog_compiler_c_o_CXX=no
  11700. $RM -r conftest 2>/dev/null
  11701. mkdir conftest
  11702. cd conftest
  11703. mkdir out
  11704. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11705. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11706. # Insert the option either (1) after the last *FLAGS variable, or
  11707. # (2) before a word containing "conftest.", or (3) at the end.
  11708. # Note that $ac_compile itself does not contain backslashes and begins
  11709. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11710. lt_compile=`echo "$ac_compile" | $SED \
  11711. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11712. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11713. -e 's:$: $lt_compiler_flag:'`
  11714. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11715. (eval "$lt_compile" 2>out/conftest.err)
  11716. ac_status=$?
  11717. cat out/conftest.err >&5
  11718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11719. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11720. then
  11721. # The compiler can only warn and ignore the option if not recognized
  11722. # So say no if there are warnings
  11723. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11724. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11725. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11726. lt_cv_prog_compiler_c_o_CXX=yes
  11727. fi
  11728. fi
  11729. chmod u+w . 2>&5
  11730. $RM conftest*
  11731. # SGI C++ compiler will create directory out/ii_files/ for
  11732. # template instantiation
  11733. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11734. $RM out/* && rmdir out
  11735. cd ..
  11736. $RM -r conftest
  11737. $RM conftest*
  11738. fi
  11739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11740. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11741. hard_links="nottested"
  11742. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11743. # do not overwrite the value of need_locks provided by the user
  11744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11745. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11746. hard_links=yes
  11747. $RM conftest*
  11748. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11749. touch conftest.a
  11750. ln conftest.a conftest.b 2>&5 || hard_links=no
  11751. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11753. $as_echo "$hard_links" >&6; }
  11754. if test "$hard_links" = no; then
  11755. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11756. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11757. need_locks=warn
  11758. fi
  11759. else
  11760. need_locks=no
  11761. fi
  11762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11763. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11764. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11765. case $host_os in
  11766. aix[4-9]*)
  11767. # If we're using GNU nm, then we don't want the "-C" option.
  11768. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11769. # Also, AIX nm treats weak defined symbols like other global defined
  11770. # symbols, whereas GNU nm marks them as "W".
  11771. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11772. 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'
  11773. else
  11774. 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'
  11775. fi
  11776. ;;
  11777. pw32*)
  11778. export_symbols_cmds_CXX="$ltdll_cmds"
  11779. ;;
  11780. cygwin* | mingw* | cegcc*)
  11781. 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'
  11782. ;;
  11783. *)
  11784. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11785. ;;
  11786. esac
  11787. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11789. $as_echo "$ld_shlibs_CXX" >&6; }
  11790. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11791. with_gnu_ld_CXX=$with_gnu_ld
  11792. #
  11793. # Do we need to explicitly link libc?
  11794. #
  11795. case "x$archive_cmds_need_lc_CXX" in
  11796. x|xyes)
  11797. # Assume -lc should be added
  11798. archive_cmds_need_lc_CXX=yes
  11799. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11800. case $archive_cmds_CXX in
  11801. *'~'*)
  11802. # FIXME: we may have to deal with multi-command sequences.
  11803. ;;
  11804. '$CC '*)
  11805. # Test whether the compiler implicitly links with -lc since on some
  11806. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11807. # to ld, don't add -lc before -lgcc.
  11808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11809. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11810. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  11811. $as_echo_n "(cached) " >&6
  11812. else
  11813. $RM conftest*
  11814. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11815. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11816. (eval $ac_compile) 2>&5
  11817. ac_status=$?
  11818. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11819. test $ac_status = 0; } 2>conftest.err; then
  11820. soname=conftest
  11821. lib=conftest
  11822. libobjs=conftest.$ac_objext
  11823. deplibs=
  11824. wl=$lt_prog_compiler_wl_CXX
  11825. pic_flag=$lt_prog_compiler_pic_CXX
  11826. compiler_flags=-v
  11827. linker_flags=-v
  11828. verstring=
  11829. output_objdir=.
  11830. libname=conftest
  11831. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11832. allow_undefined_flag_CXX=
  11833. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11834. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11835. ac_status=$?
  11836. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11837. test $ac_status = 0; }
  11838. then
  11839. lt_cv_archive_cmds_need_lc_CXX=no
  11840. else
  11841. lt_cv_archive_cmds_need_lc_CXX=yes
  11842. fi
  11843. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11844. else
  11845. cat conftest.err 1>&5
  11846. fi
  11847. $RM conftest*
  11848. fi
  11849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  11850. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  11851. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  11852. ;;
  11853. esac
  11854. fi
  11855. ;;
  11856. esac
  11857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11858. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11859. library_names_spec=
  11860. libname_spec='lib$name'
  11861. soname_spec=
  11862. shrext_cmds=".so"
  11863. postinstall_cmds=
  11864. postuninstall_cmds=
  11865. finish_cmds=
  11866. finish_eval=
  11867. shlibpath_var=
  11868. shlibpath_overrides_runpath=unknown
  11869. version_type=none
  11870. dynamic_linker="$host_os ld.so"
  11871. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11872. need_lib_prefix=unknown
  11873. hardcode_into_libs=no
  11874. # when you set need_version to no, make sure it does not cause -set_version
  11875. # flags to be left without arguments
  11876. need_version=unknown
  11877. case $host_os in
  11878. aix3*)
  11879. version_type=linux
  11880. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11881. shlibpath_var=LIBPATH
  11882. # AIX 3 has no versioning support, so we append a major version to the name.
  11883. soname_spec='${libname}${release}${shared_ext}$major'
  11884. ;;
  11885. aix[4-9]*)
  11886. version_type=linux
  11887. need_lib_prefix=no
  11888. need_version=no
  11889. hardcode_into_libs=yes
  11890. if test "$host_cpu" = ia64; then
  11891. # AIX 5 supports IA64
  11892. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11893. shlibpath_var=LD_LIBRARY_PATH
  11894. else
  11895. # With GCC up to 2.95.x, collect2 would create an import file
  11896. # for dependence libraries. The import file would start with
  11897. # the line `#! .'. This would cause the generated library to
  11898. # depend on `.', always an invalid library. This was fixed in
  11899. # development snapshots of GCC prior to 3.0.
  11900. case $host_os in
  11901. aix4 | aix4.[01] | aix4.[01].*)
  11902. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11903. echo ' yes '
  11904. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11905. :
  11906. else
  11907. can_build_shared=no
  11908. fi
  11909. ;;
  11910. esac
  11911. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11912. # soname into executable. Probably we can add versioning support to
  11913. # collect2, so additional links can be useful in future.
  11914. if test "$aix_use_runtimelinking" = yes; then
  11915. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11916. # instead of lib<name>.a to let people know that these are not
  11917. # typical AIX shared libraries.
  11918. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11919. else
  11920. # We preserve .a as extension for shared libraries through AIX4.2
  11921. # and later when we are not doing run time linking.
  11922. library_names_spec='${libname}${release}.a $libname.a'
  11923. soname_spec='${libname}${release}${shared_ext}$major'
  11924. fi
  11925. shlibpath_var=LIBPATH
  11926. fi
  11927. ;;
  11928. amigaos*)
  11929. case $host_cpu in
  11930. powerpc)
  11931. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11932. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11933. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11934. ;;
  11935. m68k)
  11936. library_names_spec='$libname.ixlibrary $libname.a'
  11937. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11938. 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'
  11939. ;;
  11940. esac
  11941. ;;
  11942. beos*)
  11943. library_names_spec='${libname}${shared_ext}'
  11944. dynamic_linker="$host_os ld.so"
  11945. shlibpath_var=LIBRARY_PATH
  11946. ;;
  11947. bsdi[45]*)
  11948. version_type=linux
  11949. need_version=no
  11950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11951. soname_spec='${libname}${release}${shared_ext}$major'
  11952. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11953. shlibpath_var=LD_LIBRARY_PATH
  11954. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11955. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11956. # the default ld.so.conf also contains /usr/contrib/lib and
  11957. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11958. # libtool to hard-code these into programs
  11959. ;;
  11960. cygwin* | mingw* | pw32* | cegcc*)
  11961. version_type=windows
  11962. shrext_cmds=".dll"
  11963. need_version=no
  11964. need_lib_prefix=no
  11965. case $GCC,$host_os in
  11966. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11967. library_names_spec='$libname.dll.a'
  11968. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11969. postinstall_cmds='base_file=`basename \${file}`~
  11970. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11971. dldir=$destdir/`dirname \$dlpath`~
  11972. test -d \$dldir || mkdir -p \$dldir~
  11973. $install_prog $dir/$dlname \$dldir/$dlname~
  11974. chmod a+x \$dldir/$dlname~
  11975. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11976. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11977. fi'
  11978. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11979. dlpath=$dir/\$dldll~
  11980. $RM \$dlpath'
  11981. shlibpath_overrides_runpath=yes
  11982. case $host_os in
  11983. cygwin*)
  11984. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11985. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11986. ;;
  11987. mingw* | cegcc*)
  11988. # MinGW DLLs use traditional 'lib' prefix
  11989. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11990. ;;
  11991. pw32*)
  11992. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11993. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11994. ;;
  11995. esac
  11996. ;;
  11997. *)
  11998. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11999. ;;
  12000. esac
  12001. dynamic_linker='Win32 ld.exe'
  12002. # FIXME: first we should search . and the directory the executable is in
  12003. shlibpath_var=PATH
  12004. ;;
  12005. darwin* | rhapsody*)
  12006. dynamic_linker="$host_os dyld"
  12007. version_type=darwin
  12008. need_lib_prefix=no
  12009. need_version=no
  12010. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12011. soname_spec='${libname}${release}${major}$shared_ext'
  12012. shlibpath_overrides_runpath=yes
  12013. shlibpath_var=DYLD_LIBRARY_PATH
  12014. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12015. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12016. ;;
  12017. dgux*)
  12018. version_type=linux
  12019. need_lib_prefix=no
  12020. need_version=no
  12021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12022. soname_spec='${libname}${release}${shared_ext}$major'
  12023. shlibpath_var=LD_LIBRARY_PATH
  12024. ;;
  12025. freebsd* | dragonfly*)
  12026. # DragonFly does not have aout. When/if they implement a new
  12027. # versioning mechanism, adjust this.
  12028. if test -x /usr/bin/objformat; then
  12029. objformat=`/usr/bin/objformat`
  12030. else
  12031. case $host_os in
  12032. freebsd[23].*) objformat=aout ;;
  12033. *) objformat=elf ;;
  12034. esac
  12035. fi
  12036. version_type=freebsd-$objformat
  12037. case $version_type in
  12038. freebsd-elf*)
  12039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12040. need_version=no
  12041. need_lib_prefix=no
  12042. ;;
  12043. freebsd-*)
  12044. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12045. need_version=yes
  12046. ;;
  12047. esac
  12048. shlibpath_var=LD_LIBRARY_PATH
  12049. case $host_os in
  12050. freebsd2.*)
  12051. shlibpath_overrides_runpath=yes
  12052. ;;
  12053. freebsd3.[01]* | freebsdelf3.[01]*)
  12054. shlibpath_overrides_runpath=yes
  12055. hardcode_into_libs=yes
  12056. ;;
  12057. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12058. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12059. shlibpath_overrides_runpath=no
  12060. hardcode_into_libs=yes
  12061. ;;
  12062. *) # from 4.6 on, and DragonFly
  12063. shlibpath_overrides_runpath=yes
  12064. hardcode_into_libs=yes
  12065. ;;
  12066. esac
  12067. ;;
  12068. haiku*)
  12069. version_type=linux
  12070. need_lib_prefix=no
  12071. need_version=no
  12072. dynamic_linker="$host_os runtime_loader"
  12073. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12074. soname_spec='${libname}${release}${shared_ext}$major'
  12075. shlibpath_var=LIBRARY_PATH
  12076. shlibpath_overrides_runpath=yes
  12077. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  12078. hardcode_into_libs=yes
  12079. ;;
  12080. hpux9* | hpux10* | hpux11*)
  12081. # Give a soname corresponding to the major version so that dld.sl refuses to
  12082. # link against other versions.
  12083. version_type=sunos
  12084. need_lib_prefix=no
  12085. need_version=no
  12086. case $host_cpu in
  12087. ia64*)
  12088. shrext_cmds='.so'
  12089. hardcode_into_libs=yes
  12090. dynamic_linker="$host_os dld.so"
  12091. shlibpath_var=LD_LIBRARY_PATH
  12092. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12093. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12094. soname_spec='${libname}${release}${shared_ext}$major'
  12095. if test "X$HPUX_IA64_MODE" = X32; then
  12096. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12097. else
  12098. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12099. fi
  12100. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12101. ;;
  12102. hppa*64*)
  12103. shrext_cmds='.sl'
  12104. hardcode_into_libs=yes
  12105. dynamic_linker="$host_os dld.sl"
  12106. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12107. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12108. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12109. soname_spec='${libname}${release}${shared_ext}$major'
  12110. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12111. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12112. ;;
  12113. *)
  12114. shrext_cmds='.sl'
  12115. dynamic_linker="$host_os dld.sl"
  12116. shlibpath_var=SHLIB_PATH
  12117. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12119. soname_spec='${libname}${release}${shared_ext}$major'
  12120. ;;
  12121. esac
  12122. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12123. postinstall_cmds='chmod 555 $lib'
  12124. # or fails outright, so override atomically:
  12125. install_override_mode=555
  12126. ;;
  12127. interix[3-9]*)
  12128. version_type=linux
  12129. need_lib_prefix=no
  12130. need_version=no
  12131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12132. soname_spec='${libname}${release}${shared_ext}$major'
  12133. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12134. shlibpath_var=LD_LIBRARY_PATH
  12135. shlibpath_overrides_runpath=no
  12136. hardcode_into_libs=yes
  12137. ;;
  12138. irix5* | irix6* | nonstopux*)
  12139. case $host_os in
  12140. nonstopux*) version_type=nonstopux ;;
  12141. *)
  12142. if test "$lt_cv_prog_gnu_ld" = yes; then
  12143. version_type=linux
  12144. else
  12145. version_type=irix
  12146. fi ;;
  12147. esac
  12148. need_lib_prefix=no
  12149. need_version=no
  12150. soname_spec='${libname}${release}${shared_ext}$major'
  12151. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12152. case $host_os in
  12153. irix5* | nonstopux*)
  12154. libsuff= shlibsuff=
  12155. ;;
  12156. *)
  12157. case $LD in # libtool.m4 will add one of these switches to LD
  12158. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12159. libsuff= shlibsuff= libmagic=32-bit;;
  12160. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12161. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12162. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12163. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12164. *) libsuff= shlibsuff= libmagic=never-match;;
  12165. esac
  12166. ;;
  12167. esac
  12168. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12169. shlibpath_overrides_runpath=no
  12170. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12171. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12172. hardcode_into_libs=yes
  12173. ;;
  12174. # No shared lib support for Linux oldld, aout, or coff.
  12175. linux*oldld* | linux*aout* | linux*coff*)
  12176. dynamic_linker=no
  12177. ;;
  12178. # This must be Linux ELF.
  12179. # uclinux* changes (here and below) have been submitted to the libtool
  12180. # project, but have not yet been accepted: they are GCC-local changes
  12181. # for the time being. (See
  12182. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  12183. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  12184. version_type=linux
  12185. need_lib_prefix=no
  12186. need_version=no
  12187. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12188. soname_spec='${libname}${release}${shared_ext}$major'
  12189. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12190. shlibpath_var=LD_LIBRARY_PATH
  12191. shlibpath_overrides_runpath=no
  12192. # Some binutils ld are patched to set DT_RUNPATH
  12193. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12194. $as_echo_n "(cached) " >&6
  12195. else
  12196. lt_cv_shlibpath_overrides_runpath=no
  12197. save_LDFLAGS=$LDFLAGS
  12198. save_libdir=$libdir
  12199. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12200. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12202. /* end confdefs.h. */
  12203. int
  12204. main ()
  12205. {
  12206. ;
  12207. return 0;
  12208. }
  12209. _ACEOF
  12210. if ac_fn_cxx_try_link "$LINENO"; then :
  12211. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12212. lt_cv_shlibpath_overrides_runpath=yes
  12213. fi
  12214. fi
  12215. rm -f core conftest.err conftest.$ac_objext \
  12216. conftest$ac_exeext conftest.$ac_ext
  12217. LDFLAGS=$save_LDFLAGS
  12218. libdir=$save_libdir
  12219. fi
  12220. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12221. # This implies no fast_install, which is unacceptable.
  12222. # Some rework will be needed to allow for fast_install
  12223. # before this can be enabled.
  12224. hardcode_into_libs=yes
  12225. # Append ld.so.conf contents to the search path
  12226. if test -f /etc/ld.so.conf; then
  12227. 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' ' '`
  12228. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12229. fi
  12230. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12231. # powerpc, because MkLinux only supported shared libraries with the
  12232. # GNU dynamic linker. Since this was broken with cross compilers,
  12233. # most powerpc-linux boxes support dynamic linking these days and
  12234. # people can always --disable-shared, the test was removed, and we
  12235. # assume the GNU/Linux dynamic linker is in use.
  12236. dynamic_linker='GNU/Linux ld.so'
  12237. ;;
  12238. netbsd*)
  12239. version_type=sunos
  12240. need_lib_prefix=no
  12241. need_version=no
  12242. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12244. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12245. dynamic_linker='NetBSD (a.out) ld.so'
  12246. else
  12247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12248. soname_spec='${libname}${release}${shared_ext}$major'
  12249. dynamic_linker='NetBSD ld.elf_so'
  12250. fi
  12251. shlibpath_var=LD_LIBRARY_PATH
  12252. shlibpath_overrides_runpath=yes
  12253. hardcode_into_libs=yes
  12254. ;;
  12255. newsos6)
  12256. version_type=linux
  12257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12258. shlibpath_var=LD_LIBRARY_PATH
  12259. shlibpath_overrides_runpath=yes
  12260. ;;
  12261. *nto* | *qnx*)
  12262. version_type=qnx
  12263. need_lib_prefix=no
  12264. need_version=no
  12265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12266. soname_spec='${libname}${release}${shared_ext}$major'
  12267. shlibpath_var=LD_LIBRARY_PATH
  12268. shlibpath_overrides_runpath=no
  12269. hardcode_into_libs=yes
  12270. dynamic_linker='ldqnx.so'
  12271. ;;
  12272. openbsd*)
  12273. version_type=sunos
  12274. sys_lib_dlsearch_path_spec="/usr/lib"
  12275. need_lib_prefix=no
  12276. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12277. case $host_os in
  12278. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12279. *) need_version=no ;;
  12280. esac
  12281. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12282. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12283. shlibpath_var=LD_LIBRARY_PATH
  12284. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12285. case $host_os in
  12286. openbsd2.[89] | openbsd2.[89].*)
  12287. shlibpath_overrides_runpath=no
  12288. ;;
  12289. *)
  12290. shlibpath_overrides_runpath=yes
  12291. ;;
  12292. esac
  12293. else
  12294. shlibpath_overrides_runpath=yes
  12295. fi
  12296. ;;
  12297. os2*)
  12298. libname_spec='$name'
  12299. shrext_cmds=".dll"
  12300. need_lib_prefix=no
  12301. library_names_spec='$libname${shared_ext} $libname.a'
  12302. dynamic_linker='OS/2 ld.exe'
  12303. shlibpath_var=LIBPATH
  12304. ;;
  12305. osf3* | osf4* | osf5*)
  12306. version_type=osf
  12307. need_lib_prefix=no
  12308. need_version=no
  12309. soname_spec='${libname}${release}${shared_ext}$major'
  12310. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12311. shlibpath_var=LD_LIBRARY_PATH
  12312. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12313. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12314. ;;
  12315. rdos*)
  12316. dynamic_linker=no
  12317. ;;
  12318. solaris*)
  12319. version_type=linux
  12320. need_lib_prefix=no
  12321. need_version=no
  12322. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12323. soname_spec='${libname}${release}${shared_ext}$major'
  12324. shlibpath_var=LD_LIBRARY_PATH
  12325. shlibpath_overrides_runpath=yes
  12326. hardcode_into_libs=yes
  12327. # ldd complains unless libraries are executable
  12328. postinstall_cmds='chmod +x $lib'
  12329. ;;
  12330. sunos4*)
  12331. version_type=sunos
  12332. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12333. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12334. shlibpath_var=LD_LIBRARY_PATH
  12335. shlibpath_overrides_runpath=yes
  12336. if test "$with_gnu_ld" = yes; then
  12337. need_lib_prefix=no
  12338. fi
  12339. need_version=yes
  12340. ;;
  12341. sysv4 | sysv4.3*)
  12342. version_type=linux
  12343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12344. soname_spec='${libname}${release}${shared_ext}$major'
  12345. shlibpath_var=LD_LIBRARY_PATH
  12346. case $host_vendor in
  12347. sni)
  12348. shlibpath_overrides_runpath=no
  12349. need_lib_prefix=no
  12350. runpath_var=LD_RUN_PATH
  12351. ;;
  12352. siemens)
  12353. need_lib_prefix=no
  12354. ;;
  12355. motorola)
  12356. need_lib_prefix=no
  12357. need_version=no
  12358. shlibpath_overrides_runpath=no
  12359. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12360. ;;
  12361. esac
  12362. ;;
  12363. sysv4*MP*)
  12364. if test -d /usr/nec ;then
  12365. version_type=linux
  12366. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12367. soname_spec='$libname${shared_ext}.$major'
  12368. shlibpath_var=LD_LIBRARY_PATH
  12369. fi
  12370. ;;
  12371. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12372. version_type=freebsd-elf
  12373. need_lib_prefix=no
  12374. need_version=no
  12375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12376. soname_spec='${libname}${release}${shared_ext}$major'
  12377. shlibpath_var=LD_LIBRARY_PATH
  12378. shlibpath_overrides_runpath=yes
  12379. hardcode_into_libs=yes
  12380. if test "$with_gnu_ld" = yes; then
  12381. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12382. else
  12383. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12384. case $host_os in
  12385. sco3.2v5*)
  12386. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12387. ;;
  12388. esac
  12389. fi
  12390. sys_lib_dlsearch_path_spec='/usr/lib'
  12391. ;;
  12392. tpf*)
  12393. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12394. version_type=linux
  12395. need_lib_prefix=no
  12396. need_version=no
  12397. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12398. shlibpath_var=LD_LIBRARY_PATH
  12399. shlibpath_overrides_runpath=no
  12400. hardcode_into_libs=yes
  12401. ;;
  12402. uts4*)
  12403. version_type=linux
  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. shlibpath_var=LD_LIBRARY_PATH
  12407. ;;
  12408. *)
  12409. dynamic_linker=no
  12410. ;;
  12411. esac
  12412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12413. $as_echo "$dynamic_linker" >&6; }
  12414. test "$dynamic_linker" = no && can_build_shared=no
  12415. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12416. if test "$GCC" = yes; then
  12417. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12418. fi
  12419. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12420. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12421. fi
  12422. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12423. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12424. fi
  12425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12426. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12427. hardcode_action_CXX=
  12428. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12429. test -n "$runpath_var_CXX" ||
  12430. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12431. # We can hardcode non-existent directories.
  12432. if test "$hardcode_direct_CXX" != no &&
  12433. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12434. # have to relink, otherwise we might link with an installed library
  12435. # when we should be linking with a yet-to-be-installed one
  12436. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12437. test "$hardcode_minus_L_CXX" != no; then
  12438. # Linking always hardcodes the temporary library directory.
  12439. hardcode_action_CXX=relink
  12440. else
  12441. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12442. hardcode_action_CXX=immediate
  12443. fi
  12444. else
  12445. # We cannot hardcode anything, or else we can only hardcode existing
  12446. # directories.
  12447. hardcode_action_CXX=unsupported
  12448. fi
  12449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12450. $as_echo "$hardcode_action_CXX" >&6; }
  12451. if test "$hardcode_action_CXX" = relink ||
  12452. test "$inherit_rpath_CXX" = yes; then
  12453. # Fast installation is not supported
  12454. enable_fast_install=no
  12455. elif test "$shlibpath_overrides_runpath" = yes ||
  12456. test "$enable_shared" = no; then
  12457. # Fast installation is not necessary
  12458. enable_fast_install=needless
  12459. fi
  12460. fi # test -n "$compiler"
  12461. CC=$lt_save_CC
  12462. LDCXX=$LD
  12463. LD=$lt_save_LD
  12464. GCC=$lt_save_GCC
  12465. with_gnu_ld=$lt_save_with_gnu_ld
  12466. lt_cv_path_LDCXX=$lt_cv_path_LD
  12467. lt_cv_path_LD=$lt_save_path_LD
  12468. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12469. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12470. fi # test "$_lt_caught_CXX_error" != yes
  12471. ac_ext=c
  12472. ac_cpp='$CPP $CPPFLAGS'
  12473. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12474. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12475. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12476. visibility=
  12477. if test "$GXX" = yes; then
  12478. visibility=-fvisibility=hidden
  12479. fi
  12480. # Check whether --enable-cet was given.
  12481. if test "${enable_cet+set}" = set; then :
  12482. enableval=$enable_cet;
  12483. case "$enableval" in
  12484. yes|no|auto) ;;
  12485. *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
  12486. esac
  12487. else
  12488. enable_cet=auto
  12489. fi
  12490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
  12491. $as_echo_n "checking for CET support... " >&6; }
  12492. case "$host" in
  12493. i[34567]86-*-linux* | x86_64-*-linux*)
  12494. may_have_cet=yes
  12495. cet_save_CFLAGS="$CFLAGS"
  12496. CFLAGS="$CFLAGS -fcf-protection"
  12497. case "$enable_cet" in
  12498. auto)
  12499. # Check if target supports multi-byte NOPs
  12500. # and if compiler and assembler support CET.
  12501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12502. /* end confdefs.h. */
  12503. int
  12504. main ()
  12505. {
  12506. #if !defined(__SSE2__)
  12507. #error target does not support multi-byte NOPs
  12508. #else
  12509. asm ("setssbsy");
  12510. #endif
  12511. ;
  12512. return 0;
  12513. }
  12514. _ACEOF
  12515. if ac_fn_c_try_compile "$LINENO"; then :
  12516. enable_cet=yes
  12517. else
  12518. enable_cet=no
  12519. fi
  12520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12521. ;;
  12522. yes)
  12523. # Check if compiler and assembler support CET.
  12524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12525. /* end confdefs.h. */
  12526. int
  12527. main ()
  12528. {
  12529. asm ("setssbsy");
  12530. ;
  12531. return 0;
  12532. }
  12533. _ACEOF
  12534. if ac_fn_c_try_compile "$LINENO"; then :
  12535. support_cet=yes
  12536. else
  12537. support_cet=no
  12538. fi
  12539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12540. if test $support_cet = "no"; then
  12541. if test x$enable_bootstrap != xno \
  12542. && test -z "${with_build_subdir}" \
  12543. && (test ! -f ../stage_current \
  12544. || test `cat ../stage_current` != "stage1"); then
  12545. # Require CET support only for the final GCC build.
  12546. as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
  12547. else
  12548. # Don't enable CET without CET support for non-bootstrap
  12549. # build, in stage1 nor for build support.
  12550. enable_cet=no
  12551. fi
  12552. fi
  12553. ;;
  12554. esac
  12555. CFLAGS="$cet_save_CFLAGS"
  12556. ;;
  12557. *)
  12558. may_have_cet=no
  12559. enable_cet=no
  12560. ;;
  12561. esac
  12562. cet_save_CFLAGS="$CFLAGS"
  12563. CFLAGS="$CFLAGS -fcf-protection=none"
  12564. cet_save_LDFLAGS="$LDFLAGS"
  12565. LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
  12566. if test x$may_have_cet = xyes; then
  12567. # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
  12568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12569. /* end confdefs.h. */
  12570. int
  12571. main ()
  12572. {
  12573. return 0;
  12574. ;
  12575. return 0;
  12576. }
  12577. _ACEOF
  12578. if ac_fn_c_try_link "$LINENO"; then :
  12579. may_have_cet=yes
  12580. else
  12581. may_have_cet=no
  12582. fi
  12583. rm -f core conftest.err conftest.$ac_objext \
  12584. conftest$ac_exeext conftest.$ac_ext
  12585. fi
  12586. if test x$may_have_cet = xyes; then
  12587. if test x$cross_compiling = xno; then
  12588. if test "$cross_compiling" = yes; then :
  12589. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12590. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12591. as_fn_error $? "cannot run test program while cross compiling
  12592. See \`config.log' for more details" "$LINENO" 5; }
  12593. else
  12594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12595. /* end confdefs.h. */
  12596. int
  12597. main ()
  12598. {
  12599. asm ("endbr32");
  12600. return 0;
  12601. }
  12602. _ACEOF
  12603. if ac_fn_c_try_run "$LINENO"; then :
  12604. have_multi_byte_nop=yes
  12605. else
  12606. have_multi_byte_nop=no
  12607. fi
  12608. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12609. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12610. fi
  12611. have_cet=no
  12612. if test x$have_multi_byte_nop = xyes; then
  12613. if test "$cross_compiling" = yes; then :
  12614. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12615. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12616. as_fn_error $? "cannot run test program while cross compiling
  12617. See \`config.log' for more details" "$LINENO" 5; }
  12618. else
  12619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12620. /* end confdefs.h. */
  12621. static void
  12622. foo (void)
  12623. {
  12624. }
  12625. static void
  12626. __attribute__ ((noinline, noclone))
  12627. xxx (void (*f) (void))
  12628. {
  12629. f ();
  12630. }
  12631. static void
  12632. __attribute__ ((noinline, noclone))
  12633. bar (void)
  12634. {
  12635. xxx (foo);
  12636. }
  12637. int
  12638. main ()
  12639. {
  12640. bar ();
  12641. return 0;
  12642. }
  12643. _ACEOF
  12644. if ac_fn_c_try_run "$LINENO"; then :
  12645. have_cet=no
  12646. else
  12647. have_cet=yes
  12648. fi
  12649. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12650. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12651. fi
  12652. fi
  12653. if test x$enable_cet = xno -a x$have_cet = xyes; then
  12654. as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
  12655. fi
  12656. fi
  12657. else
  12658. # Enable CET in cross compiler if possible so that it will run on both
  12659. # CET and non-CET hosts.
  12660. have_cet=yes
  12661. fi
  12662. if test x$enable_cet = xyes; then
  12663. CET_HOST_FLAGS="-fcf-protection"
  12664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12665. $as_echo "yes" >&6; }
  12666. else
  12667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12668. $as_echo "no" >&6; }
  12669. fi
  12670. CFLAGS="$cet_save_CFLAGS"
  12671. LDFLAGS="$cet_save_LDFLAGS"
  12672. ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
  12673. if test "x$ac_cv_have_decl_basename" = xyes; then :
  12674. ac_have_decl=1
  12675. else
  12676. ac_have_decl=0
  12677. fi
  12678. cat >>confdefs.h <<_ACEOF
  12679. #define HAVE_DECL_BASENAME $ac_have_decl
  12680. _ACEOF
  12681. get_gcc_base_ver="cat"
  12682. # Check whether --with-gcc-major-version-only was given.
  12683. if test "${with_gcc_major_version_only+set}" = set; then :
  12684. withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
  12685. get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
  12686. fi
  12687. fi
  12688. if test x$with_gcc_major_version_only = xyes ; then
  12689. gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/../gcc/BASE-VER`
  12690. else
  12691. gcc_version=`cat $srcdir/../gcc/BASE-VER`
  12692. fi
  12693. CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/../gcc/BASE-VER'
  12694. ac_ext=c
  12695. ac_cpp='$CPP $CPPFLAGS'
  12696. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12697. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12698. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12699. WARN_FLAGS=
  12700. save_CFLAGS="$CFLAGS"
  12701. for real_option in -W -Wall; do
  12702. # Do the check with the no- prefix removed since gcc silently
  12703. # accepts any -Wno-* option on purpose
  12704. case $real_option in
  12705. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  12706. *) option=$real_option ;;
  12707. esac
  12708. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  12709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  12710. $as_echo_n "checking whether $CC supports $option... " >&6; }
  12711. if eval \${$as_acx_Woption+:} false; then :
  12712. $as_echo_n "(cached) " >&6
  12713. else
  12714. CFLAGS="$option"
  12715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12716. /* end confdefs.h. */
  12717. int
  12718. main ()
  12719. {
  12720. ;
  12721. return 0;
  12722. }
  12723. _ACEOF
  12724. if ac_fn_c_try_compile "$LINENO"; then :
  12725. eval "$as_acx_Woption=yes"
  12726. else
  12727. eval "$as_acx_Woption=no"
  12728. fi
  12729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12730. fi
  12731. eval ac_res=\$$as_acx_Woption
  12732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12733. $as_echo "$ac_res" >&6; }
  12734. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  12735. WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
  12736. fi
  12737. done
  12738. CFLAGS="$save_CFLAGS"
  12739. ac_ext=c
  12740. ac_cpp='$CPP $CPPFLAGS'
  12741. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12742. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12743. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12744. ac_ext=c
  12745. ac_cpp='$CPP $CPPFLAGS'
  12746. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12747. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12748. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12749. WERROR=
  12750. # Check whether --enable-werror-always was given.
  12751. if test "${enable_werror_always+set}" = set; then :
  12752. enableval=$enable_werror_always;
  12753. else
  12754. enable_werror_always=no
  12755. fi
  12756. if test $enable_werror_always = yes; then :
  12757. WERROR="$WERROR${WERROR:+ }-Werror"
  12758. fi
  12759. ac_ext=c
  12760. ac_cpp='$CPP $CPPFLAGS'
  12761. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12762. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12763. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12764. libsuffix=
  12765. if test "$GXX" = yes; then
  12766. libsuffix=`$CXX -print-multi-os-directory`
  12767. fi
  12768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
  12769. $as_echo_n "checking for socket libraries... " >&6; }
  12770. if ${libcc1_cv_lib_sockets+:} false; then :
  12771. $as_echo_n "(cached) " >&6
  12772. else
  12773. libcc1_cv_lib_sockets=
  12774. libcc1_check_both=no
  12775. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  12776. if test "x$ac_cv_func_connect" = xyes; then :
  12777. libcc1_check_socket=no
  12778. else
  12779. libcc1_check_socket=yes
  12780. fi
  12781. if test "$libcc1_check_socket" = "yes"; then
  12782. unset ac_cv_func_connect
  12783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  12784. $as_echo_n "checking for main in -lsocket... " >&6; }
  12785. if ${ac_cv_lib_socket_main+:} false; then :
  12786. $as_echo_n "(cached) " >&6
  12787. else
  12788. ac_check_lib_save_LIBS=$LIBS
  12789. LIBS="-lsocket $LIBS"
  12790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12791. /* end confdefs.h. */
  12792. int
  12793. main ()
  12794. {
  12795. return main ();
  12796. ;
  12797. return 0;
  12798. }
  12799. _ACEOF
  12800. if ac_fn_c_try_link "$LINENO"; then :
  12801. ac_cv_lib_socket_main=yes
  12802. else
  12803. ac_cv_lib_socket_main=no
  12804. fi
  12805. rm -f core conftest.err conftest.$ac_objext \
  12806. conftest$ac_exeext conftest.$ac_ext
  12807. LIBS=$ac_check_lib_save_LIBS
  12808. fi
  12809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  12810. $as_echo "$ac_cv_lib_socket_main" >&6; }
  12811. if test "x$ac_cv_lib_socket_main" = xyes; then :
  12812. libcc1_cv_lib_sockets="-lsocket"
  12813. else
  12814. libcc1_check_both=yes
  12815. fi
  12816. fi
  12817. if test "$libcc1_check_both" = "yes"; then
  12818. libcc1_old_libs=$LIBS
  12819. LIBS="$LIBS -lsocket -lnsl"
  12820. unset ac_cv_func_accept
  12821. ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
  12822. if test "x$ac_cv_func_accept" = xyes; then :
  12823. libcc1_check_nsl=no
  12824. libcc1_cv_lib_sockets="-lsocket -lnsl"
  12825. fi
  12826. unset ac_cv_func_accept
  12827. LIBS=$libcc1_old_libs
  12828. fi
  12829. unset ac_cv_func_gethostbyname
  12830. libcc1_old_libs="$LIBS"
  12831. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  12832. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  12833. else
  12834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  12835. $as_echo_n "checking for main in -lnsl... " >&6; }
  12836. if ${ac_cv_lib_nsl_main+:} false; then :
  12837. $as_echo_n "(cached) " >&6
  12838. else
  12839. ac_check_lib_save_LIBS=$LIBS
  12840. LIBS="-lnsl $LIBS"
  12841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12842. /* end confdefs.h. */
  12843. int
  12844. main ()
  12845. {
  12846. return main ();
  12847. ;
  12848. return 0;
  12849. }
  12850. _ACEOF
  12851. if ac_fn_c_try_link "$LINENO"; then :
  12852. ac_cv_lib_nsl_main=yes
  12853. else
  12854. ac_cv_lib_nsl_main=no
  12855. fi
  12856. rm -f core conftest.err conftest.$ac_objext \
  12857. conftest$ac_exeext conftest.$ac_ext
  12858. LIBS=$ac_check_lib_save_LIBS
  12859. fi
  12860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  12861. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  12862. if test "x$ac_cv_lib_nsl_main" = xyes; then :
  12863. libcc1_cv_lib_sockets="$libcc1_cv_lib_sockets -lnsl"
  12864. fi
  12865. fi
  12866. unset ac_cv_func_gethostbyname
  12867. LIBS=$libcc1_old_libs
  12868. fi
  12869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcc1_cv_lib_sockets" >&5
  12870. $as_echo "$libcc1_cv_lib_sockets" >&6; }
  12871. LIBS="$LIBS $libcc1_cv_lib_sockets"
  12872. case "$host" in
  12873. *-*-darwin*) darwin_dynamic_lookup=yes ;;
  12874. *) darwin_dynamic_lookup=no ;;
  12875. esac
  12876. if test $darwin_dynamic_lookup = yes; then
  12877. DARWIN_DYNAMIC_LOOKUP_TRUE=
  12878. DARWIN_DYNAMIC_LOOKUP_FALSE='#'
  12879. else
  12880. DARWIN_DYNAMIC_LOOKUP_TRUE='#'
  12881. DARWIN_DYNAMIC_LOOKUP_FALSE=
  12882. fi
  12883. # If any of these functions are missing, simply don't bother building
  12884. # this plugin.
  12885. # Check for plugin support
  12886. # Check whether --enable-plugin was given.
  12887. if test "${enable_plugin+set}" = set; then :
  12888. enableval=$enable_plugin; enable_plugin=$enableval
  12889. else
  12890. enable_plugin=yes; default_plugin=yes
  12891. fi
  12892. pluginlibs=
  12893. plugin_check=yes
  12894. case "${host}" in
  12895. *-*-mingw*)
  12896. # Since plugin support under MinGW is not as straightforward as on
  12897. # other platforms (e.g., we have to link import library, etc), we
  12898. # only enable it if explicitly requested.
  12899. if test x"$default_plugin" = x"yes"; then
  12900. enable_plugin=no
  12901. elif test x"$enable_plugin" = x"yes"; then
  12902. # Use make's target variable to derive import library name.
  12903. pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
  12904. plugin_check=no
  12905. fi
  12906. ;;
  12907. *-*-darwin*)
  12908. if test x$build = x$host; then
  12909. export_sym_check="nm${exeext} -g"
  12910. elif test x$host = x$target; then
  12911. export_sym_check="$gcc_cv_nm -g"
  12912. else
  12913. export_sym_check=
  12914. fi
  12915. ;;
  12916. *)
  12917. if test x$build = x$host; then
  12918. export_sym_check="objdump${exeext} -T"
  12919. elif test x$host = x$target; then
  12920. export_sym_check="$gcc_cv_objdump -T"
  12921. else
  12922. export_sym_check=
  12923. fi
  12924. ;;
  12925. esac
  12926. if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
  12927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
  12928. $as_echo_n "checking for exported symbols... " >&6; }
  12929. if test "x$export_sym_check" != x; then
  12930. echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
  12931. ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
  12932. if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
  12933. : # No need to use a flag
  12934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12935. $as_echo "yes" >&6; }
  12936. else
  12937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12938. $as_echo "yes" >&6; }
  12939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
  12940. $as_echo_n "checking for -rdynamic... " >&6; }
  12941. ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
  12942. if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
  12943. plugin_rdynamic=yes
  12944. pluginlibs="-rdynamic"
  12945. else
  12946. plugin_rdynamic=no
  12947. enable_plugin=no
  12948. fi
  12949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
  12950. $as_echo "$plugin_rdynamic" >&6; }
  12951. fi
  12952. else
  12953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
  12954. $as_echo "unable to check" >&6; }
  12955. fi
  12956. # Check -ldl
  12957. saved_LIBS="$LIBS"
  12958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  12959. $as_echo_n "checking for library containing dlopen... " >&6; }
  12960. if ${ac_cv_search_dlopen+:} false; then :
  12961. $as_echo_n "(cached) " >&6
  12962. else
  12963. ac_func_search_save_LIBS=$LIBS
  12964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12965. /* end confdefs.h. */
  12966. /* Override any GCC internal prototype to avoid an error.
  12967. Use char because int might match the return type of a GCC
  12968. builtin and then its argument prototype would still apply. */
  12969. #ifdef __cplusplus
  12970. extern "C"
  12971. #endif
  12972. char dlopen ();
  12973. int
  12974. main ()
  12975. {
  12976. return dlopen ();
  12977. ;
  12978. return 0;
  12979. }
  12980. _ACEOF
  12981. for ac_lib in '' dl; do
  12982. if test -z "$ac_lib"; then
  12983. ac_res="none required"
  12984. else
  12985. ac_res=-l$ac_lib
  12986. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12987. fi
  12988. if ac_fn_c_try_link "$LINENO"; then :
  12989. ac_cv_search_dlopen=$ac_res
  12990. fi
  12991. rm -f core conftest.err conftest.$ac_objext \
  12992. conftest$ac_exeext
  12993. if ${ac_cv_search_dlopen+:} false; then :
  12994. break
  12995. fi
  12996. done
  12997. if ${ac_cv_search_dlopen+:} false; then :
  12998. else
  12999. ac_cv_search_dlopen=no
  13000. fi
  13001. rm conftest.$ac_ext
  13002. LIBS=$ac_func_search_save_LIBS
  13003. fi
  13004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  13005. $as_echo "$ac_cv_search_dlopen" >&6; }
  13006. ac_res=$ac_cv_search_dlopen
  13007. if test "$ac_res" != no; then :
  13008. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13009. fi
  13010. if test x"$ac_cv_search_dlopen" = x"-ldl"; then
  13011. pluginlibs="$pluginlibs -ldl"
  13012. fi
  13013. LIBS="$saved_LIBS"
  13014. # Check that we can build shared objects with -fPIC -shared
  13015. saved_LDFLAGS="$LDFLAGS"
  13016. saved_CFLAGS="$CFLAGS"
  13017. saved_CXXFLAGS="$CXXFLAGS"
  13018. case "${host}" in
  13019. *-*-darwin*)
  13020. CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
  13021. CFLAGS="$CFLAGS -fPIC"
  13022. CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
  13023. CXXFLAGS="$CXXFLAGS -fPIC"
  13024. LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
  13025. ;;
  13026. *)
  13027. CFLAGS="$CFLAGS -fPIC"
  13028. CXXFLAGS="$CXXFLAGS -fPIC"
  13029. LDFLAGS="$LDFLAGS -fPIC -shared"
  13030. ;;
  13031. esac
  13032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
  13033. $as_echo_n "checking for -fPIC -shared... " >&6; }
  13034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13035. /* end confdefs.h. */
  13036. extern int X;
  13037. int
  13038. main ()
  13039. {
  13040. return X == 0;
  13041. ;
  13042. return 0;
  13043. }
  13044. _ACEOF
  13045. if ac_fn_c_try_link "$LINENO"; then :
  13046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13047. $as_echo "yes" >&6; }; have_pic_shared=yes
  13048. else
  13049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13050. $as_echo "no" >&6; }; have_pic_shared=no
  13051. fi
  13052. rm -f core conftest.err conftest.$ac_objext \
  13053. conftest$ac_exeext conftest.$ac_ext
  13054. if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
  13055. pluginlibs=
  13056. enable_plugin=no
  13057. fi
  13058. LDFLAGS="$saved_LDFLAGS"
  13059. CFLAGS="$saved_CFLAGS"
  13060. CXXFLAGS="$saved_CXXFLAGS"
  13061. # If plugin support had been requested but not available, fail.
  13062. if test x"$enable_plugin" = x"no" ; then
  13063. if test x"$default_plugin" != x"yes"; then
  13064. as_fn_error $? "
  13065. Building GCC with plugin support requires a host that supports
  13066. -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
  13067. fi
  13068. fi
  13069. fi
  13070. ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
  13071. if test "x$ac_cv_func_socketpair" = xyes; then :
  13072. else
  13073. enable_plugin=no
  13074. fi
  13075. ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
  13076. if test "x$ac_cv_func_select" = xyes; then :
  13077. else
  13078. enable_plugin=no
  13079. fi
  13080. ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
  13081. if test "x$ac_cv_func_fork" = xyes; then :
  13082. else
  13083. enable_plugin=no
  13084. fi
  13085. if test $enable_plugin = yes; then
  13086. ENABLE_PLUGIN_TRUE=
  13087. ENABLE_PLUGIN_FALSE='#'
  13088. else
  13089. ENABLE_PLUGIN_TRUE='#'
  13090. ENABLE_PLUGIN_FALSE=
  13091. fi
  13092. ac_config_files="$ac_config_files Makefile"
  13093. cat >confcache <<\_ACEOF
  13094. # This file is a shell script that caches the results of configure
  13095. # tests run on this system so they can be shared between configure
  13096. # scripts and configure runs, see configure's option --config-cache.
  13097. # It is not useful on other systems. If it contains results you don't
  13098. # want to keep, you may remove or edit it.
  13099. #
  13100. # config.status only pays attention to the cache file if you give it
  13101. # the --recheck option to rerun configure.
  13102. #
  13103. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13104. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13105. # following values.
  13106. _ACEOF
  13107. # The following way of writing the cache mishandles newlines in values,
  13108. # but we know of no workaround that is simple, portable, and efficient.
  13109. # So, we kill variables containing newlines.
  13110. # Ultrix sh set writes to stderr and can't be redirected directly,
  13111. # and sets the high bit in the cache file unless we assign to the vars.
  13112. (
  13113. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13114. eval ac_val=\$$ac_var
  13115. case $ac_val in #(
  13116. *${as_nl}*)
  13117. case $ac_var in #(
  13118. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13119. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13120. esac
  13121. case $ac_var in #(
  13122. _ | IFS | as_nl) ;; #(
  13123. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13124. *) { eval $ac_var=; unset $ac_var;} ;;
  13125. esac ;;
  13126. esac
  13127. done
  13128. (set) 2>&1 |
  13129. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13130. *${as_nl}ac_space=\ *)
  13131. # `set' does not quote correctly, so add quotes: double-quote
  13132. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13133. sed -n \
  13134. "s/'/'\\\\''/g;
  13135. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13136. ;; #(
  13137. *)
  13138. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13139. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13140. ;;
  13141. esac |
  13142. sort
  13143. ) |
  13144. sed '
  13145. /^ac_cv_env_/b end
  13146. t clear
  13147. :clear
  13148. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13149. t end
  13150. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13151. :end' >>confcache
  13152. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13153. if test -w "$cache_file"; then
  13154. if test "x$cache_file" != "x/dev/null"; then
  13155. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13156. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13157. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13158. cat confcache >"$cache_file"
  13159. else
  13160. case $cache_file in #(
  13161. */* | ?:*)
  13162. mv -f confcache "$cache_file"$$ &&
  13163. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13164. *)
  13165. mv -f confcache "$cache_file" ;;
  13166. esac
  13167. fi
  13168. fi
  13169. else
  13170. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13171. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13172. fi
  13173. fi
  13174. rm -f confcache
  13175. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13176. # Let make expand exec_prefix.
  13177. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13178. DEFS=-DHAVE_CONFIG_H
  13179. ac_libobjs=
  13180. ac_ltlibobjs=
  13181. U=
  13182. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13183. # 1. Remove the extension, and $U if already installed.
  13184. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13185. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13186. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13187. # will be set to the directory where LIBOBJS objects are built.
  13188. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13189. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13190. done
  13191. LIBOBJS=$ac_libobjs
  13192. LTLIBOBJS=$ac_ltlibobjs
  13193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  13194. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  13195. if test -n "$am_sleep_pid"; then
  13196. # Hide warnings about reused PIDs.
  13197. wait $am_sleep_pid 2>/dev/null
  13198. fi
  13199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  13200. $as_echo "done" >&6; }
  13201. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13202. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13203. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13204. fi
  13205. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13206. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13207. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13208. fi
  13209. if test -n "$EXEEXT"; then
  13210. am__EXEEXT_TRUE=
  13211. am__EXEEXT_FALSE='#'
  13212. else
  13213. am__EXEEXT_TRUE='#'
  13214. am__EXEEXT_FALSE=
  13215. fi
  13216. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  13217. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  13218. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13219. fi
  13220. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13221. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  13222. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13223. fi
  13224. if test -z "${DARWIN_DYNAMIC_LOOKUP_TRUE}" && test -z "${DARWIN_DYNAMIC_LOOKUP_FALSE}"; then
  13225. as_fn_error $? "conditional \"DARWIN_DYNAMIC_LOOKUP\" was never defined.
  13226. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13227. fi
  13228. if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
  13229. as_fn_error $? "conditional \"ENABLE_PLUGIN\" was never defined.
  13230. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13231. fi
  13232. : "${CONFIG_STATUS=./config.status}"
  13233. ac_write_fail=0
  13234. ac_clean_files_save=$ac_clean_files
  13235. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13236. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13237. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13238. as_write_fail=0
  13239. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13240. #! $SHELL
  13241. # Generated by $as_me.
  13242. # Run this file to recreate the current configuration.
  13243. # Compiler output produced by configure, useful for debugging
  13244. # configure, is in config.log if it exists.
  13245. debug=false
  13246. ac_cs_recheck=false
  13247. ac_cs_silent=false
  13248. SHELL=\${CONFIG_SHELL-$SHELL}
  13249. export SHELL
  13250. _ASEOF
  13251. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13252. ## -------------------- ##
  13253. ## M4sh Initialization. ##
  13254. ## -------------------- ##
  13255. # Be more Bourne compatible
  13256. DUALCASE=1; export DUALCASE # for MKS sh
  13257. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13258. emulate sh
  13259. NULLCMD=:
  13260. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13261. # is contrary to our usage. Disable this feature.
  13262. alias -g '${1+"$@"}'='"$@"'
  13263. setopt NO_GLOB_SUBST
  13264. else
  13265. case `(set -o) 2>/dev/null` in #(
  13266. *posix*) :
  13267. set -o posix ;; #(
  13268. *) :
  13269. ;;
  13270. esac
  13271. fi
  13272. as_nl='
  13273. '
  13274. export as_nl
  13275. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13276. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13277. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13278. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13279. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13280. # but without wasting forks for bash or zsh.
  13281. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13282. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13283. as_echo='print -r --'
  13284. as_echo_n='print -rn --'
  13285. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13286. as_echo='printf %s\n'
  13287. as_echo_n='printf %s'
  13288. else
  13289. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13290. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13291. as_echo_n='/usr/ucb/echo -n'
  13292. else
  13293. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13294. as_echo_n_body='eval
  13295. arg=$1;
  13296. case $arg in #(
  13297. *"$as_nl"*)
  13298. expr "X$arg" : "X\\(.*\\)$as_nl";
  13299. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13300. esac;
  13301. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13302. '
  13303. export as_echo_n_body
  13304. as_echo_n='sh -c $as_echo_n_body as_echo'
  13305. fi
  13306. export as_echo_body
  13307. as_echo='sh -c $as_echo_body as_echo'
  13308. fi
  13309. # The user is always right.
  13310. if test "${PATH_SEPARATOR+set}" != set; then
  13311. PATH_SEPARATOR=:
  13312. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13313. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13314. PATH_SEPARATOR=';'
  13315. }
  13316. fi
  13317. # IFS
  13318. # We need space, tab and new line, in precisely that order. Quoting is
  13319. # there to prevent editors from complaining about space-tab.
  13320. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13321. # splitting by setting IFS to empty value.)
  13322. IFS=" "" $as_nl"
  13323. # Find who we are. Look in the path if we contain no directory separator.
  13324. as_myself=
  13325. case $0 in #((
  13326. *[\\/]* ) as_myself=$0 ;;
  13327. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13328. for as_dir in $PATH
  13329. do
  13330. IFS=$as_save_IFS
  13331. test -z "$as_dir" && as_dir=.
  13332. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13333. done
  13334. IFS=$as_save_IFS
  13335. ;;
  13336. esac
  13337. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13338. # in which case we are not to be found in the path.
  13339. if test "x$as_myself" = x; then
  13340. as_myself=$0
  13341. fi
  13342. if test ! -f "$as_myself"; then
  13343. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13344. exit 1
  13345. fi
  13346. # Unset variables that we do not need and which cause bugs (e.g. in
  13347. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13348. # suppresses any "Segmentation fault" message there. '((' could
  13349. # trigger a bug in pdksh 5.2.14.
  13350. for as_var in BASH_ENV ENV MAIL MAILPATH
  13351. do eval test x\${$as_var+set} = xset \
  13352. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13353. done
  13354. PS1='$ '
  13355. PS2='> '
  13356. PS4='+ '
  13357. # NLS nuisances.
  13358. LC_ALL=C
  13359. export LC_ALL
  13360. LANGUAGE=C
  13361. export LANGUAGE
  13362. # CDPATH.
  13363. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13364. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13365. # ----------------------------------------
  13366. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13367. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13368. # script with STATUS, using 1 if that was 0.
  13369. as_fn_error ()
  13370. {
  13371. as_status=$1; test $as_status -eq 0 && as_status=1
  13372. if test "$4"; then
  13373. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13374. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13375. fi
  13376. $as_echo "$as_me: error: $2" >&2
  13377. as_fn_exit $as_status
  13378. } # as_fn_error
  13379. # as_fn_set_status STATUS
  13380. # -----------------------
  13381. # Set $? to STATUS, without forking.
  13382. as_fn_set_status ()
  13383. {
  13384. return $1
  13385. } # as_fn_set_status
  13386. # as_fn_exit STATUS
  13387. # -----------------
  13388. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13389. as_fn_exit ()
  13390. {
  13391. set +e
  13392. as_fn_set_status $1
  13393. exit $1
  13394. } # as_fn_exit
  13395. # as_fn_unset VAR
  13396. # ---------------
  13397. # Portably unset VAR.
  13398. as_fn_unset ()
  13399. {
  13400. { eval $1=; unset $1;}
  13401. }
  13402. as_unset=as_fn_unset
  13403. # as_fn_append VAR VALUE
  13404. # ----------------------
  13405. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13406. # advantage of any shell optimizations that allow amortized linear growth over
  13407. # repeated appends, instead of the typical quadratic growth present in naive
  13408. # implementations.
  13409. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13410. eval 'as_fn_append ()
  13411. {
  13412. eval $1+=\$2
  13413. }'
  13414. else
  13415. as_fn_append ()
  13416. {
  13417. eval $1=\$$1\$2
  13418. }
  13419. fi # as_fn_append
  13420. # as_fn_arith ARG...
  13421. # ------------------
  13422. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13423. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13424. # must be portable across $(()) and expr.
  13425. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13426. eval 'as_fn_arith ()
  13427. {
  13428. as_val=$(( $* ))
  13429. }'
  13430. else
  13431. as_fn_arith ()
  13432. {
  13433. as_val=`expr "$@" || test $? -eq 1`
  13434. }
  13435. fi # as_fn_arith
  13436. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13437. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13438. as_expr=expr
  13439. else
  13440. as_expr=false
  13441. fi
  13442. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13443. as_basename=basename
  13444. else
  13445. as_basename=false
  13446. fi
  13447. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13448. as_dirname=dirname
  13449. else
  13450. as_dirname=false
  13451. fi
  13452. as_me=`$as_basename -- "$0" ||
  13453. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13454. X"$0" : 'X\(//\)$' \| \
  13455. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13456. $as_echo X/"$0" |
  13457. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13458. s//\1/
  13459. q
  13460. }
  13461. /^X\/\(\/\/\)$/{
  13462. s//\1/
  13463. q
  13464. }
  13465. /^X\/\(\/\).*/{
  13466. s//\1/
  13467. q
  13468. }
  13469. s/.*/./; q'`
  13470. # Avoid depending upon Character Ranges.
  13471. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13472. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13473. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13474. as_cr_digits='0123456789'
  13475. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13476. ECHO_C= ECHO_N= ECHO_T=
  13477. case `echo -n x` in #(((((
  13478. -n*)
  13479. case `echo 'xy\c'` in
  13480. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13481. xy) ECHO_C='\c';;
  13482. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13483. ECHO_T=' ';;
  13484. esac;;
  13485. *)
  13486. ECHO_N='-n';;
  13487. esac
  13488. rm -f conf$$ conf$$.exe conf$$.file
  13489. if test -d conf$$.dir; then
  13490. rm -f conf$$.dir/conf$$.file
  13491. else
  13492. rm -f conf$$.dir
  13493. mkdir conf$$.dir 2>/dev/null
  13494. fi
  13495. if (echo >conf$$.file) 2>/dev/null; then
  13496. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13497. as_ln_s='ln -s'
  13498. # ... but there are two gotchas:
  13499. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13500. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13501. # In both cases, we have to default to `cp -pR'.
  13502. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13503. as_ln_s='cp -pR'
  13504. elif ln conf$$.file conf$$ 2>/dev/null; then
  13505. as_ln_s=ln
  13506. else
  13507. as_ln_s='cp -pR'
  13508. fi
  13509. else
  13510. as_ln_s='cp -pR'
  13511. fi
  13512. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13513. rmdir conf$$.dir 2>/dev/null
  13514. # as_fn_mkdir_p
  13515. # -------------
  13516. # Create "$as_dir" as a directory, including parents if necessary.
  13517. as_fn_mkdir_p ()
  13518. {
  13519. case $as_dir in #(
  13520. -*) as_dir=./$as_dir;;
  13521. esac
  13522. test -d "$as_dir" || eval $as_mkdir_p || {
  13523. as_dirs=
  13524. while :; do
  13525. case $as_dir in #(
  13526. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13527. *) as_qdir=$as_dir;;
  13528. esac
  13529. as_dirs="'$as_qdir' $as_dirs"
  13530. as_dir=`$as_dirname -- "$as_dir" ||
  13531. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13532. X"$as_dir" : 'X\(//\)[^/]' \| \
  13533. X"$as_dir" : 'X\(//\)$' \| \
  13534. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13535. $as_echo X"$as_dir" |
  13536. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13537. s//\1/
  13538. q
  13539. }
  13540. /^X\(\/\/\)[^/].*/{
  13541. s//\1/
  13542. q
  13543. }
  13544. /^X\(\/\/\)$/{
  13545. s//\1/
  13546. q
  13547. }
  13548. /^X\(\/\).*/{
  13549. s//\1/
  13550. q
  13551. }
  13552. s/.*/./; q'`
  13553. test -d "$as_dir" && break
  13554. done
  13555. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13556. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13557. } # as_fn_mkdir_p
  13558. if mkdir -p . 2>/dev/null; then
  13559. as_mkdir_p='mkdir -p "$as_dir"'
  13560. else
  13561. test -d ./-p && rmdir ./-p
  13562. as_mkdir_p=false
  13563. fi
  13564. # as_fn_executable_p FILE
  13565. # -----------------------
  13566. # Test if FILE is an executable regular file.
  13567. as_fn_executable_p ()
  13568. {
  13569. test -f "$1" && test -x "$1"
  13570. } # as_fn_executable_p
  13571. as_test_x='test -x'
  13572. as_executable_p=as_fn_executable_p
  13573. # Sed expression to map a string onto a valid CPP name.
  13574. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13575. # Sed expression to map a string onto a valid variable name.
  13576. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13577. exec 6>&1
  13578. ## ----------------------------------- ##
  13579. ## Main body of $CONFIG_STATUS script. ##
  13580. ## ----------------------------------- ##
  13581. _ASEOF
  13582. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13583. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13584. # Save the log message, to keep $0 and so on meaningful, and to
  13585. # report actual input values of CONFIG_FILES etc. instead of their
  13586. # values after options handling.
  13587. ac_log="
  13588. This file was extended by libcc1 $as_me version-unused, which was
  13589. generated by GNU Autoconf 2.69. Invocation command line was
  13590. CONFIG_FILES = $CONFIG_FILES
  13591. CONFIG_HEADERS = $CONFIG_HEADERS
  13592. CONFIG_LINKS = $CONFIG_LINKS
  13593. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13594. $ $0 $@
  13595. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13596. "
  13597. _ACEOF
  13598. case $ac_config_files in *"
  13599. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13600. esac
  13601. case $ac_config_headers in *"
  13602. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13603. esac
  13604. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13605. # Files that config.status was made for.
  13606. config_files="$ac_config_files"
  13607. config_headers="$ac_config_headers"
  13608. config_commands="$ac_config_commands"
  13609. _ACEOF
  13610. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13611. ac_cs_usage="\
  13612. \`$as_me' instantiates files and other configuration actions
  13613. from templates according to the current configuration. Unless the files
  13614. and actions are specified as TAGs, all are instantiated by default.
  13615. Usage: $0 [OPTION]... [TAG]...
  13616. -h, --help print this help, then exit
  13617. -V, --version print version number and configuration settings, then exit
  13618. --config print configuration, then exit
  13619. -q, --quiet, --silent
  13620. do not print progress messages
  13621. -d, --debug don't remove temporary files
  13622. --recheck update $as_me by reconfiguring in the same conditions
  13623. --file=FILE[:TEMPLATE]
  13624. instantiate the configuration file FILE
  13625. --header=FILE[:TEMPLATE]
  13626. instantiate the configuration header FILE
  13627. Configuration files:
  13628. $config_files
  13629. Configuration headers:
  13630. $config_headers
  13631. Configuration commands:
  13632. $config_commands
  13633. Report bugs to the package provider."
  13634. _ACEOF
  13635. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13636. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13637. ac_cs_version="\\
  13638. libcc1 config.status version-unused
  13639. configured by $0, generated by GNU Autoconf 2.69,
  13640. with options \\"\$ac_cs_config\\"
  13641. Copyright (C) 2012 Free Software Foundation, Inc.
  13642. This config.status script is free software; the Free Software Foundation
  13643. gives unlimited permission to copy, distribute and modify it."
  13644. ac_pwd='$ac_pwd'
  13645. srcdir='$srcdir'
  13646. INSTALL='$INSTALL'
  13647. MKDIR_P='$MKDIR_P'
  13648. AWK='$AWK'
  13649. test -n "\$AWK" || AWK=awk
  13650. _ACEOF
  13651. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13652. # The default lists apply if the user does not specify any file.
  13653. ac_need_defaults=:
  13654. while test $# != 0
  13655. do
  13656. case $1 in
  13657. --*=?*)
  13658. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13659. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13660. ac_shift=:
  13661. ;;
  13662. --*=)
  13663. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13664. ac_optarg=
  13665. ac_shift=:
  13666. ;;
  13667. *)
  13668. ac_option=$1
  13669. ac_optarg=$2
  13670. ac_shift=shift
  13671. ;;
  13672. esac
  13673. case $ac_option in
  13674. # Handling of the options.
  13675. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13676. ac_cs_recheck=: ;;
  13677. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13678. $as_echo "$ac_cs_version"; exit ;;
  13679. --config | --confi | --conf | --con | --co | --c )
  13680. $as_echo "$ac_cs_config"; exit ;;
  13681. --debug | --debu | --deb | --de | --d | -d )
  13682. debug=: ;;
  13683. --file | --fil | --fi | --f )
  13684. $ac_shift
  13685. case $ac_optarg in
  13686. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13687. '') as_fn_error $? "missing file argument" ;;
  13688. esac
  13689. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13690. ac_need_defaults=false;;
  13691. --header | --heade | --head | --hea )
  13692. $ac_shift
  13693. case $ac_optarg in
  13694. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13695. esac
  13696. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13697. ac_need_defaults=false;;
  13698. --he | --h)
  13699. # Conflict between --help and --header
  13700. as_fn_error $? "ambiguous option: \`$1'
  13701. Try \`$0 --help' for more information.";;
  13702. --help | --hel | -h )
  13703. $as_echo "$ac_cs_usage"; exit ;;
  13704. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13705. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13706. ac_cs_silent=: ;;
  13707. # This is an error.
  13708. -*) as_fn_error $? "unrecognized option: \`$1'
  13709. Try \`$0 --help' for more information." ;;
  13710. *) as_fn_append ac_config_targets " $1"
  13711. ac_need_defaults=false ;;
  13712. esac
  13713. shift
  13714. done
  13715. ac_configure_extra_args=
  13716. if $ac_cs_silent; then
  13717. exec 6>/dev/null
  13718. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13719. fi
  13720. _ACEOF
  13721. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13722. if \$ac_cs_recheck; then
  13723. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13724. shift
  13725. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13726. CONFIG_SHELL='$SHELL'
  13727. export CONFIG_SHELL
  13728. exec "\$@"
  13729. fi
  13730. _ACEOF
  13731. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13732. exec 5>>config.log
  13733. {
  13734. echo
  13735. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13736. ## Running $as_me. ##
  13737. _ASBOX
  13738. $as_echo "$ac_log"
  13739. } >&5
  13740. _ACEOF
  13741. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13742. #
  13743. # INIT-COMMANDS
  13744. #
  13745. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13746. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13747. # if CDPATH is set.
  13748. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13749. sed_quote_subst='$sed_quote_subst'
  13750. double_quote_subst='$double_quote_subst'
  13751. delay_variable_subst='$delay_variable_subst'
  13752. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13753. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13754. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13755. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13756. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13757. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13758. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13759. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13760. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13761. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13762. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13763. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13764. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13765. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13766. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13767. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13768. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13769. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13770. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13771. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13772. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13773. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13774. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13775. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13776. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13777. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13778. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13779. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13780. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13781. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13782. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13783. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13784. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13785. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13786. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13787. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13788. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13789. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13790. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13791. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13792. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13793. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13794. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13795. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13796. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13797. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13798. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13799. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13800. 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"`'
  13801. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13802. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13803. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13804. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13805. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13806. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13807. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13808. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13809. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13810. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13811. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13812. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13813. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13814. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13815. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13816. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13817. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13818. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13819. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13820. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13821. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13822. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13823. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13824. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13825. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13826. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13827. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13828. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13829. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13830. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13831. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13832. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  13833. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13834. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13835. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13836. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13837. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13838. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13839. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13840. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13841. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  13842. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13843. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13844. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13845. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13846. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13847. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13848. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13849. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13850. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13851. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13852. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13853. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13854. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13855. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13856. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13857. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13858. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13859. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13860. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13861. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13862. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13863. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13864. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13865. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13866. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13867. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13868. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13869. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13870. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13871. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13872. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  13873. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  13874. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  13875. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  13876. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  13877. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  13878. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  13879. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13880. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13881. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13882. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  13883. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  13884. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13885. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  13886. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  13887. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  13888. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  13889. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  13890. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  13891. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13892. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13893. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  13894. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13895. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13896. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13897. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13898. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13899. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13900. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  13901. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13902. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13903. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13904. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  13905. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  13906. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  13907. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  13908. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  13909. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  13910. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  13911. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  13912. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  13913. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  13914. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  13915. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13916. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  13917. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  13918. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13919. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13920. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  13921. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  13922. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  13923. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  13924. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  13925. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  13926. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  13927. LTCC='$LTCC'
  13928. LTCFLAGS='$LTCFLAGS'
  13929. compiler='$compiler_DEFAULT'
  13930. # A function that is used when there is no print builtin or printf.
  13931. func_fallback_echo ()
  13932. {
  13933. eval 'cat <<_LTECHO_EOF
  13934. \$1
  13935. _LTECHO_EOF'
  13936. }
  13937. # Quote evaled strings.
  13938. for var in SHELL \
  13939. ECHO \
  13940. SED \
  13941. GREP \
  13942. EGREP \
  13943. FGREP \
  13944. LD \
  13945. NM \
  13946. LN_S \
  13947. lt_SP2NL \
  13948. lt_NL2SP \
  13949. reload_flag \
  13950. OBJDUMP \
  13951. deplibs_check_method \
  13952. file_magic_cmd \
  13953. AR \
  13954. AR_FLAGS \
  13955. STRIP \
  13956. RANLIB \
  13957. CC \
  13958. CFLAGS \
  13959. compiler \
  13960. lt_cv_sys_global_symbol_pipe \
  13961. lt_cv_sys_global_symbol_to_cdecl \
  13962. lt_cv_sys_global_symbol_to_c_name_address \
  13963. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13964. lt_prog_compiler_no_builtin_flag \
  13965. lt_prog_compiler_wl \
  13966. lt_prog_compiler_pic \
  13967. lt_prog_compiler_static \
  13968. lt_cv_prog_compiler_c_o \
  13969. need_locks \
  13970. DSYMUTIL \
  13971. NMEDIT \
  13972. LIPO \
  13973. OTOOL \
  13974. OTOOL64 \
  13975. shrext_cmds \
  13976. export_dynamic_flag_spec \
  13977. whole_archive_flag_spec \
  13978. compiler_needs_object \
  13979. with_gnu_ld \
  13980. allow_undefined_flag \
  13981. no_undefined_flag \
  13982. hardcode_libdir_flag_spec \
  13983. hardcode_libdir_flag_spec_ld \
  13984. hardcode_libdir_separator \
  13985. fix_srcfile_path \
  13986. exclude_expsyms \
  13987. include_expsyms \
  13988. file_list_spec \
  13989. variables_saved_for_relink \
  13990. libname_spec \
  13991. library_names_spec \
  13992. soname_spec \
  13993. install_override_mode \
  13994. finish_eval \
  13995. old_striplib \
  13996. striplib \
  13997. compiler_lib_search_dirs \
  13998. predep_objects \
  13999. postdep_objects \
  14000. predeps \
  14001. postdeps \
  14002. compiler_lib_search_path \
  14003. LD_CXX \
  14004. reload_flag_CXX \
  14005. compiler_CXX \
  14006. lt_prog_compiler_no_builtin_flag_CXX \
  14007. lt_prog_compiler_wl_CXX \
  14008. lt_prog_compiler_pic_CXX \
  14009. lt_prog_compiler_static_CXX \
  14010. lt_cv_prog_compiler_c_o_CXX \
  14011. export_dynamic_flag_spec_CXX \
  14012. whole_archive_flag_spec_CXX \
  14013. compiler_needs_object_CXX \
  14014. with_gnu_ld_CXX \
  14015. allow_undefined_flag_CXX \
  14016. no_undefined_flag_CXX \
  14017. hardcode_libdir_flag_spec_CXX \
  14018. hardcode_libdir_flag_spec_ld_CXX \
  14019. hardcode_libdir_separator_CXX \
  14020. fix_srcfile_path_CXX \
  14021. exclude_expsyms_CXX \
  14022. include_expsyms_CXX \
  14023. file_list_spec_CXX \
  14024. compiler_lib_search_dirs_CXX \
  14025. predep_objects_CXX \
  14026. postdep_objects_CXX \
  14027. predeps_CXX \
  14028. postdeps_CXX \
  14029. compiler_lib_search_path_CXX; do
  14030. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14031. *[\\\\\\\`\\"\\\$]*)
  14032. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14033. ;;
  14034. *)
  14035. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14036. ;;
  14037. esac
  14038. done
  14039. # Double-quote double-evaled strings.
  14040. for var in reload_cmds \
  14041. old_postinstall_cmds \
  14042. old_postuninstall_cmds \
  14043. old_archive_cmds \
  14044. extract_expsyms_cmds \
  14045. old_archive_from_new_cmds \
  14046. old_archive_from_expsyms_cmds \
  14047. archive_cmds \
  14048. archive_expsym_cmds \
  14049. module_cmds \
  14050. module_expsym_cmds \
  14051. export_symbols_cmds \
  14052. prelink_cmds \
  14053. postinstall_cmds \
  14054. postuninstall_cmds \
  14055. finish_cmds \
  14056. sys_lib_search_path_spec \
  14057. sys_lib_dlsearch_path_spec \
  14058. reload_cmds_CXX \
  14059. old_archive_cmds_CXX \
  14060. old_archive_from_new_cmds_CXX \
  14061. old_archive_from_expsyms_cmds_CXX \
  14062. archive_cmds_CXX \
  14063. archive_expsym_cmds_CXX \
  14064. module_cmds_CXX \
  14065. module_expsym_cmds_CXX \
  14066. export_symbols_cmds_CXX \
  14067. prelink_cmds_CXX; do
  14068. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14069. *[\\\\\\\`\\"\\\$]*)
  14070. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14071. ;;
  14072. *)
  14073. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14074. ;;
  14075. esac
  14076. done
  14077. ac_aux_dir='$ac_aux_dir'
  14078. xsi_shell='$xsi_shell'
  14079. lt_shell_append='$lt_shell_append'
  14080. # See if we are running on zsh, and set the options which allow our
  14081. # commands through without removal of \ escapes INIT.
  14082. if test -n "\${ZSH_VERSION+set}" ; then
  14083. setopt NO_GLOB_SUBST
  14084. fi
  14085. PACKAGE='$PACKAGE'
  14086. VERSION='$VERSION'
  14087. TIMESTAMP='$TIMESTAMP'
  14088. RM='$RM'
  14089. ofile='$ofile'
  14090. _ACEOF
  14091. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14092. # Handling of arguments.
  14093. for ac_config_target in $ac_config_targets
  14094. do
  14095. case $ac_config_target in
  14096. "cc1plugin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cc1plugin-config.h" ;;
  14097. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14098. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14099. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14100. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14101. esac
  14102. done
  14103. # If the user did not use the arguments to specify the items to instantiate,
  14104. # then the envvar interface is used. Set only those that are not.
  14105. # We use the long form for the default assignment because of an extremely
  14106. # bizarre bug on SunOS 4.1.3.
  14107. if $ac_need_defaults; then
  14108. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14109. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14110. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14111. fi
  14112. # Have a temporary directory for convenience. Make it in the build tree
  14113. # simply because there is no reason against having it here, and in addition,
  14114. # creating and moving files from /tmp can sometimes cause problems.
  14115. # Hook for its removal unless debugging.
  14116. # Note that there is a small window in which the directory will not be cleaned:
  14117. # after its creation but before its name has been assigned to `$tmp'.
  14118. $debug ||
  14119. {
  14120. tmp= ac_tmp=
  14121. trap 'exit_status=$?
  14122. : "${ac_tmp:=$tmp}"
  14123. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14124. ' 0
  14125. trap 'as_fn_exit 1' 1 2 13 15
  14126. }
  14127. # Create a (secure) tmp directory for tmp files.
  14128. {
  14129. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14130. test -d "$tmp"
  14131. } ||
  14132. {
  14133. tmp=./conf$$-$RANDOM
  14134. (umask 077 && mkdir "$tmp")
  14135. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14136. ac_tmp=$tmp
  14137. # Set up the scripts for CONFIG_FILES section.
  14138. # No need to generate them if there are no CONFIG_FILES.
  14139. # This happens for instance with `./config.status config.h'.
  14140. if test -n "$CONFIG_FILES"; then
  14141. ac_cr=`echo X | tr X '\015'`
  14142. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14143. # But we know of no other shell where ac_cr would be empty at this
  14144. # point, so we can use a bashism as a fallback.
  14145. if test "x$ac_cr" = x; then
  14146. eval ac_cr=\$\'\\r\'
  14147. fi
  14148. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14149. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14150. ac_cs_awk_cr='\\r'
  14151. else
  14152. ac_cs_awk_cr=$ac_cr
  14153. fi
  14154. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14155. _ACEOF
  14156. {
  14157. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14158. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14159. echo "_ACEOF"
  14160. } >conf$$subs.sh ||
  14161. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14162. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14163. ac_delim='%!_!# '
  14164. for ac_last_try in false false false false false :; do
  14165. . ./conf$$subs.sh ||
  14166. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14167. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14168. if test $ac_delim_n = $ac_delim_num; then
  14169. break
  14170. elif $ac_last_try; then
  14171. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14172. else
  14173. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14174. fi
  14175. done
  14176. rm -f conf$$subs.sh
  14177. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14178. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14179. _ACEOF
  14180. sed -n '
  14181. h
  14182. s/^/S["/; s/!.*/"]=/
  14183. p
  14184. g
  14185. s/^[^!]*!//
  14186. :repl
  14187. t repl
  14188. s/'"$ac_delim"'$//
  14189. t delim
  14190. :nl
  14191. h
  14192. s/\(.\{148\}\)..*/\1/
  14193. t more1
  14194. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14195. p
  14196. n
  14197. b repl
  14198. :more1
  14199. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14200. p
  14201. g
  14202. s/.\{148\}//
  14203. t nl
  14204. :delim
  14205. h
  14206. s/\(.\{148\}\)..*/\1/
  14207. t more2
  14208. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14209. p
  14210. b
  14211. :more2
  14212. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14213. p
  14214. g
  14215. s/.\{148\}//
  14216. t delim
  14217. ' <conf$$subs.awk | sed '
  14218. /^[^""]/{
  14219. N
  14220. s/\n//
  14221. }
  14222. ' >>$CONFIG_STATUS || ac_write_fail=1
  14223. rm -f conf$$subs.awk
  14224. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14225. _ACAWK
  14226. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14227. for (key in S) S_is_set[key] = 1
  14228. FS = ""
  14229. }
  14230. {
  14231. line = $ 0
  14232. nfields = split(line, field, "@")
  14233. substed = 0
  14234. len = length(field[1])
  14235. for (i = 2; i < nfields; i++) {
  14236. key = field[i]
  14237. keylen = length(key)
  14238. if (S_is_set[key]) {
  14239. value = S[key]
  14240. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14241. len += length(value) + length(field[++i])
  14242. substed = 1
  14243. } else
  14244. len += 1 + keylen
  14245. }
  14246. print line
  14247. }
  14248. _ACAWK
  14249. _ACEOF
  14250. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14251. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14252. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14253. else
  14254. cat
  14255. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14256. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14257. _ACEOF
  14258. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14259. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14260. # trailing colons and then remove the whole line if VPATH becomes empty
  14261. # (actually we leave an empty line to preserve line numbers).
  14262. if test "x$srcdir" = x.; then
  14263. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14264. h
  14265. s///
  14266. s/^/:/
  14267. s/[ ]*$/:/
  14268. s/:\$(srcdir):/:/g
  14269. s/:\${srcdir}:/:/g
  14270. s/:@srcdir@:/:/g
  14271. s/^:*//
  14272. s/:*$//
  14273. x
  14274. s/\(=[ ]*\).*/\1/
  14275. G
  14276. s/\n//
  14277. s/^[^=]*=[ ]*$//
  14278. }'
  14279. fi
  14280. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14281. fi # test -n "$CONFIG_FILES"
  14282. # Set up the scripts for CONFIG_HEADERS section.
  14283. # No need to generate them if there are no CONFIG_HEADERS.
  14284. # This happens for instance with `./config.status Makefile'.
  14285. if test -n "$CONFIG_HEADERS"; then
  14286. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14287. BEGIN {
  14288. _ACEOF
  14289. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14290. # here-document in config.status, that substitutes the proper values into
  14291. # config.h.in to produce config.h.
  14292. # Create a delimiter string that does not exist in confdefs.h, to ease
  14293. # handling of long lines.
  14294. ac_delim='%!_!# '
  14295. for ac_last_try in false false :; do
  14296. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14297. if test -z "$ac_tt"; then
  14298. break
  14299. elif $ac_last_try; then
  14300. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14301. else
  14302. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14303. fi
  14304. done
  14305. # For the awk script, D is an array of macro values keyed by name,
  14306. # likewise P contains macro parameters if any. Preserve backslash
  14307. # newline sequences.
  14308. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14309. sed -n '
  14310. s/.\{148\}/&'"$ac_delim"'/g
  14311. t rset
  14312. :rset
  14313. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14314. t def
  14315. d
  14316. :def
  14317. s/\\$//
  14318. t bsnl
  14319. s/["\\]/\\&/g
  14320. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14321. D["\1"]=" \3"/p
  14322. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14323. d
  14324. :bsnl
  14325. s/["\\]/\\&/g
  14326. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14327. D["\1"]=" \3\\\\\\n"\\/p
  14328. t cont
  14329. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14330. t cont
  14331. d
  14332. :cont
  14333. n
  14334. s/.\{148\}/&'"$ac_delim"'/g
  14335. t clear
  14336. :clear
  14337. s/\\$//
  14338. t bsnlc
  14339. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14340. d
  14341. :bsnlc
  14342. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14343. b cont
  14344. ' <confdefs.h | sed '
  14345. s/'"$ac_delim"'/"\\\
  14346. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14347. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14348. for (key in D) D_is_set[key] = 1
  14349. FS = ""
  14350. }
  14351. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14352. line = \$ 0
  14353. split(line, arg, " ")
  14354. if (arg[1] == "#") {
  14355. defundef = arg[2]
  14356. mac1 = arg[3]
  14357. } else {
  14358. defundef = substr(arg[1], 2)
  14359. mac1 = arg[2]
  14360. }
  14361. split(mac1, mac2, "(") #)
  14362. macro = mac2[1]
  14363. prefix = substr(line, 1, index(line, defundef) - 1)
  14364. if (D_is_set[macro]) {
  14365. # Preserve the white space surrounding the "#".
  14366. print prefix "define", macro P[macro] D[macro]
  14367. next
  14368. } else {
  14369. # Replace #undef with comments. This is necessary, for example,
  14370. # in the case of _POSIX_SOURCE, which is predefined and required
  14371. # on some systems where configure will not decide to define it.
  14372. if (defundef == "undef") {
  14373. print "/*", prefix defundef, macro, "*/"
  14374. next
  14375. }
  14376. }
  14377. }
  14378. { print }
  14379. _ACAWK
  14380. _ACEOF
  14381. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14382. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14383. fi # test -n "$CONFIG_HEADERS"
  14384. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14385. shift
  14386. for ac_tag
  14387. do
  14388. case $ac_tag in
  14389. :[FHLC]) ac_mode=$ac_tag; continue;;
  14390. esac
  14391. case $ac_mode$ac_tag in
  14392. :[FHL]*:*);;
  14393. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14394. :[FH]-) ac_tag=-:-;;
  14395. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14396. esac
  14397. ac_save_IFS=$IFS
  14398. IFS=:
  14399. set x $ac_tag
  14400. IFS=$ac_save_IFS
  14401. shift
  14402. ac_file=$1
  14403. shift
  14404. case $ac_mode in
  14405. :L) ac_source=$1;;
  14406. :[FH])
  14407. ac_file_inputs=
  14408. for ac_f
  14409. do
  14410. case $ac_f in
  14411. -) ac_f="$ac_tmp/stdin";;
  14412. *) # Look for the file first in the build tree, then in the source tree
  14413. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14414. # because $ac_f cannot contain `:'.
  14415. test -f "$ac_f" ||
  14416. case $ac_f in
  14417. [\\/$]*) false;;
  14418. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14419. esac ||
  14420. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14421. esac
  14422. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14423. as_fn_append ac_file_inputs " '$ac_f'"
  14424. done
  14425. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14426. # use $as_me), people would be surprised to read:
  14427. # /* config.h. Generated by config.status. */
  14428. configure_input='Generated from '`
  14429. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14430. `' by configure.'
  14431. if test x"$ac_file" != x-; then
  14432. configure_input="$ac_file. $configure_input"
  14433. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14434. $as_echo "$as_me: creating $ac_file" >&6;}
  14435. fi
  14436. # Neutralize special characters interpreted by sed in replacement strings.
  14437. case $configure_input in #(
  14438. *\&* | *\|* | *\\* )
  14439. ac_sed_conf_input=`$as_echo "$configure_input" |
  14440. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14441. *) ac_sed_conf_input=$configure_input;;
  14442. esac
  14443. case $ac_tag in
  14444. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14445. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14446. esac
  14447. ;;
  14448. esac
  14449. ac_dir=`$as_dirname -- "$ac_file" ||
  14450. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14451. X"$ac_file" : 'X\(//\)[^/]' \| \
  14452. X"$ac_file" : 'X\(//\)$' \| \
  14453. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14454. $as_echo X"$ac_file" |
  14455. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14456. s//\1/
  14457. q
  14458. }
  14459. /^X\(\/\/\)[^/].*/{
  14460. s//\1/
  14461. q
  14462. }
  14463. /^X\(\/\/\)$/{
  14464. s//\1/
  14465. q
  14466. }
  14467. /^X\(\/\).*/{
  14468. s//\1/
  14469. q
  14470. }
  14471. s/.*/./; q'`
  14472. as_dir="$ac_dir"; as_fn_mkdir_p
  14473. ac_builddir=.
  14474. case "$ac_dir" in
  14475. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14476. *)
  14477. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14478. # A ".." for each directory in $ac_dir_suffix.
  14479. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14480. case $ac_top_builddir_sub in
  14481. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14482. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14483. esac ;;
  14484. esac
  14485. ac_abs_top_builddir=$ac_pwd
  14486. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14487. # for backward compatibility:
  14488. ac_top_builddir=$ac_top_build_prefix
  14489. case $srcdir in
  14490. .) # We are building in place.
  14491. ac_srcdir=.
  14492. ac_top_srcdir=$ac_top_builddir_sub
  14493. ac_abs_top_srcdir=$ac_pwd ;;
  14494. [\\/]* | ?:[\\/]* ) # Absolute name.
  14495. ac_srcdir=$srcdir$ac_dir_suffix;
  14496. ac_top_srcdir=$srcdir
  14497. ac_abs_top_srcdir=$srcdir ;;
  14498. *) # Relative name.
  14499. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14500. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14501. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14502. esac
  14503. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14504. case $ac_mode in
  14505. :F)
  14506. #
  14507. # CONFIG_FILE
  14508. #
  14509. case $INSTALL in
  14510. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14511. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14512. esac
  14513. ac_MKDIR_P=$MKDIR_P
  14514. case $MKDIR_P in
  14515. [\\/$]* | ?:[\\/]* ) ;;
  14516. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14517. esac
  14518. _ACEOF
  14519. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14520. # If the template does not know about datarootdir, expand it.
  14521. # FIXME: This hack should be removed a few years after 2.60.
  14522. ac_datarootdir_hack=; ac_datarootdir_seen=
  14523. ac_sed_dataroot='
  14524. /datarootdir/ {
  14525. p
  14526. q
  14527. }
  14528. /@datadir@/p
  14529. /@docdir@/p
  14530. /@infodir@/p
  14531. /@localedir@/p
  14532. /@mandir@/p'
  14533. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14534. *datarootdir*) ac_datarootdir_seen=yes;;
  14535. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14536. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14537. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14538. _ACEOF
  14539. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14540. ac_datarootdir_hack='
  14541. s&@datadir@&$datadir&g
  14542. s&@docdir@&$docdir&g
  14543. s&@infodir@&$infodir&g
  14544. s&@localedir@&$localedir&g
  14545. s&@mandir@&$mandir&g
  14546. s&\\\${datarootdir}&$datarootdir&g' ;;
  14547. esac
  14548. _ACEOF
  14549. # Neutralize VPATH when `$srcdir' = `.'.
  14550. # Shell code in configure.ac might set extrasub.
  14551. # FIXME: do we really want to maintain this feature?
  14552. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14553. ac_sed_extra="$ac_vpsub
  14554. $extrasub
  14555. _ACEOF
  14556. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14557. :t
  14558. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14559. s|@configure_input@|$ac_sed_conf_input|;t t
  14560. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14561. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14562. s&@srcdir@&$ac_srcdir&;t t
  14563. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14564. s&@top_srcdir@&$ac_top_srcdir&;t t
  14565. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14566. s&@builddir@&$ac_builddir&;t t
  14567. s&@abs_builddir@&$ac_abs_builddir&;t t
  14568. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14569. s&@INSTALL@&$ac_INSTALL&;t t
  14570. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14571. $ac_datarootdir_hack
  14572. "
  14573. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14574. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14575. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14576. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14577. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14578. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14579. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14580. which seems to be undefined. Please make sure it is defined" >&5
  14581. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14582. which seems to be undefined. Please make sure it is defined" >&2;}
  14583. rm -f "$ac_tmp/stdin"
  14584. case $ac_file in
  14585. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14586. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14587. esac \
  14588. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14589. ;;
  14590. :H)
  14591. #
  14592. # CONFIG_HEADER
  14593. #
  14594. if test x"$ac_file" != x-; then
  14595. {
  14596. $as_echo "/* $configure_input */" \
  14597. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14598. } >"$ac_tmp/config.h" \
  14599. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14600. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14601. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14602. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14603. else
  14604. rm -f "$ac_file"
  14605. mv "$ac_tmp/config.h" "$ac_file" \
  14606. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14607. fi
  14608. else
  14609. $as_echo "/* $configure_input */" \
  14610. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14611. || as_fn_error $? "could not create -" "$LINENO" 5
  14612. fi
  14613. # Compute "$ac_file"'s index in $config_headers.
  14614. _am_arg="$ac_file"
  14615. _am_stamp_count=1
  14616. for _am_header in $config_headers :; do
  14617. case $_am_header in
  14618. $_am_arg | $_am_arg:* )
  14619. break ;;
  14620. * )
  14621. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14622. esac
  14623. done
  14624. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14625. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14626. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14627. X"$_am_arg" : 'X\(//\)$' \| \
  14628. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14629. $as_echo X"$_am_arg" |
  14630. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14631. s//\1/
  14632. q
  14633. }
  14634. /^X\(\/\/\)[^/].*/{
  14635. s//\1/
  14636. q
  14637. }
  14638. /^X\(\/\/\)$/{
  14639. s//\1/
  14640. q
  14641. }
  14642. /^X\(\/\).*/{
  14643. s//\1/
  14644. q
  14645. }
  14646. s/.*/./; q'`/stamp-h$_am_stamp_count
  14647. ;;
  14648. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14649. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14650. ;;
  14651. esac
  14652. case $ac_file$ac_mode in
  14653. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14654. # Older Autoconf quotes --file arguments for eval, but not when files
  14655. # are listed without --file. Let's play safe and only enable the eval
  14656. # if we detect the quoting.
  14657. case $CONFIG_FILES in
  14658. *\'*) eval set x "$CONFIG_FILES" ;;
  14659. *) set x $CONFIG_FILES ;;
  14660. esac
  14661. shift
  14662. for mf
  14663. do
  14664. # Strip MF so we end up with the name of the file.
  14665. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14666. # Check whether this is an Automake generated Makefile or not.
  14667. # We used to match only the files named 'Makefile.in', but
  14668. # some people rename them; so instead we look at the file content.
  14669. # Grep'ing the first line is not enough: some people post-process
  14670. # each Makefile.in and add a new line on top of each file to say so.
  14671. # Grep'ing the whole file is not good either: AIX grep has a line
  14672. # limit of 2048, but all sed's we know have understand at least 4000.
  14673. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14674. dirpart=`$as_dirname -- "$mf" ||
  14675. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14676. X"$mf" : 'X\(//\)[^/]' \| \
  14677. X"$mf" : 'X\(//\)$' \| \
  14678. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14679. $as_echo X"$mf" |
  14680. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14681. s//\1/
  14682. q
  14683. }
  14684. /^X\(\/\/\)[^/].*/{
  14685. s//\1/
  14686. q
  14687. }
  14688. /^X\(\/\/\)$/{
  14689. s//\1/
  14690. q
  14691. }
  14692. /^X\(\/\).*/{
  14693. s//\1/
  14694. q
  14695. }
  14696. s/.*/./; q'`
  14697. else
  14698. continue
  14699. fi
  14700. # Extract the definition of DEPDIR, am__include, and am__quote
  14701. # from the Makefile without running 'make'.
  14702. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14703. test -z "$DEPDIR" && continue
  14704. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14705. test -z "$am__include" && continue
  14706. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14707. # Find all dependency output files, they are included files with
  14708. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14709. # simplest approach to changing $(DEPDIR) to its actual value in the
  14710. # expansion.
  14711. for file in `sed -n "
  14712. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14713. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  14714. # Make sure the directory exists.
  14715. test -f "$dirpart/$file" && continue
  14716. fdir=`$as_dirname -- "$file" ||
  14717. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14718. X"$file" : 'X\(//\)[^/]' \| \
  14719. X"$file" : 'X\(//\)$' \| \
  14720. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14721. $as_echo X"$file" |
  14722. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14723. s//\1/
  14724. q
  14725. }
  14726. /^X\(\/\/\)[^/].*/{
  14727. s//\1/
  14728. q
  14729. }
  14730. /^X\(\/\/\)$/{
  14731. s//\1/
  14732. q
  14733. }
  14734. /^X\(\/\).*/{
  14735. s//\1/
  14736. q
  14737. }
  14738. s/.*/./; q'`
  14739. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14740. # echo "creating $dirpart/$file"
  14741. echo '# dummy' > "$dirpart/$file"
  14742. done
  14743. done
  14744. }
  14745. ;;
  14746. "libtool":C)
  14747. # See if we are running on zsh, and set the options which allow our
  14748. # commands through without removal of \ escapes.
  14749. if test -n "${ZSH_VERSION+set}" ; then
  14750. setopt NO_GLOB_SUBST
  14751. fi
  14752. cfgfile="${ofile}T"
  14753. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14754. $RM "$cfgfile"
  14755. cat <<_LT_EOF >> "$cfgfile"
  14756. #! $SHELL
  14757. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14758. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14759. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14760. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14761. #
  14762. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14763. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  14764. # Written by Gordon Matzigkeit, 1996
  14765. #
  14766. # This file is part of GNU Libtool.
  14767. #
  14768. # GNU Libtool is free software; you can redistribute it and/or
  14769. # modify it under the terms of the GNU General Public License as
  14770. # published by the Free Software Foundation; either version 2 of
  14771. # the License, or (at your option) any later version.
  14772. #
  14773. # As a special exception to the GNU General Public License,
  14774. # if you distribute this file as part of a program or library that
  14775. # is built using GNU Libtool, you may include this file under the
  14776. # same distribution terms that you use for the rest of that program.
  14777. #
  14778. # GNU Libtool is distributed in the hope that it will be useful,
  14779. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14780. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14781. # GNU General Public License for more details.
  14782. #
  14783. # You should have received a copy of the GNU General Public License
  14784. # along with GNU Libtool; see the file COPYING. If not, a copy
  14785. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14786. # obtained by writing to the Free Software Foundation, Inc.,
  14787. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14788. # The names of the tagged configurations supported by this script.
  14789. available_tags="CXX "
  14790. # ### BEGIN LIBTOOL CONFIG
  14791. # Which release of libtool.m4 was used?
  14792. macro_version=$macro_version
  14793. macro_revision=$macro_revision
  14794. # Whether or not to build static libraries.
  14795. build_old_libs=$enable_static
  14796. # Whether or not to build shared libraries.
  14797. build_libtool_libs=$enable_shared
  14798. # What type of objects to build.
  14799. pic_mode=$pic_mode
  14800. # Whether or not to optimize for fast installation.
  14801. fast_install=$enable_fast_install
  14802. # Shell to use when invoking shell scripts.
  14803. SHELL=$lt_SHELL
  14804. # An echo program that protects backslashes.
  14805. ECHO=$lt_ECHO
  14806. # The host system.
  14807. host_alias=$host_alias
  14808. host=$host
  14809. host_os=$host_os
  14810. # The build system.
  14811. build_alias=$build_alias
  14812. build=$build
  14813. build_os=$build_os
  14814. # A sed program that does not truncate output.
  14815. SED=$lt_SED
  14816. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14817. Xsed="\$SED -e 1s/^X//"
  14818. # A grep program that handles long lines.
  14819. GREP=$lt_GREP
  14820. # An ERE matcher.
  14821. EGREP=$lt_EGREP
  14822. # A literal string matcher.
  14823. FGREP=$lt_FGREP
  14824. # A BSD- or MS-compatible name lister.
  14825. NM=$lt_NM
  14826. # Whether we need soft or hard links.
  14827. LN_S=$lt_LN_S
  14828. # What is the maximum length of a command?
  14829. max_cmd_len=$max_cmd_len
  14830. # Object file suffix (normally "o").
  14831. objext=$ac_objext
  14832. # Executable file suffix (normally "").
  14833. exeext=$exeext
  14834. # whether the shell understands "unset".
  14835. lt_unset=$lt_unset
  14836. # turn spaces into newlines.
  14837. SP2NL=$lt_lt_SP2NL
  14838. # turn newlines into spaces.
  14839. NL2SP=$lt_lt_NL2SP
  14840. # An object symbol dumper.
  14841. OBJDUMP=$lt_OBJDUMP
  14842. # Method to check whether dependent libraries are shared objects.
  14843. deplibs_check_method=$lt_deplibs_check_method
  14844. # Command to use when deplibs_check_method == "file_magic".
  14845. file_magic_cmd=$lt_file_magic_cmd
  14846. # The archiver.
  14847. AR=$lt_AR
  14848. AR_FLAGS=$lt_AR_FLAGS
  14849. # A symbol stripping program.
  14850. STRIP=$lt_STRIP
  14851. # Commands used to install an old-style archive.
  14852. RANLIB=$lt_RANLIB
  14853. old_postinstall_cmds=$lt_old_postinstall_cmds
  14854. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14855. # Whether to use a lock for old archive extraction.
  14856. lock_old_archive_extraction=$lock_old_archive_extraction
  14857. # A C compiler.
  14858. LTCC=$lt_CC
  14859. # LTCC compiler flags.
  14860. LTCFLAGS=$lt_CFLAGS
  14861. # Take the output of nm and produce a listing of raw symbols and C names.
  14862. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14863. # Transform the output of nm in a proper C declaration.
  14864. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14865. # Transform the output of nm in a C name address pair.
  14866. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14867. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14868. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14869. # The name of the directory that contains temporary libtool files.
  14870. objdir=$objdir
  14871. # Used to examine libraries when file_magic_cmd begins with "file".
  14872. MAGIC_CMD=$MAGIC_CMD
  14873. # Must we lock files when doing compilation?
  14874. need_locks=$lt_need_locks
  14875. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14876. DSYMUTIL=$lt_DSYMUTIL
  14877. # Tool to change global to local symbols on Mac OS X.
  14878. NMEDIT=$lt_NMEDIT
  14879. # Tool to manipulate fat objects and archives on Mac OS X.
  14880. LIPO=$lt_LIPO
  14881. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14882. OTOOL=$lt_OTOOL
  14883. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14884. OTOOL64=$lt_OTOOL64
  14885. # Old archive suffix (normally "a").
  14886. libext=$libext
  14887. # Shared library suffix (normally ".so").
  14888. shrext_cmds=$lt_shrext_cmds
  14889. # The commands to extract the exported symbol list from a shared archive.
  14890. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14891. # Variables whose values should be saved in libtool wrapper scripts and
  14892. # restored at link time.
  14893. variables_saved_for_relink=$lt_variables_saved_for_relink
  14894. # Do we need the "lib" prefix for modules?
  14895. need_lib_prefix=$need_lib_prefix
  14896. # Do we need a version for libraries?
  14897. need_version=$need_version
  14898. # Library versioning type.
  14899. version_type=$version_type
  14900. # Shared library runtime path variable.
  14901. runpath_var=$runpath_var
  14902. # Shared library path variable.
  14903. shlibpath_var=$shlibpath_var
  14904. # Is shlibpath searched before the hard-coded library search path?
  14905. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14906. # Format of library name prefix.
  14907. libname_spec=$lt_libname_spec
  14908. # List of archive names. First name is the real one, the rest are links.
  14909. # The last name is the one that the linker finds with -lNAME
  14910. library_names_spec=$lt_library_names_spec
  14911. # The coded name of the library, if different from the real name.
  14912. soname_spec=$lt_soname_spec
  14913. # Permission mode override for installation of shared libraries.
  14914. install_override_mode=$lt_install_override_mode
  14915. # Command to use after installation of a shared archive.
  14916. postinstall_cmds=$lt_postinstall_cmds
  14917. # Command to use after uninstallation of a shared archive.
  14918. postuninstall_cmds=$lt_postuninstall_cmds
  14919. # Commands used to finish a libtool library installation in a directory.
  14920. finish_cmds=$lt_finish_cmds
  14921. # As "finish_cmds", except a single script fragment to be evaled but
  14922. # not shown.
  14923. finish_eval=$lt_finish_eval
  14924. # Whether we should hardcode library paths into libraries.
  14925. hardcode_into_libs=$hardcode_into_libs
  14926. # Compile-time system search path for libraries.
  14927. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14928. # Run-time system search path for libraries.
  14929. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14930. # Whether dlopen is supported.
  14931. dlopen_support=$enable_dlopen
  14932. # Whether dlopen of programs is supported.
  14933. dlopen_self=$enable_dlopen_self
  14934. # Whether dlopen of statically linked programs is supported.
  14935. dlopen_self_static=$enable_dlopen_self_static
  14936. # Commands to strip libraries.
  14937. old_striplib=$lt_old_striplib
  14938. striplib=$lt_striplib
  14939. # The linker used to build libraries.
  14940. LD=$lt_LD
  14941. # How to create reloadable object files.
  14942. reload_flag=$lt_reload_flag
  14943. reload_cmds=$lt_reload_cmds
  14944. # Commands used to build an old-style archive.
  14945. old_archive_cmds=$lt_old_archive_cmds
  14946. # A language specific compiler.
  14947. CC=$lt_compiler
  14948. # Is the compiler the GNU compiler?
  14949. with_gcc=$GCC
  14950. # Compiler flag to turn off builtin functions.
  14951. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14952. # How to pass a linker flag through the compiler.
  14953. wl=$lt_lt_prog_compiler_wl
  14954. # Additional compiler flags for building library objects.
  14955. pic_flag=$lt_lt_prog_compiler_pic
  14956. # Compiler flag to prevent dynamic linking.
  14957. link_static_flag=$lt_lt_prog_compiler_static
  14958. # Does compiler simultaneously support -c and -o options?
  14959. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14960. # Whether or not to add -lc for building shared libraries.
  14961. build_libtool_need_lc=$archive_cmds_need_lc
  14962. # Whether or not to disallow shared libs when runtime libs are static.
  14963. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14964. # Compiler flag to allow reflexive dlopens.
  14965. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14966. # Compiler flag to generate shared objects directly from archives.
  14967. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14968. # Whether the compiler copes with passing no objects directly.
  14969. compiler_needs_object=$lt_compiler_needs_object
  14970. # Create an old-style archive from a shared archive.
  14971. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14972. # Create a temporary old-style archive to link instead of a shared archive.
  14973. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14974. # Commands used to build a shared archive.
  14975. archive_cmds=$lt_archive_cmds
  14976. archive_expsym_cmds=$lt_archive_expsym_cmds
  14977. # Commands used to build a loadable module if different from building
  14978. # a shared archive.
  14979. module_cmds=$lt_module_cmds
  14980. module_expsym_cmds=$lt_module_expsym_cmds
  14981. # Whether we are building with GNU ld or not.
  14982. with_gnu_ld=$lt_with_gnu_ld
  14983. # Flag that allows shared libraries with undefined symbols to be built.
  14984. allow_undefined_flag=$lt_allow_undefined_flag
  14985. # Flag that enforces no undefined symbols.
  14986. no_undefined_flag=$lt_no_undefined_flag
  14987. # Flag to hardcode \$libdir into a binary during linking.
  14988. # This must work even if \$libdir does not exist
  14989. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14990. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14991. # during linking. This must work even if \$libdir does not exist.
  14992. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14993. # Whether we need a single "-rpath" flag with a separated argument.
  14994. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14995. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14996. # DIR into the resulting binary.
  14997. hardcode_direct=$hardcode_direct
  14998. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14999. # DIR into the resulting binary and the resulting library dependency is
  15000. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15001. # library is relocated.
  15002. hardcode_direct_absolute=$hardcode_direct_absolute
  15003. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15004. # into the resulting binary.
  15005. hardcode_minus_L=$hardcode_minus_L
  15006. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15007. # into the resulting binary.
  15008. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15009. # Set to "yes" if building a shared library automatically hardcodes DIR
  15010. # into the library and all subsequent libraries and executables linked
  15011. # against it.
  15012. hardcode_automatic=$hardcode_automatic
  15013. # Set to yes if linker adds runtime paths of dependent libraries
  15014. # to runtime path list.
  15015. inherit_rpath=$inherit_rpath
  15016. # Whether libtool must link a program against all its dependency libraries.
  15017. link_all_deplibs=$link_all_deplibs
  15018. # Fix the shell variable \$srcfile for the compiler.
  15019. fix_srcfile_path=$lt_fix_srcfile_path
  15020. # Set to "yes" if exported symbols are required.
  15021. always_export_symbols=$always_export_symbols
  15022. # The commands to list exported symbols.
  15023. export_symbols_cmds=$lt_export_symbols_cmds
  15024. # Symbols that should not be listed in the preloaded symbols.
  15025. exclude_expsyms=$lt_exclude_expsyms
  15026. # Symbols that must always be exported.
  15027. include_expsyms=$lt_include_expsyms
  15028. # Commands necessary for linking programs (against libraries) with templates.
  15029. prelink_cmds=$lt_prelink_cmds
  15030. # Specify filename containing input files.
  15031. file_list_spec=$lt_file_list_spec
  15032. # How to hardcode a shared library path into an executable.
  15033. hardcode_action=$hardcode_action
  15034. # The directories searched by this compiler when creating a shared library.
  15035. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15036. # Dependencies to place before and after the objects being linked to
  15037. # create a shared library.
  15038. predep_objects=$lt_predep_objects
  15039. postdep_objects=$lt_postdep_objects
  15040. predeps=$lt_predeps
  15041. postdeps=$lt_postdeps
  15042. # The library search path used internally by the compiler when linking
  15043. # a shared library.
  15044. compiler_lib_search_path=$lt_compiler_lib_search_path
  15045. # ### END LIBTOOL CONFIG
  15046. _LT_EOF
  15047. case $host_os in
  15048. aix3*)
  15049. cat <<\_LT_EOF >> "$cfgfile"
  15050. # AIX sometimes has problems with the GCC collect2 program. For some
  15051. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15052. # vanish in a puff of smoke.
  15053. if test "X${COLLECT_NAMES+set}" != Xset; then
  15054. COLLECT_NAMES=
  15055. export COLLECT_NAMES
  15056. fi
  15057. _LT_EOF
  15058. ;;
  15059. esac
  15060. ltmain="$ac_aux_dir/ltmain.sh"
  15061. # We use sed instead of cat because bash on DJGPP gets confused if
  15062. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15063. # text mode, it properly converts lines to CR/LF. This bash problem
  15064. # is reportedly fixed, but why not run on old versions too?
  15065. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15066. || (rm -f "$cfgfile"; exit 1)
  15067. case $xsi_shell in
  15068. yes)
  15069. cat << \_LT_EOF >> "$cfgfile"
  15070. # func_dirname file append nondir_replacement
  15071. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15072. # otherwise set result to NONDIR_REPLACEMENT.
  15073. func_dirname ()
  15074. {
  15075. case ${1} in
  15076. */*) func_dirname_result="${1%/*}${2}" ;;
  15077. * ) func_dirname_result="${3}" ;;
  15078. esac
  15079. }
  15080. # func_basename file
  15081. func_basename ()
  15082. {
  15083. func_basename_result="${1##*/}"
  15084. }
  15085. # func_dirname_and_basename file append nondir_replacement
  15086. # perform func_basename and func_dirname in a single function
  15087. # call:
  15088. # dirname: Compute the dirname of FILE. If nonempty,
  15089. # add APPEND to the result, otherwise set result
  15090. # to NONDIR_REPLACEMENT.
  15091. # value returned in "$func_dirname_result"
  15092. # basename: Compute filename of FILE.
  15093. # value retuned in "$func_basename_result"
  15094. # Implementation must be kept synchronized with func_dirname
  15095. # and func_basename. For efficiency, we do not delegate to
  15096. # those functions but instead duplicate the functionality here.
  15097. func_dirname_and_basename ()
  15098. {
  15099. case ${1} in
  15100. */*) func_dirname_result="${1%/*}${2}" ;;
  15101. * ) func_dirname_result="${3}" ;;
  15102. esac
  15103. func_basename_result="${1##*/}"
  15104. }
  15105. # func_stripname prefix suffix name
  15106. # strip PREFIX and SUFFIX off of NAME.
  15107. # PREFIX and SUFFIX must not contain globbing or regex special
  15108. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15109. # dot (in which case that matches only a dot).
  15110. func_stripname ()
  15111. {
  15112. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15113. # positional parameters, so assign one to ordinary parameter first.
  15114. func_stripname_result=${3}
  15115. func_stripname_result=${func_stripname_result#"${1}"}
  15116. func_stripname_result=${func_stripname_result%"${2}"}
  15117. }
  15118. # func_opt_split
  15119. func_opt_split ()
  15120. {
  15121. func_opt_split_opt=${1%%=*}
  15122. func_opt_split_arg=${1#*=}
  15123. }
  15124. # func_lo2o object
  15125. func_lo2o ()
  15126. {
  15127. case ${1} in
  15128. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15129. *) func_lo2o_result=${1} ;;
  15130. esac
  15131. }
  15132. # func_xform libobj-or-source
  15133. func_xform ()
  15134. {
  15135. func_xform_result=${1%.*}.lo
  15136. }
  15137. # func_arith arithmetic-term...
  15138. func_arith ()
  15139. {
  15140. func_arith_result=$(( $* ))
  15141. }
  15142. # func_len string
  15143. # STRING may not start with a hyphen.
  15144. func_len ()
  15145. {
  15146. func_len_result=${#1}
  15147. }
  15148. _LT_EOF
  15149. ;;
  15150. *) # Bourne compatible functions.
  15151. cat << \_LT_EOF >> "$cfgfile"
  15152. # func_dirname file append nondir_replacement
  15153. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15154. # otherwise set result to NONDIR_REPLACEMENT.
  15155. func_dirname ()
  15156. {
  15157. # Extract subdirectory from the argument.
  15158. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  15159. if test "X$func_dirname_result" = "X${1}"; then
  15160. func_dirname_result="${3}"
  15161. else
  15162. func_dirname_result="$func_dirname_result${2}"
  15163. fi
  15164. }
  15165. # func_basename file
  15166. func_basename ()
  15167. {
  15168. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  15169. }
  15170. # func_stripname prefix suffix name
  15171. # strip PREFIX and SUFFIX off of NAME.
  15172. # PREFIX and SUFFIX must not contain globbing or regex special
  15173. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15174. # dot (in which case that matches only a dot).
  15175. # func_strip_suffix prefix name
  15176. func_stripname ()
  15177. {
  15178. case ${2} in
  15179. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  15180. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  15181. esac
  15182. }
  15183. # sed scripts:
  15184. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15185. my_sed_long_arg='1s/^-[^=]*=//'
  15186. # func_opt_split
  15187. func_opt_split ()
  15188. {
  15189. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  15190. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  15191. }
  15192. # func_lo2o object
  15193. func_lo2o ()
  15194. {
  15195. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  15196. }
  15197. # func_xform libobj-or-source
  15198. func_xform ()
  15199. {
  15200. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  15201. }
  15202. # func_arith arithmetic-term...
  15203. func_arith ()
  15204. {
  15205. func_arith_result=`expr "$@"`
  15206. }
  15207. # func_len string
  15208. # STRING may not start with a hyphen.
  15209. func_len ()
  15210. {
  15211. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15212. }
  15213. _LT_EOF
  15214. esac
  15215. case $lt_shell_append in
  15216. yes)
  15217. cat << \_LT_EOF >> "$cfgfile"
  15218. # func_append var value
  15219. # Append VALUE to the end of shell variable VAR.
  15220. func_append ()
  15221. {
  15222. eval "$1+=\$2"
  15223. }
  15224. _LT_EOF
  15225. ;;
  15226. *)
  15227. cat << \_LT_EOF >> "$cfgfile"
  15228. # func_append var value
  15229. # Append VALUE to the end of shell variable VAR.
  15230. func_append ()
  15231. {
  15232. eval "$1=\$$1\$2"
  15233. }
  15234. _LT_EOF
  15235. ;;
  15236. esac
  15237. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15238. || (rm -f "$cfgfile"; exit 1)
  15239. mv -f "$cfgfile" "$ofile" ||
  15240. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15241. chmod +x "$ofile"
  15242. cat <<_LT_EOF >> "$ofile"
  15243. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15244. # The linker used to build libraries.
  15245. LD=$lt_LD_CXX
  15246. # How to create reloadable object files.
  15247. reload_flag=$lt_reload_flag_CXX
  15248. reload_cmds=$lt_reload_cmds_CXX
  15249. # Commands used to build an old-style archive.
  15250. old_archive_cmds=$lt_old_archive_cmds_CXX
  15251. # A language specific compiler.
  15252. CC=$lt_compiler_CXX
  15253. # Is the compiler the GNU compiler?
  15254. with_gcc=$GCC_CXX
  15255. # Compiler flag to turn off builtin functions.
  15256. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15257. # How to pass a linker flag through the compiler.
  15258. wl=$lt_lt_prog_compiler_wl_CXX
  15259. # Additional compiler flags for building library objects.
  15260. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15261. # Compiler flag to prevent dynamic linking.
  15262. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15263. # Does compiler simultaneously support -c and -o options?
  15264. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15265. # Whether or not to add -lc for building shared libraries.
  15266. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15267. # Whether or not to disallow shared libs when runtime libs are static.
  15268. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15269. # Compiler flag to allow reflexive dlopens.
  15270. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15271. # Compiler flag to generate shared objects directly from archives.
  15272. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15273. # Whether the compiler copes with passing no objects directly.
  15274. compiler_needs_object=$lt_compiler_needs_object_CXX
  15275. # Create an old-style archive from a shared archive.
  15276. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15277. # Create a temporary old-style archive to link instead of a shared archive.
  15278. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15279. # Commands used to build a shared archive.
  15280. archive_cmds=$lt_archive_cmds_CXX
  15281. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15282. # Commands used to build a loadable module if different from building
  15283. # a shared archive.
  15284. module_cmds=$lt_module_cmds_CXX
  15285. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15286. # Whether we are building with GNU ld or not.
  15287. with_gnu_ld=$lt_with_gnu_ld_CXX
  15288. # Flag that allows shared libraries with undefined symbols to be built.
  15289. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15290. # Flag that enforces no undefined symbols.
  15291. no_undefined_flag=$lt_no_undefined_flag_CXX
  15292. # Flag to hardcode \$libdir into a binary during linking.
  15293. # This must work even if \$libdir does not exist
  15294. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15295. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15296. # during linking. This must work even if \$libdir does not exist.
  15297. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  15298. # Whether we need a single "-rpath" flag with a separated argument.
  15299. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15300. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15301. # DIR into the resulting binary.
  15302. hardcode_direct=$hardcode_direct_CXX
  15303. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15304. # DIR into the resulting binary and the resulting library dependency is
  15305. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15306. # library is relocated.
  15307. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15308. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15309. # into the resulting binary.
  15310. hardcode_minus_L=$hardcode_minus_L_CXX
  15311. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15312. # into the resulting binary.
  15313. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15314. # Set to "yes" if building a shared library automatically hardcodes DIR
  15315. # into the library and all subsequent libraries and executables linked
  15316. # against it.
  15317. hardcode_automatic=$hardcode_automatic_CXX
  15318. # Set to yes if linker adds runtime paths of dependent libraries
  15319. # to runtime path list.
  15320. inherit_rpath=$inherit_rpath_CXX
  15321. # Whether libtool must link a program against all its dependency libraries.
  15322. link_all_deplibs=$link_all_deplibs_CXX
  15323. # Fix the shell variable \$srcfile for the compiler.
  15324. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  15325. # Set to "yes" if exported symbols are required.
  15326. always_export_symbols=$always_export_symbols_CXX
  15327. # The commands to list exported symbols.
  15328. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15329. # Symbols that should not be listed in the preloaded symbols.
  15330. exclude_expsyms=$lt_exclude_expsyms_CXX
  15331. # Symbols that must always be exported.
  15332. include_expsyms=$lt_include_expsyms_CXX
  15333. # Commands necessary for linking programs (against libraries) with templates.
  15334. prelink_cmds=$lt_prelink_cmds_CXX
  15335. # Specify filename containing input files.
  15336. file_list_spec=$lt_file_list_spec_CXX
  15337. # How to hardcode a shared library path into an executable.
  15338. hardcode_action=$hardcode_action_CXX
  15339. # The directories searched by this compiler when creating a shared library.
  15340. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  15341. # Dependencies to place before and after the objects being linked to
  15342. # create a shared library.
  15343. predep_objects=$lt_predep_objects_CXX
  15344. postdep_objects=$lt_postdep_objects_CXX
  15345. predeps=$lt_predeps_CXX
  15346. postdeps=$lt_postdeps_CXX
  15347. # The library search path used internally by the compiler when linking
  15348. # a shared library.
  15349. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  15350. # ### END LIBTOOL TAG CONFIG: CXX
  15351. _LT_EOF
  15352. ;;
  15353. esac
  15354. done # for ac_tag
  15355. as_fn_exit 0
  15356. _ACEOF
  15357. ac_clean_files=$ac_clean_files_save
  15358. test $ac_write_fail = 0 ||
  15359. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15360. # configure is writing to config.log, and then calls config.status.
  15361. # config.status does its own redirection, appending to config.log.
  15362. # Unfortunately, on DOS this fails, as config.log is still kept open
  15363. # by configure, so config.status won't be able to write to it; its
  15364. # output is simply discarded. So we exec the FD to /dev/null,
  15365. # effectively closing config.log, so it can be properly (re)opened and
  15366. # appended to by config.status. When coming back to configure, we
  15367. # need to make the FD available again.
  15368. if test "$no_create" != yes; then
  15369. ac_cs_success=:
  15370. ac_config_status_args=
  15371. test "$silent" = yes &&
  15372. ac_config_status_args="$ac_config_status_args --quiet"
  15373. exec 5>/dev/null
  15374. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15375. exec 5>>config.log
  15376. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15377. # would make configure fail if this is the last instruction.
  15378. $ac_cs_success || as_fn_exit 1
  15379. fi
  15380. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15381. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15382. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15383. fi