configure 518 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for libcc1 version-unused.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1
  159. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  160. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  163. PATH=/empty FPATH=/empty; export PATH FPATH
  164. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  165. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME='libcc1'
  509. PACKAGE_TARNAME='libcc1'
  510. PACKAGE_VERSION='version-unused'
  511. PACKAGE_STRING='libcc1 version-unused'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL=''
  514. ac_unique_file="libcc1.cc"
  515. # Factoring default headers for most tests.
  516. ac_includes_default="\
  517. #include <stdio.h>
  518. #ifdef HAVE_SYS_TYPES_H
  519. # include <sys/types.h>
  520. #endif
  521. #ifdef HAVE_SYS_STAT_H
  522. # include <sys/stat.h>
  523. #endif
  524. #ifdef STDC_HEADERS
  525. # include <stdlib.h>
  526. # include <stddef.h>
  527. #else
  528. # ifdef HAVE_STDLIB_H
  529. # include <stdlib.h>
  530. # endif
  531. #endif
  532. #ifdef HAVE_STRING_H
  533. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  534. # include <memory.h>
  535. # endif
  536. # include <string.h>
  537. #endif
  538. #ifdef HAVE_STRINGS_H
  539. # include <strings.h>
  540. #endif
  541. #ifdef HAVE_INTTYPES_H
  542. # include <inttypes.h>
  543. #endif
  544. #ifdef HAVE_STDINT_H
  545. # include <stdint.h>
  546. #endif
  547. #ifdef HAVE_UNISTD_H
  548. # include <unistd.h>
  549. #endif"
  550. ac_subst_vars='am__EXEEXT_FALSE
  551. am__EXEEXT_TRUE
  552. LTLIBOBJS
  553. LIBOBJS
  554. ENABLE_PLUGIN_FALSE
  555. ENABLE_PLUGIN_TRUE
  556. libsuffix
  557. GMPINC
  558. WERROR
  559. WARN_FLAGS
  560. gcc_version
  561. visibility
  562. CXXCPP
  563. am__fastdepCXX_FALSE
  564. am__fastdepCXX_TRUE
  565. CXXDEPMODE
  566. ac_ct_CXX
  567. CXXFLAGS
  568. CXX
  569. OTOOL64
  570. OTOOL
  571. LIPO
  572. NMEDIT
  573. DSYMUTIL
  574. RANLIB
  575. AR
  576. OBJDUMP
  577. LN_S
  578. NM
  579. ac_ct_DUMPBIN
  580. DUMPBIN
  581. LD
  582. FGREP
  583. SED
  584. LIBTOOL
  585. MAINT
  586. MAINTAINER_MODE_FALSE
  587. MAINTAINER_MODE_TRUE
  588. am__fastdepCC_FALSE
  589. am__fastdepCC_TRUE
  590. CCDEPMODE
  591. AMDEPBACKSLASH
  592. AMDEP_FALSE
  593. AMDEP_TRUE
  594. am__quote
  595. am__include
  596. DEPDIR
  597. am__untar
  598. am__tar
  599. AMTAR
  600. am__leading_dot
  601. SET_MAKE
  602. AWK
  603. mkdir_p
  604. MKDIR_P
  605. INSTALL_STRIP_PROGRAM
  606. STRIP
  607. install_sh
  608. MAKEINFO
  609. AUTOHEADER
  610. AUTOMAKE
  611. AUTOCONF
  612. ACLOCAL
  613. VERSION
  614. PACKAGE
  615. CYGPATH_W
  616. am__isrc
  617. INSTALL_DATA
  618. INSTALL_SCRIPT
  619. INSTALL_PROGRAM
  620. target_subdir
  621. host_subdir
  622. build_subdir
  623. build_libsubdir
  624. target_noncanonical
  625. EGREP
  626. GREP
  627. CPP
  628. OBJEXT
  629. EXEEXT
  630. ac_ct_CC
  631. CPPFLAGS
  632. LDFLAGS
  633. CFLAGS
  634. CC
  635. target_os
  636. target_vendor
  637. target_cpu
  638. target
  639. host_os
  640. host_vendor
  641. host_cpu
  642. host
  643. build_os
  644. build_vendor
  645. build_cpu
  646. build
  647. target_alias
  648. host_alias
  649. build_alias
  650. LIBS
  651. ECHO_T
  652. ECHO_N
  653. ECHO_C
  654. DEFS
  655. mandir
  656. localedir
  657. libdir
  658. psdir
  659. pdfdir
  660. dvidir
  661. htmldir
  662. infodir
  663. docdir
  664. oldincludedir
  665. includedir
  666. localstatedir
  667. sharedstatedir
  668. sysconfdir
  669. datadir
  670. datarootdir
  671. libexecdir
  672. sbindir
  673. bindir
  674. program_transform_name
  675. prefix
  676. exec_prefix
  677. PACKAGE_URL
  678. PACKAGE_BUGREPORT
  679. PACKAGE_STRING
  680. PACKAGE_VERSION
  681. PACKAGE_TARNAME
  682. PACKAGE_NAME
  683. PATH_SEPARATOR
  684. SHELL'
  685. ac_subst_files=''
  686. ac_user_opts='
  687. enable_option_checking
  688. with_build_libsubdir
  689. enable_dependency_tracking
  690. enable_maintainer_mode
  691. enable_static
  692. enable_shared
  693. with_pic
  694. enable_fast_install
  695. with_gnu_ld
  696. enable_libtool_lock
  697. enable_werror_always
  698. enable_plugin
  699. '
  700. ac_precious_vars='build_alias
  701. host_alias
  702. target_alias
  703. CC
  704. CFLAGS
  705. LDFLAGS
  706. LIBS
  707. CPPFLAGS
  708. CPP
  709. CXX
  710. CXXFLAGS
  711. CCC
  712. CXXCPP
  713. GMPINC'
  714. # Initialize some variables set by options.
  715. ac_init_help=
  716. ac_init_version=false
  717. ac_unrecognized_opts=
  718. ac_unrecognized_sep=
  719. # The variables have the same names as the options, with
  720. # dashes changed to underlines.
  721. cache_file=/dev/null
  722. exec_prefix=NONE
  723. no_create=
  724. no_recursion=
  725. prefix=NONE
  726. program_prefix=NONE
  727. program_suffix=NONE
  728. program_transform_name=s,x,x,
  729. silent=
  730. site=
  731. srcdir=
  732. verbose=
  733. x_includes=NONE
  734. x_libraries=NONE
  735. # Installation directory options.
  736. # These are left unexpanded so users can "make install exec_prefix=/foo"
  737. # and all the variables that are supposed to be based on exec_prefix
  738. # by default will actually change.
  739. # Use braces instead of parens because sh, perl, etc. also accept them.
  740. # (The list follows the same order as the GNU Coding Standards.)
  741. bindir='${exec_prefix}/bin'
  742. sbindir='${exec_prefix}/sbin'
  743. libexecdir='${exec_prefix}/libexec'
  744. datarootdir='${prefix}/share'
  745. datadir='${datarootdir}'
  746. sysconfdir='${prefix}/etc'
  747. sharedstatedir='${prefix}/com'
  748. localstatedir='${prefix}/var'
  749. includedir='${prefix}/include'
  750. oldincludedir='/usr/include'
  751. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  752. infodir='${datarootdir}/info'
  753. htmldir='${docdir}'
  754. dvidir='${docdir}'
  755. pdfdir='${docdir}'
  756. psdir='${docdir}'
  757. libdir='${exec_prefix}/lib'
  758. localedir='${datarootdir}/locale'
  759. mandir='${datarootdir}/man'
  760. ac_prev=
  761. ac_dashdash=
  762. for ac_option
  763. do
  764. # If the previous option needs an argument, assign it.
  765. if test -n "$ac_prev"; then
  766. eval $ac_prev=\$ac_option
  767. ac_prev=
  768. continue
  769. fi
  770. case $ac_option in
  771. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  772. *) ac_optarg=yes ;;
  773. esac
  774. # Accept the important Cygnus configure options, so we can diagnose typos.
  775. case $ac_dashdash$ac_option in
  776. --)
  777. ac_dashdash=yes ;;
  778. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  779. ac_prev=bindir ;;
  780. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  781. bindir=$ac_optarg ;;
  782. -build | --build | --buil | --bui | --bu)
  783. ac_prev=build_alias ;;
  784. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  785. build_alias=$ac_optarg ;;
  786. -cache-file | --cache-file | --cache-fil | --cache-fi \
  787. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  788. ac_prev=cache_file ;;
  789. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  790. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  791. cache_file=$ac_optarg ;;
  792. --config-cache | -C)
  793. cache_file=config.cache ;;
  794. -datadir | --datadir | --datadi | --datad)
  795. ac_prev=datadir ;;
  796. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  797. datadir=$ac_optarg ;;
  798. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  799. | --dataroo | --dataro | --datar)
  800. ac_prev=datarootdir ;;
  801. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  802. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  803. datarootdir=$ac_optarg ;;
  804. -disable-* | --disable-*)
  805. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  806. # Reject names that are not valid shell variable names.
  807. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  808. as_fn_error "invalid feature name: $ac_useropt"
  809. ac_useropt_orig=$ac_useropt
  810. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  811. case $ac_user_opts in
  812. *"
  813. "enable_$ac_useropt"
  814. "*) ;;
  815. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  816. ac_unrecognized_sep=', ';;
  817. esac
  818. eval enable_$ac_useropt=no ;;
  819. -docdir | --docdir | --docdi | --doc | --do)
  820. ac_prev=docdir ;;
  821. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  822. docdir=$ac_optarg ;;
  823. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  824. ac_prev=dvidir ;;
  825. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  826. dvidir=$ac_optarg ;;
  827. -enable-* | --enable-*)
  828. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  829. # Reject names that are not valid shell variable names.
  830. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  831. as_fn_error "invalid feature name: $ac_useropt"
  832. ac_useropt_orig=$ac_useropt
  833. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  834. case $ac_user_opts in
  835. *"
  836. "enable_$ac_useropt"
  837. "*) ;;
  838. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  839. ac_unrecognized_sep=', ';;
  840. esac
  841. eval enable_$ac_useropt=\$ac_optarg ;;
  842. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  843. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  844. | --exec | --exe | --ex)
  845. ac_prev=exec_prefix ;;
  846. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  847. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  848. | --exec=* | --exe=* | --ex=*)
  849. exec_prefix=$ac_optarg ;;
  850. -gas | --gas | --ga | --g)
  851. # Obsolete; use --with-gas.
  852. with_gas=yes ;;
  853. -help | --help | --hel | --he | -h)
  854. ac_init_help=long ;;
  855. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  856. ac_init_help=recursive ;;
  857. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  858. ac_init_help=short ;;
  859. -host | --host | --hos | --ho)
  860. ac_prev=host_alias ;;
  861. -host=* | --host=* | --hos=* | --ho=*)
  862. host_alias=$ac_optarg ;;
  863. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  864. ac_prev=htmldir ;;
  865. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  866. | --ht=*)
  867. htmldir=$ac_optarg ;;
  868. -includedir | --includedir | --includedi | --included | --include \
  869. | --includ | --inclu | --incl | --inc)
  870. ac_prev=includedir ;;
  871. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  872. | --includ=* | --inclu=* | --incl=* | --inc=*)
  873. includedir=$ac_optarg ;;
  874. -infodir | --infodir | --infodi | --infod | --info | --inf)
  875. ac_prev=infodir ;;
  876. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  877. infodir=$ac_optarg ;;
  878. -libdir | --libdir | --libdi | --libd)
  879. ac_prev=libdir ;;
  880. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  881. libdir=$ac_optarg ;;
  882. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  883. | --libexe | --libex | --libe)
  884. ac_prev=libexecdir ;;
  885. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  886. | --libexe=* | --libex=* | --libe=*)
  887. libexecdir=$ac_optarg ;;
  888. -localedir | --localedir | --localedi | --localed | --locale)
  889. ac_prev=localedir ;;
  890. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  891. localedir=$ac_optarg ;;
  892. -localstatedir | --localstatedir | --localstatedi | --localstated \
  893. | --localstate | --localstat | --localsta | --localst | --locals)
  894. ac_prev=localstatedir ;;
  895. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  896. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  897. localstatedir=$ac_optarg ;;
  898. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  899. ac_prev=mandir ;;
  900. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  901. mandir=$ac_optarg ;;
  902. -nfp | --nfp | --nf)
  903. # Obsolete; use --without-fp.
  904. with_fp=no ;;
  905. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  906. | --no-cr | --no-c | -n)
  907. no_create=yes ;;
  908. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  909. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  910. no_recursion=yes ;;
  911. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  912. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  913. | --oldin | --oldi | --old | --ol | --o)
  914. ac_prev=oldincludedir ;;
  915. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  916. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  917. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  918. oldincludedir=$ac_optarg ;;
  919. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  920. ac_prev=prefix ;;
  921. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  922. prefix=$ac_optarg ;;
  923. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  924. | --program-pre | --program-pr | --program-p)
  925. ac_prev=program_prefix ;;
  926. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  927. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  928. program_prefix=$ac_optarg ;;
  929. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  930. | --program-suf | --program-su | --program-s)
  931. ac_prev=program_suffix ;;
  932. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  933. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  934. program_suffix=$ac_optarg ;;
  935. -program-transform-name | --program-transform-name \
  936. | --program-transform-nam | --program-transform-na \
  937. | --program-transform-n | --program-transform- \
  938. | --program-transform | --program-transfor \
  939. | --program-transfo | --program-transf \
  940. | --program-trans | --program-tran \
  941. | --progr-tra | --program-tr | --program-t)
  942. ac_prev=program_transform_name ;;
  943. -program-transform-name=* | --program-transform-name=* \
  944. | --program-transform-nam=* | --program-transform-na=* \
  945. | --program-transform-n=* | --program-transform-=* \
  946. | --program-transform=* | --program-transfor=* \
  947. | --program-transfo=* | --program-transf=* \
  948. | --program-trans=* | --program-tran=* \
  949. | --progr-tra=* | --program-tr=* | --program-t=*)
  950. program_transform_name=$ac_optarg ;;
  951. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  952. ac_prev=pdfdir ;;
  953. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  954. pdfdir=$ac_optarg ;;
  955. -psdir | --psdir | --psdi | --psd | --ps)
  956. ac_prev=psdir ;;
  957. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  958. psdir=$ac_optarg ;;
  959. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  960. | -silent | --silent | --silen | --sile | --sil)
  961. silent=yes ;;
  962. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  963. ac_prev=sbindir ;;
  964. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  965. | --sbi=* | --sb=*)
  966. sbindir=$ac_optarg ;;
  967. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  968. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  969. | --sharedst | --shareds | --shared | --share | --shar \
  970. | --sha | --sh)
  971. ac_prev=sharedstatedir ;;
  972. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  973. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  974. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  975. | --sha=* | --sh=*)
  976. sharedstatedir=$ac_optarg ;;
  977. -site | --site | --sit)
  978. ac_prev=site ;;
  979. -site=* | --site=* | --sit=*)
  980. site=$ac_optarg ;;
  981. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  982. ac_prev=srcdir ;;
  983. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  984. srcdir=$ac_optarg ;;
  985. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  986. | --syscon | --sysco | --sysc | --sys | --sy)
  987. ac_prev=sysconfdir ;;
  988. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  989. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  990. sysconfdir=$ac_optarg ;;
  991. -target | --target | --targe | --targ | --tar | --ta | --t)
  992. ac_prev=target_alias ;;
  993. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  994. target_alias=$ac_optarg ;;
  995. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  996. verbose=yes ;;
  997. -version | --version | --versio | --versi | --vers | -V)
  998. ac_init_version=: ;;
  999. -with-* | --with-*)
  1000. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1001. # Reject names that are not valid shell variable names.
  1002. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1003. as_fn_error "invalid package name: $ac_useropt"
  1004. ac_useropt_orig=$ac_useropt
  1005. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1006. case $ac_user_opts in
  1007. *"
  1008. "with_$ac_useropt"
  1009. "*) ;;
  1010. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1011. ac_unrecognized_sep=', ';;
  1012. esac
  1013. eval with_$ac_useropt=\$ac_optarg ;;
  1014. -without-* | --without-*)
  1015. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1016. # Reject names that are not valid shell variable names.
  1017. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1018. as_fn_error "invalid package name: $ac_useropt"
  1019. ac_useropt_orig=$ac_useropt
  1020. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1021. case $ac_user_opts in
  1022. *"
  1023. "with_$ac_useropt"
  1024. "*) ;;
  1025. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1026. ac_unrecognized_sep=', ';;
  1027. esac
  1028. eval with_$ac_useropt=no ;;
  1029. --x)
  1030. # Obsolete; use --with-x.
  1031. with_x=yes ;;
  1032. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1033. | --x-incl | --x-inc | --x-in | --x-i)
  1034. ac_prev=x_includes ;;
  1035. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1036. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1037. x_includes=$ac_optarg ;;
  1038. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1039. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1040. ac_prev=x_libraries ;;
  1041. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1042. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1043. x_libraries=$ac_optarg ;;
  1044. -*) as_fn_error "unrecognized option: \`$ac_option'
  1045. Try \`$0 --help' for more information."
  1046. ;;
  1047. *=*)
  1048. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1049. # Reject names that are not valid shell variable names.
  1050. case $ac_envvar in #(
  1051. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1052. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1053. esac
  1054. eval $ac_envvar=\$ac_optarg
  1055. export $ac_envvar ;;
  1056. *)
  1057. # FIXME: should be removed in autoconf 3.0.
  1058. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1059. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1060. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1061. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1062. ;;
  1063. esac
  1064. done
  1065. if test -n "$ac_prev"; then
  1066. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1067. as_fn_error "missing argument to $ac_option"
  1068. fi
  1069. if test -n "$ac_unrecognized_opts"; then
  1070. case $enable_option_checking in
  1071. no) ;;
  1072. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1073. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1074. esac
  1075. fi
  1076. # Check all directory arguments for consistency.
  1077. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1078. datadir sysconfdir sharedstatedir localstatedir includedir \
  1079. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1080. libdir localedir mandir
  1081. do
  1082. eval ac_val=\$$ac_var
  1083. # Remove trailing slashes.
  1084. case $ac_val in
  1085. */ )
  1086. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1087. eval $ac_var=\$ac_val;;
  1088. esac
  1089. # Be sure to have absolute directory names.
  1090. case $ac_val in
  1091. [\\/$]* | ?:[\\/]* ) continue;;
  1092. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1093. esac
  1094. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1095. done
  1096. # There might be people who depend on the old broken behavior: `$host'
  1097. # used to hold the argument of --host etc.
  1098. # FIXME: To remove some day.
  1099. build=$build_alias
  1100. host=$host_alias
  1101. target=$target_alias
  1102. # FIXME: To remove some day.
  1103. if test "x$host_alias" != x; then
  1104. if test "x$build_alias" = x; then
  1105. cross_compiling=maybe
  1106. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1107. If a cross compiler is detected then cross compile mode will be used." >&2
  1108. elif test "x$build_alias" != "x$host_alias"; then
  1109. cross_compiling=yes
  1110. fi
  1111. fi
  1112. ac_tool_prefix=
  1113. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1114. test "$silent" = yes && exec 6>/dev/null
  1115. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1116. ac_ls_di=`ls -di .` &&
  1117. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1118. as_fn_error "working directory cannot be determined"
  1119. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1120. as_fn_error "pwd does not report name of working directory"
  1121. # Find the source files, if location was not specified.
  1122. if test -z "$srcdir"; then
  1123. ac_srcdir_defaulted=yes
  1124. # Try the directory containing this script, then the parent directory.
  1125. ac_confdir=`$as_dirname -- "$as_myself" ||
  1126. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1127. X"$as_myself" : 'X\(//\)[^/]' \| \
  1128. X"$as_myself" : 'X\(//\)$' \| \
  1129. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1130. $as_echo X"$as_myself" |
  1131. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1132. s//\1/
  1133. q
  1134. }
  1135. /^X\(\/\/\)[^/].*/{
  1136. s//\1/
  1137. q
  1138. }
  1139. /^X\(\/\/\)$/{
  1140. s//\1/
  1141. q
  1142. }
  1143. /^X\(\/\).*/{
  1144. s//\1/
  1145. q
  1146. }
  1147. s/.*/./; q'`
  1148. srcdir=$ac_confdir
  1149. if test ! -r "$srcdir/$ac_unique_file"; then
  1150. srcdir=..
  1151. fi
  1152. else
  1153. ac_srcdir_defaulted=no
  1154. fi
  1155. if test ! -r "$srcdir/$ac_unique_file"; then
  1156. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1157. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1158. fi
  1159. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1160. ac_abs_confdir=`(
  1161. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1162. pwd)`
  1163. # When building in place, set srcdir=.
  1164. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1165. srcdir=.
  1166. fi
  1167. # Remove unnecessary trailing slashes from srcdir.
  1168. # Double slashes in file names in object file debugging info
  1169. # mess up M-x gdb in Emacs.
  1170. case $srcdir in
  1171. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1172. esac
  1173. for ac_var in $ac_precious_vars; do
  1174. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1175. eval ac_env_${ac_var}_value=\$${ac_var}
  1176. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1177. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1178. done
  1179. #
  1180. # Report the --help message.
  1181. #
  1182. if test "$ac_init_help" = "long"; then
  1183. # Omit some internal or obsolete options to make the list less imposing.
  1184. # This message is too long to be a string in the A/UX 3.1 sh.
  1185. cat <<_ACEOF
  1186. \`configure' configures libcc1 version-unused to adapt to many kinds of systems.
  1187. Usage: $0 [OPTION]... [VAR=VALUE]...
  1188. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1189. VAR=VALUE. See below for descriptions of some of the useful variables.
  1190. Defaults for the options are specified in brackets.
  1191. Configuration:
  1192. -h, --help display this help and exit
  1193. --help=short display options specific to this package
  1194. --help=recursive display the short help of all the included packages
  1195. -V, --version display version information and exit
  1196. -q, --quiet, --silent do not print \`checking...' messages
  1197. --cache-file=FILE cache test results in FILE [disabled]
  1198. -C, --config-cache alias for \`--cache-file=config.cache'
  1199. -n, --no-create do not create output files
  1200. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1201. Installation directories:
  1202. --prefix=PREFIX install architecture-independent files in PREFIX
  1203. [$ac_default_prefix]
  1204. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1205. [PREFIX]
  1206. By default, \`make install' will install all the files in
  1207. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1208. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1209. for instance \`--prefix=\$HOME'.
  1210. For better control, use the options below.
  1211. Fine tuning of the installation directories:
  1212. --bindir=DIR user executables [EPREFIX/bin]
  1213. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1214. --libexecdir=DIR program executables [EPREFIX/libexec]
  1215. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1216. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1217. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1218. --libdir=DIR object code libraries [EPREFIX/lib]
  1219. --includedir=DIR C header files [PREFIX/include]
  1220. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1221. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1222. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1223. --infodir=DIR info documentation [DATAROOTDIR/info]
  1224. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1225. --mandir=DIR man documentation [DATAROOTDIR/man]
  1226. --docdir=DIR documentation root [DATAROOTDIR/doc/libcc1]
  1227. --htmldir=DIR html documentation [DOCDIR]
  1228. --dvidir=DIR dvi documentation [DOCDIR]
  1229. --pdfdir=DIR pdf documentation [DOCDIR]
  1230. --psdir=DIR ps documentation [DOCDIR]
  1231. _ACEOF
  1232. cat <<\_ACEOF
  1233. Program names:
  1234. --program-prefix=PREFIX prepend PREFIX to installed program names
  1235. --program-suffix=SUFFIX append SUFFIX to installed program names
  1236. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1237. System types:
  1238. --build=BUILD configure for building on BUILD [guessed]
  1239. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1240. --target=TARGET configure for building compilers for TARGET [HOST]
  1241. _ACEOF
  1242. fi
  1243. if test -n "$ac_init_help"; then
  1244. case $ac_init_help in
  1245. short | recursive ) echo "Configuration of libcc1 version-unused:";;
  1246. esac
  1247. cat <<\_ACEOF
  1248. Optional Features:
  1249. --disable-option-checking ignore unrecognized --enable/--with options
  1250. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1251. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1252. --disable-dependency-tracking speeds up one-time build
  1253. --enable-dependency-tracking do not reject slow dependency extractors
  1254. --enable-maintainer-mode enable make rules and dependencies not useful
  1255. (and sometimes confusing) to the casual installer
  1256. --enable-static[=PKGS] build static libraries [default=no]
  1257. --enable-shared[=PKGS] build shared libraries [default=yes]
  1258. --enable-fast-install[=PKGS]
  1259. optimize for fast installation [default=yes]
  1260. --disable-libtool-lock avoid locking (might break parallel builds)
  1261. --enable-werror-always enable -Werror despite compiler version
  1262. --enable-plugin enable plugin support
  1263. Optional Packages:
  1264. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1265. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1266. --with-build-libsubdir=DIR Directory where to find libraries for build system
  1267. --with-pic try to use only PIC/non-PIC objects [default=use
  1268. both]
  1269. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1270. Some influential environment variables:
  1271. CC C compiler command
  1272. CFLAGS C compiler flags
  1273. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1274. nonstandard directory <lib dir>
  1275. LIBS libraries to pass to the linker, e.g. -l<library>
  1276. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1277. you have headers in a nonstandard directory <include dir>
  1278. CPP C preprocessor
  1279. CXX C++ compiler command
  1280. CXXFLAGS C++ compiler flags
  1281. CXXCPP C++ preprocessor
  1282. GMPINC How to find GMP include files
  1283. Use these variables to override the choices made by `configure' or to help
  1284. it to find libraries and programs with nonstandard names/locations.
  1285. Report bugs to the package provider.
  1286. _ACEOF
  1287. ac_status=$?
  1288. fi
  1289. if test "$ac_init_help" = "recursive"; then
  1290. # If there are subdirs, report their specific --help.
  1291. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1292. test -d "$ac_dir" ||
  1293. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1294. continue
  1295. ac_builddir=.
  1296. case "$ac_dir" in
  1297. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1298. *)
  1299. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1300. # A ".." for each directory in $ac_dir_suffix.
  1301. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1302. case $ac_top_builddir_sub in
  1303. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1304. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1305. esac ;;
  1306. esac
  1307. ac_abs_top_builddir=$ac_pwd
  1308. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1309. # for backward compatibility:
  1310. ac_top_builddir=$ac_top_build_prefix
  1311. case $srcdir in
  1312. .) # We are building in place.
  1313. ac_srcdir=.
  1314. ac_top_srcdir=$ac_top_builddir_sub
  1315. ac_abs_top_srcdir=$ac_pwd ;;
  1316. [\\/]* | ?:[\\/]* ) # Absolute name.
  1317. ac_srcdir=$srcdir$ac_dir_suffix;
  1318. ac_top_srcdir=$srcdir
  1319. ac_abs_top_srcdir=$srcdir ;;
  1320. *) # Relative name.
  1321. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1322. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1323. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1324. esac
  1325. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1326. cd "$ac_dir" || { ac_status=$?; continue; }
  1327. # Check for guested configure.
  1328. if test -f "$ac_srcdir/configure.gnu"; then
  1329. echo &&
  1330. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1331. elif test -f "$ac_srcdir/configure"; then
  1332. echo &&
  1333. $SHELL "$ac_srcdir/configure" --help=recursive
  1334. else
  1335. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1336. fi || ac_status=$?
  1337. cd "$ac_pwd" || { ac_status=$?; break; }
  1338. done
  1339. fi
  1340. test -n "$ac_init_help" && exit $ac_status
  1341. if $ac_init_version; then
  1342. cat <<\_ACEOF
  1343. libcc1 configure version-unused
  1344. generated by GNU Autoconf 2.64
  1345. Copyright (C) 2009 Free Software Foundation, Inc.
  1346. This configure script is free software; the Free Software Foundation
  1347. gives unlimited permission to copy, distribute and modify it.
  1348. _ACEOF
  1349. exit
  1350. fi
  1351. ## ------------------------ ##
  1352. ## Autoconf initialization. ##
  1353. ## ------------------------ ##
  1354. # ac_fn_c_try_compile LINENO
  1355. # --------------------------
  1356. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1357. ac_fn_c_try_compile ()
  1358. {
  1359. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1360. rm -f conftest.$ac_objext
  1361. if { { ac_try="$ac_compile"
  1362. case "(($ac_try" in
  1363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1364. *) ac_try_echo=$ac_try;;
  1365. esac
  1366. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1367. $as_echo "$ac_try_echo"; } >&5
  1368. (eval "$ac_compile") 2>conftest.err
  1369. ac_status=$?
  1370. if test -s conftest.err; then
  1371. grep -v '^ *+' conftest.err >conftest.er1
  1372. cat conftest.er1 >&5
  1373. mv -f conftest.er1 conftest.err
  1374. fi
  1375. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1376. test $ac_status = 0; } && {
  1377. test -z "$ac_c_werror_flag" ||
  1378. test ! -s conftest.err
  1379. } && test -s conftest.$ac_objext; then :
  1380. ac_retval=0
  1381. else
  1382. $as_echo "$as_me: failed program was:" >&5
  1383. sed 's/^/| /' conftest.$ac_ext >&5
  1384. ac_retval=1
  1385. fi
  1386. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1387. return $ac_retval
  1388. } # ac_fn_c_try_compile
  1389. # ac_fn_c_try_cpp LINENO
  1390. # ----------------------
  1391. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1392. ac_fn_c_try_cpp ()
  1393. {
  1394. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1395. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1396. case "(($ac_try" in
  1397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1398. *) ac_try_echo=$ac_try;;
  1399. esac
  1400. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1401. $as_echo "$ac_try_echo"; } >&5
  1402. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1403. ac_status=$?
  1404. if test -s conftest.err; then
  1405. grep -v '^ *+' conftest.err >conftest.er1
  1406. cat conftest.er1 >&5
  1407. mv -f conftest.er1 conftest.err
  1408. fi
  1409. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1410. test $ac_status = 0; } >/dev/null && {
  1411. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1412. test ! -s conftest.err
  1413. }; then :
  1414. ac_retval=0
  1415. else
  1416. $as_echo "$as_me: failed program was:" >&5
  1417. sed 's/^/| /' conftest.$ac_ext >&5
  1418. ac_retval=1
  1419. fi
  1420. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1421. return $ac_retval
  1422. } # ac_fn_c_try_cpp
  1423. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1424. # -------------------------------------------------------
  1425. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1426. # the include files in INCLUDES and setting the cache variable VAR
  1427. # accordingly.
  1428. ac_fn_c_check_header_mongrel ()
  1429. {
  1430. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1431. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1433. $as_echo_n "checking for $2... " >&6; }
  1434. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1435. $as_echo_n "(cached) " >&6
  1436. fi
  1437. eval ac_res=\$$3
  1438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1439. $as_echo "$ac_res" >&6; }
  1440. else
  1441. # Is the header compilable?
  1442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1443. $as_echo_n "checking $2 usability... " >&6; }
  1444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1445. /* end confdefs.h. */
  1446. $4
  1447. #include <$2>
  1448. _ACEOF
  1449. if ac_fn_c_try_compile "$LINENO"; then :
  1450. ac_header_compiler=yes
  1451. else
  1452. ac_header_compiler=no
  1453. fi
  1454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1456. $as_echo "$ac_header_compiler" >&6; }
  1457. # Is the header present?
  1458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1459. $as_echo_n "checking $2 presence... " >&6; }
  1460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1461. /* end confdefs.h. */
  1462. #include <$2>
  1463. _ACEOF
  1464. if ac_fn_c_try_cpp "$LINENO"; then :
  1465. ac_header_preproc=yes
  1466. else
  1467. ac_header_preproc=no
  1468. fi
  1469. rm -f conftest.err conftest.$ac_ext
  1470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1471. $as_echo "$ac_header_preproc" >&6; }
  1472. # So? What about this header?
  1473. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1474. yes:no: )
  1475. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1476. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1477. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1478. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1479. ;;
  1480. no:yes:* )
  1481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1482. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1484. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1485. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1486. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1488. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1490. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1491. ;;
  1492. esac
  1493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1494. $as_echo_n "checking for $2... " >&6; }
  1495. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1496. $as_echo_n "(cached) " >&6
  1497. else
  1498. eval "$3=\$ac_header_compiler"
  1499. fi
  1500. eval ac_res=\$$3
  1501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1502. $as_echo "$ac_res" >&6; }
  1503. fi
  1504. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1505. } # ac_fn_c_check_header_mongrel
  1506. # ac_fn_c_try_run LINENO
  1507. # ----------------------
  1508. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1509. # that executables *can* be run.
  1510. ac_fn_c_try_run ()
  1511. {
  1512. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1513. if { { ac_try="$ac_link"
  1514. case "(($ac_try" in
  1515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1516. *) ac_try_echo=$ac_try;;
  1517. esac
  1518. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1519. $as_echo "$ac_try_echo"; } >&5
  1520. (eval "$ac_link") 2>&5
  1521. ac_status=$?
  1522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1523. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1524. { { case "(($ac_try" in
  1525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1526. *) ac_try_echo=$ac_try;;
  1527. esac
  1528. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1529. $as_echo "$ac_try_echo"; } >&5
  1530. (eval "$ac_try") 2>&5
  1531. ac_status=$?
  1532. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1533. test $ac_status = 0; }; }; then :
  1534. ac_retval=0
  1535. else
  1536. $as_echo "$as_me: program exited with status $ac_status" >&5
  1537. $as_echo "$as_me: failed program was:" >&5
  1538. sed 's/^/| /' conftest.$ac_ext >&5
  1539. ac_retval=$ac_status
  1540. fi
  1541. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1542. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1543. return $ac_retval
  1544. } # ac_fn_c_try_run
  1545. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1546. # -------------------------------------------------------
  1547. # Tests whether HEADER exists and can be compiled using the include files in
  1548. # INCLUDES, setting the cache variable VAR accordingly.
  1549. ac_fn_c_check_header_compile ()
  1550. {
  1551. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1553. $as_echo_n "checking for $2... " >&6; }
  1554. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1555. $as_echo_n "(cached) " >&6
  1556. else
  1557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1558. /* end confdefs.h. */
  1559. $4
  1560. #include <$2>
  1561. _ACEOF
  1562. if ac_fn_c_try_compile "$LINENO"; then :
  1563. eval "$3=yes"
  1564. else
  1565. eval "$3=no"
  1566. fi
  1567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1568. fi
  1569. eval ac_res=\$$3
  1570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1571. $as_echo "$ac_res" >&6; }
  1572. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1573. } # ac_fn_c_check_header_compile
  1574. # ac_fn_c_try_link LINENO
  1575. # -----------------------
  1576. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1577. ac_fn_c_try_link ()
  1578. {
  1579. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1580. rm -f conftest.$ac_objext conftest$ac_exeext
  1581. if { { ac_try="$ac_link"
  1582. case "(($ac_try" in
  1583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1584. *) ac_try_echo=$ac_try;;
  1585. esac
  1586. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1587. $as_echo "$ac_try_echo"; } >&5
  1588. (eval "$ac_link") 2>conftest.err
  1589. ac_status=$?
  1590. if test -s conftest.err; then
  1591. grep -v '^ *+' conftest.err >conftest.er1
  1592. cat conftest.er1 >&5
  1593. mv -f conftest.er1 conftest.err
  1594. fi
  1595. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1596. test $ac_status = 0; } && {
  1597. test -z "$ac_c_werror_flag" ||
  1598. test ! -s conftest.err
  1599. } && test -s conftest$ac_exeext && {
  1600. test "$cross_compiling" = yes ||
  1601. $as_test_x conftest$ac_exeext
  1602. }; then :
  1603. ac_retval=0
  1604. else
  1605. $as_echo "$as_me: failed program was:" >&5
  1606. sed 's/^/| /' conftest.$ac_ext >&5
  1607. ac_retval=1
  1608. fi
  1609. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1610. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1611. # interfere with the next link command; also delete a directory that is
  1612. # left behind by Apple's compiler. We do this before executing the actions.
  1613. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1614. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1615. return $ac_retval
  1616. } # ac_fn_c_try_link
  1617. # ac_fn_c_check_func LINENO FUNC VAR
  1618. # ----------------------------------
  1619. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1620. ac_fn_c_check_func ()
  1621. {
  1622. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1624. $as_echo_n "checking for $2... " >&6; }
  1625. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1626. $as_echo_n "(cached) " >&6
  1627. else
  1628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1629. /* end confdefs.h. */
  1630. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1631. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1632. #define $2 innocuous_$2
  1633. /* System header to define __stub macros and hopefully few prototypes,
  1634. which can conflict with char $2 (); below.
  1635. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1636. <limits.h> exists even on freestanding compilers. */
  1637. #ifdef __STDC__
  1638. # include <limits.h>
  1639. #else
  1640. # include <assert.h>
  1641. #endif
  1642. #undef $2
  1643. /* Override any GCC internal prototype to avoid an error.
  1644. Use char because int might match the return type of a GCC
  1645. builtin and then its argument prototype would still apply. */
  1646. #ifdef __cplusplus
  1647. extern "C"
  1648. #endif
  1649. char $2 ();
  1650. /* The GNU C library defines this for functions which it implements
  1651. to always fail with ENOSYS. Some functions are actually named
  1652. something starting with __ and the normal name is an alias. */
  1653. #if defined __stub_$2 || defined __stub___$2
  1654. choke me
  1655. #endif
  1656. int
  1657. main ()
  1658. {
  1659. return $2 ();
  1660. ;
  1661. return 0;
  1662. }
  1663. _ACEOF
  1664. if ac_fn_c_try_link "$LINENO"; then :
  1665. eval "$3=yes"
  1666. else
  1667. eval "$3=no"
  1668. fi
  1669. rm -f core conftest.err conftest.$ac_objext \
  1670. conftest$ac_exeext conftest.$ac_ext
  1671. fi
  1672. eval ac_res=\$$3
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1674. $as_echo "$ac_res" >&6; }
  1675. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1676. } # ac_fn_c_check_func
  1677. # ac_fn_cxx_try_compile LINENO
  1678. # ----------------------------
  1679. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1680. ac_fn_cxx_try_compile ()
  1681. {
  1682. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1683. rm -f conftest.$ac_objext
  1684. if { { ac_try="$ac_compile"
  1685. case "(($ac_try" in
  1686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1687. *) ac_try_echo=$ac_try;;
  1688. esac
  1689. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1690. $as_echo "$ac_try_echo"; } >&5
  1691. (eval "$ac_compile") 2>conftest.err
  1692. ac_status=$?
  1693. if test -s conftest.err; then
  1694. grep -v '^ *+' conftest.err >conftest.er1
  1695. cat conftest.er1 >&5
  1696. mv -f conftest.er1 conftest.err
  1697. fi
  1698. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1699. test $ac_status = 0; } && {
  1700. test -z "$ac_cxx_werror_flag" ||
  1701. test ! -s conftest.err
  1702. } && test -s conftest.$ac_objext; then :
  1703. ac_retval=0
  1704. else
  1705. $as_echo "$as_me: failed program was:" >&5
  1706. sed 's/^/| /' conftest.$ac_ext >&5
  1707. ac_retval=1
  1708. fi
  1709. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1710. return $ac_retval
  1711. } # ac_fn_cxx_try_compile
  1712. # ac_fn_cxx_try_cpp LINENO
  1713. # ------------------------
  1714. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1715. ac_fn_cxx_try_cpp ()
  1716. {
  1717. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1718. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1719. case "(($ac_try" in
  1720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1721. *) ac_try_echo=$ac_try;;
  1722. esac
  1723. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1724. $as_echo "$ac_try_echo"; } >&5
  1725. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1726. ac_status=$?
  1727. if test -s conftest.err; then
  1728. grep -v '^ *+' conftest.err >conftest.er1
  1729. cat conftest.er1 >&5
  1730. mv -f conftest.er1 conftest.err
  1731. fi
  1732. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1733. test $ac_status = 0; } >/dev/null && {
  1734. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1735. test ! -s conftest.err
  1736. }; then :
  1737. ac_retval=0
  1738. else
  1739. $as_echo "$as_me: failed program was:" >&5
  1740. sed 's/^/| /' conftest.$ac_ext >&5
  1741. ac_retval=1
  1742. fi
  1743. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1744. return $ac_retval
  1745. } # ac_fn_cxx_try_cpp
  1746. # ac_fn_cxx_try_link LINENO
  1747. # -------------------------
  1748. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1749. ac_fn_cxx_try_link ()
  1750. {
  1751. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1752. rm -f conftest.$ac_objext conftest$ac_exeext
  1753. if { { ac_try="$ac_link"
  1754. case "(($ac_try" in
  1755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1756. *) ac_try_echo=$ac_try;;
  1757. esac
  1758. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1759. $as_echo "$ac_try_echo"; } >&5
  1760. (eval "$ac_link") 2>conftest.err
  1761. ac_status=$?
  1762. if test -s conftest.err; then
  1763. grep -v '^ *+' conftest.err >conftest.er1
  1764. cat conftest.er1 >&5
  1765. mv -f conftest.er1 conftest.err
  1766. fi
  1767. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1768. test $ac_status = 0; } && {
  1769. test -z "$ac_cxx_werror_flag" ||
  1770. test ! -s conftest.err
  1771. } && test -s conftest$ac_exeext && {
  1772. test "$cross_compiling" = yes ||
  1773. $as_test_x conftest$ac_exeext
  1774. }; then :
  1775. ac_retval=0
  1776. else
  1777. $as_echo "$as_me: failed program was:" >&5
  1778. sed 's/^/| /' conftest.$ac_ext >&5
  1779. ac_retval=1
  1780. fi
  1781. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1782. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1783. # interfere with the next link command; also delete a directory that is
  1784. # left behind by Apple's compiler. We do this before executing the actions.
  1785. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1786. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1787. return $ac_retval
  1788. } # ac_fn_cxx_try_link
  1789. # ac_fn_c_check_decl LINENO SYMBOL VAR
  1790. # ------------------------------------
  1791. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  1792. ac_fn_c_check_decl ()
  1793. {
  1794. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1795. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1796. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1798. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1799. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1800. $as_echo_n "(cached) " >&6
  1801. else
  1802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1803. /* end confdefs.h. */
  1804. $4
  1805. int
  1806. main ()
  1807. {
  1808. #ifndef $as_decl_name
  1809. #ifdef __cplusplus
  1810. (void) $as_decl_use;
  1811. #else
  1812. (void) $as_decl_name;
  1813. #endif
  1814. #endif
  1815. ;
  1816. return 0;
  1817. }
  1818. _ACEOF
  1819. if ac_fn_c_try_compile "$LINENO"; then :
  1820. eval "$3=yes"
  1821. else
  1822. eval "$3=no"
  1823. fi
  1824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1825. fi
  1826. eval ac_res=\$$3
  1827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1828. $as_echo "$ac_res" >&6; }
  1829. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1830. } # ac_fn_c_check_decl
  1831. cat >config.log <<_ACEOF
  1832. This file contains any messages produced by compilers while
  1833. running configure, to aid debugging if configure makes a mistake.
  1834. It was created by libcc1 $as_me version-unused, which was
  1835. generated by GNU Autoconf 2.64. Invocation command line was
  1836. $ $0 $@
  1837. _ACEOF
  1838. exec 5>>config.log
  1839. {
  1840. cat <<_ASUNAME
  1841. ## --------- ##
  1842. ## Platform. ##
  1843. ## --------- ##
  1844. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1845. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1846. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1847. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1848. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1849. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1850. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1851. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1852. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1853. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1854. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1855. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1856. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1857. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1858. _ASUNAME
  1859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1860. for as_dir in $PATH
  1861. do
  1862. IFS=$as_save_IFS
  1863. test -z "$as_dir" && as_dir=.
  1864. $as_echo "PATH: $as_dir"
  1865. done
  1866. IFS=$as_save_IFS
  1867. } >&5
  1868. cat >&5 <<_ACEOF
  1869. ## ----------- ##
  1870. ## Core tests. ##
  1871. ## ----------- ##
  1872. _ACEOF
  1873. # Keep a trace of the command line.
  1874. # Strip out --no-create and --no-recursion so they do not pile up.
  1875. # Strip out --silent because we don't want to record it for future runs.
  1876. # Also quote any args containing shell meta-characters.
  1877. # Make two passes to allow for proper duplicate-argument suppression.
  1878. ac_configure_args=
  1879. ac_configure_args0=
  1880. ac_configure_args1=
  1881. ac_must_keep_next=false
  1882. for ac_pass in 1 2
  1883. do
  1884. for ac_arg
  1885. do
  1886. case $ac_arg in
  1887. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1888. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1889. | -silent | --silent | --silen | --sile | --sil)
  1890. continue ;;
  1891. *\'*)
  1892. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1893. esac
  1894. case $ac_pass in
  1895. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1896. 2)
  1897. as_fn_append ac_configure_args1 " '$ac_arg'"
  1898. if test $ac_must_keep_next = true; then
  1899. ac_must_keep_next=false # Got value, back to normal.
  1900. else
  1901. case $ac_arg in
  1902. *=* | --config-cache | -C | -disable-* | --disable-* \
  1903. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1904. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1905. | -with-* | --with-* | -without-* | --without-* | --x)
  1906. case "$ac_configure_args0 " in
  1907. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1908. esac
  1909. ;;
  1910. -* ) ac_must_keep_next=true ;;
  1911. esac
  1912. fi
  1913. as_fn_append ac_configure_args " '$ac_arg'"
  1914. ;;
  1915. esac
  1916. done
  1917. done
  1918. { ac_configure_args0=; unset ac_configure_args0;}
  1919. { ac_configure_args1=; unset ac_configure_args1;}
  1920. # When interrupted or exit'd, cleanup temporary files, and complete
  1921. # config.log. We remove comments because anyway the quotes in there
  1922. # would cause problems or look ugly.
  1923. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1924. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1925. trap 'exit_status=$?
  1926. # Save into config.log some information that might help in debugging.
  1927. {
  1928. echo
  1929. cat <<\_ASBOX
  1930. ## ---------------- ##
  1931. ## Cache variables. ##
  1932. ## ---------------- ##
  1933. _ASBOX
  1934. echo
  1935. # The following way of writing the cache mishandles newlines in values,
  1936. (
  1937. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1938. eval ac_val=\$$ac_var
  1939. case $ac_val in #(
  1940. *${as_nl}*)
  1941. case $ac_var in #(
  1942. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1943. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1944. esac
  1945. case $ac_var in #(
  1946. _ | IFS | as_nl) ;; #(
  1947. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1948. *) { eval $ac_var=; unset $ac_var;} ;;
  1949. esac ;;
  1950. esac
  1951. done
  1952. (set) 2>&1 |
  1953. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1954. *${as_nl}ac_space=\ *)
  1955. sed -n \
  1956. "s/'\''/'\''\\\\'\'''\''/g;
  1957. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1958. ;; #(
  1959. *)
  1960. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1961. ;;
  1962. esac |
  1963. sort
  1964. )
  1965. echo
  1966. cat <<\_ASBOX
  1967. ## ----------------- ##
  1968. ## Output variables. ##
  1969. ## ----------------- ##
  1970. _ASBOX
  1971. echo
  1972. for ac_var in $ac_subst_vars
  1973. do
  1974. eval ac_val=\$$ac_var
  1975. case $ac_val in
  1976. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1977. esac
  1978. $as_echo "$ac_var='\''$ac_val'\''"
  1979. done | sort
  1980. echo
  1981. if test -n "$ac_subst_files"; then
  1982. cat <<\_ASBOX
  1983. ## ------------------- ##
  1984. ## File substitutions. ##
  1985. ## ------------------- ##
  1986. _ASBOX
  1987. echo
  1988. for ac_var in $ac_subst_files
  1989. do
  1990. eval ac_val=\$$ac_var
  1991. case $ac_val in
  1992. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1993. esac
  1994. $as_echo "$ac_var='\''$ac_val'\''"
  1995. done | sort
  1996. echo
  1997. fi
  1998. if test -s confdefs.h; then
  1999. cat <<\_ASBOX
  2000. ## ----------- ##
  2001. ## confdefs.h. ##
  2002. ## ----------- ##
  2003. _ASBOX
  2004. echo
  2005. cat confdefs.h
  2006. echo
  2007. fi
  2008. test "$ac_signal" != 0 &&
  2009. $as_echo "$as_me: caught signal $ac_signal"
  2010. $as_echo "$as_me: exit $exit_status"
  2011. } >&5
  2012. rm -f core *.core core.conftest.* &&
  2013. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2014. exit $exit_status
  2015. ' 0
  2016. for ac_signal in 1 2 13 15; do
  2017. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2018. done
  2019. ac_signal=0
  2020. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2021. rm -f -r conftest* confdefs.h
  2022. $as_echo "/* confdefs.h */" > confdefs.h
  2023. # Predefined preprocessor variables.
  2024. cat >>confdefs.h <<_ACEOF
  2025. #define PACKAGE_NAME "$PACKAGE_NAME"
  2026. _ACEOF
  2027. cat >>confdefs.h <<_ACEOF
  2028. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2029. _ACEOF
  2030. cat >>confdefs.h <<_ACEOF
  2031. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2032. _ACEOF
  2033. cat >>confdefs.h <<_ACEOF
  2034. #define PACKAGE_STRING "$PACKAGE_STRING"
  2035. _ACEOF
  2036. cat >>confdefs.h <<_ACEOF
  2037. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2038. _ACEOF
  2039. cat >>confdefs.h <<_ACEOF
  2040. #define PACKAGE_URL "$PACKAGE_URL"
  2041. _ACEOF
  2042. # Let the site file select an alternate cache file if it wants to.
  2043. # Prefer an explicitly selected file to automatically selected ones.
  2044. ac_site_file1=NONE
  2045. ac_site_file2=NONE
  2046. if test -n "$CONFIG_SITE"; then
  2047. ac_site_file1=$CONFIG_SITE
  2048. elif test "x$prefix" != xNONE; then
  2049. ac_site_file1=$prefix/share/config.site
  2050. ac_site_file2=$prefix/etc/config.site
  2051. else
  2052. ac_site_file1=$ac_default_prefix/share/config.site
  2053. ac_site_file2=$ac_default_prefix/etc/config.site
  2054. fi
  2055. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2056. do
  2057. test "x$ac_site_file" = xNONE && continue
  2058. if test -r "$ac_site_file"; then
  2059. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2060. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2061. sed 's/^/| /' "$ac_site_file" >&5
  2062. . "$ac_site_file"
  2063. fi
  2064. done
  2065. if test -r "$cache_file"; then
  2066. # Some versions of bash will fail to source /dev/null (special
  2067. # files actually), so we avoid doing that.
  2068. if test -f "$cache_file"; then
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2070. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2071. case $cache_file in
  2072. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2073. *) . "./$cache_file";;
  2074. esac
  2075. fi
  2076. else
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2078. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2079. >$cache_file
  2080. fi
  2081. # Check that the precious variables saved in the cache have kept the same
  2082. # value.
  2083. ac_cache_corrupted=false
  2084. for ac_var in $ac_precious_vars; do
  2085. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2086. eval ac_new_set=\$ac_env_${ac_var}_set
  2087. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2088. eval ac_new_val=\$ac_env_${ac_var}_value
  2089. case $ac_old_set,$ac_new_set in
  2090. set,)
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2092. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2093. ac_cache_corrupted=: ;;
  2094. ,set)
  2095. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2096. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2097. ac_cache_corrupted=: ;;
  2098. ,);;
  2099. *)
  2100. if test "x$ac_old_val" != "x$ac_new_val"; then
  2101. # differences in whitespace do not lead to failure.
  2102. ac_old_val_w=`echo x $ac_old_val`
  2103. ac_new_val_w=`echo x $ac_new_val`
  2104. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2106. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2107. ac_cache_corrupted=:
  2108. else
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2110. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2111. eval $ac_var=\$ac_old_val
  2112. fi
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2114. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2116. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2117. fi;;
  2118. esac
  2119. # Pass precious variables to config.status.
  2120. if test "$ac_new_set" = set; then
  2121. case $ac_new_val in
  2122. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2123. *) ac_arg=$ac_var=$ac_new_val ;;
  2124. esac
  2125. case " $ac_configure_args " in
  2126. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2127. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2128. esac
  2129. fi
  2130. done
  2131. if $ac_cache_corrupted; then
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2133. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2135. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2136. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2137. fi
  2138. ## -------------------- ##
  2139. ## Main body of script. ##
  2140. ## -------------------- ##
  2141. ac_ext=c
  2142. ac_cpp='$CPP $CPPFLAGS'
  2143. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2144. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2145. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2146. ac_config_headers="$ac_config_headers cc1plugin-config.h"
  2147. ac_aux_dir=
  2148. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2149. for ac_t in install-sh install.sh shtool; do
  2150. if test -f "$ac_dir/$ac_t"; then
  2151. ac_aux_dir=$ac_dir
  2152. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2153. break 2
  2154. fi
  2155. done
  2156. done
  2157. if test -z "$ac_aux_dir"; then
  2158. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2159. fi
  2160. # These three variables are undocumented and unsupported,
  2161. # and are intended to be withdrawn in a future Autoconf release.
  2162. # They can cause serious problems if a builder's source tree is in a directory
  2163. # whose full name contains unusual characters.
  2164. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2165. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2166. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2167. # Make sure we can run config.sub.
  2168. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2169. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2171. $as_echo_n "checking build system type... " >&6; }
  2172. if test "${ac_cv_build+set}" = set; then :
  2173. $as_echo_n "(cached) " >&6
  2174. else
  2175. ac_build_alias=$build_alias
  2176. test "x$ac_build_alias" = x &&
  2177. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2178. test "x$ac_build_alias" = x &&
  2179. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2180. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2181. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2182. fi
  2183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2184. $as_echo "$ac_cv_build" >&6; }
  2185. case $ac_cv_build in
  2186. *-*-*) ;;
  2187. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2188. esac
  2189. build=$ac_cv_build
  2190. ac_save_IFS=$IFS; IFS='-'
  2191. set x $ac_cv_build
  2192. shift
  2193. build_cpu=$1
  2194. build_vendor=$2
  2195. shift; shift
  2196. # Remember, the first character of IFS is used to create $*,
  2197. # except with old shells:
  2198. build_os=$*
  2199. IFS=$ac_save_IFS
  2200. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2202. $as_echo_n "checking host system type... " >&6; }
  2203. if test "${ac_cv_host+set}" = set; then :
  2204. $as_echo_n "(cached) " >&6
  2205. else
  2206. if test "x$host_alias" = x; then
  2207. ac_cv_host=$ac_cv_build
  2208. else
  2209. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2210. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2211. fi
  2212. fi
  2213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2214. $as_echo "$ac_cv_host" >&6; }
  2215. case $ac_cv_host in
  2216. *-*-*) ;;
  2217. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2218. esac
  2219. host=$ac_cv_host
  2220. ac_save_IFS=$IFS; IFS='-'
  2221. set x $ac_cv_host
  2222. shift
  2223. host_cpu=$1
  2224. host_vendor=$2
  2225. shift; shift
  2226. # Remember, the first character of IFS is used to create $*,
  2227. # except with old shells:
  2228. host_os=$*
  2229. IFS=$ac_save_IFS
  2230. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2232. $as_echo_n "checking target system type... " >&6; }
  2233. if test "${ac_cv_target+set}" = set; then :
  2234. $as_echo_n "(cached) " >&6
  2235. else
  2236. if test "x$target_alias" = x; then
  2237. ac_cv_target=$ac_cv_host
  2238. else
  2239. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2240. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2241. fi
  2242. fi
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2244. $as_echo "$ac_cv_target" >&6; }
  2245. case $ac_cv_target in
  2246. *-*-*) ;;
  2247. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2248. esac
  2249. target=$ac_cv_target
  2250. ac_save_IFS=$IFS; IFS='-'
  2251. set x $ac_cv_target
  2252. shift
  2253. target_cpu=$1
  2254. target_vendor=$2
  2255. shift; shift
  2256. # Remember, the first character of IFS is used to create $*,
  2257. # except with old shells:
  2258. target_os=$*
  2259. IFS=$ac_save_IFS
  2260. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2261. # The aliases save the names the user supplied, while $host etc.
  2262. # will get canonicalized.
  2263. test -n "$target_alias" &&
  2264. test "$program_prefix$program_suffix$program_transform_name" = \
  2265. NONENONEs,x,x, &&
  2266. program_prefix=${target_alias}-
  2267. ac_ext=c
  2268. ac_cpp='$CPP $CPPFLAGS'
  2269. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2270. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2271. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2272. if test -n "$ac_tool_prefix"; then
  2273. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2274. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2276. $as_echo_n "checking for $ac_word... " >&6; }
  2277. if test "${ac_cv_prog_CC+set}" = set; then :
  2278. $as_echo_n "(cached) " >&6
  2279. else
  2280. if test -n "$CC"; then
  2281. ac_cv_prog_CC="$CC" # Let the user override the test.
  2282. else
  2283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2284. for as_dir in $PATH
  2285. do
  2286. IFS=$as_save_IFS
  2287. test -z "$as_dir" && as_dir=.
  2288. for ac_exec_ext in '' $ac_executable_extensions; do
  2289. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2290. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2291. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2292. break 2
  2293. fi
  2294. done
  2295. done
  2296. IFS=$as_save_IFS
  2297. fi
  2298. fi
  2299. CC=$ac_cv_prog_CC
  2300. if test -n "$CC"; then
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2302. $as_echo "$CC" >&6; }
  2303. else
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2305. $as_echo "no" >&6; }
  2306. fi
  2307. fi
  2308. if test -z "$ac_cv_prog_CC"; then
  2309. ac_ct_CC=$CC
  2310. # Extract the first word of "gcc", so it can be a program name with args.
  2311. set dummy gcc; ac_word=$2
  2312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2313. $as_echo_n "checking for $ac_word... " >&6; }
  2314. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2315. $as_echo_n "(cached) " >&6
  2316. else
  2317. if test -n "$ac_ct_CC"; then
  2318. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2319. else
  2320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2321. for as_dir in $PATH
  2322. do
  2323. IFS=$as_save_IFS
  2324. test -z "$as_dir" && as_dir=.
  2325. for ac_exec_ext in '' $ac_executable_extensions; do
  2326. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2327. ac_cv_prog_ac_ct_CC="gcc"
  2328. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2329. break 2
  2330. fi
  2331. done
  2332. done
  2333. IFS=$as_save_IFS
  2334. fi
  2335. fi
  2336. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2337. if test -n "$ac_ct_CC"; then
  2338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2339. $as_echo "$ac_ct_CC" >&6; }
  2340. else
  2341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2342. $as_echo "no" >&6; }
  2343. fi
  2344. if test "x$ac_ct_CC" = x; then
  2345. CC=""
  2346. else
  2347. case $cross_compiling:$ac_tool_warned in
  2348. yes:)
  2349. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2350. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2351. ac_tool_warned=yes ;;
  2352. esac
  2353. CC=$ac_ct_CC
  2354. fi
  2355. else
  2356. CC="$ac_cv_prog_CC"
  2357. fi
  2358. if test -z "$CC"; then
  2359. if test -n "$ac_tool_prefix"; then
  2360. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2361. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2363. $as_echo_n "checking for $ac_word... " >&6; }
  2364. if test "${ac_cv_prog_CC+set}" = set; then :
  2365. $as_echo_n "(cached) " >&6
  2366. else
  2367. if test -n "$CC"; then
  2368. ac_cv_prog_CC="$CC" # Let the user override the test.
  2369. else
  2370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2371. for as_dir in $PATH
  2372. do
  2373. IFS=$as_save_IFS
  2374. test -z "$as_dir" && as_dir=.
  2375. for ac_exec_ext in '' $ac_executable_extensions; do
  2376. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2377. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2378. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2379. break 2
  2380. fi
  2381. done
  2382. done
  2383. IFS=$as_save_IFS
  2384. fi
  2385. fi
  2386. CC=$ac_cv_prog_CC
  2387. if test -n "$CC"; then
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2389. $as_echo "$CC" >&6; }
  2390. else
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2392. $as_echo "no" >&6; }
  2393. fi
  2394. fi
  2395. fi
  2396. if test -z "$CC"; then
  2397. # Extract the first word of "cc", so it can be a program name with args.
  2398. set dummy cc; ac_word=$2
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2400. $as_echo_n "checking for $ac_word... " >&6; }
  2401. if test "${ac_cv_prog_CC+set}" = set; then :
  2402. $as_echo_n "(cached) " >&6
  2403. else
  2404. if test -n "$CC"; then
  2405. ac_cv_prog_CC="$CC" # Let the user override the test.
  2406. else
  2407. ac_prog_rejected=no
  2408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2409. for as_dir in $PATH
  2410. do
  2411. IFS=$as_save_IFS
  2412. test -z "$as_dir" && as_dir=.
  2413. for ac_exec_ext in '' $ac_executable_extensions; do
  2414. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2415. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2416. ac_prog_rejected=yes
  2417. continue
  2418. fi
  2419. ac_cv_prog_CC="cc"
  2420. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2421. break 2
  2422. fi
  2423. done
  2424. done
  2425. IFS=$as_save_IFS
  2426. if test $ac_prog_rejected = yes; then
  2427. # We found a bogon in the path, so make sure we never use it.
  2428. set dummy $ac_cv_prog_CC
  2429. shift
  2430. if test $# != 0; then
  2431. # We chose a different compiler from the bogus one.
  2432. # However, it has the same basename, so the bogon will be chosen
  2433. # first if we set CC to just the basename; use the full file name.
  2434. shift
  2435. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2436. fi
  2437. fi
  2438. fi
  2439. fi
  2440. CC=$ac_cv_prog_CC
  2441. if test -n "$CC"; then
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2443. $as_echo "$CC" >&6; }
  2444. else
  2445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2446. $as_echo "no" >&6; }
  2447. fi
  2448. fi
  2449. if test -z "$CC"; then
  2450. if test -n "$ac_tool_prefix"; then
  2451. for ac_prog in cl.exe
  2452. do
  2453. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2454. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2456. $as_echo_n "checking for $ac_word... " >&6; }
  2457. if test "${ac_cv_prog_CC+set}" = set; then :
  2458. $as_echo_n "(cached) " >&6
  2459. else
  2460. if test -n "$CC"; then
  2461. ac_cv_prog_CC="$CC" # Let the user override the test.
  2462. else
  2463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2464. for as_dir in $PATH
  2465. do
  2466. IFS=$as_save_IFS
  2467. test -z "$as_dir" && as_dir=.
  2468. for ac_exec_ext in '' $ac_executable_extensions; do
  2469. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2470. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2471. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2472. break 2
  2473. fi
  2474. done
  2475. done
  2476. IFS=$as_save_IFS
  2477. fi
  2478. fi
  2479. CC=$ac_cv_prog_CC
  2480. if test -n "$CC"; then
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2482. $as_echo "$CC" >&6; }
  2483. else
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2485. $as_echo "no" >&6; }
  2486. fi
  2487. test -n "$CC" && break
  2488. done
  2489. fi
  2490. if test -z "$CC"; then
  2491. ac_ct_CC=$CC
  2492. for ac_prog in cl.exe
  2493. do
  2494. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2495. set dummy $ac_prog; ac_word=$2
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2497. $as_echo_n "checking for $ac_word... " >&6; }
  2498. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2499. $as_echo_n "(cached) " >&6
  2500. else
  2501. if test -n "$ac_ct_CC"; then
  2502. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2503. else
  2504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2505. for as_dir in $PATH
  2506. do
  2507. IFS=$as_save_IFS
  2508. test -z "$as_dir" && as_dir=.
  2509. for ac_exec_ext in '' $ac_executable_extensions; do
  2510. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2511. ac_cv_prog_ac_ct_CC="$ac_prog"
  2512. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2513. break 2
  2514. fi
  2515. done
  2516. done
  2517. IFS=$as_save_IFS
  2518. fi
  2519. fi
  2520. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2521. if test -n "$ac_ct_CC"; then
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2523. $as_echo "$ac_ct_CC" >&6; }
  2524. else
  2525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2526. $as_echo "no" >&6; }
  2527. fi
  2528. test -n "$ac_ct_CC" && break
  2529. done
  2530. if test "x$ac_ct_CC" = x; then
  2531. CC=""
  2532. else
  2533. case $cross_compiling:$ac_tool_warned in
  2534. yes:)
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2536. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2537. ac_tool_warned=yes ;;
  2538. esac
  2539. CC=$ac_ct_CC
  2540. fi
  2541. fi
  2542. fi
  2543. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2544. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2545. as_fn_error "no acceptable C compiler found in \$PATH
  2546. See \`config.log' for more details." "$LINENO" 5; }
  2547. # Provide some information about the compiler.
  2548. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2549. set X $ac_compile
  2550. ac_compiler=$2
  2551. for ac_option in --version -v -V -qversion; do
  2552. { { ac_try="$ac_compiler $ac_option >&5"
  2553. case "(($ac_try" in
  2554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2555. *) ac_try_echo=$ac_try;;
  2556. esac
  2557. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2558. $as_echo "$ac_try_echo"; } >&5
  2559. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2560. ac_status=$?
  2561. if test -s conftest.err; then
  2562. sed '10a\
  2563. ... rest of stderr output deleted ...
  2564. 10q' conftest.err >conftest.er1
  2565. cat conftest.er1 >&5
  2566. rm -f conftest.er1 conftest.err
  2567. fi
  2568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2569. test $ac_status = 0; }
  2570. done
  2571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2572. /* end confdefs.h. */
  2573. int
  2574. main ()
  2575. {
  2576. ;
  2577. return 0;
  2578. }
  2579. _ACEOF
  2580. ac_clean_files_save=$ac_clean_files
  2581. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2582. # Try to create an executable without -o first, disregard a.out.
  2583. # It will help us diagnose broken compilers, and finding out an intuition
  2584. # of exeext.
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2586. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2587. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2588. # The possible output files:
  2589. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2590. ac_rmfiles=
  2591. for ac_file in $ac_files
  2592. do
  2593. case $ac_file in
  2594. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2595. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2596. esac
  2597. done
  2598. rm -f $ac_rmfiles
  2599. if { { ac_try="$ac_link_default"
  2600. case "(($ac_try" in
  2601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2602. *) ac_try_echo=$ac_try;;
  2603. esac
  2604. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2605. $as_echo "$ac_try_echo"; } >&5
  2606. (eval "$ac_link_default") 2>&5
  2607. ac_status=$?
  2608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2609. test $ac_status = 0; }; then :
  2610. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2611. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2612. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2613. # so that the user can short-circuit this test for compilers unknown to
  2614. # Autoconf.
  2615. for ac_file in $ac_files ''
  2616. do
  2617. test -f "$ac_file" || continue
  2618. case $ac_file in
  2619. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2620. ;;
  2621. [ab].out )
  2622. # We found the default executable, but exeext='' is most
  2623. # certainly right.
  2624. break;;
  2625. *.* )
  2626. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2627. then :; else
  2628. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2629. fi
  2630. # We set ac_cv_exeext here because the later test for it is not
  2631. # safe: cross compilers may not add the suffix if given an `-o'
  2632. # argument, so we may need to know it at that point already.
  2633. # Even if this section looks crufty: it has the advantage of
  2634. # actually working.
  2635. break;;
  2636. * )
  2637. break;;
  2638. esac
  2639. done
  2640. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2641. else
  2642. ac_file=''
  2643. fi
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2645. $as_echo "$ac_file" >&6; }
  2646. if test -z "$ac_file"; then :
  2647. $as_echo "$as_me: failed program was:" >&5
  2648. sed 's/^/| /' conftest.$ac_ext >&5
  2649. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2650. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2651. { as_fn_set_status 77
  2652. as_fn_error "C compiler cannot create executables
  2653. See \`config.log' for more details." "$LINENO" 5; }; }
  2654. fi
  2655. ac_exeext=$ac_cv_exeext
  2656. # Check that the compiler produces executables we can run. If not, either
  2657. # the compiler is broken, or we cross compile.
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2659. $as_echo_n "checking whether the C compiler works... " >&6; }
  2660. # If not cross compiling, check that we can run a simple program.
  2661. if test "$cross_compiling" != yes; then
  2662. if { ac_try='./$ac_file'
  2663. { { case "(($ac_try" in
  2664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2665. *) ac_try_echo=$ac_try;;
  2666. esac
  2667. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2668. $as_echo "$ac_try_echo"; } >&5
  2669. (eval "$ac_try") 2>&5
  2670. ac_status=$?
  2671. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2672. test $ac_status = 0; }; }; then
  2673. cross_compiling=no
  2674. else
  2675. if test "$cross_compiling" = maybe; then
  2676. cross_compiling=yes
  2677. else
  2678. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2679. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2680. as_fn_error "cannot run C compiled programs.
  2681. If you meant to cross compile, use \`--host'.
  2682. See \`config.log' for more details." "$LINENO" 5; }
  2683. fi
  2684. fi
  2685. fi
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2687. $as_echo "yes" >&6; }
  2688. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2689. ac_clean_files=$ac_clean_files_save
  2690. # Check that the compiler produces executables we can run. If not, either
  2691. # the compiler is broken, or we cross compile.
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2693. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2695. $as_echo "$cross_compiling" >&6; }
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2697. $as_echo_n "checking for suffix of executables... " >&6; }
  2698. if { { ac_try="$ac_link"
  2699. case "(($ac_try" in
  2700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2701. *) ac_try_echo=$ac_try;;
  2702. esac
  2703. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2704. $as_echo "$ac_try_echo"; } >&5
  2705. (eval "$ac_link") 2>&5
  2706. ac_status=$?
  2707. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2708. test $ac_status = 0; }; then :
  2709. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2710. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2711. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2712. # `rm'.
  2713. for ac_file in conftest.exe conftest conftest.*; do
  2714. test -f "$ac_file" || continue
  2715. case $ac_file in
  2716. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2717. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2718. break;;
  2719. * ) break;;
  2720. esac
  2721. done
  2722. else
  2723. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2724. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2725. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2726. See \`config.log' for more details." "$LINENO" 5; }
  2727. fi
  2728. rm -f conftest$ac_cv_exeext
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2730. $as_echo "$ac_cv_exeext" >&6; }
  2731. rm -f conftest.$ac_ext
  2732. EXEEXT=$ac_cv_exeext
  2733. ac_exeext=$EXEEXT
  2734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2735. $as_echo_n "checking for suffix of object files... " >&6; }
  2736. if test "${ac_cv_objext+set}" = set; then :
  2737. $as_echo_n "(cached) " >&6
  2738. else
  2739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2740. /* end confdefs.h. */
  2741. int
  2742. main ()
  2743. {
  2744. ;
  2745. return 0;
  2746. }
  2747. _ACEOF
  2748. rm -f conftest.o conftest.obj
  2749. if { { ac_try="$ac_compile"
  2750. case "(($ac_try" in
  2751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2752. *) ac_try_echo=$ac_try;;
  2753. esac
  2754. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2755. $as_echo "$ac_try_echo"; } >&5
  2756. (eval "$ac_compile") 2>&5
  2757. ac_status=$?
  2758. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2759. test $ac_status = 0; }; then :
  2760. for ac_file in conftest.o conftest.obj conftest.*; do
  2761. test -f "$ac_file" || continue;
  2762. case $ac_file in
  2763. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2764. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2765. break;;
  2766. esac
  2767. done
  2768. else
  2769. $as_echo "$as_me: failed program was:" >&5
  2770. sed 's/^/| /' conftest.$ac_ext >&5
  2771. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2772. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2773. as_fn_error "cannot compute suffix of object files: cannot compile
  2774. See \`config.log' for more details." "$LINENO" 5; }
  2775. fi
  2776. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2777. fi
  2778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2779. $as_echo "$ac_cv_objext" >&6; }
  2780. OBJEXT=$ac_cv_objext
  2781. ac_objext=$OBJEXT
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2783. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2784. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2785. $as_echo_n "(cached) " >&6
  2786. else
  2787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2788. /* end confdefs.h. */
  2789. int
  2790. main ()
  2791. {
  2792. #ifndef __GNUC__
  2793. choke me
  2794. #endif
  2795. ;
  2796. return 0;
  2797. }
  2798. _ACEOF
  2799. if ac_fn_c_try_compile "$LINENO"; then :
  2800. ac_compiler_gnu=yes
  2801. else
  2802. ac_compiler_gnu=no
  2803. fi
  2804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2805. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2806. fi
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2808. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2809. if test $ac_compiler_gnu = yes; then
  2810. GCC=yes
  2811. else
  2812. GCC=
  2813. fi
  2814. ac_test_CFLAGS=${CFLAGS+set}
  2815. ac_save_CFLAGS=$CFLAGS
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2817. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2818. if test "${ac_cv_prog_cc_g+set}" = set; then :
  2819. $as_echo_n "(cached) " >&6
  2820. else
  2821. ac_save_c_werror_flag=$ac_c_werror_flag
  2822. ac_c_werror_flag=yes
  2823. ac_cv_prog_cc_g=no
  2824. CFLAGS="-g"
  2825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2826. /* end confdefs.h. */
  2827. int
  2828. main ()
  2829. {
  2830. ;
  2831. return 0;
  2832. }
  2833. _ACEOF
  2834. if ac_fn_c_try_compile "$LINENO"; then :
  2835. ac_cv_prog_cc_g=yes
  2836. else
  2837. CFLAGS=""
  2838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2839. /* end confdefs.h. */
  2840. int
  2841. main ()
  2842. {
  2843. ;
  2844. return 0;
  2845. }
  2846. _ACEOF
  2847. if ac_fn_c_try_compile "$LINENO"; then :
  2848. else
  2849. ac_c_werror_flag=$ac_save_c_werror_flag
  2850. CFLAGS="-g"
  2851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2852. /* end confdefs.h. */
  2853. int
  2854. main ()
  2855. {
  2856. ;
  2857. return 0;
  2858. }
  2859. _ACEOF
  2860. if ac_fn_c_try_compile "$LINENO"; then :
  2861. ac_cv_prog_cc_g=yes
  2862. fi
  2863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2864. fi
  2865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2866. fi
  2867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2868. ac_c_werror_flag=$ac_save_c_werror_flag
  2869. fi
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2871. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2872. if test "$ac_test_CFLAGS" = set; then
  2873. CFLAGS=$ac_save_CFLAGS
  2874. elif test $ac_cv_prog_cc_g = yes; then
  2875. if test "$GCC" = yes; then
  2876. CFLAGS="-g -O2"
  2877. else
  2878. CFLAGS="-g"
  2879. fi
  2880. else
  2881. if test "$GCC" = yes; then
  2882. CFLAGS="-O2"
  2883. else
  2884. CFLAGS=
  2885. fi
  2886. fi
  2887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2888. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2889. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  2890. $as_echo_n "(cached) " >&6
  2891. else
  2892. ac_cv_prog_cc_c89=no
  2893. ac_save_CC=$CC
  2894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2895. /* end confdefs.h. */
  2896. #include <stdarg.h>
  2897. #include <stdio.h>
  2898. #include <sys/types.h>
  2899. #include <sys/stat.h>
  2900. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2901. struct buf { int x; };
  2902. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2903. static char *e (p, i)
  2904. char **p;
  2905. int i;
  2906. {
  2907. return p[i];
  2908. }
  2909. static char *f (char * (*g) (char **, int), char **p, ...)
  2910. {
  2911. char *s;
  2912. va_list v;
  2913. va_start (v,p);
  2914. s = g (p, va_arg (v,int));
  2915. va_end (v);
  2916. return s;
  2917. }
  2918. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2919. function prototypes and stuff, but not '\xHH' hex character constants.
  2920. These don't provoke an error unfortunately, instead are silently treated
  2921. as 'x'. The following induces an error, until -std is added to get
  2922. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2923. array size at least. It's necessary to write '\x00'==0 to get something
  2924. that's true only with -std. */
  2925. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2926. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2927. inside strings and character constants. */
  2928. #define FOO(x) 'x'
  2929. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2930. int test (int i, double x);
  2931. struct s1 {int (*f) (int a);};
  2932. struct s2 {int (*f) (double a);};
  2933. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2934. int argc;
  2935. char **argv;
  2936. int
  2937. main ()
  2938. {
  2939. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2940. ;
  2941. return 0;
  2942. }
  2943. _ACEOF
  2944. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2945. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2946. do
  2947. CC="$ac_save_CC $ac_arg"
  2948. if ac_fn_c_try_compile "$LINENO"; then :
  2949. ac_cv_prog_cc_c89=$ac_arg
  2950. fi
  2951. rm -f core conftest.err conftest.$ac_objext
  2952. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2953. done
  2954. rm -f conftest.$ac_ext
  2955. CC=$ac_save_CC
  2956. fi
  2957. # AC_CACHE_VAL
  2958. case "x$ac_cv_prog_cc_c89" in
  2959. x)
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2961. $as_echo "none needed" >&6; } ;;
  2962. xno)
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2964. $as_echo "unsupported" >&6; } ;;
  2965. *)
  2966. CC="$CC $ac_cv_prog_cc_c89"
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2968. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2969. esac
  2970. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2971. fi
  2972. ac_ext=c
  2973. ac_cpp='$CPP $CPPFLAGS'
  2974. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2975. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2976. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2977. ac_ext=c
  2978. ac_cpp='$CPP $CPPFLAGS'
  2979. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2980. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2981. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2983. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2984. # On Suns, sometimes $CPP names a directory.
  2985. if test -n "$CPP" && test -d "$CPP"; then
  2986. CPP=
  2987. fi
  2988. if test -z "$CPP"; then
  2989. if test "${ac_cv_prog_CPP+set}" = set; then :
  2990. $as_echo_n "(cached) " >&6
  2991. else
  2992. # Double quotes because CPP needs to be expanded
  2993. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2994. do
  2995. ac_preproc_ok=false
  2996. for ac_c_preproc_warn_flag in '' yes
  2997. do
  2998. # Use a header file that comes with gcc, so configuring glibc
  2999. # with a fresh cross-compiler works.
  3000. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3001. # <limits.h> exists even on freestanding compilers.
  3002. # On the NeXT, cc -E runs the code through the compiler's parser,
  3003. # not just through cpp. "Syntax error" is here to catch this case.
  3004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3005. /* end confdefs.h. */
  3006. #ifdef __STDC__
  3007. # include <limits.h>
  3008. #else
  3009. # include <assert.h>
  3010. #endif
  3011. Syntax error
  3012. _ACEOF
  3013. if ac_fn_c_try_cpp "$LINENO"; then :
  3014. else
  3015. # Broken: fails on valid input.
  3016. continue
  3017. fi
  3018. rm -f conftest.err conftest.$ac_ext
  3019. # OK, works on sane cases. Now check whether nonexistent headers
  3020. # can be detected and how.
  3021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3022. /* end confdefs.h. */
  3023. #include <ac_nonexistent.h>
  3024. _ACEOF
  3025. if ac_fn_c_try_cpp "$LINENO"; then :
  3026. # Broken: success on invalid input.
  3027. continue
  3028. else
  3029. # Passes both tests.
  3030. ac_preproc_ok=:
  3031. break
  3032. fi
  3033. rm -f conftest.err conftest.$ac_ext
  3034. done
  3035. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3036. rm -f conftest.err conftest.$ac_ext
  3037. if $ac_preproc_ok; then :
  3038. break
  3039. fi
  3040. done
  3041. ac_cv_prog_CPP=$CPP
  3042. fi
  3043. CPP=$ac_cv_prog_CPP
  3044. else
  3045. ac_cv_prog_CPP=$CPP
  3046. fi
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3048. $as_echo "$CPP" >&6; }
  3049. ac_preproc_ok=false
  3050. for ac_c_preproc_warn_flag in '' yes
  3051. do
  3052. # Use a header file that comes with gcc, so configuring glibc
  3053. # with a fresh cross-compiler works.
  3054. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3055. # <limits.h> exists even on freestanding compilers.
  3056. # On the NeXT, cc -E runs the code through the compiler's parser,
  3057. # not just through cpp. "Syntax error" is here to catch this case.
  3058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3059. /* end confdefs.h. */
  3060. #ifdef __STDC__
  3061. # include <limits.h>
  3062. #else
  3063. # include <assert.h>
  3064. #endif
  3065. Syntax error
  3066. _ACEOF
  3067. if ac_fn_c_try_cpp "$LINENO"; then :
  3068. else
  3069. # Broken: fails on valid input.
  3070. continue
  3071. fi
  3072. rm -f conftest.err conftest.$ac_ext
  3073. # OK, works on sane cases. Now check whether nonexistent headers
  3074. # can be detected and how.
  3075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3076. /* end confdefs.h. */
  3077. #include <ac_nonexistent.h>
  3078. _ACEOF
  3079. if ac_fn_c_try_cpp "$LINENO"; then :
  3080. # Broken: success on invalid input.
  3081. continue
  3082. else
  3083. # Passes both tests.
  3084. ac_preproc_ok=:
  3085. break
  3086. fi
  3087. rm -f conftest.err conftest.$ac_ext
  3088. done
  3089. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3090. rm -f conftest.err conftest.$ac_ext
  3091. if $ac_preproc_ok; then :
  3092. else
  3093. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3094. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3095. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3096. See \`config.log' for more details." "$LINENO" 5; }
  3097. fi
  3098. ac_ext=c
  3099. ac_cpp='$CPP $CPPFLAGS'
  3100. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3101. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3102. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3104. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3105. if test "${ac_cv_path_GREP+set}" = set; then :
  3106. $as_echo_n "(cached) " >&6
  3107. else
  3108. if test -z "$GREP"; then
  3109. ac_path_GREP_found=false
  3110. # Loop through the user's path and test for each of PROGNAME-LIST
  3111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3112. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3113. do
  3114. IFS=$as_save_IFS
  3115. test -z "$as_dir" && as_dir=.
  3116. for ac_prog in grep ggrep; do
  3117. for ac_exec_ext in '' $ac_executable_extensions; do
  3118. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3119. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3120. # Check for GNU ac_path_GREP and select it if it is found.
  3121. # Check for GNU $ac_path_GREP
  3122. case `"$ac_path_GREP" --version 2>&1` in
  3123. *GNU*)
  3124. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3125. *)
  3126. ac_count=0
  3127. $as_echo_n 0123456789 >"conftest.in"
  3128. while :
  3129. do
  3130. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3131. mv "conftest.tmp" "conftest.in"
  3132. cp "conftest.in" "conftest.nl"
  3133. $as_echo 'GREP' >> "conftest.nl"
  3134. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3135. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3136. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3137. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3138. # Best one so far, save it but keep looking for a better one
  3139. ac_cv_path_GREP="$ac_path_GREP"
  3140. ac_path_GREP_max=$ac_count
  3141. fi
  3142. # 10*(2^10) chars as input seems more than enough
  3143. test $ac_count -gt 10 && break
  3144. done
  3145. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3146. esac
  3147. $ac_path_GREP_found && break 3
  3148. done
  3149. done
  3150. done
  3151. IFS=$as_save_IFS
  3152. if test -z "$ac_cv_path_GREP"; then
  3153. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3154. fi
  3155. else
  3156. ac_cv_path_GREP=$GREP
  3157. fi
  3158. fi
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3160. $as_echo "$ac_cv_path_GREP" >&6; }
  3161. GREP="$ac_cv_path_GREP"
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3163. $as_echo_n "checking for egrep... " >&6; }
  3164. if test "${ac_cv_path_EGREP+set}" = set; then :
  3165. $as_echo_n "(cached) " >&6
  3166. else
  3167. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3168. then ac_cv_path_EGREP="$GREP -E"
  3169. else
  3170. if test -z "$EGREP"; then
  3171. ac_path_EGREP_found=false
  3172. # Loop through the user's path and test for each of PROGNAME-LIST
  3173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3174. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3175. do
  3176. IFS=$as_save_IFS
  3177. test -z "$as_dir" && as_dir=.
  3178. for ac_prog in egrep; do
  3179. for ac_exec_ext in '' $ac_executable_extensions; do
  3180. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3181. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3182. # Check for GNU ac_path_EGREP and select it if it is found.
  3183. # Check for GNU $ac_path_EGREP
  3184. case `"$ac_path_EGREP" --version 2>&1` in
  3185. *GNU*)
  3186. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3187. *)
  3188. ac_count=0
  3189. $as_echo_n 0123456789 >"conftest.in"
  3190. while :
  3191. do
  3192. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3193. mv "conftest.tmp" "conftest.in"
  3194. cp "conftest.in" "conftest.nl"
  3195. $as_echo 'EGREP' >> "conftest.nl"
  3196. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3197. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3198. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3199. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3200. # Best one so far, save it but keep looking for a better one
  3201. ac_cv_path_EGREP="$ac_path_EGREP"
  3202. ac_path_EGREP_max=$ac_count
  3203. fi
  3204. # 10*(2^10) chars as input seems more than enough
  3205. test $ac_count -gt 10 && break
  3206. done
  3207. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3208. esac
  3209. $ac_path_EGREP_found && break 3
  3210. done
  3211. done
  3212. done
  3213. IFS=$as_save_IFS
  3214. if test -z "$ac_cv_path_EGREP"; then
  3215. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3216. fi
  3217. else
  3218. ac_cv_path_EGREP=$EGREP
  3219. fi
  3220. fi
  3221. fi
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3223. $as_echo "$ac_cv_path_EGREP" >&6; }
  3224. EGREP="$ac_cv_path_EGREP"
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3226. $as_echo_n "checking for ANSI C header files... " >&6; }
  3227. if test "${ac_cv_header_stdc+set}" = set; then :
  3228. $as_echo_n "(cached) " >&6
  3229. else
  3230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3231. /* end confdefs.h. */
  3232. #include <stdlib.h>
  3233. #include <stdarg.h>
  3234. #include <string.h>
  3235. #include <float.h>
  3236. int
  3237. main ()
  3238. {
  3239. ;
  3240. return 0;
  3241. }
  3242. _ACEOF
  3243. if ac_fn_c_try_compile "$LINENO"; then :
  3244. ac_cv_header_stdc=yes
  3245. else
  3246. ac_cv_header_stdc=no
  3247. fi
  3248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3249. if test $ac_cv_header_stdc = yes; then
  3250. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3252. /* end confdefs.h. */
  3253. #include <string.h>
  3254. _ACEOF
  3255. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3256. $EGREP "memchr" >/dev/null 2>&1; then :
  3257. else
  3258. ac_cv_header_stdc=no
  3259. fi
  3260. rm -f conftest*
  3261. fi
  3262. if test $ac_cv_header_stdc = yes; then
  3263. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3265. /* end confdefs.h. */
  3266. #include <stdlib.h>
  3267. _ACEOF
  3268. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3269. $EGREP "free" >/dev/null 2>&1; then :
  3270. else
  3271. ac_cv_header_stdc=no
  3272. fi
  3273. rm -f conftest*
  3274. fi
  3275. if test $ac_cv_header_stdc = yes; then
  3276. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3277. if test "$cross_compiling" = yes; then :
  3278. :
  3279. else
  3280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3281. /* end confdefs.h. */
  3282. #include <ctype.h>
  3283. #include <stdlib.h>
  3284. #if ((' ' & 0x0FF) == 0x020)
  3285. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3286. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3287. #else
  3288. # define ISLOWER(c) \
  3289. (('a' <= (c) && (c) <= 'i') \
  3290. || ('j' <= (c) && (c) <= 'r') \
  3291. || ('s' <= (c) && (c) <= 'z'))
  3292. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3293. #endif
  3294. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3295. int
  3296. main ()
  3297. {
  3298. int i;
  3299. for (i = 0; i < 256; i++)
  3300. if (XOR (islower (i), ISLOWER (i))
  3301. || toupper (i) != TOUPPER (i))
  3302. return 2;
  3303. return 0;
  3304. }
  3305. _ACEOF
  3306. if ac_fn_c_try_run "$LINENO"; then :
  3307. else
  3308. ac_cv_header_stdc=no
  3309. fi
  3310. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3311. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3312. fi
  3313. fi
  3314. fi
  3315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3316. $as_echo "$ac_cv_header_stdc" >&6; }
  3317. if test $ac_cv_header_stdc = yes; then
  3318. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3319. fi
  3320. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3321. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3322. inttypes.h stdint.h unistd.h
  3323. do :
  3324. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3325. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3326. "
  3327. eval as_val=\$$as_ac_Header
  3328. if test "x$as_val" = x""yes; then :
  3329. cat >>confdefs.h <<_ACEOF
  3330. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3331. _ACEOF
  3332. fi
  3333. done
  3334. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3335. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  3336. MINIX=yes
  3337. else
  3338. MINIX=
  3339. fi
  3340. if test "$MINIX" = yes; then
  3341. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3342. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3343. $as_echo "#define _MINIX 1" >>confdefs.h
  3344. fi
  3345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3346. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3347. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  3348. $as_echo_n "(cached) " >&6
  3349. else
  3350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3351. /* end confdefs.h. */
  3352. # define __EXTENSIONS__ 1
  3353. $ac_includes_default
  3354. int
  3355. main ()
  3356. {
  3357. ;
  3358. return 0;
  3359. }
  3360. _ACEOF
  3361. if ac_fn_c_try_compile "$LINENO"; then :
  3362. ac_cv_safe_to_define___extensions__=yes
  3363. else
  3364. ac_cv_safe_to_define___extensions__=no
  3365. fi
  3366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3367. fi
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3369. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3370. test $ac_cv_safe_to_define___extensions__ = yes &&
  3371. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3372. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3373. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3374. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3375. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3376. # Determine the noncanonical target name, for directory use.
  3377. case ${build_alias} in
  3378. "") build_noncanonical=${build} ;;
  3379. *) build_noncanonical=${build_alias} ;;
  3380. esac
  3381. case ${host_alias} in
  3382. "") host_noncanonical=${build_noncanonical} ;;
  3383. *) host_noncanonical=${host_alias} ;;
  3384. esac
  3385. case ${target_alias} in
  3386. "") target_noncanonical=${host_noncanonical} ;;
  3387. *) target_noncanonical=${target_alias} ;;
  3388. esac
  3389. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  3390. # have matching libraries, they should use host libraries: Makefile.tpl
  3391. # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  3392. # However, they still use the build modules, because the corresponding
  3393. # host modules (e.g. bison) are only built for the host when bootstrap
  3394. # finishes. So:
  3395. # - build_subdir is where we find build modules, and never changes.
  3396. # - build_libsubdir is where we find build libraries, and can be overridden.
  3397. # Prefix 'build-' so this never conflicts with target_subdir.
  3398. build_subdir="build-${build_noncanonical}"
  3399. # Check whether --with-build-libsubdir was given.
  3400. if test "${with_build_libsubdir+set}" = set; then :
  3401. withval=$with_build_libsubdir; build_libsubdir="$withval"
  3402. else
  3403. build_libsubdir="$build_subdir"
  3404. fi
  3405. # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  3406. if ( test $srcdir = . && test -d gcc ) \
  3407. || test -d $srcdir/../host-${host_noncanonical}; then
  3408. host_subdir="host-${host_noncanonical}"
  3409. else
  3410. host_subdir=.
  3411. fi
  3412. # No prefix.
  3413. target_subdir=${target_noncanonical}
  3414. # 1.11.1: Require that version of automake.
  3415. # foreign: Don't require README, INSTALL, NEWS, etc.
  3416. # no-define: Don't define PACKAGE and VERSION.
  3417. # -Wall: Issue all automake warnings.
  3418. # -Wno-portability: Don't warn about constructs supported by GNU make.
  3419. # (because GCC requires GNU make anyhow).
  3420. am__api_version='1.11'
  3421. # Find a good install program. We prefer a C program (faster),
  3422. # so one script is as good as another. But avoid the broken or
  3423. # incompatible versions:
  3424. # SysV /etc/install, /usr/sbin/install
  3425. # SunOS /usr/etc/install
  3426. # IRIX /sbin/install
  3427. # AIX /bin/install
  3428. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3429. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3430. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3431. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3432. # OS/2's system install, which has a completely different semantic
  3433. # ./install, which can be erroneously created by make from ./install.sh.
  3434. # Reject install programs that cannot install multiple files.
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3436. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3437. if test -z "$INSTALL"; then
  3438. if test "${ac_cv_path_install+set}" = set; then :
  3439. $as_echo_n "(cached) " >&6
  3440. else
  3441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3442. for as_dir in $PATH
  3443. do
  3444. IFS=$as_save_IFS
  3445. test -z "$as_dir" && as_dir=.
  3446. # Account for people who put trailing slashes in PATH elements.
  3447. case $as_dir/ in #((
  3448. ./ | .// | /[cC]/* | \
  3449. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3450. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3451. /usr/ucb/* ) ;;
  3452. *)
  3453. # OSF1 and SCO ODT 3.0 have their own names for install.
  3454. # Don't use installbsd from OSF since it installs stuff as root
  3455. # by default.
  3456. for ac_prog in ginstall scoinst install; do
  3457. for ac_exec_ext in '' $ac_executable_extensions; do
  3458. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3459. if test $ac_prog = install &&
  3460. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3461. # AIX install. It has an incompatible calling convention.
  3462. :
  3463. elif test $ac_prog = install &&
  3464. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3465. # program-specific install script used by HP pwplus--don't use.
  3466. :
  3467. else
  3468. rm -rf conftest.one conftest.two conftest.dir
  3469. echo one > conftest.one
  3470. echo two > conftest.two
  3471. mkdir conftest.dir
  3472. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3473. test -s conftest.one && test -s conftest.two &&
  3474. test -s conftest.dir/conftest.one &&
  3475. test -s conftest.dir/conftest.two
  3476. then
  3477. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3478. break 3
  3479. fi
  3480. fi
  3481. fi
  3482. done
  3483. done
  3484. ;;
  3485. esac
  3486. done
  3487. IFS=$as_save_IFS
  3488. rm -rf conftest.one conftest.two conftest.dir
  3489. fi
  3490. if test "${ac_cv_path_install+set}" = set; then
  3491. INSTALL=$ac_cv_path_install
  3492. else
  3493. # As a last resort, use the slow shell script. Don't cache a
  3494. # value for INSTALL within a source directory, because that will
  3495. # break other packages using the cache if that directory is
  3496. # removed, or if the value is a relative name.
  3497. INSTALL=$ac_install_sh
  3498. fi
  3499. fi
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3501. $as_echo "$INSTALL" >&6; }
  3502. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3503. # It thinks the first close brace ends the variable substitution.
  3504. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3505. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3506. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3508. $as_echo_n "checking whether build environment is sane... " >&6; }
  3509. # Just in case
  3510. sleep 1
  3511. echo timestamp > conftest.file
  3512. # Reject unsafe characters in $srcdir or the absolute working directory
  3513. # name. Accept space and tab only in the latter.
  3514. am_lf='
  3515. '
  3516. case `pwd` in
  3517. *[\\\"\#\$\&\'\`$am_lf]*)
  3518. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  3519. esac
  3520. case $srcdir in
  3521. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3522. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  3523. esac
  3524. # Do `set' in a subshell so we don't clobber the current shell's
  3525. # arguments. Must try -L first in case configure is actually a
  3526. # symlink; some systems play weird games with the mod time of symlinks
  3527. # (eg FreeBSD returns the mod time of the symlink's containing
  3528. # directory).
  3529. if (
  3530. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3531. if test "$*" = "X"; then
  3532. # -L didn't work.
  3533. set X `ls -t "$srcdir/configure" conftest.file`
  3534. fi
  3535. rm -f conftest.file
  3536. if test "$*" != "X $srcdir/configure conftest.file" \
  3537. && test "$*" != "X conftest.file $srcdir/configure"; then
  3538. # If neither matched, then we have a broken ls. This can happen
  3539. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3540. # broken ls alias from the environment. This has actually
  3541. # happened. Such a system could not be considered "sane".
  3542. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  3543. alias in your environment" "$LINENO" 5
  3544. fi
  3545. test "$2" = conftest.file
  3546. )
  3547. then
  3548. # Ok.
  3549. :
  3550. else
  3551. as_fn_error "newly created file is older than distributed files!
  3552. Check your system clock" "$LINENO" 5
  3553. fi
  3554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3555. $as_echo "yes" >&6; }
  3556. test "$program_prefix" != NONE &&
  3557. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3558. # Use a double $ so make ignores it.
  3559. test "$program_suffix" != NONE &&
  3560. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3561. # Double any \ or $.
  3562. # By default was `s,x,x', remove it if useless.
  3563. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3564. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3565. # expand $ac_aux_dir to an absolute path
  3566. am_aux_dir=`cd $ac_aux_dir && pwd`
  3567. if test x"${MISSING+set}" != xset; then
  3568. case $am_aux_dir in
  3569. *\ * | *\ *)
  3570. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3571. *)
  3572. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3573. esac
  3574. fi
  3575. # Use eval to expand $SHELL
  3576. if eval "$MISSING --run true"; then
  3577. am_missing_run="$MISSING --run "
  3578. else
  3579. am_missing_run=
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  3581. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  3582. fi
  3583. if test x"${install_sh}" != xset; then
  3584. case $am_aux_dir in
  3585. *\ * | *\ *)
  3586. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3587. *)
  3588. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3589. esac
  3590. fi
  3591. # Installed binaries are usually stripped using `strip' when the user
  3592. # run `make install-strip'. However `strip' might not be the right
  3593. # tool to use in cross-compilation environments, therefore Automake
  3594. # will honor the `STRIP' environment variable to overrule this program.
  3595. if test "$cross_compiling" != no; then
  3596. if test -n "$ac_tool_prefix"; then
  3597. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3598. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3600. $as_echo_n "checking for $ac_word... " >&6; }
  3601. if test "${ac_cv_prog_STRIP+set}" = set; then :
  3602. $as_echo_n "(cached) " >&6
  3603. else
  3604. if test -n "$STRIP"; then
  3605. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3606. else
  3607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3608. for as_dir in $PATH
  3609. do
  3610. IFS=$as_save_IFS
  3611. test -z "$as_dir" && as_dir=.
  3612. for ac_exec_ext in '' $ac_executable_extensions; do
  3613. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3614. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3615. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3616. break 2
  3617. fi
  3618. done
  3619. done
  3620. IFS=$as_save_IFS
  3621. fi
  3622. fi
  3623. STRIP=$ac_cv_prog_STRIP
  3624. if test -n "$STRIP"; then
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3626. $as_echo "$STRIP" >&6; }
  3627. else
  3628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3629. $as_echo "no" >&6; }
  3630. fi
  3631. fi
  3632. if test -z "$ac_cv_prog_STRIP"; then
  3633. ac_ct_STRIP=$STRIP
  3634. # Extract the first word of "strip", so it can be a program name with args.
  3635. set dummy strip; ac_word=$2
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3637. $as_echo_n "checking for $ac_word... " >&6; }
  3638. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  3639. $as_echo_n "(cached) " >&6
  3640. else
  3641. if test -n "$ac_ct_STRIP"; then
  3642. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3643. else
  3644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3645. for as_dir in $PATH
  3646. do
  3647. IFS=$as_save_IFS
  3648. test -z "$as_dir" && as_dir=.
  3649. for ac_exec_ext in '' $ac_executable_extensions; do
  3650. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3651. ac_cv_prog_ac_ct_STRIP="strip"
  3652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3653. break 2
  3654. fi
  3655. done
  3656. done
  3657. IFS=$as_save_IFS
  3658. fi
  3659. fi
  3660. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3661. if test -n "$ac_ct_STRIP"; then
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3663. $as_echo "$ac_ct_STRIP" >&6; }
  3664. else
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3666. $as_echo "no" >&6; }
  3667. fi
  3668. if test "x$ac_ct_STRIP" = x; then
  3669. STRIP=":"
  3670. else
  3671. case $cross_compiling:$ac_tool_warned in
  3672. yes:)
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3674. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3675. ac_tool_warned=yes ;;
  3676. esac
  3677. STRIP=$ac_ct_STRIP
  3678. fi
  3679. else
  3680. STRIP="$ac_cv_prog_STRIP"
  3681. fi
  3682. fi
  3683. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3685. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3686. if test -z "$MKDIR_P"; then
  3687. if test "${ac_cv_path_mkdir+set}" = set; then :
  3688. $as_echo_n "(cached) " >&6
  3689. else
  3690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3691. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3692. do
  3693. IFS=$as_save_IFS
  3694. test -z "$as_dir" && as_dir=.
  3695. for ac_prog in mkdir gmkdir; do
  3696. for ac_exec_ext in '' $ac_executable_extensions; do
  3697. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3698. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3699. 'mkdir (GNU coreutils) '* | \
  3700. 'mkdir (coreutils) '* | \
  3701. 'mkdir (fileutils) '4.1*)
  3702. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3703. break 3;;
  3704. esac
  3705. done
  3706. done
  3707. done
  3708. IFS=$as_save_IFS
  3709. fi
  3710. if test "${ac_cv_path_mkdir+set}" = set; then
  3711. MKDIR_P="$ac_cv_path_mkdir -p"
  3712. else
  3713. # As a last resort, use the slow shell script. Don't cache a
  3714. # value for MKDIR_P within a source directory, because that will
  3715. # break other packages using the cache if that directory is
  3716. # removed, or if the value is a relative name.
  3717. test -d ./--version && rmdir ./--version
  3718. MKDIR_P="$ac_install_sh -d"
  3719. fi
  3720. fi
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3722. $as_echo "$MKDIR_P" >&6; }
  3723. mkdir_p="$MKDIR_P"
  3724. case $mkdir_p in
  3725. [\\/$]* | ?:[\\/]*) ;;
  3726. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3727. esac
  3728. for ac_prog in gawk mawk nawk awk
  3729. do
  3730. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3731. set dummy $ac_prog; ac_word=$2
  3732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3733. $as_echo_n "checking for $ac_word... " >&6; }
  3734. if test "${ac_cv_prog_AWK+set}" = set; then :
  3735. $as_echo_n "(cached) " >&6
  3736. else
  3737. if test -n "$AWK"; then
  3738. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3739. else
  3740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3741. for as_dir in $PATH
  3742. do
  3743. IFS=$as_save_IFS
  3744. test -z "$as_dir" && as_dir=.
  3745. for ac_exec_ext in '' $ac_executable_extensions; do
  3746. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3747. ac_cv_prog_AWK="$ac_prog"
  3748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3749. break 2
  3750. fi
  3751. done
  3752. done
  3753. IFS=$as_save_IFS
  3754. fi
  3755. fi
  3756. AWK=$ac_cv_prog_AWK
  3757. if test -n "$AWK"; then
  3758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3759. $as_echo "$AWK" >&6; }
  3760. else
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3762. $as_echo "no" >&6; }
  3763. fi
  3764. test -n "$AWK" && break
  3765. done
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3767. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3768. set x ${MAKE-make}
  3769. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3770. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3771. $as_echo_n "(cached) " >&6
  3772. else
  3773. cat >conftest.make <<\_ACEOF
  3774. SHELL = /bin/sh
  3775. all:
  3776. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3777. _ACEOF
  3778. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3779. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3780. *@@@%%%=?*=@@@%%%*)
  3781. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3782. *)
  3783. eval ac_cv_prog_make_${ac_make}_set=no;;
  3784. esac
  3785. rm -f conftest.make
  3786. fi
  3787. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3789. $as_echo "yes" >&6; }
  3790. SET_MAKE=
  3791. else
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3793. $as_echo "no" >&6; }
  3794. SET_MAKE="MAKE=${MAKE-make}"
  3795. fi
  3796. rm -rf .tst 2>/dev/null
  3797. mkdir .tst 2>/dev/null
  3798. if test -d .tst; then
  3799. am__leading_dot=.
  3800. else
  3801. am__leading_dot=_
  3802. fi
  3803. rmdir .tst 2>/dev/null
  3804. DEPDIR="${am__leading_dot}deps"
  3805. ac_config_commands="$ac_config_commands depfiles"
  3806. am_make=${MAKE-make}
  3807. cat > confinc << 'END'
  3808. am__doit:
  3809. @echo this is the am__doit target
  3810. .PHONY: am__doit
  3811. END
  3812. # If we don't find an include directive, just comment out the code.
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3814. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3815. am__include="#"
  3816. am__quote=
  3817. _am_result=none
  3818. # First try GNU make style include.
  3819. echo "include confinc" > confmf
  3820. # Ignore all kinds of additional output from `make'.
  3821. case `$am_make -s -f confmf 2> /dev/null` in #(
  3822. *the\ am__doit\ target*)
  3823. am__include=include
  3824. am__quote=
  3825. _am_result=GNU
  3826. ;;
  3827. esac
  3828. # Now try BSD make style include.
  3829. if test "$am__include" = "#"; then
  3830. echo '.include "confinc"' > confmf
  3831. case `$am_make -s -f confmf 2> /dev/null` in #(
  3832. *the\ am__doit\ target*)
  3833. am__include=.include
  3834. am__quote="\""
  3835. _am_result=BSD
  3836. ;;
  3837. esac
  3838. fi
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3840. $as_echo "$_am_result" >&6; }
  3841. rm -f confinc confmf
  3842. # Check whether --enable-dependency-tracking was given.
  3843. if test "${enable_dependency_tracking+set}" = set; then :
  3844. enableval=$enable_dependency_tracking;
  3845. fi
  3846. if test "x$enable_dependency_tracking" != xno; then
  3847. am_depcomp="$ac_aux_dir/depcomp"
  3848. AMDEPBACKSLASH='\'
  3849. fi
  3850. if test "x$enable_dependency_tracking" != xno; then
  3851. AMDEP_TRUE=
  3852. AMDEP_FALSE='#'
  3853. else
  3854. AMDEP_TRUE='#'
  3855. AMDEP_FALSE=
  3856. fi
  3857. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3858. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3859. # is not polluted with repeated "-I."
  3860. am__isrc=' -I$(srcdir)'
  3861. # test to see if srcdir already configured
  3862. if test -f $srcdir/config.status; then
  3863. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3864. fi
  3865. fi
  3866. # test whether we have cygpath
  3867. if test -z "$CYGPATH_W"; then
  3868. if (cygpath --version) >/dev/null 2>/dev/null; then
  3869. CYGPATH_W='cygpath -w'
  3870. else
  3871. CYGPATH_W=echo
  3872. fi
  3873. fi
  3874. # Define the identity of the package.
  3875. PACKAGE='libcc1'
  3876. VERSION='version-unused'
  3877. # Some tools Automake needs.
  3878. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3879. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3880. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3881. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3882. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3883. # We need awk for the "check" target. The system "awk" is bad on
  3884. # some platforms.
  3885. # Always define AMTAR for backward compatibility.
  3886. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3887. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3888. depcc="$CC" am_compiler_list=
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3890. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3891. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3892. $as_echo_n "(cached) " >&6
  3893. else
  3894. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3895. # We make a subdir and do the tests there. Otherwise we can end up
  3896. # making bogus files that we don't know about and never remove. For
  3897. # instance it was reported that on HP-UX the gcc test will end up
  3898. # making a dummy file named `D' -- because `-MD' means `put the output
  3899. # in D'.
  3900. mkdir conftest.dir
  3901. # Copy depcomp to subdir because otherwise we won't find it if we're
  3902. # using a relative directory.
  3903. cp "$am_depcomp" conftest.dir
  3904. cd conftest.dir
  3905. # We will build objects and dependencies in a subdirectory because
  3906. # it helps to detect inapplicable dependency modes. For instance
  3907. # both Tru64's cc and ICC support -MD to output dependencies as a
  3908. # side effect of compilation, but ICC will put the dependencies in
  3909. # the current directory while Tru64 will put them in the object
  3910. # directory.
  3911. mkdir sub
  3912. am_cv_CC_dependencies_compiler_type=none
  3913. if test "$am_compiler_list" = ""; then
  3914. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3915. fi
  3916. am__universal=false
  3917. case " $depcc " in #(
  3918. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3919. esac
  3920. for depmode in $am_compiler_list; do
  3921. # Setup a source with many dependencies, because some compilers
  3922. # like to wrap large dependency lists on column 80 (with \), and
  3923. # we should not choose a depcomp mode which is confused by this.
  3924. #
  3925. # We need to recreate these files for each test, as the compiler may
  3926. # overwrite some of them when testing with obscure command lines.
  3927. # This happens at least with the AIX C compiler.
  3928. : > sub/conftest.c
  3929. for i in 1 2 3 4 5 6; do
  3930. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3931. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3932. # Solaris 8's {/usr,}/bin/sh.
  3933. touch sub/conftst$i.h
  3934. done
  3935. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3936. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3937. # mode. It turns out that the SunPro C++ compiler does not properly
  3938. # handle `-M -o', and we need to detect this. Also, some Intel
  3939. # versions had trouble with output in subdirs
  3940. am__obj=sub/conftest.${OBJEXT-o}
  3941. am__minus_obj="-o $am__obj"
  3942. case $depmode in
  3943. gcc)
  3944. # This depmode causes a compiler race in universal mode.
  3945. test "$am__universal" = false || continue
  3946. ;;
  3947. nosideeffect)
  3948. # after this tag, mechanisms are not by side-effect, so they'll
  3949. # only be used when explicitly requested
  3950. if test "x$enable_dependency_tracking" = xyes; then
  3951. continue
  3952. else
  3953. break
  3954. fi
  3955. ;;
  3956. msvisualcpp | msvcmsys)
  3957. # This compiler won't grok `-c -o', but also, the minuso test has
  3958. # not run yet. These depmodes are late enough in the game, and
  3959. # so weak that their functioning should not be impacted.
  3960. am__obj=conftest.${OBJEXT-o}
  3961. am__minus_obj=
  3962. ;;
  3963. none) break ;;
  3964. esac
  3965. if depmode=$depmode \
  3966. source=sub/conftest.c object=$am__obj \
  3967. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3968. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3969. >/dev/null 2>conftest.err &&
  3970. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3971. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3972. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3973. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3974. # icc doesn't choke on unknown options, it will just issue warnings
  3975. # or remarks (even with -Werror). So we grep stderr for any message
  3976. # that says an option was ignored or not supported.
  3977. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3978. # icc: Command line warning: ignoring option '-M'; no argument required
  3979. # The diagnosis changed in icc 8.0:
  3980. # icc: Command line remark: option '-MP' not supported
  3981. if (grep 'ignoring option' conftest.err ||
  3982. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3983. am_cv_CC_dependencies_compiler_type=$depmode
  3984. break
  3985. fi
  3986. fi
  3987. done
  3988. cd ..
  3989. rm -rf conftest.dir
  3990. else
  3991. am_cv_CC_dependencies_compiler_type=none
  3992. fi
  3993. fi
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3995. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3996. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3997. if
  3998. test "x$enable_dependency_tracking" != xno \
  3999. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4000. am__fastdepCC_TRUE=
  4001. am__fastdepCC_FALSE='#'
  4002. else
  4003. am__fastdepCC_TRUE='#'
  4004. am__fastdepCC_FALSE=
  4005. fi
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  4007. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  4008. # Check whether --enable-maintainer-mode was given.
  4009. if test "${enable_maintainer_mode+set}" = set; then :
  4010. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  4011. else
  4012. USE_MAINTAINER_MODE=no
  4013. fi
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  4015. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  4016. if test $USE_MAINTAINER_MODE = yes; then
  4017. MAINTAINER_MODE_TRUE=
  4018. MAINTAINER_MODE_FALSE='#'
  4019. else
  4020. MAINTAINER_MODE_TRUE='#'
  4021. MAINTAINER_MODE_FALSE=
  4022. fi
  4023. MAINT=$MAINTAINER_MODE_TRUE
  4024. case `pwd` in
  4025. *\ * | *\ *)
  4026. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4027. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4028. esac
  4029. macro_version='2.2.7a'
  4030. macro_revision='1.3134'
  4031. ltmain="$ac_aux_dir/ltmain.sh"
  4032. # Backslashify metacharacters that are still active within
  4033. # double-quoted strings.
  4034. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4035. # Same as above, but do not quote variable references.
  4036. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4037. # Sed substitution to delay expansion of an escaped shell variable in a
  4038. # double_quote_subst'ed string.
  4039. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4040. # Sed substitution to delay expansion of an escaped single quote.
  4041. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4042. # Sed substitution to avoid accidental globbing in evaled expressions
  4043. no_glob_subst='s/\*/\\\*/g'
  4044. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4045. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4046. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4048. $as_echo_n "checking how to print strings... " >&6; }
  4049. # Test print first, because it will be a builtin if present.
  4050. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4051. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4052. ECHO='print -r --'
  4053. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4054. ECHO='printf %s\n'
  4055. else
  4056. # Use this function as a fallback that always works.
  4057. func_fallback_echo ()
  4058. {
  4059. eval 'cat <<_LTECHO_EOF
  4060. $1
  4061. _LTECHO_EOF'
  4062. }
  4063. ECHO='func_fallback_echo'
  4064. fi
  4065. # func_echo_all arg...
  4066. # Invoke $ECHO with all args, space-separated.
  4067. func_echo_all ()
  4068. {
  4069. $ECHO ""
  4070. }
  4071. case "$ECHO" in
  4072. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4073. $as_echo "printf" >&6; } ;;
  4074. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4075. $as_echo "print -r" >&6; } ;;
  4076. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4077. $as_echo "cat" >&6; } ;;
  4078. esac
  4079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4080. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4081. if test "${ac_cv_path_SED+set}" = set; then :
  4082. $as_echo_n "(cached) " >&6
  4083. else
  4084. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4085. for ac_i in 1 2 3 4 5 6 7; do
  4086. ac_script="$ac_script$as_nl$ac_script"
  4087. done
  4088. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4089. { ac_script=; unset ac_script;}
  4090. if test -z "$SED"; then
  4091. ac_path_SED_found=false
  4092. # Loop through the user's path and test for each of PROGNAME-LIST
  4093. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4094. for as_dir in $PATH
  4095. do
  4096. IFS=$as_save_IFS
  4097. test -z "$as_dir" && as_dir=.
  4098. for ac_prog in sed gsed; do
  4099. for ac_exec_ext in '' $ac_executable_extensions; do
  4100. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4101. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4102. # Check for GNU ac_path_SED and select it if it is found.
  4103. # Check for GNU $ac_path_SED
  4104. case `"$ac_path_SED" --version 2>&1` in
  4105. *GNU*)
  4106. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4107. *)
  4108. ac_count=0
  4109. $as_echo_n 0123456789 >"conftest.in"
  4110. while :
  4111. do
  4112. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4113. mv "conftest.tmp" "conftest.in"
  4114. cp "conftest.in" "conftest.nl"
  4115. $as_echo '' >> "conftest.nl"
  4116. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4117. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4118. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4119. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4120. # Best one so far, save it but keep looking for a better one
  4121. ac_cv_path_SED="$ac_path_SED"
  4122. ac_path_SED_max=$ac_count
  4123. fi
  4124. # 10*(2^10) chars as input seems more than enough
  4125. test $ac_count -gt 10 && break
  4126. done
  4127. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4128. esac
  4129. $ac_path_SED_found && break 3
  4130. done
  4131. done
  4132. done
  4133. IFS=$as_save_IFS
  4134. if test -z "$ac_cv_path_SED"; then
  4135. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4136. fi
  4137. else
  4138. ac_cv_path_SED=$SED
  4139. fi
  4140. fi
  4141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4142. $as_echo "$ac_cv_path_SED" >&6; }
  4143. SED="$ac_cv_path_SED"
  4144. rm -f conftest.sed
  4145. test -z "$SED" && SED=sed
  4146. Xsed="$SED -e 1s/^X//"
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4148. $as_echo_n "checking for fgrep... " >&6; }
  4149. if test "${ac_cv_path_FGREP+set}" = set; then :
  4150. $as_echo_n "(cached) " >&6
  4151. else
  4152. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4153. then ac_cv_path_FGREP="$GREP -F"
  4154. else
  4155. if test -z "$FGREP"; then
  4156. ac_path_FGREP_found=false
  4157. # Loop through the user's path and test for each of PROGNAME-LIST
  4158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4159. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4160. do
  4161. IFS=$as_save_IFS
  4162. test -z "$as_dir" && as_dir=.
  4163. for ac_prog in fgrep; do
  4164. for ac_exec_ext in '' $ac_executable_extensions; do
  4165. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4166. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4167. # Check for GNU ac_path_FGREP and select it if it is found.
  4168. # Check for GNU $ac_path_FGREP
  4169. case `"$ac_path_FGREP" --version 2>&1` in
  4170. *GNU*)
  4171. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4172. *)
  4173. ac_count=0
  4174. $as_echo_n 0123456789 >"conftest.in"
  4175. while :
  4176. do
  4177. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4178. mv "conftest.tmp" "conftest.in"
  4179. cp "conftest.in" "conftest.nl"
  4180. $as_echo 'FGREP' >> "conftest.nl"
  4181. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4182. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4183. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4184. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4185. # Best one so far, save it but keep looking for a better one
  4186. ac_cv_path_FGREP="$ac_path_FGREP"
  4187. ac_path_FGREP_max=$ac_count
  4188. fi
  4189. # 10*(2^10) chars as input seems more than enough
  4190. test $ac_count -gt 10 && break
  4191. done
  4192. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4193. esac
  4194. $ac_path_FGREP_found && break 3
  4195. done
  4196. done
  4197. done
  4198. IFS=$as_save_IFS
  4199. if test -z "$ac_cv_path_FGREP"; then
  4200. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4201. fi
  4202. else
  4203. ac_cv_path_FGREP=$FGREP
  4204. fi
  4205. fi
  4206. fi
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4208. $as_echo "$ac_cv_path_FGREP" >&6; }
  4209. FGREP="$ac_cv_path_FGREP"
  4210. test -z "$GREP" && GREP=grep
  4211. # Check whether --with-gnu-ld was given.
  4212. if test "${with_gnu_ld+set}" = set; then :
  4213. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4214. else
  4215. with_gnu_ld=no
  4216. fi
  4217. ac_prog=ld
  4218. if test "$GCC" = yes; then
  4219. # Check if gcc -print-prog-name=ld gives a path.
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4221. $as_echo_n "checking for ld used by $CC... " >&6; }
  4222. case $host in
  4223. *-*-mingw*)
  4224. # gcc leaves a trailing carriage return which upsets mingw
  4225. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4226. *)
  4227. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4228. esac
  4229. case $ac_prog in
  4230. # Accept absolute paths.
  4231. [\\/]* | ?:[\\/]*)
  4232. re_direlt='/[^/][^/]*/\.\./'
  4233. # Canonicalize the pathname of ld
  4234. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4235. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4236. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4237. done
  4238. test -z "$LD" && LD="$ac_prog"
  4239. ;;
  4240. "")
  4241. # If it fails, then pretend we aren't using GCC.
  4242. ac_prog=ld
  4243. ;;
  4244. *)
  4245. # If it is relative, then search for the first ld in PATH.
  4246. with_gnu_ld=unknown
  4247. ;;
  4248. esac
  4249. elif test "$with_gnu_ld" = yes; then
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4251. $as_echo_n "checking for GNU ld... " >&6; }
  4252. else
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4254. $as_echo_n "checking for non-GNU ld... " >&6; }
  4255. fi
  4256. if test "${lt_cv_path_LD+set}" = set; then :
  4257. $as_echo_n "(cached) " >&6
  4258. else
  4259. if test -z "$LD"; then
  4260. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4261. for ac_dir in $PATH; do
  4262. IFS="$lt_save_ifs"
  4263. test -z "$ac_dir" && ac_dir=.
  4264. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4265. lt_cv_path_LD="$ac_dir/$ac_prog"
  4266. # Check to see if the program is GNU ld. I'd rather use --version,
  4267. # but apparently some variants of GNU ld only accept -v.
  4268. # Break only if it was the GNU/non-GNU ld that we prefer.
  4269. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4270. *GNU* | *'with BFD'*)
  4271. test "$with_gnu_ld" != no && break
  4272. ;;
  4273. *)
  4274. test "$with_gnu_ld" != yes && break
  4275. ;;
  4276. esac
  4277. fi
  4278. done
  4279. IFS="$lt_save_ifs"
  4280. else
  4281. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4282. fi
  4283. fi
  4284. LD="$lt_cv_path_LD"
  4285. if test -n "$LD"; then
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4287. $as_echo "$LD" >&6; }
  4288. else
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4290. $as_echo "no" >&6; }
  4291. fi
  4292. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4294. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4295. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4296. $as_echo_n "(cached) " >&6
  4297. else
  4298. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4299. case `$LD -v 2>&1 </dev/null` in
  4300. *GNU* | *'with BFD'*)
  4301. lt_cv_prog_gnu_ld=yes
  4302. ;;
  4303. *)
  4304. lt_cv_prog_gnu_ld=no
  4305. ;;
  4306. esac
  4307. fi
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4309. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4310. with_gnu_ld=$lt_cv_prog_gnu_ld
  4311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4312. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4313. if test "${lt_cv_path_NM+set}" = set; then :
  4314. $as_echo_n "(cached) " >&6
  4315. else
  4316. if test -n "$NM"; then
  4317. # Let the user override the test.
  4318. lt_cv_path_NM="$NM"
  4319. else
  4320. lt_nm_to_check="${ac_tool_prefix}nm"
  4321. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4322. lt_nm_to_check="$lt_nm_to_check nm"
  4323. fi
  4324. for lt_tmp_nm in $lt_nm_to_check; do
  4325. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4326. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4327. IFS="$lt_save_ifs"
  4328. test -z "$ac_dir" && ac_dir=.
  4329. tmp_nm="$ac_dir/$lt_tmp_nm"
  4330. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4331. # Check to see if the nm accepts a BSD-compat flag.
  4332. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4333. # nm: unknown option "B" ignored
  4334. # Tru64's nm complains that /dev/null is an invalid object file
  4335. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4336. */dev/null* | *'Invalid file or object type'*)
  4337. lt_cv_path_NM="$tmp_nm -B"
  4338. break
  4339. ;;
  4340. *)
  4341. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4342. */dev/null*)
  4343. lt_cv_path_NM="$tmp_nm -p"
  4344. break
  4345. ;;
  4346. *)
  4347. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4348. continue # so that we can try to find one that supports BSD flags
  4349. ;;
  4350. esac
  4351. ;;
  4352. esac
  4353. fi
  4354. done
  4355. IFS="$lt_save_ifs"
  4356. done
  4357. : ${lt_cv_path_NM=no}
  4358. fi
  4359. fi
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4361. $as_echo "$lt_cv_path_NM" >&6; }
  4362. if test "$lt_cv_path_NM" != "no"; then
  4363. NM="$lt_cv_path_NM"
  4364. else
  4365. # Didn't find any BSD compatible name lister, look for dumpbin.
  4366. if test -n "$DUMPBIN"; then :
  4367. # Let the user override the test.
  4368. else
  4369. if test -n "$ac_tool_prefix"; then
  4370. for ac_prog in dumpbin "link -dump"
  4371. do
  4372. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4373. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4375. $as_echo_n "checking for $ac_word... " >&6; }
  4376. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4377. $as_echo_n "(cached) " >&6
  4378. else
  4379. if test -n "$DUMPBIN"; then
  4380. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4381. else
  4382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4383. for as_dir in $PATH
  4384. do
  4385. IFS=$as_save_IFS
  4386. test -z "$as_dir" && as_dir=.
  4387. for ac_exec_ext in '' $ac_executable_extensions; do
  4388. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4389. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4390. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4391. break 2
  4392. fi
  4393. done
  4394. done
  4395. IFS=$as_save_IFS
  4396. fi
  4397. fi
  4398. DUMPBIN=$ac_cv_prog_DUMPBIN
  4399. if test -n "$DUMPBIN"; then
  4400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4401. $as_echo "$DUMPBIN" >&6; }
  4402. else
  4403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4404. $as_echo "no" >&6; }
  4405. fi
  4406. test -n "$DUMPBIN" && break
  4407. done
  4408. fi
  4409. if test -z "$DUMPBIN"; then
  4410. ac_ct_DUMPBIN=$DUMPBIN
  4411. for ac_prog in dumpbin "link -dump"
  4412. do
  4413. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4414. set dummy $ac_prog; ac_word=$2
  4415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4416. $as_echo_n "checking for $ac_word... " >&6; }
  4417. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4418. $as_echo_n "(cached) " >&6
  4419. else
  4420. if test -n "$ac_ct_DUMPBIN"; then
  4421. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4422. else
  4423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4424. for as_dir in $PATH
  4425. do
  4426. IFS=$as_save_IFS
  4427. test -z "$as_dir" && as_dir=.
  4428. for ac_exec_ext in '' $ac_executable_extensions; do
  4429. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4430. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4432. break 2
  4433. fi
  4434. done
  4435. done
  4436. IFS=$as_save_IFS
  4437. fi
  4438. fi
  4439. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4440. if test -n "$ac_ct_DUMPBIN"; then
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4442. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4443. else
  4444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4445. $as_echo "no" >&6; }
  4446. fi
  4447. test -n "$ac_ct_DUMPBIN" && break
  4448. done
  4449. if test "x$ac_ct_DUMPBIN" = x; then
  4450. DUMPBIN=":"
  4451. else
  4452. case $cross_compiling:$ac_tool_warned in
  4453. yes:)
  4454. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4455. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4456. ac_tool_warned=yes ;;
  4457. esac
  4458. DUMPBIN=$ac_ct_DUMPBIN
  4459. fi
  4460. fi
  4461. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4462. *COFF*)
  4463. DUMPBIN="$DUMPBIN -symbols"
  4464. ;;
  4465. *)
  4466. DUMPBIN=:
  4467. ;;
  4468. esac
  4469. fi
  4470. if test "$DUMPBIN" != ":"; then
  4471. NM="$DUMPBIN"
  4472. fi
  4473. fi
  4474. test -z "$NM" && NM=nm
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4476. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4477. if test "${lt_cv_nm_interface+set}" = set; then :
  4478. $as_echo_n "(cached) " >&6
  4479. else
  4480. lt_cv_nm_interface="BSD nm"
  4481. echo "int some_variable = 0;" > conftest.$ac_ext
  4482. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4483. (eval "$ac_compile" 2>conftest.err)
  4484. cat conftest.err >&5
  4485. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4486. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4487. cat conftest.err >&5
  4488. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4489. cat conftest.out >&5
  4490. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4491. lt_cv_nm_interface="MS dumpbin"
  4492. fi
  4493. rm -f conftest*
  4494. fi
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4496. $as_echo "$lt_cv_nm_interface" >&6; }
  4497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4498. $as_echo_n "checking whether ln -s works... " >&6; }
  4499. LN_S=$as_ln_s
  4500. if test "$LN_S" = "ln -s"; then
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4502. $as_echo "yes" >&6; }
  4503. else
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4505. $as_echo "no, using $LN_S" >&6; }
  4506. fi
  4507. # find the maximum length of command line arguments
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4509. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4510. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4511. $as_echo_n "(cached) " >&6
  4512. else
  4513. i=0
  4514. teststring="ABCD"
  4515. case $build_os in
  4516. msdosdjgpp*)
  4517. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4518. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4519. # during glob expansion). Even if it were fixed, the result of this
  4520. # check would be larger than it should be.
  4521. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4522. ;;
  4523. gnu*)
  4524. # Under GNU Hurd, this test is not required because there is
  4525. # no limit to the length of command line arguments.
  4526. # Libtool will interpret -1 as no limit whatsoever
  4527. lt_cv_sys_max_cmd_len=-1;
  4528. ;;
  4529. cygwin* | mingw* | cegcc*)
  4530. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4531. # about 5 minutes as the teststring grows exponentially.
  4532. # Worse, since 9x/ME are not pre-emptively multitasking,
  4533. # you end up with a "frozen" computer, even though with patience
  4534. # the test eventually succeeds (with a max line length of 256k).
  4535. # Instead, let's just punt: use the minimum linelength reported by
  4536. # all of the supported platforms: 8192 (on NT/2K/XP).
  4537. lt_cv_sys_max_cmd_len=8192;
  4538. ;;
  4539. mint*)
  4540. # On MiNT this can take a long time and run out of memory.
  4541. lt_cv_sys_max_cmd_len=8192;
  4542. ;;
  4543. amigaos*)
  4544. # On AmigaOS with pdksh, this test takes hours, literally.
  4545. # So we just punt and use a minimum line length of 8192.
  4546. lt_cv_sys_max_cmd_len=8192;
  4547. ;;
  4548. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4549. # This has been around since 386BSD, at least. Likely further.
  4550. if test -x /sbin/sysctl; then
  4551. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4552. elif test -x /usr/sbin/sysctl; then
  4553. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4554. else
  4555. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4556. fi
  4557. # And add a safety zone
  4558. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4559. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4560. ;;
  4561. interix*)
  4562. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4563. lt_cv_sys_max_cmd_len=196608
  4564. ;;
  4565. osf*)
  4566. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4567. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4568. # nice to cause kernel panics so lets avoid the loop below.
  4569. # First set a reasonable default.
  4570. lt_cv_sys_max_cmd_len=16384
  4571. #
  4572. if test -x /sbin/sysconfig; then
  4573. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4574. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4575. esac
  4576. fi
  4577. ;;
  4578. sco3.2v5*)
  4579. lt_cv_sys_max_cmd_len=102400
  4580. ;;
  4581. sysv5* | sco5v6* | sysv4.2uw2*)
  4582. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4583. if test -n "$kargmax"; then
  4584. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4585. else
  4586. lt_cv_sys_max_cmd_len=32768
  4587. fi
  4588. ;;
  4589. *)
  4590. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4591. if test -n "$lt_cv_sys_max_cmd_len"; then
  4592. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4593. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4594. else
  4595. # Make teststring a little bigger before we do anything with it.
  4596. # a 1K string should be a reasonable start.
  4597. for i in 1 2 3 4 5 6 7 8 ; do
  4598. teststring=$teststring$teststring
  4599. done
  4600. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4601. # If test is not a shell built-in, we'll probably end up computing a
  4602. # maximum length that is only half of the actual maximum length, but
  4603. # we can't tell.
  4604. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4605. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4606. test $i != 17 # 1/2 MB should be enough
  4607. do
  4608. i=`expr $i + 1`
  4609. teststring=$teststring$teststring
  4610. done
  4611. # Only check the string length outside the loop.
  4612. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4613. teststring=
  4614. # Add a significant safety factor because C++ compilers can tack on
  4615. # massive amounts of additional arguments before passing them to the
  4616. # linker. It appears as though 1/2 is a usable value.
  4617. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4618. fi
  4619. ;;
  4620. esac
  4621. fi
  4622. if test -n $lt_cv_sys_max_cmd_len ; then
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4624. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4625. else
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4627. $as_echo "none" >&6; }
  4628. fi
  4629. max_cmd_len=$lt_cv_sys_max_cmd_len
  4630. : ${CP="cp -f"}
  4631. : ${MV="mv -f"}
  4632. : ${RM="rm -f"}
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4634. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4635. # Try some XSI features
  4636. xsi_shell=no
  4637. ( _lt_dummy="a/b/c"
  4638. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4639. = c,a/b,, \
  4640. && eval 'test $(( 1 + 1 )) -eq 2 \
  4641. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4642. && xsi_shell=yes
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4644. $as_echo "$xsi_shell" >&6; }
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4646. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4647. lt_shell_append=no
  4648. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4649. >/dev/null 2>&1 \
  4650. && lt_shell_append=yes
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4652. $as_echo "$lt_shell_append" >&6; }
  4653. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4654. lt_unset=unset
  4655. else
  4656. lt_unset=false
  4657. fi
  4658. # test EBCDIC or ASCII
  4659. case `echo X|tr X '\101'` in
  4660. A) # ASCII based system
  4661. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4662. lt_SP2NL='tr \040 \012'
  4663. lt_NL2SP='tr \015\012 \040\040'
  4664. ;;
  4665. *) # EBCDIC based system
  4666. lt_SP2NL='tr \100 \n'
  4667. lt_NL2SP='tr \r\n \100\100'
  4668. ;;
  4669. esac
  4670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4671. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4672. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4673. $as_echo_n "(cached) " >&6
  4674. else
  4675. lt_cv_ld_reload_flag='-r'
  4676. fi
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4678. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4679. reload_flag=$lt_cv_ld_reload_flag
  4680. case $reload_flag in
  4681. "" | " "*) ;;
  4682. *) reload_flag=" $reload_flag" ;;
  4683. esac
  4684. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4685. case $host_os in
  4686. darwin*)
  4687. if test "$GCC" = yes; then
  4688. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4689. else
  4690. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4691. fi
  4692. ;;
  4693. esac
  4694. if test -n "$ac_tool_prefix"; then
  4695. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4696. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4698. $as_echo_n "checking for $ac_word... " >&6; }
  4699. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4700. $as_echo_n "(cached) " >&6
  4701. else
  4702. if test -n "$OBJDUMP"; then
  4703. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4704. else
  4705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4706. for as_dir in $PATH
  4707. do
  4708. IFS=$as_save_IFS
  4709. test -z "$as_dir" && as_dir=.
  4710. for ac_exec_ext in '' $ac_executable_extensions; do
  4711. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4712. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4713. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4714. break 2
  4715. fi
  4716. done
  4717. done
  4718. IFS=$as_save_IFS
  4719. fi
  4720. fi
  4721. OBJDUMP=$ac_cv_prog_OBJDUMP
  4722. if test -n "$OBJDUMP"; then
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4724. $as_echo "$OBJDUMP" >&6; }
  4725. else
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4727. $as_echo "no" >&6; }
  4728. fi
  4729. fi
  4730. if test -z "$ac_cv_prog_OBJDUMP"; then
  4731. ac_ct_OBJDUMP=$OBJDUMP
  4732. # Extract the first word of "objdump", so it can be a program name with args.
  4733. set dummy objdump; ac_word=$2
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4735. $as_echo_n "checking for $ac_word... " >&6; }
  4736. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4737. $as_echo_n "(cached) " >&6
  4738. else
  4739. if test -n "$ac_ct_OBJDUMP"; then
  4740. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4741. else
  4742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4743. for as_dir in $PATH
  4744. do
  4745. IFS=$as_save_IFS
  4746. test -z "$as_dir" && as_dir=.
  4747. for ac_exec_ext in '' $ac_executable_extensions; do
  4748. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4749. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4751. break 2
  4752. fi
  4753. done
  4754. done
  4755. IFS=$as_save_IFS
  4756. fi
  4757. fi
  4758. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4759. if test -n "$ac_ct_OBJDUMP"; then
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4761. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4762. else
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4764. $as_echo "no" >&6; }
  4765. fi
  4766. if test "x$ac_ct_OBJDUMP" = x; then
  4767. OBJDUMP="false"
  4768. else
  4769. case $cross_compiling:$ac_tool_warned in
  4770. yes:)
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4772. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4773. ac_tool_warned=yes ;;
  4774. esac
  4775. OBJDUMP=$ac_ct_OBJDUMP
  4776. fi
  4777. else
  4778. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4779. fi
  4780. test -z "$OBJDUMP" && OBJDUMP=objdump
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4782. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4783. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4784. $as_echo_n "(cached) " >&6
  4785. else
  4786. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4787. lt_cv_file_magic_test_file=
  4788. lt_cv_deplibs_check_method='unknown'
  4789. # Need to set the preceding variable on all platforms that support
  4790. # interlibrary dependencies.
  4791. # 'none' -- dependencies not supported.
  4792. # `unknown' -- same as none, but documents that we really don't know.
  4793. # 'pass_all' -- all dependencies passed with no checks.
  4794. # 'test_compile' -- check by making test program.
  4795. # 'file_magic [[regex]]' -- check by looking for files in library path
  4796. # which responds to the $file_magic_cmd with a given extended regex.
  4797. # If you have `file' or equivalent on your system and you're not sure
  4798. # whether `pass_all' will *always* work, you probably want this one.
  4799. case $host_os in
  4800. aix[4-9]*)
  4801. lt_cv_deplibs_check_method=pass_all
  4802. ;;
  4803. beos*)
  4804. lt_cv_deplibs_check_method=pass_all
  4805. ;;
  4806. bsdi[45]*)
  4807. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4808. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4809. lt_cv_file_magic_test_file=/shlib/libc.so
  4810. ;;
  4811. cygwin*)
  4812. # func_win32_libid is a shell function defined in ltmain.sh
  4813. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4814. lt_cv_file_magic_cmd='func_win32_libid'
  4815. ;;
  4816. mingw* | pw32*)
  4817. # Base MSYS/MinGW do not provide the 'file' command needed by
  4818. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4819. # unless we find 'file', for example because we are cross-compiling.
  4820. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4821. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4822. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4823. lt_cv_file_magic_cmd='func_win32_libid'
  4824. else
  4825. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4826. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4827. fi
  4828. ;;
  4829. cegcc*)
  4830. # use the weaker test based on 'objdump'. See mingw*.
  4831. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4832. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4833. ;;
  4834. darwin* | rhapsody*)
  4835. lt_cv_deplibs_check_method=pass_all
  4836. ;;
  4837. freebsd* | dragonfly*)
  4838. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4839. case $host_cpu in
  4840. i*86 )
  4841. # Not sure whether the presence of OpenBSD here was a mistake.
  4842. # Let's accept both of them until this is cleared up.
  4843. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4844. lt_cv_file_magic_cmd=/usr/bin/file
  4845. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4846. ;;
  4847. esac
  4848. else
  4849. lt_cv_deplibs_check_method=pass_all
  4850. fi
  4851. ;;
  4852. gnu*)
  4853. lt_cv_deplibs_check_method=pass_all
  4854. ;;
  4855. haiku*)
  4856. lt_cv_deplibs_check_method=pass_all
  4857. ;;
  4858. hpux10.20* | hpux11*)
  4859. lt_cv_file_magic_cmd=/usr/bin/file
  4860. case $host_cpu in
  4861. ia64*)
  4862. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4863. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4864. ;;
  4865. hppa*64*)
  4866. 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]'
  4867. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4868. ;;
  4869. *)
  4870. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4871. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4872. ;;
  4873. esac
  4874. ;;
  4875. interix[3-9]*)
  4876. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4877. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4878. ;;
  4879. irix5* | irix6* | nonstopux*)
  4880. case $LD in
  4881. *-32|*"-32 ") libmagic=32-bit;;
  4882. *-n32|*"-n32 ") libmagic=N32;;
  4883. *-64|*"-64 ") libmagic=64-bit;;
  4884. *) libmagic=never-match;;
  4885. esac
  4886. lt_cv_deplibs_check_method=pass_all
  4887. ;;
  4888. # This must be Linux ELF.
  4889. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4890. lt_cv_deplibs_check_method=pass_all
  4891. ;;
  4892. netbsd*)
  4893. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4894. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4895. else
  4896. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4897. fi
  4898. ;;
  4899. newos6*)
  4900. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4901. lt_cv_file_magic_cmd=/usr/bin/file
  4902. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4903. ;;
  4904. *nto* | *qnx*)
  4905. lt_cv_deplibs_check_method=pass_all
  4906. ;;
  4907. openbsd*)
  4908. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4909. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4910. else
  4911. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4912. fi
  4913. ;;
  4914. osf3* | osf4* | osf5*)
  4915. lt_cv_deplibs_check_method=pass_all
  4916. ;;
  4917. rdos*)
  4918. lt_cv_deplibs_check_method=pass_all
  4919. ;;
  4920. solaris*)
  4921. lt_cv_deplibs_check_method=pass_all
  4922. ;;
  4923. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4924. lt_cv_deplibs_check_method=pass_all
  4925. ;;
  4926. sysv4 | sysv4.3*)
  4927. case $host_vendor in
  4928. motorola)
  4929. 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]'
  4930. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4931. ;;
  4932. ncr)
  4933. lt_cv_deplibs_check_method=pass_all
  4934. ;;
  4935. sequent)
  4936. lt_cv_file_magic_cmd='/bin/file'
  4937. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4938. ;;
  4939. sni)
  4940. lt_cv_file_magic_cmd='/bin/file'
  4941. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4942. lt_cv_file_magic_test_file=/lib/libc.so
  4943. ;;
  4944. siemens)
  4945. lt_cv_deplibs_check_method=pass_all
  4946. ;;
  4947. pc)
  4948. lt_cv_deplibs_check_method=pass_all
  4949. ;;
  4950. esac
  4951. ;;
  4952. tpf*)
  4953. lt_cv_deplibs_check_method=pass_all
  4954. ;;
  4955. esac
  4956. fi
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4958. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4959. file_magic_cmd=$lt_cv_file_magic_cmd
  4960. deplibs_check_method=$lt_cv_deplibs_check_method
  4961. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4962. if test -n "$ac_tool_prefix"; then
  4963. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4964. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4966. $as_echo_n "checking for $ac_word... " >&6; }
  4967. if test "${ac_cv_prog_AR+set}" = set; then :
  4968. $as_echo_n "(cached) " >&6
  4969. else
  4970. if test -n "$AR"; then
  4971. ac_cv_prog_AR="$AR" # Let the user override the test.
  4972. else
  4973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4974. for as_dir in $PATH
  4975. do
  4976. IFS=$as_save_IFS
  4977. test -z "$as_dir" && as_dir=.
  4978. for ac_exec_ext in '' $ac_executable_extensions; do
  4979. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4980. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4982. break 2
  4983. fi
  4984. done
  4985. done
  4986. IFS=$as_save_IFS
  4987. fi
  4988. fi
  4989. AR=$ac_cv_prog_AR
  4990. if test -n "$AR"; then
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4992. $as_echo "$AR" >&6; }
  4993. else
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4995. $as_echo "no" >&6; }
  4996. fi
  4997. fi
  4998. if test -z "$ac_cv_prog_AR"; then
  4999. ac_ct_AR=$AR
  5000. # Extract the first word of "ar", so it can be a program name with args.
  5001. set dummy ar; ac_word=$2
  5002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5003. $as_echo_n "checking for $ac_word... " >&6; }
  5004. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5005. $as_echo_n "(cached) " >&6
  5006. else
  5007. if test -n "$ac_ct_AR"; then
  5008. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5009. else
  5010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5011. for as_dir in $PATH
  5012. do
  5013. IFS=$as_save_IFS
  5014. test -z "$as_dir" && as_dir=.
  5015. for ac_exec_ext in '' $ac_executable_extensions; do
  5016. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5017. ac_cv_prog_ac_ct_AR="ar"
  5018. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5019. break 2
  5020. fi
  5021. done
  5022. done
  5023. IFS=$as_save_IFS
  5024. fi
  5025. fi
  5026. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5027. if test -n "$ac_ct_AR"; then
  5028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5029. $as_echo "$ac_ct_AR" >&6; }
  5030. else
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5032. $as_echo "no" >&6; }
  5033. fi
  5034. if test "x$ac_ct_AR" = x; then
  5035. AR="false"
  5036. else
  5037. case $cross_compiling:$ac_tool_warned in
  5038. yes:)
  5039. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5040. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5041. ac_tool_warned=yes ;;
  5042. esac
  5043. AR=$ac_ct_AR
  5044. fi
  5045. else
  5046. AR="$ac_cv_prog_AR"
  5047. fi
  5048. test -z "$AR" && AR=ar
  5049. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5050. if test -n "$ac_tool_prefix"; then
  5051. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5052. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5054. $as_echo_n "checking for $ac_word... " >&6; }
  5055. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5056. $as_echo_n "(cached) " >&6
  5057. else
  5058. if test -n "$STRIP"; then
  5059. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5060. else
  5061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5062. for as_dir in $PATH
  5063. do
  5064. IFS=$as_save_IFS
  5065. test -z "$as_dir" && as_dir=.
  5066. for ac_exec_ext in '' $ac_executable_extensions; do
  5067. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5068. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5069. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5070. break 2
  5071. fi
  5072. done
  5073. done
  5074. IFS=$as_save_IFS
  5075. fi
  5076. fi
  5077. STRIP=$ac_cv_prog_STRIP
  5078. if test -n "$STRIP"; then
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5080. $as_echo "$STRIP" >&6; }
  5081. else
  5082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5083. $as_echo "no" >&6; }
  5084. fi
  5085. fi
  5086. if test -z "$ac_cv_prog_STRIP"; then
  5087. ac_ct_STRIP=$STRIP
  5088. # Extract the first word of "strip", so it can be a program name with args.
  5089. set dummy strip; ac_word=$2
  5090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5091. $as_echo_n "checking for $ac_word... " >&6; }
  5092. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5093. $as_echo_n "(cached) " >&6
  5094. else
  5095. if test -n "$ac_ct_STRIP"; then
  5096. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5097. else
  5098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5099. for as_dir in $PATH
  5100. do
  5101. IFS=$as_save_IFS
  5102. test -z "$as_dir" && as_dir=.
  5103. for ac_exec_ext in '' $ac_executable_extensions; do
  5104. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5105. ac_cv_prog_ac_ct_STRIP="strip"
  5106. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5107. break 2
  5108. fi
  5109. done
  5110. done
  5111. IFS=$as_save_IFS
  5112. fi
  5113. fi
  5114. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5115. if test -n "$ac_ct_STRIP"; then
  5116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5117. $as_echo "$ac_ct_STRIP" >&6; }
  5118. else
  5119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5120. $as_echo "no" >&6; }
  5121. fi
  5122. if test "x$ac_ct_STRIP" = x; then
  5123. STRIP=":"
  5124. else
  5125. case $cross_compiling:$ac_tool_warned in
  5126. yes:)
  5127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5128. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5129. ac_tool_warned=yes ;;
  5130. esac
  5131. STRIP=$ac_ct_STRIP
  5132. fi
  5133. else
  5134. STRIP="$ac_cv_prog_STRIP"
  5135. fi
  5136. test -z "$STRIP" && STRIP=:
  5137. if test -n "$ac_tool_prefix"; then
  5138. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5139. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5141. $as_echo_n "checking for $ac_word... " >&6; }
  5142. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5143. $as_echo_n "(cached) " >&6
  5144. else
  5145. if test -n "$RANLIB"; then
  5146. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5147. else
  5148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5149. for as_dir in $PATH
  5150. do
  5151. IFS=$as_save_IFS
  5152. test -z "$as_dir" && as_dir=.
  5153. for ac_exec_ext in '' $ac_executable_extensions; do
  5154. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5155. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5156. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5157. break 2
  5158. fi
  5159. done
  5160. done
  5161. IFS=$as_save_IFS
  5162. fi
  5163. fi
  5164. RANLIB=$ac_cv_prog_RANLIB
  5165. if test -n "$RANLIB"; then
  5166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5167. $as_echo "$RANLIB" >&6; }
  5168. else
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5170. $as_echo "no" >&6; }
  5171. fi
  5172. fi
  5173. if test -z "$ac_cv_prog_RANLIB"; then
  5174. ac_ct_RANLIB=$RANLIB
  5175. # Extract the first word of "ranlib", so it can be a program name with args.
  5176. set dummy ranlib; ac_word=$2
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5178. $as_echo_n "checking for $ac_word... " >&6; }
  5179. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5180. $as_echo_n "(cached) " >&6
  5181. else
  5182. if test -n "$ac_ct_RANLIB"; then
  5183. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5184. else
  5185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5186. for as_dir in $PATH
  5187. do
  5188. IFS=$as_save_IFS
  5189. test -z "$as_dir" && as_dir=.
  5190. for ac_exec_ext in '' $ac_executable_extensions; do
  5191. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5192. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5193. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5194. break 2
  5195. fi
  5196. done
  5197. done
  5198. IFS=$as_save_IFS
  5199. fi
  5200. fi
  5201. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5202. if test -n "$ac_ct_RANLIB"; then
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5204. $as_echo "$ac_ct_RANLIB" >&6; }
  5205. else
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5207. $as_echo "no" >&6; }
  5208. fi
  5209. if test "x$ac_ct_RANLIB" = x; then
  5210. RANLIB=":"
  5211. else
  5212. case $cross_compiling:$ac_tool_warned in
  5213. yes:)
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5215. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5216. ac_tool_warned=yes ;;
  5217. esac
  5218. RANLIB=$ac_ct_RANLIB
  5219. fi
  5220. else
  5221. RANLIB="$ac_cv_prog_RANLIB"
  5222. fi
  5223. test -z "$RANLIB" && RANLIB=:
  5224. # Determine commands to create old-style static archives.
  5225. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5226. old_postinstall_cmds='chmod 644 $oldlib'
  5227. old_postuninstall_cmds=
  5228. if test -n "$RANLIB"; then
  5229. case $host_os in
  5230. openbsd*)
  5231. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5232. ;;
  5233. *)
  5234. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5235. ;;
  5236. esac
  5237. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5238. fi
  5239. case $host_os in
  5240. darwin*)
  5241. lock_old_archive_extraction=yes ;;
  5242. *)
  5243. lock_old_archive_extraction=no ;;
  5244. esac
  5245. # If no C compiler was specified, use CC.
  5246. LTCC=${LTCC-"$CC"}
  5247. # If no C compiler flags were specified, use CFLAGS.
  5248. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5249. # Allow CC to be a program name with arguments.
  5250. compiler=$CC
  5251. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5253. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5254. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5255. $as_echo_n "(cached) " >&6
  5256. else
  5257. # These are sane defaults that work on at least a few old systems.
  5258. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5259. # Character class describing NM global symbol codes.
  5260. symcode='[BCDEGRST]'
  5261. # Regexp to match symbols that can be accessed directly from C.
  5262. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5263. # Define system-specific variables.
  5264. case $host_os in
  5265. aix*)
  5266. symcode='[BCDT]'
  5267. ;;
  5268. cygwin* | mingw* | pw32* | cegcc*)
  5269. symcode='[ABCDGISTW]'
  5270. ;;
  5271. hpux*)
  5272. if test "$host_cpu" = ia64; then
  5273. symcode='[ABCDEGRST]'
  5274. fi
  5275. ;;
  5276. irix* | nonstopux*)
  5277. symcode='[BCDEGRST]'
  5278. ;;
  5279. osf*)
  5280. symcode='[BCDEGQRST]'
  5281. ;;
  5282. solaris*)
  5283. symcode='[BDRT]'
  5284. ;;
  5285. sco3.2v5*)
  5286. symcode='[DT]'
  5287. ;;
  5288. sysv4.2uw2*)
  5289. symcode='[DT]'
  5290. ;;
  5291. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5292. symcode='[ABDT]'
  5293. ;;
  5294. sysv4)
  5295. symcode='[DFNSTU]'
  5296. ;;
  5297. esac
  5298. # If we're using GNU nm, then use its standard symbol codes.
  5299. case `$NM -V 2>&1` in
  5300. *GNU* | *'with BFD'*)
  5301. symcode='[ABCDGIRSTW]' ;;
  5302. esac
  5303. # Transform an extracted symbol line into a proper C declaration.
  5304. # Some systems (esp. on ia64) link data and code symbols differently,
  5305. # so use this general approach.
  5306. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5307. # Transform an extracted symbol line into symbol name and symbol address
  5308. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5309. 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'"
  5310. # Handle CRLF in mingw tool chain
  5311. opt_cr=
  5312. case $build_os in
  5313. mingw*)
  5314. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5315. ;;
  5316. esac
  5317. # Try without a prefix underscore, then with it.
  5318. for ac_symprfx in "" "_"; do
  5319. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5320. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5321. # Write the raw and C identifiers.
  5322. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5323. # Fake it for dumpbin and say T for any non-static function
  5324. # and D for any global variable.
  5325. # Also find C++ and __fastcall symbols from MSVC++,
  5326. # which start with @ or ?.
  5327. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5328. " {last_section=section; section=\$ 3};"\
  5329. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5330. " \$ 0!~/External *\|/{next};"\
  5331. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5332. " {if(hide[section]) next};"\
  5333. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5334. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5335. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5336. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5337. " ' prfx=^$ac_symprfx"
  5338. else
  5339. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5340. fi
  5341. # Check to see that the pipe works correctly.
  5342. pipe_works=no
  5343. rm -f conftest*
  5344. cat > conftest.$ac_ext <<_LT_EOF
  5345. #ifdef __cplusplus
  5346. extern "C" {
  5347. #endif
  5348. char nm_test_var;
  5349. void nm_test_func(void);
  5350. void nm_test_func(void){}
  5351. #ifdef __cplusplus
  5352. }
  5353. #endif
  5354. int main(){nm_test_var='a';nm_test_func();return(0);}
  5355. _LT_EOF
  5356. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5357. (eval $ac_compile) 2>&5
  5358. ac_status=$?
  5359. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5360. test $ac_status = 0; }; then
  5361. # Now try to grab the symbols.
  5362. nlist=conftest.nm
  5363. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5364. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5365. ac_status=$?
  5366. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5367. test $ac_status = 0; } && test -s "$nlist"; then
  5368. # Try sorting and uniquifying the output.
  5369. if sort "$nlist" | uniq > "$nlist"T; then
  5370. mv -f "$nlist"T "$nlist"
  5371. else
  5372. rm -f "$nlist"T
  5373. fi
  5374. # Make sure that we snagged all the symbols we need.
  5375. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5376. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5377. cat <<_LT_EOF > conftest.$ac_ext
  5378. #ifdef __cplusplus
  5379. extern "C" {
  5380. #endif
  5381. _LT_EOF
  5382. # Now generate the symbol file.
  5383. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5384. cat <<_LT_EOF >> conftest.$ac_ext
  5385. /* The mapping between symbol names and symbols. */
  5386. const struct {
  5387. const char *name;
  5388. void *address;
  5389. }
  5390. lt__PROGRAM__LTX_preloaded_symbols[] =
  5391. {
  5392. { "@PROGRAM@", (void *) 0 },
  5393. _LT_EOF
  5394. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5395. cat <<\_LT_EOF >> conftest.$ac_ext
  5396. {0, (void *) 0}
  5397. };
  5398. /* This works around a problem in FreeBSD linker */
  5399. #ifdef FREEBSD_WORKAROUND
  5400. static const void *lt_preloaded_setup() {
  5401. return lt__PROGRAM__LTX_preloaded_symbols;
  5402. }
  5403. #endif
  5404. #ifdef __cplusplus
  5405. }
  5406. #endif
  5407. _LT_EOF
  5408. # Now try linking the two files.
  5409. mv conftest.$ac_objext conftstm.$ac_objext
  5410. lt_save_LIBS="$LIBS"
  5411. lt_save_CFLAGS="$CFLAGS"
  5412. LIBS="conftstm.$ac_objext"
  5413. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5414. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5415. (eval $ac_link) 2>&5
  5416. ac_status=$?
  5417. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5418. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5419. pipe_works=yes
  5420. fi
  5421. LIBS="$lt_save_LIBS"
  5422. CFLAGS="$lt_save_CFLAGS"
  5423. else
  5424. echo "cannot find nm_test_func in $nlist" >&5
  5425. fi
  5426. else
  5427. echo "cannot find nm_test_var in $nlist" >&5
  5428. fi
  5429. else
  5430. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5431. fi
  5432. else
  5433. echo "$progname: failed program was:" >&5
  5434. cat conftest.$ac_ext >&5
  5435. fi
  5436. rm -rf conftest* conftst*
  5437. # Do not use the global_symbol_pipe unless it works.
  5438. if test "$pipe_works" = yes; then
  5439. break
  5440. else
  5441. lt_cv_sys_global_symbol_pipe=
  5442. fi
  5443. done
  5444. fi
  5445. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5446. lt_cv_sys_global_symbol_to_cdecl=
  5447. fi
  5448. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5450. $as_echo "failed" >&6; }
  5451. else
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5453. $as_echo "ok" >&6; }
  5454. fi
  5455. # Check whether --enable-libtool-lock was given.
  5456. if test "${enable_libtool_lock+set}" = set; then :
  5457. enableval=$enable_libtool_lock;
  5458. fi
  5459. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5460. # Some flags need to be propagated to the compiler or linker for good
  5461. # libtool support.
  5462. case $host in
  5463. ia64-*-hpux*)
  5464. # Find out which ABI we are using.
  5465. echo 'int i;' > conftest.$ac_ext
  5466. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5467. (eval $ac_compile) 2>&5
  5468. ac_status=$?
  5469. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5470. test $ac_status = 0; }; then
  5471. case `/usr/bin/file conftest.$ac_objext` in
  5472. *ELF-32*)
  5473. HPUX_IA64_MODE="32"
  5474. ;;
  5475. *ELF-64*)
  5476. HPUX_IA64_MODE="64"
  5477. ;;
  5478. esac
  5479. fi
  5480. rm -rf conftest*
  5481. ;;
  5482. *-*-irix6*)
  5483. # Find out which ABI we are using.
  5484. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5485. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5486. (eval $ac_compile) 2>&5
  5487. ac_status=$?
  5488. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5489. test $ac_status = 0; }; then
  5490. if test "$lt_cv_prog_gnu_ld" = yes; then
  5491. case `/usr/bin/file conftest.$ac_objext` in
  5492. *32-bit*)
  5493. LD="${LD-ld} -melf32bsmip"
  5494. ;;
  5495. *N32*)
  5496. LD="${LD-ld} -melf32bmipn32"
  5497. ;;
  5498. *64-bit*)
  5499. LD="${LD-ld} -melf64bmip"
  5500. ;;
  5501. esac
  5502. else
  5503. case `/usr/bin/file conftest.$ac_objext` in
  5504. *32-bit*)
  5505. LD="${LD-ld} -32"
  5506. ;;
  5507. *N32*)
  5508. LD="${LD-ld} -n32"
  5509. ;;
  5510. *64-bit*)
  5511. LD="${LD-ld} -64"
  5512. ;;
  5513. esac
  5514. fi
  5515. fi
  5516. rm -rf conftest*
  5517. ;;
  5518. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5519. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5520. # Find out which ABI we are using.
  5521. echo 'int i;' > conftest.$ac_ext
  5522. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5523. (eval $ac_compile) 2>&5
  5524. ac_status=$?
  5525. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5526. test $ac_status = 0; }; then
  5527. case `/usr/bin/file conftest.o` in
  5528. *32-bit*)
  5529. case $host in
  5530. x86_64-*kfreebsd*-gnu)
  5531. LD="${LD-ld} -m elf_i386_fbsd"
  5532. ;;
  5533. x86_64-*linux*)
  5534. case `/usr/bin/file conftest.o` in
  5535. *x86-64*)
  5536. LD="${LD-ld} -m elf32_x86_64"
  5537. ;;
  5538. *)
  5539. LD="${LD-ld} -m elf_i386"
  5540. ;;
  5541. esac
  5542. ;;
  5543. powerpc64le-*linux*)
  5544. LD="${LD-ld} -m elf32lppclinux"
  5545. ;;
  5546. powerpc64-*linux*)
  5547. LD="${LD-ld} -m elf32ppclinux"
  5548. ;;
  5549. s390x-*linux*)
  5550. LD="${LD-ld} -m elf_s390"
  5551. ;;
  5552. sparc64-*linux*)
  5553. LD="${LD-ld} -m elf32_sparc"
  5554. ;;
  5555. esac
  5556. ;;
  5557. *64-bit*)
  5558. case $host in
  5559. x86_64-*kfreebsd*-gnu)
  5560. LD="${LD-ld} -m elf_x86_64_fbsd"
  5561. ;;
  5562. x86_64-*linux*)
  5563. LD="${LD-ld} -m elf_x86_64"
  5564. ;;
  5565. powerpcle-*linux*)
  5566. LD="${LD-ld} -m elf64lppc"
  5567. ;;
  5568. powerpc-*linux*)
  5569. LD="${LD-ld} -m elf64ppc"
  5570. ;;
  5571. s390*-*linux*|s390*-*tpf*)
  5572. LD="${LD-ld} -m elf64_s390"
  5573. ;;
  5574. sparc*-*linux*)
  5575. LD="${LD-ld} -m elf64_sparc"
  5576. ;;
  5577. esac
  5578. ;;
  5579. esac
  5580. fi
  5581. rm -rf conftest*
  5582. ;;
  5583. *-*-sco3.2v5*)
  5584. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5585. SAVE_CFLAGS="$CFLAGS"
  5586. CFLAGS="$CFLAGS -belf"
  5587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5588. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5589. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5590. $as_echo_n "(cached) " >&6
  5591. else
  5592. ac_ext=c
  5593. ac_cpp='$CPP $CPPFLAGS'
  5594. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5595. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5596. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5598. /* end confdefs.h. */
  5599. int
  5600. main ()
  5601. {
  5602. ;
  5603. return 0;
  5604. }
  5605. _ACEOF
  5606. if ac_fn_c_try_link "$LINENO"; then :
  5607. lt_cv_cc_needs_belf=yes
  5608. else
  5609. lt_cv_cc_needs_belf=no
  5610. fi
  5611. rm -f core conftest.err conftest.$ac_objext \
  5612. conftest$ac_exeext conftest.$ac_ext
  5613. ac_ext=c
  5614. ac_cpp='$CPP $CPPFLAGS'
  5615. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5616. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5617. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5618. fi
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5620. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5621. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5622. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5623. CFLAGS="$SAVE_CFLAGS"
  5624. fi
  5625. ;;
  5626. sparc*-*solaris*)
  5627. # Find out which ABI we are using.
  5628. echo 'int i;' > conftest.$ac_ext
  5629. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5630. (eval $ac_compile) 2>&5
  5631. ac_status=$?
  5632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5633. test $ac_status = 0; }; then
  5634. case `/usr/bin/file conftest.o` in
  5635. *64-bit*)
  5636. case $lt_cv_prog_gnu_ld in
  5637. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5638. *)
  5639. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5640. LD="${LD-ld} -64"
  5641. fi
  5642. ;;
  5643. esac
  5644. ;;
  5645. esac
  5646. fi
  5647. rm -rf conftest*
  5648. ;;
  5649. esac
  5650. need_locks="$enable_libtool_lock"
  5651. case $host_os in
  5652. rhapsody* | darwin*)
  5653. if test -n "$ac_tool_prefix"; then
  5654. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5655. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5657. $as_echo_n "checking for $ac_word... " >&6; }
  5658. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5659. $as_echo_n "(cached) " >&6
  5660. else
  5661. if test -n "$DSYMUTIL"; then
  5662. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5663. else
  5664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5665. for as_dir in $PATH
  5666. do
  5667. IFS=$as_save_IFS
  5668. test -z "$as_dir" && as_dir=.
  5669. for ac_exec_ext in '' $ac_executable_extensions; do
  5670. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5671. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5672. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5673. break 2
  5674. fi
  5675. done
  5676. done
  5677. IFS=$as_save_IFS
  5678. fi
  5679. fi
  5680. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5681. if test -n "$DSYMUTIL"; then
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5683. $as_echo "$DSYMUTIL" >&6; }
  5684. else
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5686. $as_echo "no" >&6; }
  5687. fi
  5688. fi
  5689. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5690. ac_ct_DSYMUTIL=$DSYMUTIL
  5691. # Extract the first word of "dsymutil", so it can be a program name with args.
  5692. set dummy dsymutil; ac_word=$2
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5694. $as_echo_n "checking for $ac_word... " >&6; }
  5695. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5696. $as_echo_n "(cached) " >&6
  5697. else
  5698. if test -n "$ac_ct_DSYMUTIL"; then
  5699. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5700. else
  5701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5702. for as_dir in $PATH
  5703. do
  5704. IFS=$as_save_IFS
  5705. test -z "$as_dir" && as_dir=.
  5706. for ac_exec_ext in '' $ac_executable_extensions; do
  5707. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5708. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5710. break 2
  5711. fi
  5712. done
  5713. done
  5714. IFS=$as_save_IFS
  5715. fi
  5716. fi
  5717. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5718. if test -n "$ac_ct_DSYMUTIL"; then
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5720. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5721. else
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5723. $as_echo "no" >&6; }
  5724. fi
  5725. if test "x$ac_ct_DSYMUTIL" = x; then
  5726. DSYMUTIL=":"
  5727. else
  5728. case $cross_compiling:$ac_tool_warned in
  5729. yes:)
  5730. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5731. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5732. ac_tool_warned=yes ;;
  5733. esac
  5734. DSYMUTIL=$ac_ct_DSYMUTIL
  5735. fi
  5736. else
  5737. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5738. fi
  5739. if test -n "$ac_tool_prefix"; then
  5740. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5741. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5743. $as_echo_n "checking for $ac_word... " >&6; }
  5744. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5745. $as_echo_n "(cached) " >&6
  5746. else
  5747. if test -n "$NMEDIT"; then
  5748. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5749. else
  5750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5751. for as_dir in $PATH
  5752. do
  5753. IFS=$as_save_IFS
  5754. test -z "$as_dir" && as_dir=.
  5755. for ac_exec_ext in '' $ac_executable_extensions; do
  5756. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5757. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5759. break 2
  5760. fi
  5761. done
  5762. done
  5763. IFS=$as_save_IFS
  5764. fi
  5765. fi
  5766. NMEDIT=$ac_cv_prog_NMEDIT
  5767. if test -n "$NMEDIT"; then
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5769. $as_echo "$NMEDIT" >&6; }
  5770. else
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5772. $as_echo "no" >&6; }
  5773. fi
  5774. fi
  5775. if test -z "$ac_cv_prog_NMEDIT"; then
  5776. ac_ct_NMEDIT=$NMEDIT
  5777. # Extract the first word of "nmedit", so it can be a program name with args.
  5778. set dummy nmedit; ac_word=$2
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5780. $as_echo_n "checking for $ac_word... " >&6; }
  5781. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5782. $as_echo_n "(cached) " >&6
  5783. else
  5784. if test -n "$ac_ct_NMEDIT"; then
  5785. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5786. else
  5787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5788. for as_dir in $PATH
  5789. do
  5790. IFS=$as_save_IFS
  5791. test -z "$as_dir" && as_dir=.
  5792. for ac_exec_ext in '' $ac_executable_extensions; do
  5793. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5794. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5796. break 2
  5797. fi
  5798. done
  5799. done
  5800. IFS=$as_save_IFS
  5801. fi
  5802. fi
  5803. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5804. if test -n "$ac_ct_NMEDIT"; then
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5806. $as_echo "$ac_ct_NMEDIT" >&6; }
  5807. else
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5809. $as_echo "no" >&6; }
  5810. fi
  5811. if test "x$ac_ct_NMEDIT" = x; then
  5812. NMEDIT=":"
  5813. else
  5814. case $cross_compiling:$ac_tool_warned in
  5815. yes:)
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5817. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5818. ac_tool_warned=yes ;;
  5819. esac
  5820. NMEDIT=$ac_ct_NMEDIT
  5821. fi
  5822. else
  5823. NMEDIT="$ac_cv_prog_NMEDIT"
  5824. fi
  5825. if test -n "$ac_tool_prefix"; then
  5826. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5827. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5829. $as_echo_n "checking for $ac_word... " >&6; }
  5830. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5831. $as_echo_n "(cached) " >&6
  5832. else
  5833. if test -n "$LIPO"; then
  5834. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5835. else
  5836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5837. for as_dir in $PATH
  5838. do
  5839. IFS=$as_save_IFS
  5840. test -z "$as_dir" && as_dir=.
  5841. for ac_exec_ext in '' $ac_executable_extensions; do
  5842. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5843. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5845. break 2
  5846. fi
  5847. done
  5848. done
  5849. IFS=$as_save_IFS
  5850. fi
  5851. fi
  5852. LIPO=$ac_cv_prog_LIPO
  5853. if test -n "$LIPO"; then
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5855. $as_echo "$LIPO" >&6; }
  5856. else
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5858. $as_echo "no" >&6; }
  5859. fi
  5860. fi
  5861. if test -z "$ac_cv_prog_LIPO"; then
  5862. ac_ct_LIPO=$LIPO
  5863. # Extract the first word of "lipo", so it can be a program name with args.
  5864. set dummy lipo; ac_word=$2
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5866. $as_echo_n "checking for $ac_word... " >&6; }
  5867. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5868. $as_echo_n "(cached) " >&6
  5869. else
  5870. if test -n "$ac_ct_LIPO"; then
  5871. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5872. else
  5873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5874. for as_dir in $PATH
  5875. do
  5876. IFS=$as_save_IFS
  5877. test -z "$as_dir" && as_dir=.
  5878. for ac_exec_ext in '' $ac_executable_extensions; do
  5879. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5880. ac_cv_prog_ac_ct_LIPO="lipo"
  5881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5882. break 2
  5883. fi
  5884. done
  5885. done
  5886. IFS=$as_save_IFS
  5887. fi
  5888. fi
  5889. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5890. if test -n "$ac_ct_LIPO"; then
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5892. $as_echo "$ac_ct_LIPO" >&6; }
  5893. else
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5895. $as_echo "no" >&6; }
  5896. fi
  5897. if test "x$ac_ct_LIPO" = x; then
  5898. LIPO=":"
  5899. else
  5900. case $cross_compiling:$ac_tool_warned in
  5901. yes:)
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5903. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5904. ac_tool_warned=yes ;;
  5905. esac
  5906. LIPO=$ac_ct_LIPO
  5907. fi
  5908. else
  5909. LIPO="$ac_cv_prog_LIPO"
  5910. fi
  5911. if test -n "$ac_tool_prefix"; then
  5912. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5913. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5915. $as_echo_n "checking for $ac_word... " >&6; }
  5916. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5917. $as_echo_n "(cached) " >&6
  5918. else
  5919. if test -n "$OTOOL"; then
  5920. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5921. else
  5922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5923. for as_dir in $PATH
  5924. do
  5925. IFS=$as_save_IFS
  5926. test -z "$as_dir" && as_dir=.
  5927. for ac_exec_ext in '' $ac_executable_extensions; do
  5928. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5929. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5931. break 2
  5932. fi
  5933. done
  5934. done
  5935. IFS=$as_save_IFS
  5936. fi
  5937. fi
  5938. OTOOL=$ac_cv_prog_OTOOL
  5939. if test -n "$OTOOL"; then
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5941. $as_echo "$OTOOL" >&6; }
  5942. else
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5944. $as_echo "no" >&6; }
  5945. fi
  5946. fi
  5947. if test -z "$ac_cv_prog_OTOOL"; then
  5948. ac_ct_OTOOL=$OTOOL
  5949. # Extract the first word of "otool", so it can be a program name with args.
  5950. set dummy otool; ac_word=$2
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5952. $as_echo_n "checking for $ac_word... " >&6; }
  5953. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  5954. $as_echo_n "(cached) " >&6
  5955. else
  5956. if test -n "$ac_ct_OTOOL"; then
  5957. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5958. else
  5959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5960. for as_dir in $PATH
  5961. do
  5962. IFS=$as_save_IFS
  5963. test -z "$as_dir" && as_dir=.
  5964. for ac_exec_ext in '' $ac_executable_extensions; do
  5965. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5966. ac_cv_prog_ac_ct_OTOOL="otool"
  5967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5968. break 2
  5969. fi
  5970. done
  5971. done
  5972. IFS=$as_save_IFS
  5973. fi
  5974. fi
  5975. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5976. if test -n "$ac_ct_OTOOL"; then
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5978. $as_echo "$ac_ct_OTOOL" >&6; }
  5979. else
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5981. $as_echo "no" >&6; }
  5982. fi
  5983. if test "x$ac_ct_OTOOL" = x; then
  5984. OTOOL=":"
  5985. else
  5986. case $cross_compiling:$ac_tool_warned in
  5987. yes:)
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5989. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5990. ac_tool_warned=yes ;;
  5991. esac
  5992. OTOOL=$ac_ct_OTOOL
  5993. fi
  5994. else
  5995. OTOOL="$ac_cv_prog_OTOOL"
  5996. fi
  5997. if test -n "$ac_tool_prefix"; then
  5998. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5999. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6001. $as_echo_n "checking for $ac_word... " >&6; }
  6002. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6003. $as_echo_n "(cached) " >&6
  6004. else
  6005. if test -n "$OTOOL64"; then
  6006. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6007. else
  6008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6009. for as_dir in $PATH
  6010. do
  6011. IFS=$as_save_IFS
  6012. test -z "$as_dir" && as_dir=.
  6013. for ac_exec_ext in '' $ac_executable_extensions; do
  6014. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6015. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6017. break 2
  6018. fi
  6019. done
  6020. done
  6021. IFS=$as_save_IFS
  6022. fi
  6023. fi
  6024. OTOOL64=$ac_cv_prog_OTOOL64
  6025. if test -n "$OTOOL64"; then
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6027. $as_echo "$OTOOL64" >&6; }
  6028. else
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6030. $as_echo "no" >&6; }
  6031. fi
  6032. fi
  6033. if test -z "$ac_cv_prog_OTOOL64"; then
  6034. ac_ct_OTOOL64=$OTOOL64
  6035. # Extract the first word of "otool64", so it can be a program name with args.
  6036. set dummy otool64; ac_word=$2
  6037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6038. $as_echo_n "checking for $ac_word... " >&6; }
  6039. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6040. $as_echo_n "(cached) " >&6
  6041. else
  6042. if test -n "$ac_ct_OTOOL64"; then
  6043. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6044. else
  6045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6046. for as_dir in $PATH
  6047. do
  6048. IFS=$as_save_IFS
  6049. test -z "$as_dir" && as_dir=.
  6050. for ac_exec_ext in '' $ac_executable_extensions; do
  6051. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6052. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6054. break 2
  6055. fi
  6056. done
  6057. done
  6058. IFS=$as_save_IFS
  6059. fi
  6060. fi
  6061. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6062. if test -n "$ac_ct_OTOOL64"; then
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6064. $as_echo "$ac_ct_OTOOL64" >&6; }
  6065. else
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6067. $as_echo "no" >&6; }
  6068. fi
  6069. if test "x$ac_ct_OTOOL64" = x; then
  6070. OTOOL64=":"
  6071. else
  6072. case $cross_compiling:$ac_tool_warned in
  6073. yes:)
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6075. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6076. ac_tool_warned=yes ;;
  6077. esac
  6078. OTOOL64=$ac_ct_OTOOL64
  6079. fi
  6080. else
  6081. OTOOL64="$ac_cv_prog_OTOOL64"
  6082. fi
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6084. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6085. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6086. $as_echo_n "(cached) " >&6
  6087. else
  6088. lt_cv_apple_cc_single_mod=no
  6089. if test -z "${LT_MULTI_MODULE}"; then
  6090. # By default we will add the -single_module flag. You can override
  6091. # by either setting the environment variable LT_MULTI_MODULE
  6092. # non-empty at configure time, or by adding -multi_module to the
  6093. # link flags.
  6094. rm -rf libconftest.dylib*
  6095. echo "int foo(void){return 1;}" > conftest.c
  6096. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6097. -dynamiclib -Wl,-single_module conftest.c" >&5
  6098. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6099. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6100. _lt_result=$?
  6101. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6102. lt_cv_apple_cc_single_mod=yes
  6103. else
  6104. cat conftest.err >&5
  6105. fi
  6106. rm -rf libconftest.dylib*
  6107. rm -f conftest.*
  6108. fi
  6109. fi
  6110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6111. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6113. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6114. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6115. $as_echo_n "(cached) " >&6
  6116. else
  6117. lt_cv_ld_exported_symbols_list=no
  6118. save_LDFLAGS=$LDFLAGS
  6119. echo "_main" > conftest.sym
  6120. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6122. /* end confdefs.h. */
  6123. int
  6124. main ()
  6125. {
  6126. ;
  6127. return 0;
  6128. }
  6129. _ACEOF
  6130. if ac_fn_c_try_link "$LINENO"; then :
  6131. lt_cv_ld_exported_symbols_list=yes
  6132. else
  6133. lt_cv_ld_exported_symbols_list=no
  6134. fi
  6135. rm -f core conftest.err conftest.$ac_objext \
  6136. conftest$ac_exeext conftest.$ac_ext
  6137. LDFLAGS="$save_LDFLAGS"
  6138. fi
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6140. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6142. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6143. if test "${lt_cv_ld_force_load+set}" = set; then :
  6144. $as_echo_n "(cached) " >&6
  6145. else
  6146. lt_cv_ld_force_load=no
  6147. cat > conftest.c << _LT_EOF
  6148. int forced_loaded() { return 2;}
  6149. _LT_EOF
  6150. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6151. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6152. echo "$AR cru libconftest.a conftest.o" >&5
  6153. $AR cru libconftest.a conftest.o 2>&5
  6154. cat > conftest.c << _LT_EOF
  6155. int main() { return 0;}
  6156. _LT_EOF
  6157. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6158. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6159. _lt_result=$?
  6160. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6161. lt_cv_ld_force_load=yes
  6162. else
  6163. cat conftest.err >&5
  6164. fi
  6165. rm -f conftest.err libconftest.a conftest conftest.c
  6166. rm -rf conftest.dSYM
  6167. fi
  6168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6169. $as_echo "$lt_cv_ld_force_load" >&6; }
  6170. case $host_os in
  6171. rhapsody* | darwin1.[012])
  6172. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6173. darwin1.*)
  6174. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6175. darwin*) # darwin 5.x on
  6176. # if running on 10.5 or later, the deployment target defaults
  6177. # to the OS version, if on x86, and 10.4, the deployment
  6178. # target defaults to 10.4. Don't you love it?
  6179. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6180. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6181. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6182. 10.[012][,.]*)
  6183. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6184. 10.*)
  6185. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6186. esac
  6187. ;;
  6188. esac
  6189. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6190. _lt_dar_single_mod='$single_module'
  6191. fi
  6192. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6193. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6194. else
  6195. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6196. fi
  6197. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6198. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6199. else
  6200. _lt_dsymutil=
  6201. fi
  6202. ;;
  6203. esac
  6204. for ac_header in dlfcn.h
  6205. do :
  6206. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6207. "
  6208. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6209. cat >>confdefs.h <<_ACEOF
  6210. #define HAVE_DLFCN_H 1
  6211. _ACEOF
  6212. fi
  6213. done
  6214. # Set options
  6215. # Check whether --enable-static was given.
  6216. if test "${enable_static+set}" = set; then :
  6217. enableval=$enable_static; p=${PACKAGE-default}
  6218. case $enableval in
  6219. yes) enable_static=yes ;;
  6220. no) enable_static=no ;;
  6221. *)
  6222. enable_static=no
  6223. # Look at the argument we got. We use all the common list separators.
  6224. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6225. for pkg in $enableval; do
  6226. IFS="$lt_save_ifs"
  6227. if test "X$pkg" = "X$p"; then
  6228. enable_static=yes
  6229. fi
  6230. done
  6231. IFS="$lt_save_ifs"
  6232. ;;
  6233. esac
  6234. else
  6235. enable_static=no
  6236. fi
  6237. enable_dlopen=no
  6238. enable_win32_dll=no
  6239. # Check whether --enable-shared was given.
  6240. if test "${enable_shared+set}" = set; then :
  6241. enableval=$enable_shared; p=${PACKAGE-default}
  6242. case $enableval in
  6243. yes) enable_shared=yes ;;
  6244. no) enable_shared=no ;;
  6245. *)
  6246. enable_shared=no
  6247. # Look at the argument we got. We use all the common list separators.
  6248. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6249. for pkg in $enableval; do
  6250. IFS="$lt_save_ifs"
  6251. if test "X$pkg" = "X$p"; then
  6252. enable_shared=yes
  6253. fi
  6254. done
  6255. IFS="$lt_save_ifs"
  6256. ;;
  6257. esac
  6258. else
  6259. enable_shared=yes
  6260. fi
  6261. # Check whether --with-pic was given.
  6262. if test "${with_pic+set}" = set; then :
  6263. withval=$with_pic; pic_mode="$withval"
  6264. else
  6265. pic_mode=default
  6266. fi
  6267. test -z "$pic_mode" && pic_mode=default
  6268. # Check whether --enable-fast-install was given.
  6269. if test "${enable_fast_install+set}" = set; then :
  6270. enableval=$enable_fast_install; p=${PACKAGE-default}
  6271. case $enableval in
  6272. yes) enable_fast_install=yes ;;
  6273. no) enable_fast_install=no ;;
  6274. *)
  6275. enable_fast_install=no
  6276. # Look at the argument we got. We use all the common list separators.
  6277. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6278. for pkg in $enableval; do
  6279. IFS="$lt_save_ifs"
  6280. if test "X$pkg" = "X$p"; then
  6281. enable_fast_install=yes
  6282. fi
  6283. done
  6284. IFS="$lt_save_ifs"
  6285. ;;
  6286. esac
  6287. else
  6288. enable_fast_install=yes
  6289. fi
  6290. # This can be used to rebuild libtool when needed
  6291. LIBTOOL_DEPS="$ltmain"
  6292. # Always use our own libtool.
  6293. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6294. test -z "$LN_S" && LN_S="ln -s"
  6295. if test -n "${ZSH_VERSION+set}" ; then
  6296. setopt NO_GLOB_SUBST
  6297. fi
  6298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6299. $as_echo_n "checking for objdir... " >&6; }
  6300. if test "${lt_cv_objdir+set}" = set; then :
  6301. $as_echo_n "(cached) " >&6
  6302. else
  6303. rm -f .libs 2>/dev/null
  6304. mkdir .libs 2>/dev/null
  6305. if test -d .libs; then
  6306. lt_cv_objdir=.libs
  6307. else
  6308. # MS-DOS does not allow filenames that begin with a dot.
  6309. lt_cv_objdir=_libs
  6310. fi
  6311. rmdir .libs 2>/dev/null
  6312. fi
  6313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6314. $as_echo "$lt_cv_objdir" >&6; }
  6315. objdir=$lt_cv_objdir
  6316. cat >>confdefs.h <<_ACEOF
  6317. #define LT_OBJDIR "$lt_cv_objdir/"
  6318. _ACEOF
  6319. case $host_os in
  6320. aix3*)
  6321. # AIX sometimes has problems with the GCC collect2 program. For some
  6322. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6323. # vanish in a puff of smoke.
  6324. if test "X${COLLECT_NAMES+set}" != Xset; then
  6325. COLLECT_NAMES=
  6326. export COLLECT_NAMES
  6327. fi
  6328. ;;
  6329. esac
  6330. # Global variables:
  6331. ofile=libtool
  6332. can_build_shared=yes
  6333. # All known linkers require a `.a' archive for static linking (except MSVC,
  6334. # which needs '.lib').
  6335. libext=a
  6336. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6337. old_CC="$CC"
  6338. old_CFLAGS="$CFLAGS"
  6339. # Set sane defaults for various variables
  6340. test -z "$CC" && CC=cc
  6341. test -z "$LTCC" && LTCC=$CC
  6342. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6343. test -z "$LD" && LD=ld
  6344. test -z "$ac_objext" && ac_objext=o
  6345. for cc_temp in $compiler""; do
  6346. case $cc_temp in
  6347. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6348. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6349. \-*) ;;
  6350. *) break;;
  6351. esac
  6352. done
  6353. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6354. # Only perform the check for file, if the check method requires it
  6355. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6356. case $deplibs_check_method in
  6357. file_magic*)
  6358. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6360. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6361. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6362. $as_echo_n "(cached) " >&6
  6363. else
  6364. case $MAGIC_CMD in
  6365. [\\/*] | ?:[\\/]*)
  6366. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6367. ;;
  6368. *)
  6369. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6370. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6371. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6372. for ac_dir in $ac_dummy; do
  6373. IFS="$lt_save_ifs"
  6374. test -z "$ac_dir" && ac_dir=.
  6375. if test -f $ac_dir/${ac_tool_prefix}file; then
  6376. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6377. if test -n "$file_magic_test_file"; then
  6378. case $deplibs_check_method in
  6379. "file_magic "*)
  6380. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6381. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6382. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6383. $EGREP "$file_magic_regex" > /dev/null; then
  6384. :
  6385. else
  6386. cat <<_LT_EOF 1>&2
  6387. *** Warning: the command libtool uses to detect shared libraries,
  6388. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6389. *** The result is that libtool may fail to recognize shared libraries
  6390. *** as such. This will affect the creation of libtool libraries that
  6391. *** depend on shared libraries, but programs linked with such libtool
  6392. *** libraries will work regardless of this problem. Nevertheless, you
  6393. *** may want to report the problem to your system manager and/or to
  6394. *** bug-libtool@gnu.org
  6395. _LT_EOF
  6396. fi ;;
  6397. esac
  6398. fi
  6399. break
  6400. fi
  6401. done
  6402. IFS="$lt_save_ifs"
  6403. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6404. ;;
  6405. esac
  6406. fi
  6407. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6408. if test -n "$MAGIC_CMD"; then
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6410. $as_echo "$MAGIC_CMD" >&6; }
  6411. else
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6413. $as_echo "no" >&6; }
  6414. fi
  6415. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6416. if test -n "$ac_tool_prefix"; then
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6418. $as_echo_n "checking for file... " >&6; }
  6419. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6420. $as_echo_n "(cached) " >&6
  6421. else
  6422. case $MAGIC_CMD in
  6423. [\\/*] | ?:[\\/]*)
  6424. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6425. ;;
  6426. *)
  6427. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6428. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6429. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6430. for ac_dir in $ac_dummy; do
  6431. IFS="$lt_save_ifs"
  6432. test -z "$ac_dir" && ac_dir=.
  6433. if test -f $ac_dir/file; then
  6434. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6435. if test -n "$file_magic_test_file"; then
  6436. case $deplibs_check_method in
  6437. "file_magic "*)
  6438. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6439. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6440. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6441. $EGREP "$file_magic_regex" > /dev/null; then
  6442. :
  6443. else
  6444. cat <<_LT_EOF 1>&2
  6445. *** Warning: the command libtool uses to detect shared libraries,
  6446. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6447. *** The result is that libtool may fail to recognize shared libraries
  6448. *** as such. This will affect the creation of libtool libraries that
  6449. *** depend on shared libraries, but programs linked with such libtool
  6450. *** libraries will work regardless of this problem. Nevertheless, you
  6451. *** may want to report the problem to your system manager and/or to
  6452. *** bug-libtool@gnu.org
  6453. _LT_EOF
  6454. fi ;;
  6455. esac
  6456. fi
  6457. break
  6458. fi
  6459. done
  6460. IFS="$lt_save_ifs"
  6461. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6462. ;;
  6463. esac
  6464. fi
  6465. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6466. if test -n "$MAGIC_CMD"; then
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6468. $as_echo "$MAGIC_CMD" >&6; }
  6469. else
  6470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6471. $as_echo "no" >&6; }
  6472. fi
  6473. else
  6474. MAGIC_CMD=:
  6475. fi
  6476. fi
  6477. fi
  6478. ;;
  6479. esac
  6480. # Use C for the default configuration in the libtool script
  6481. lt_save_CC="$CC"
  6482. ac_ext=c
  6483. ac_cpp='$CPP $CPPFLAGS'
  6484. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6485. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6486. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6487. # Source file extension for C test sources.
  6488. ac_ext=c
  6489. # Object file extension for compiled C test sources.
  6490. objext=o
  6491. objext=$objext
  6492. # Code to be used in simple compile tests
  6493. lt_simple_compile_test_code="int some_variable = 0;"
  6494. # Code to be used in simple link tests
  6495. lt_simple_link_test_code='int main(){return(0);}'
  6496. # If no C compiler was specified, use CC.
  6497. LTCC=${LTCC-"$CC"}
  6498. # If no C compiler flags were specified, use CFLAGS.
  6499. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6500. # Allow CC to be a program name with arguments.
  6501. compiler=$CC
  6502. # Save the default compiler, since it gets overwritten when the other
  6503. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6504. compiler_DEFAULT=$CC
  6505. # save warnings/boilerplate of simple test code
  6506. ac_outfile=conftest.$ac_objext
  6507. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6508. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6509. _lt_compiler_boilerplate=`cat conftest.err`
  6510. $RM conftest*
  6511. ac_outfile=conftest.$ac_objext
  6512. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6513. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6514. _lt_linker_boilerplate=`cat conftest.err`
  6515. $RM -r conftest*
  6516. ## CAVEAT EMPTOR:
  6517. ## There is no encapsulation within the following macros, do not change
  6518. ## the running order or otherwise move them around unless you know exactly
  6519. ## what you are doing...
  6520. if test -n "$compiler"; then
  6521. lt_prog_compiler_no_builtin_flag=
  6522. if test "$GCC" = yes; then
  6523. case $cc_basename in
  6524. nvcc*)
  6525. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6526. *)
  6527. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6528. esac
  6529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6530. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6531. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6532. $as_echo_n "(cached) " >&6
  6533. else
  6534. lt_cv_prog_compiler_rtti_exceptions=no
  6535. ac_outfile=conftest.$ac_objext
  6536. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6537. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6538. # Insert the option either (1) after the last *FLAGS variable, or
  6539. # (2) before a word containing "conftest.", or (3) at the end.
  6540. # Note that $ac_compile itself does not contain backslashes and begins
  6541. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6542. # The option is referenced via a variable to avoid confusing sed.
  6543. lt_compile=`echo "$ac_compile" | $SED \
  6544. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6545. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6546. -e 's:$: $lt_compiler_flag:'`
  6547. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6548. (eval "$lt_compile" 2>conftest.err)
  6549. ac_status=$?
  6550. cat conftest.err >&5
  6551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6552. if (exit $ac_status) && test -s "$ac_outfile"; then
  6553. # The compiler can only warn and ignore the option if not recognized
  6554. # So say no if there are warnings other than the usual output.
  6555. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6556. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6557. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6558. lt_cv_prog_compiler_rtti_exceptions=yes
  6559. fi
  6560. fi
  6561. $RM conftest*
  6562. fi
  6563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6564. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6565. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6566. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6567. else
  6568. :
  6569. fi
  6570. fi
  6571. lt_prog_compiler_wl=
  6572. lt_prog_compiler_pic=
  6573. lt_prog_compiler_static=
  6574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6575. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6576. if test "$GCC" = yes; then
  6577. lt_prog_compiler_wl='-Wl,'
  6578. lt_prog_compiler_static='-static'
  6579. case $host_os in
  6580. aix*)
  6581. # All AIX code is PIC.
  6582. if test "$host_cpu" = ia64; then
  6583. # AIX 5 now supports IA64 processor
  6584. lt_prog_compiler_static='-Bstatic'
  6585. fi
  6586. lt_prog_compiler_pic='-fPIC'
  6587. ;;
  6588. amigaos*)
  6589. case $host_cpu in
  6590. powerpc)
  6591. # see comment about AmigaOS4 .so support
  6592. lt_prog_compiler_pic='-fPIC'
  6593. ;;
  6594. m68k)
  6595. # FIXME: we need at least 68020 code to build shared libraries, but
  6596. # adding the `-m68020' flag to GCC prevents building anything better,
  6597. # like `-m68040'.
  6598. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6599. ;;
  6600. esac
  6601. ;;
  6602. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6603. # PIC is the default for these OSes.
  6604. ;;
  6605. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6606. # This hack is so that the source file can tell whether it is being
  6607. # built for inclusion in a dll (and should export symbols for example).
  6608. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6609. # (--disable-auto-import) libraries
  6610. lt_prog_compiler_pic='-DDLL_EXPORT'
  6611. ;;
  6612. darwin* | rhapsody*)
  6613. # PIC is the default on this platform
  6614. # Common symbols not allowed in MH_DYLIB files
  6615. lt_prog_compiler_pic='-fno-common'
  6616. ;;
  6617. haiku*)
  6618. # PIC is the default for Haiku.
  6619. # The "-static" flag exists, but is broken.
  6620. lt_prog_compiler_static=
  6621. ;;
  6622. hpux*)
  6623. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6624. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6625. # sets the default TLS model and affects inlining.
  6626. case $host_cpu in
  6627. hppa*64*)
  6628. # +Z the default
  6629. ;;
  6630. *)
  6631. lt_prog_compiler_pic='-fPIC'
  6632. ;;
  6633. esac
  6634. ;;
  6635. interix[3-9]*)
  6636. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6637. # Instead, we relocate shared libraries at runtime.
  6638. ;;
  6639. msdosdjgpp*)
  6640. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6641. # on systems that don't support them.
  6642. lt_prog_compiler_can_build_shared=no
  6643. enable_shared=no
  6644. ;;
  6645. *nto* | *qnx*)
  6646. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6647. # it will coredump.
  6648. lt_prog_compiler_pic='-fPIC -shared'
  6649. ;;
  6650. sysv4*MP*)
  6651. if test -d /usr/nec; then
  6652. lt_prog_compiler_pic=-Kconform_pic
  6653. fi
  6654. ;;
  6655. *)
  6656. lt_prog_compiler_pic='-fPIC'
  6657. ;;
  6658. esac
  6659. case $cc_basename in
  6660. nvcc*) # Cuda Compiler Driver 2.2
  6661. lt_prog_compiler_wl='-Xlinker '
  6662. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6663. ;;
  6664. esac
  6665. else
  6666. # PORTME Check for flag to pass linker flags through the system compiler.
  6667. case $host_os in
  6668. aix*)
  6669. lt_prog_compiler_wl='-Wl,'
  6670. if test "$host_cpu" = ia64; then
  6671. # AIX 5 now supports IA64 processor
  6672. lt_prog_compiler_static='-Bstatic'
  6673. else
  6674. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6675. fi
  6676. ;;
  6677. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6678. # This hack is so that the source file can tell whether it is being
  6679. # built for inclusion in a dll (and should export symbols for example).
  6680. lt_prog_compiler_pic='-DDLL_EXPORT'
  6681. ;;
  6682. hpux9* | hpux10* | hpux11*)
  6683. lt_prog_compiler_wl='-Wl,'
  6684. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6685. # not for PA HP-UX.
  6686. case $host_cpu in
  6687. hppa*64*|ia64*)
  6688. # +Z the default
  6689. ;;
  6690. *)
  6691. lt_prog_compiler_pic='+Z'
  6692. ;;
  6693. esac
  6694. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6695. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6696. ;;
  6697. irix5* | irix6* | nonstopux*)
  6698. lt_prog_compiler_wl='-Wl,'
  6699. # PIC (with -KPIC) is the default.
  6700. lt_prog_compiler_static='-non_shared'
  6701. ;;
  6702. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6703. case $cc_basename in
  6704. # old Intel for x86_64 which still supported -KPIC.
  6705. ecc*)
  6706. lt_prog_compiler_wl='-Wl,'
  6707. lt_prog_compiler_pic='-KPIC'
  6708. lt_prog_compiler_static='-static'
  6709. ;;
  6710. # icc used to be incompatible with GCC.
  6711. # ICC 10 doesn't accept -KPIC any more.
  6712. icc* | ifort*)
  6713. lt_prog_compiler_wl='-Wl,'
  6714. lt_prog_compiler_pic='-fPIC'
  6715. lt_prog_compiler_static='-static'
  6716. ;;
  6717. # Lahey Fortran 8.1.
  6718. lf95*)
  6719. lt_prog_compiler_wl='-Wl,'
  6720. lt_prog_compiler_pic='--shared'
  6721. lt_prog_compiler_static='--static'
  6722. ;;
  6723. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6724. # Portland Group compilers (*not* the Pentium gcc compiler,
  6725. # which looks to be a dead project)
  6726. lt_prog_compiler_wl='-Wl,'
  6727. lt_prog_compiler_pic='-fpic'
  6728. lt_prog_compiler_static='-Bstatic'
  6729. ;;
  6730. ccc*)
  6731. lt_prog_compiler_wl='-Wl,'
  6732. # All Alpha code is PIC.
  6733. lt_prog_compiler_static='-non_shared'
  6734. ;;
  6735. xl* | bgxl* | bgf* | mpixl*)
  6736. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6737. lt_prog_compiler_wl='-Wl,'
  6738. lt_prog_compiler_pic='-qpic'
  6739. lt_prog_compiler_static='-qstaticlink'
  6740. ;;
  6741. *)
  6742. case `$CC -V 2>&1 | sed 5q` in
  6743. *Sun\ F* | *Sun*Fortran*)
  6744. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6745. lt_prog_compiler_pic='-KPIC'
  6746. lt_prog_compiler_static='-Bstatic'
  6747. lt_prog_compiler_wl=''
  6748. ;;
  6749. *Sun\ C*)
  6750. # Sun C 5.9
  6751. lt_prog_compiler_pic='-KPIC'
  6752. lt_prog_compiler_static='-Bstatic'
  6753. lt_prog_compiler_wl='-Wl,'
  6754. ;;
  6755. esac
  6756. ;;
  6757. esac
  6758. ;;
  6759. newsos6)
  6760. lt_prog_compiler_pic='-KPIC'
  6761. lt_prog_compiler_static='-Bstatic'
  6762. ;;
  6763. *nto* | *qnx*)
  6764. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6765. # it will coredump.
  6766. lt_prog_compiler_pic='-fPIC -shared'
  6767. ;;
  6768. osf3* | osf4* | osf5*)
  6769. lt_prog_compiler_wl='-Wl,'
  6770. # All OSF/1 code is PIC.
  6771. lt_prog_compiler_static='-non_shared'
  6772. ;;
  6773. rdos*)
  6774. lt_prog_compiler_static='-non_shared'
  6775. ;;
  6776. solaris*)
  6777. lt_prog_compiler_pic='-KPIC'
  6778. lt_prog_compiler_static='-Bstatic'
  6779. case $cc_basename in
  6780. f77* | f90* | f95*)
  6781. lt_prog_compiler_wl='-Qoption ld ';;
  6782. *)
  6783. lt_prog_compiler_wl='-Wl,';;
  6784. esac
  6785. ;;
  6786. sunos4*)
  6787. lt_prog_compiler_wl='-Qoption ld '
  6788. lt_prog_compiler_pic='-PIC'
  6789. lt_prog_compiler_static='-Bstatic'
  6790. ;;
  6791. sysv4 | sysv4.2uw2* | sysv4.3*)
  6792. lt_prog_compiler_wl='-Wl,'
  6793. lt_prog_compiler_pic='-KPIC'
  6794. lt_prog_compiler_static='-Bstatic'
  6795. ;;
  6796. sysv4*MP*)
  6797. if test -d /usr/nec ;then
  6798. lt_prog_compiler_pic='-Kconform_pic'
  6799. lt_prog_compiler_static='-Bstatic'
  6800. fi
  6801. ;;
  6802. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6803. lt_prog_compiler_wl='-Wl,'
  6804. lt_prog_compiler_pic='-KPIC'
  6805. lt_prog_compiler_static='-Bstatic'
  6806. ;;
  6807. unicos*)
  6808. lt_prog_compiler_wl='-Wl,'
  6809. lt_prog_compiler_can_build_shared=no
  6810. ;;
  6811. uts4*)
  6812. lt_prog_compiler_pic='-pic'
  6813. lt_prog_compiler_static='-Bstatic'
  6814. ;;
  6815. *)
  6816. lt_prog_compiler_can_build_shared=no
  6817. ;;
  6818. esac
  6819. fi
  6820. case $host_os in
  6821. # For platforms which do not support PIC, -DPIC is meaningless:
  6822. *djgpp*)
  6823. lt_prog_compiler_pic=
  6824. ;;
  6825. *)
  6826. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6827. ;;
  6828. esac
  6829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  6830. $as_echo "$lt_prog_compiler_pic" >&6; }
  6831. #
  6832. # Check to make sure the PIC flag actually works.
  6833. #
  6834. if test -n "$lt_prog_compiler_pic"; then
  6835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6836. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6837. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  6838. $as_echo_n "(cached) " >&6
  6839. else
  6840. lt_cv_prog_compiler_pic_works=no
  6841. ac_outfile=conftest.$ac_objext
  6842. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6843. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6844. # Insert the option either (1) after the last *FLAGS variable, or
  6845. # (2) before a word containing "conftest.", or (3) at the end.
  6846. # Note that $ac_compile itself does not contain backslashes and begins
  6847. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6848. # The option is referenced via a variable to avoid confusing sed.
  6849. lt_compile=`echo "$ac_compile" | $SED \
  6850. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6851. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6852. -e 's:$: $lt_compiler_flag:'`
  6853. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6854. (eval "$lt_compile" 2>conftest.err)
  6855. ac_status=$?
  6856. cat conftest.err >&5
  6857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6858. if (exit $ac_status) && test -s "$ac_outfile"; then
  6859. # The compiler can only warn and ignore the option if not recognized
  6860. # So say no if there are warnings other than the usual output.
  6861. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6862. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6863. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6864. lt_cv_prog_compiler_pic_works=yes
  6865. fi
  6866. fi
  6867. $RM conftest*
  6868. fi
  6869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  6870. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6871. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6872. case $lt_prog_compiler_pic in
  6873. "" | " "*) ;;
  6874. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6875. esac
  6876. else
  6877. lt_prog_compiler_pic=
  6878. lt_prog_compiler_can_build_shared=no
  6879. fi
  6880. fi
  6881. #
  6882. # Check to make sure the static flag actually works.
  6883. #
  6884. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6886. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6887. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  6888. $as_echo_n "(cached) " >&6
  6889. else
  6890. lt_cv_prog_compiler_static_works=no
  6891. save_LDFLAGS="$LDFLAGS"
  6892. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6893. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6894. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6895. # The linker can only warn and ignore the option if not recognized
  6896. # So say no if there are warnings
  6897. if test -s conftest.err; then
  6898. # Append any errors to the config.log.
  6899. cat conftest.err 1>&5
  6900. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  6901. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6902. if diff conftest.exp conftest.er2 >/dev/null; then
  6903. lt_cv_prog_compiler_static_works=yes
  6904. fi
  6905. else
  6906. lt_cv_prog_compiler_static_works=yes
  6907. fi
  6908. fi
  6909. $RM -r conftest*
  6910. LDFLAGS="$save_LDFLAGS"
  6911. fi
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  6913. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6914. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6915. :
  6916. else
  6917. lt_prog_compiler_static=
  6918. fi
  6919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6920. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6921. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  6922. $as_echo_n "(cached) " >&6
  6923. else
  6924. lt_cv_prog_compiler_c_o=no
  6925. $RM -r conftest 2>/dev/null
  6926. mkdir conftest
  6927. cd conftest
  6928. mkdir out
  6929. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6930. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6931. # Insert the option either (1) after the last *FLAGS variable, or
  6932. # (2) before a word containing "conftest.", or (3) at the end.
  6933. # Note that $ac_compile itself does not contain backslashes and begins
  6934. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6935. lt_compile=`echo "$ac_compile" | $SED \
  6936. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6937. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6938. -e 's:$: $lt_compiler_flag:'`
  6939. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6940. (eval "$lt_compile" 2>out/conftest.err)
  6941. ac_status=$?
  6942. cat out/conftest.err >&5
  6943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6944. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6945. then
  6946. # The compiler can only warn and ignore the option if not recognized
  6947. # So say no if there are warnings
  6948. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  6949. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6950. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6951. lt_cv_prog_compiler_c_o=yes
  6952. fi
  6953. fi
  6954. chmod u+w . 2>&5
  6955. $RM conftest*
  6956. # SGI C++ compiler will create directory out/ii_files/ for
  6957. # template instantiation
  6958. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6959. $RM out/* && rmdir out
  6960. cd ..
  6961. $RM -r conftest
  6962. $RM conftest*
  6963. fi
  6964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6965. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6967. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6968. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  6969. $as_echo_n "(cached) " >&6
  6970. else
  6971. lt_cv_prog_compiler_c_o=no
  6972. $RM -r conftest 2>/dev/null
  6973. mkdir conftest
  6974. cd conftest
  6975. mkdir out
  6976. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6977. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6978. # Insert the option either (1) after the last *FLAGS variable, or
  6979. # (2) before a word containing "conftest.", or (3) at the end.
  6980. # Note that $ac_compile itself does not contain backslashes and begins
  6981. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6982. lt_compile=`echo "$ac_compile" | $SED \
  6983. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6984. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6985. -e 's:$: $lt_compiler_flag:'`
  6986. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6987. (eval "$lt_compile" 2>out/conftest.err)
  6988. ac_status=$?
  6989. cat out/conftest.err >&5
  6990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6991. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6992. then
  6993. # The compiler can only warn and ignore the option if not recognized
  6994. # So say no if there are warnings
  6995. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  6996. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6997. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6998. lt_cv_prog_compiler_c_o=yes
  6999. fi
  7000. fi
  7001. chmod u+w . 2>&5
  7002. $RM conftest*
  7003. # SGI C++ compiler will create directory out/ii_files/ for
  7004. # template instantiation
  7005. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7006. $RM out/* && rmdir out
  7007. cd ..
  7008. $RM -r conftest
  7009. $RM conftest*
  7010. fi
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7012. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7013. hard_links="nottested"
  7014. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7015. # do not overwrite the value of need_locks provided by the user
  7016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7017. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7018. hard_links=yes
  7019. $RM conftest*
  7020. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7021. touch conftest.a
  7022. ln conftest.a conftest.b 2>&5 || hard_links=no
  7023. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7025. $as_echo "$hard_links" >&6; }
  7026. if test "$hard_links" = no; then
  7027. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7028. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7029. need_locks=warn
  7030. fi
  7031. else
  7032. need_locks=no
  7033. fi
  7034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7035. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7036. runpath_var=
  7037. allow_undefined_flag=
  7038. always_export_symbols=no
  7039. archive_cmds=
  7040. archive_expsym_cmds=
  7041. compiler_needs_object=no
  7042. enable_shared_with_static_runtimes=no
  7043. export_dynamic_flag_spec=
  7044. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7045. hardcode_automatic=no
  7046. hardcode_direct=no
  7047. hardcode_direct_absolute=no
  7048. hardcode_libdir_flag_spec=
  7049. hardcode_libdir_flag_spec_ld=
  7050. hardcode_libdir_separator=
  7051. hardcode_minus_L=no
  7052. hardcode_shlibpath_var=unsupported
  7053. inherit_rpath=no
  7054. link_all_deplibs=unknown
  7055. module_cmds=
  7056. module_expsym_cmds=
  7057. old_archive_from_new_cmds=
  7058. old_archive_from_expsyms_cmds=
  7059. thread_safe_flag_spec=
  7060. whole_archive_flag_spec=
  7061. # include_expsyms should be a list of space-separated symbols to be *always*
  7062. # included in the symbol list
  7063. include_expsyms=
  7064. # exclude_expsyms can be an extended regexp of symbols to exclude
  7065. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7066. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7067. # as well as any symbol that contains `d'.
  7068. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7069. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7070. # platforms (ab)use it in PIC code, but their linkers get confused if
  7071. # the symbol is explicitly referenced. Since portable code cannot
  7072. # rely on this symbol name, it's probably fine to never include it in
  7073. # preloaded symbol tables.
  7074. # Exclude shared library initialization/finalization symbols.
  7075. extract_expsyms_cmds=
  7076. case $host_os in
  7077. cygwin* | mingw* | pw32* | cegcc*)
  7078. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7079. # When not using gcc, we currently assume that we are using
  7080. # Microsoft Visual C++.
  7081. if test "$GCC" != yes; then
  7082. with_gnu_ld=no
  7083. fi
  7084. ;;
  7085. interix*)
  7086. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7087. with_gnu_ld=yes
  7088. ;;
  7089. openbsd*)
  7090. with_gnu_ld=no
  7091. ;;
  7092. esac
  7093. ld_shlibs=yes
  7094. # On some targets, GNU ld is compatible enough with the native linker
  7095. # that we're better off using the native interface for both.
  7096. lt_use_gnu_ld_interface=no
  7097. if test "$with_gnu_ld" = yes; then
  7098. case $host_os in
  7099. aix*)
  7100. # The AIX port of GNU ld has always aspired to compatibility
  7101. # with the native linker. However, as the warning in the GNU ld
  7102. # block says, versions before 2.19.5* couldn't really create working
  7103. # shared libraries, regardless of the interface used.
  7104. case `$LD -v 2>&1` in
  7105. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7106. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7107. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7108. *)
  7109. lt_use_gnu_ld_interface=yes
  7110. ;;
  7111. esac
  7112. ;;
  7113. *)
  7114. lt_use_gnu_ld_interface=yes
  7115. ;;
  7116. esac
  7117. fi
  7118. if test "$lt_use_gnu_ld_interface" = yes; then
  7119. # If archive_cmds runs LD, not CC, wlarc should be empty
  7120. wlarc='${wl}'
  7121. # Set some defaults for GNU ld with shared library support. These
  7122. # are reset later if shared libraries are not supported. Putting them
  7123. # here allows them to be overridden if necessary.
  7124. runpath_var=LD_RUN_PATH
  7125. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7126. export_dynamic_flag_spec='${wl}--export-dynamic'
  7127. # ancient GNU ld didn't support --whole-archive et. al.
  7128. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7129. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7130. else
  7131. whole_archive_flag_spec=
  7132. fi
  7133. supports_anon_versioning=no
  7134. case `$LD -v 2>&1` in
  7135. *GNU\ gold*) supports_anon_versioning=yes ;;
  7136. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7137. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7138. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7139. *\ 2.11.*) ;; # other 2.11 versions
  7140. *) supports_anon_versioning=yes ;;
  7141. esac
  7142. # See if GNU ld supports shared libraries.
  7143. case $host_os in
  7144. aix[3-9]*)
  7145. # On AIX/PPC, the GNU linker is very broken
  7146. if test "$host_cpu" != ia64; then
  7147. ld_shlibs=no
  7148. cat <<_LT_EOF 1>&2
  7149. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7150. *** to be unable to reliably create shared libraries on AIX.
  7151. *** Therefore, libtool is disabling shared libraries support. If you
  7152. *** really care for shared libraries, you may want to install binutils
  7153. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7154. *** You will then need to restart the configuration process.
  7155. _LT_EOF
  7156. fi
  7157. ;;
  7158. amigaos*)
  7159. case $host_cpu in
  7160. powerpc)
  7161. # see comment about AmigaOS4 .so support
  7162. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7163. archive_expsym_cmds=''
  7164. ;;
  7165. m68k)
  7166. 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)'
  7167. hardcode_libdir_flag_spec='-L$libdir'
  7168. hardcode_minus_L=yes
  7169. ;;
  7170. esac
  7171. ;;
  7172. beos*)
  7173. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7174. allow_undefined_flag=unsupported
  7175. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7176. # support --undefined. This deserves some investigation. FIXME
  7177. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7178. else
  7179. ld_shlibs=no
  7180. fi
  7181. ;;
  7182. cygwin* | mingw* | pw32* | cegcc*)
  7183. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7184. # as there is no search path for DLLs.
  7185. hardcode_libdir_flag_spec='-L$libdir'
  7186. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7187. allow_undefined_flag=unsupported
  7188. always_export_symbols=no
  7189. enable_shared_with_static_runtimes=yes
  7190. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7191. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7192. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7193. # If the export-symbols file already is a .def file (1st line
  7194. # is EXPORTS), use it as is; otherwise, prepend...
  7195. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7196. cp $export_symbols $output_objdir/$soname.def;
  7197. else
  7198. echo EXPORTS > $output_objdir/$soname.def;
  7199. cat $export_symbols >> $output_objdir/$soname.def;
  7200. fi~
  7201. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7202. else
  7203. ld_shlibs=no
  7204. fi
  7205. ;;
  7206. haiku*)
  7207. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7208. link_all_deplibs=yes
  7209. ;;
  7210. interix[3-9]*)
  7211. hardcode_direct=no
  7212. hardcode_shlibpath_var=no
  7213. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7214. export_dynamic_flag_spec='${wl}-E'
  7215. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7216. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7217. # default) and relocated if they conflict, which is a slow very memory
  7218. # consuming and fragmenting process. To avoid this, we pick a random,
  7219. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7220. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7221. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7222. 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'
  7223. ;;
  7224. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7225. tmp_diet=no
  7226. if test "$host_os" = linux-dietlibc; then
  7227. case $cc_basename in
  7228. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7229. esac
  7230. fi
  7231. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7232. && test "$tmp_diet" = no
  7233. then
  7234. tmp_addflag=' $pic_flag'
  7235. tmp_sharedflag='-shared'
  7236. case $cc_basename,$host_cpu in
  7237. pgcc*) # Portland Group C compiler
  7238. 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'
  7239. tmp_addflag=' $pic_flag'
  7240. ;;
  7241. pgf77* | pgf90* | pgf95* | pgfortran*)
  7242. # Portland Group f77 and f90 compilers
  7243. 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'
  7244. tmp_addflag=' $pic_flag -Mnomain' ;;
  7245. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7246. tmp_addflag=' -i_dynamic' ;;
  7247. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7248. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7249. ifc* | ifort*) # Intel Fortran compiler
  7250. tmp_addflag=' -nofor_main' ;;
  7251. lf95*) # Lahey Fortran 8.1
  7252. whole_archive_flag_spec=
  7253. tmp_sharedflag='--shared' ;;
  7254. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7255. tmp_sharedflag='-qmkshrobj'
  7256. tmp_addflag= ;;
  7257. nvcc*) # Cuda Compiler Driver 2.2
  7258. 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'
  7259. compiler_needs_object=yes
  7260. ;;
  7261. esac
  7262. case `$CC -V 2>&1 | sed 5q` in
  7263. *Sun\ C*) # Sun C 5.9
  7264. 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'
  7265. compiler_needs_object=yes
  7266. tmp_sharedflag='-G' ;;
  7267. *Sun\ F*) # Sun Fortran 8.3
  7268. tmp_sharedflag='-G' ;;
  7269. esac
  7270. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7271. if test "x$supports_anon_versioning" = xyes; then
  7272. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7273. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7274. echo "local: *; };" >> $output_objdir/$libname.ver~
  7275. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7276. fi
  7277. case $cc_basename in
  7278. xlf* | bgf* | bgxlf* | mpixlf*)
  7279. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7280. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7281. hardcode_libdir_flag_spec=
  7282. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7283. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7284. if test "x$supports_anon_versioning" = xyes; then
  7285. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7286. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7287. echo "local: *; };" >> $output_objdir/$libname.ver~
  7288. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7289. fi
  7290. ;;
  7291. esac
  7292. else
  7293. ld_shlibs=no
  7294. fi
  7295. ;;
  7296. netbsd*)
  7297. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7298. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7299. wlarc=
  7300. else
  7301. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7302. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7303. fi
  7304. ;;
  7305. solaris*)
  7306. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7307. ld_shlibs=no
  7308. cat <<_LT_EOF 1>&2
  7309. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7310. *** create shared libraries on Solaris systems. Therefore, libtool
  7311. *** is disabling shared libraries support. We urge you to upgrade GNU
  7312. *** binutils to release 2.9.1 or newer. Another option is to modify
  7313. *** your PATH or compiler configuration so that the native linker is
  7314. *** used, and then restart.
  7315. _LT_EOF
  7316. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7317. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7318. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7319. else
  7320. ld_shlibs=no
  7321. fi
  7322. ;;
  7323. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7324. case `$LD -v 2>&1` in
  7325. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7326. ld_shlibs=no
  7327. cat <<_LT_EOF 1>&2
  7328. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7329. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7330. *** is disabling shared libraries support. We urge you to upgrade GNU
  7331. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7332. *** your PATH or compiler configuration so that the native linker is
  7333. *** used, and then restart.
  7334. _LT_EOF
  7335. ;;
  7336. *)
  7337. # For security reasons, it is highly recommended that you always
  7338. # use absolute paths for naming shared libraries, and exclude the
  7339. # DT_RUNPATH tag from executables and libraries. But doing so
  7340. # requires that you compile everything twice, which is a pain.
  7341. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7342. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7343. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7344. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7345. else
  7346. ld_shlibs=no
  7347. fi
  7348. ;;
  7349. esac
  7350. ;;
  7351. sunos4*)
  7352. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7353. wlarc=
  7354. hardcode_direct=yes
  7355. hardcode_shlibpath_var=no
  7356. ;;
  7357. *)
  7358. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7359. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7360. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7361. else
  7362. ld_shlibs=no
  7363. fi
  7364. ;;
  7365. esac
  7366. if test "$ld_shlibs" = no; then
  7367. runpath_var=
  7368. hardcode_libdir_flag_spec=
  7369. export_dynamic_flag_spec=
  7370. whole_archive_flag_spec=
  7371. fi
  7372. else
  7373. # PORTME fill in a description of your system's linker (not GNU ld)
  7374. case $host_os in
  7375. aix3*)
  7376. allow_undefined_flag=unsupported
  7377. always_export_symbols=yes
  7378. 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'
  7379. # Note: this linker hardcodes the directories in LIBPATH if there
  7380. # are no directories specified by -L.
  7381. hardcode_minus_L=yes
  7382. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7383. # Neither direct hardcoding nor static linking is supported with a
  7384. # broken collect2.
  7385. hardcode_direct=unsupported
  7386. fi
  7387. ;;
  7388. aix[4-9]*)
  7389. if test "$host_cpu" = ia64; then
  7390. # On IA64, the linker does run time linking by default, so we don't
  7391. # have to do anything special.
  7392. aix_use_runtimelinking=no
  7393. exp_sym_flag='-Bexport'
  7394. no_entry_flag=""
  7395. else
  7396. # If we're using GNU nm, then we don't want the "-C" option.
  7397. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7398. # Also, AIX nm treats weak defined symbols like other global
  7399. # defined symbols, whereas GNU nm marks them as "W".
  7400. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7401. 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'
  7402. else
  7403. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7404. fi
  7405. aix_use_runtimelinking=no
  7406. # Test if we are trying to use run time linking or normal
  7407. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7408. # need to do runtime linking.
  7409. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7410. for ld_flag in $LDFLAGS; do
  7411. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7412. aix_use_runtimelinking=yes
  7413. break
  7414. fi
  7415. done
  7416. ;;
  7417. esac
  7418. exp_sym_flag='-bexport'
  7419. no_entry_flag='-bnoentry'
  7420. fi
  7421. # When large executables or shared objects are built, AIX ld can
  7422. # have problems creating the table of contents. If linking a library
  7423. # or program results in "error TOC overflow" add -mminimal-toc to
  7424. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7425. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7426. archive_cmds=''
  7427. hardcode_direct=yes
  7428. hardcode_direct_absolute=yes
  7429. hardcode_libdir_separator=':'
  7430. link_all_deplibs=yes
  7431. file_list_spec='${wl}-f,'
  7432. if test "$GCC" = yes; then
  7433. case $host_os in aix4.[012]|aix4.[012].*)
  7434. # We only want to do this on AIX 4.2 and lower, the check
  7435. # below for broken collect2 doesn't work under 4.3+
  7436. collect2name=`${CC} -print-prog-name=collect2`
  7437. if test -f "$collect2name" &&
  7438. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7439. then
  7440. # We have reworked collect2
  7441. :
  7442. else
  7443. # We have old collect2
  7444. hardcode_direct=unsupported
  7445. # It fails to find uninstalled libraries when the uninstalled
  7446. # path is not listed in the libpath. Setting hardcode_minus_L
  7447. # to unsupported forces relinking
  7448. hardcode_minus_L=yes
  7449. hardcode_libdir_flag_spec='-L$libdir'
  7450. hardcode_libdir_separator=
  7451. fi
  7452. ;;
  7453. esac
  7454. shared_flag='-shared'
  7455. if test "$aix_use_runtimelinking" = yes; then
  7456. shared_flag="$shared_flag "'${wl}-G'
  7457. fi
  7458. else
  7459. # not using gcc
  7460. if test "$host_cpu" = ia64; then
  7461. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7462. # chokes on -Wl,-G. The following line is correct:
  7463. shared_flag='-G'
  7464. else
  7465. if test "$aix_use_runtimelinking" = yes; then
  7466. shared_flag='${wl}-G'
  7467. else
  7468. shared_flag='${wl}-bM:SRE'
  7469. fi
  7470. fi
  7471. fi
  7472. export_dynamic_flag_spec='${wl}-bexpall'
  7473. # It seems that -bexpall does not export symbols beginning with
  7474. # underscore (_), so it is better to generate a list of symbols to export.
  7475. always_export_symbols=yes
  7476. if test "$aix_use_runtimelinking" = yes; then
  7477. # Warning - without using the other runtime loading flags (-brtl),
  7478. # -berok will link without error, but may produce a broken library.
  7479. allow_undefined_flag='-berok'
  7480. # Determine the default libpath from the value encoded in an
  7481. # empty executable.
  7482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7483. /* end confdefs.h. */
  7484. int
  7485. main ()
  7486. {
  7487. ;
  7488. return 0;
  7489. }
  7490. _ACEOF
  7491. if ac_fn_c_try_link "$LINENO"; then :
  7492. lt_aix_libpath_sed='
  7493. /Import File Strings/,/^$/ {
  7494. /^0/ {
  7495. s/^0 *\(.*\)$/\1/
  7496. p
  7497. }
  7498. }'
  7499. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7500. # Check for a 64-bit object if we didn't find anything.
  7501. if test -z "$aix_libpath"; then
  7502. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7503. fi
  7504. fi
  7505. rm -f core conftest.err conftest.$ac_objext \
  7506. conftest$ac_exeext conftest.$ac_ext
  7507. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7508. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7509. 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"
  7510. else
  7511. if test "$host_cpu" = ia64; then
  7512. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7513. allow_undefined_flag="-z nodefs"
  7514. 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"
  7515. else
  7516. # Determine the default libpath from the value encoded in an
  7517. # empty executable.
  7518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7519. /* end confdefs.h. */
  7520. int
  7521. main ()
  7522. {
  7523. ;
  7524. return 0;
  7525. }
  7526. _ACEOF
  7527. if ac_fn_c_try_link "$LINENO"; then :
  7528. lt_aix_libpath_sed='
  7529. /Import File Strings/,/^$/ {
  7530. /^0/ {
  7531. s/^0 *\(.*\)$/\1/
  7532. p
  7533. }
  7534. }'
  7535. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7536. # Check for a 64-bit object if we didn't find anything.
  7537. if test -z "$aix_libpath"; then
  7538. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7539. fi
  7540. fi
  7541. rm -f core conftest.err conftest.$ac_objext \
  7542. conftest$ac_exeext conftest.$ac_ext
  7543. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7544. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7545. # Warning - without using the other run time loading flags,
  7546. # -berok will link without error, but may produce a broken library.
  7547. no_undefined_flag=' ${wl}-bernotok'
  7548. allow_undefined_flag=' ${wl}-berok'
  7549. if test "$with_gnu_ld" = yes; then
  7550. # We only use this code for GNU lds that support --whole-archive.
  7551. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7552. else
  7553. # Exported symbols can be pulled into shared objects from archives
  7554. whole_archive_flag_spec='$convenience'
  7555. fi
  7556. archive_cmds_need_lc=yes
  7557. # This is similar to how AIX traditionally builds its shared libraries.
  7558. 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'
  7559. fi
  7560. fi
  7561. ;;
  7562. amigaos*)
  7563. case $host_cpu in
  7564. powerpc)
  7565. # see comment about AmigaOS4 .so support
  7566. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7567. archive_expsym_cmds=''
  7568. ;;
  7569. m68k)
  7570. 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)'
  7571. hardcode_libdir_flag_spec='-L$libdir'
  7572. hardcode_minus_L=yes
  7573. ;;
  7574. esac
  7575. ;;
  7576. bsdi[45]*)
  7577. export_dynamic_flag_spec=-rdynamic
  7578. ;;
  7579. cygwin* | mingw* | pw32* | cegcc*)
  7580. # When not using gcc, we currently assume that we are using
  7581. # Microsoft Visual C++.
  7582. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7583. # no search path for DLLs.
  7584. hardcode_libdir_flag_spec=' '
  7585. allow_undefined_flag=unsupported
  7586. # Tell ltmain to make .lib files, not .a files.
  7587. libext=lib
  7588. # Tell ltmain to make .dll files, not .so files.
  7589. shrext_cmds=".dll"
  7590. # FIXME: Setting linknames here is a bad hack.
  7591. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7592. # The linker will automatically build a .lib file if we build a DLL.
  7593. old_archive_from_new_cmds='true'
  7594. # FIXME: Should let the user specify the lib program.
  7595. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7596. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7597. enable_shared_with_static_runtimes=yes
  7598. ;;
  7599. darwin* | rhapsody*)
  7600. archive_cmds_need_lc=no
  7601. hardcode_direct=no
  7602. hardcode_automatic=yes
  7603. hardcode_shlibpath_var=unsupported
  7604. if test "$lt_cv_ld_force_load" = "yes"; then
  7605. 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\"`'
  7606. else
  7607. whole_archive_flag_spec=''
  7608. fi
  7609. link_all_deplibs=yes
  7610. allow_undefined_flag="$_lt_dar_allow_undefined"
  7611. case $cc_basename in
  7612. ifort*) _lt_dar_can_shared=yes ;;
  7613. *) _lt_dar_can_shared=$GCC ;;
  7614. esac
  7615. if test "$_lt_dar_can_shared" = "yes"; then
  7616. output_verbose_link_cmd=func_echo_all
  7617. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7618. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7619. 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}"
  7620. 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}"
  7621. else
  7622. ld_shlibs=no
  7623. fi
  7624. ;;
  7625. dgux*)
  7626. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7627. hardcode_libdir_flag_spec='-L$libdir'
  7628. hardcode_shlibpath_var=no
  7629. ;;
  7630. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7631. # support. Future versions do this automatically, but an explicit c++rt0.o
  7632. # does not break anything, and helps significantly (at the cost of a little
  7633. # extra space).
  7634. freebsd2.2*)
  7635. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7636. hardcode_libdir_flag_spec='-R$libdir'
  7637. hardcode_direct=yes
  7638. hardcode_shlibpath_var=no
  7639. ;;
  7640. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7641. freebsd2.*)
  7642. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7643. hardcode_direct=yes
  7644. hardcode_minus_L=yes
  7645. hardcode_shlibpath_var=no
  7646. ;;
  7647. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7648. freebsd* | dragonfly*)
  7649. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7650. hardcode_libdir_flag_spec='-R$libdir'
  7651. hardcode_direct=yes
  7652. hardcode_shlibpath_var=no
  7653. ;;
  7654. hpux9*)
  7655. if test "$GCC" = yes; then
  7656. 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'
  7657. else
  7658. 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'
  7659. fi
  7660. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7661. hardcode_libdir_separator=:
  7662. hardcode_direct=yes
  7663. # hardcode_minus_L: Not really in the search PATH,
  7664. # but as the default location of the library.
  7665. hardcode_minus_L=yes
  7666. export_dynamic_flag_spec='${wl}-E'
  7667. ;;
  7668. hpux10*)
  7669. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7670. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7671. else
  7672. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7673. fi
  7674. if test "$with_gnu_ld" = no; then
  7675. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7676. hardcode_libdir_flag_spec_ld='+b $libdir'
  7677. hardcode_libdir_separator=:
  7678. hardcode_direct=yes
  7679. hardcode_direct_absolute=yes
  7680. export_dynamic_flag_spec='${wl}-E'
  7681. # hardcode_minus_L: Not really in the search PATH,
  7682. # but as the default location of the library.
  7683. hardcode_minus_L=yes
  7684. fi
  7685. ;;
  7686. hpux11*)
  7687. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7688. case $host_cpu in
  7689. hppa*64*)
  7690. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7691. ;;
  7692. ia64*)
  7693. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7694. ;;
  7695. *)
  7696. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7697. ;;
  7698. esac
  7699. else
  7700. case $host_cpu in
  7701. hppa*64*)
  7702. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7703. ;;
  7704. ia64*)
  7705. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7706. ;;
  7707. *)
  7708. # Older versions of the 11.00 compiler do not understand -b yet
  7709. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  7710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  7711. $as_echo_n "checking if $CC understands -b... " >&6; }
  7712. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  7713. $as_echo_n "(cached) " >&6
  7714. else
  7715. lt_cv_prog_compiler__b=no
  7716. save_LDFLAGS="$LDFLAGS"
  7717. LDFLAGS="$LDFLAGS -b"
  7718. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7719. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7720. # The linker can only warn and ignore the option if not recognized
  7721. # So say no if there are warnings
  7722. if test -s conftest.err; then
  7723. # Append any errors to the config.log.
  7724. cat conftest.err 1>&5
  7725. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7726. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7727. if diff conftest.exp conftest.er2 >/dev/null; then
  7728. lt_cv_prog_compiler__b=yes
  7729. fi
  7730. else
  7731. lt_cv_prog_compiler__b=yes
  7732. fi
  7733. fi
  7734. $RM -r conftest*
  7735. LDFLAGS="$save_LDFLAGS"
  7736. fi
  7737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  7738. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  7739. if test x"$lt_cv_prog_compiler__b" = xyes; then
  7740. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7741. else
  7742. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7743. fi
  7744. ;;
  7745. esac
  7746. fi
  7747. if test "$with_gnu_ld" = no; then
  7748. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7749. hardcode_libdir_separator=:
  7750. case $host_cpu in
  7751. hppa*64*|ia64*)
  7752. hardcode_direct=no
  7753. hardcode_shlibpath_var=no
  7754. ;;
  7755. *)
  7756. hardcode_direct=yes
  7757. hardcode_direct_absolute=yes
  7758. export_dynamic_flag_spec='${wl}-E'
  7759. # hardcode_minus_L: Not really in the search PATH,
  7760. # but as the default location of the library.
  7761. hardcode_minus_L=yes
  7762. ;;
  7763. esac
  7764. fi
  7765. ;;
  7766. irix5* | irix6* | nonstopux*)
  7767. if test "$GCC" = yes; then
  7768. 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'
  7769. # Try to use the -exported_symbol ld option, if it does not
  7770. # work, assume that -exports_file does not work either and
  7771. # implicitly export all symbols.
  7772. save_LDFLAGS="$LDFLAGS"
  7773. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7775. /* end confdefs.h. */
  7776. int foo(void) {}
  7777. _ACEOF
  7778. if ac_fn_c_try_link "$LINENO"; then :
  7779. 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'
  7780. fi
  7781. rm -f core conftest.err conftest.$ac_objext \
  7782. conftest$ac_exeext conftest.$ac_ext
  7783. LDFLAGS="$save_LDFLAGS"
  7784. else
  7785. 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'
  7786. 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'
  7787. fi
  7788. archive_cmds_need_lc='no'
  7789. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7790. hardcode_libdir_separator=:
  7791. inherit_rpath=yes
  7792. link_all_deplibs=yes
  7793. ;;
  7794. netbsd*)
  7795. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7796. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7797. else
  7798. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7799. fi
  7800. hardcode_libdir_flag_spec='-R$libdir'
  7801. hardcode_direct=yes
  7802. hardcode_shlibpath_var=no
  7803. ;;
  7804. newsos6)
  7805. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7806. hardcode_direct=yes
  7807. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7808. hardcode_libdir_separator=:
  7809. hardcode_shlibpath_var=no
  7810. ;;
  7811. *nto* | *qnx*)
  7812. ;;
  7813. openbsd*)
  7814. if test -f /usr/libexec/ld.so; then
  7815. hardcode_direct=yes
  7816. hardcode_shlibpath_var=no
  7817. hardcode_direct_absolute=yes
  7818. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7819. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7820. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7821. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7822. export_dynamic_flag_spec='${wl}-E'
  7823. else
  7824. case $host_os in
  7825. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7826. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7827. hardcode_libdir_flag_spec='-R$libdir'
  7828. ;;
  7829. *)
  7830. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7831. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7832. ;;
  7833. esac
  7834. fi
  7835. else
  7836. ld_shlibs=no
  7837. fi
  7838. ;;
  7839. os2*)
  7840. hardcode_libdir_flag_spec='-L$libdir'
  7841. hardcode_minus_L=yes
  7842. allow_undefined_flag=unsupported
  7843. 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'
  7844. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7845. ;;
  7846. osf3*)
  7847. if test "$GCC" = yes; then
  7848. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7849. 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'
  7850. else
  7851. allow_undefined_flag=' -expect_unresolved \*'
  7852. 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'
  7853. fi
  7854. archive_cmds_need_lc='no'
  7855. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7856. hardcode_libdir_separator=:
  7857. ;;
  7858. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7859. if test "$GCC" = yes; then
  7860. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7861. 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'
  7862. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7863. else
  7864. allow_undefined_flag=' -expect_unresolved \*'
  7865. 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'
  7866. 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~
  7867. $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'
  7868. # Both c and cxx compiler support -rpath directly
  7869. hardcode_libdir_flag_spec='-rpath $libdir'
  7870. fi
  7871. archive_cmds_need_lc='no'
  7872. hardcode_libdir_separator=:
  7873. ;;
  7874. solaris*)
  7875. no_undefined_flag=' -z defs'
  7876. if test "$GCC" = yes; then
  7877. wlarc='${wl}'
  7878. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7879. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7880. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7881. else
  7882. case `$CC -V 2>&1` in
  7883. *"Compilers 5.0"*)
  7884. wlarc=''
  7885. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7886. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7887. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7888. ;;
  7889. *)
  7890. wlarc='${wl}'
  7891. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7892. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7893. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7894. ;;
  7895. esac
  7896. fi
  7897. hardcode_libdir_flag_spec='-R$libdir'
  7898. hardcode_shlibpath_var=no
  7899. case $host_os in
  7900. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7901. *)
  7902. # The compiler driver will combine and reorder linker options,
  7903. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7904. # but is careful enough not to reorder.
  7905. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7906. if test "$GCC" = yes; then
  7907. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7908. else
  7909. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7910. fi
  7911. ;;
  7912. esac
  7913. link_all_deplibs=yes
  7914. ;;
  7915. sunos4*)
  7916. if test "x$host_vendor" = xsequent; then
  7917. # Use $CC to link under sequent, because it throws in some extra .o
  7918. # files that make .init and .fini sections work.
  7919. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7920. else
  7921. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7922. fi
  7923. hardcode_libdir_flag_spec='-L$libdir'
  7924. hardcode_direct=yes
  7925. hardcode_minus_L=yes
  7926. hardcode_shlibpath_var=no
  7927. ;;
  7928. sysv4)
  7929. case $host_vendor in
  7930. sni)
  7931. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7932. hardcode_direct=yes # is this really true???
  7933. ;;
  7934. siemens)
  7935. ## LD is ld it makes a PLAMLIB
  7936. ## CC just makes a GrossModule.
  7937. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7938. reload_cmds='$CC -r -o $output$reload_objs'
  7939. hardcode_direct=no
  7940. ;;
  7941. motorola)
  7942. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7943. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7944. ;;
  7945. esac
  7946. runpath_var='LD_RUN_PATH'
  7947. hardcode_shlibpath_var=no
  7948. ;;
  7949. sysv4.3*)
  7950. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7951. hardcode_shlibpath_var=no
  7952. export_dynamic_flag_spec='-Bexport'
  7953. ;;
  7954. sysv4*MP*)
  7955. if test -d /usr/nec; then
  7956. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7957. hardcode_shlibpath_var=no
  7958. runpath_var=LD_RUN_PATH
  7959. hardcode_runpath_var=yes
  7960. ld_shlibs=yes
  7961. fi
  7962. ;;
  7963. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7964. no_undefined_flag='${wl}-z,text'
  7965. archive_cmds_need_lc=no
  7966. hardcode_shlibpath_var=no
  7967. runpath_var='LD_RUN_PATH'
  7968. if test "$GCC" = yes; then
  7969. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7970. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7971. else
  7972. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7973. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7974. fi
  7975. ;;
  7976. sysv5* | sco3.2v5* | sco5v6*)
  7977. # Note: We can NOT use -z defs as we might desire, because we do not
  7978. # link with -lc, and that would cause any symbols used from libc to
  7979. # always be unresolved, which means just about no library would
  7980. # ever link correctly. If we're not using GNU ld we use -z text
  7981. # though, which does catch some bad symbols but isn't as heavy-handed
  7982. # as -z defs.
  7983. no_undefined_flag='${wl}-z,text'
  7984. allow_undefined_flag='${wl}-z,nodefs'
  7985. archive_cmds_need_lc=no
  7986. hardcode_shlibpath_var=no
  7987. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7988. hardcode_libdir_separator=':'
  7989. link_all_deplibs=yes
  7990. export_dynamic_flag_spec='${wl}-Bexport'
  7991. runpath_var='LD_RUN_PATH'
  7992. if test "$GCC" = yes; then
  7993. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7994. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7995. else
  7996. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7997. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7998. fi
  7999. ;;
  8000. uts4*)
  8001. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8002. hardcode_libdir_flag_spec='-L$libdir'
  8003. hardcode_shlibpath_var=no
  8004. ;;
  8005. *)
  8006. ld_shlibs=no
  8007. ;;
  8008. esac
  8009. if test x$host_vendor = xsni; then
  8010. case $host in
  8011. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8012. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8013. ;;
  8014. esac
  8015. fi
  8016. fi
  8017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8018. $as_echo "$ld_shlibs" >&6; }
  8019. test "$ld_shlibs" = no && can_build_shared=no
  8020. with_gnu_ld=$with_gnu_ld
  8021. #
  8022. # Do we need to explicitly link libc?
  8023. #
  8024. case "x$archive_cmds_need_lc" in
  8025. x|xyes)
  8026. # Assume -lc should be added
  8027. archive_cmds_need_lc=yes
  8028. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8029. case $archive_cmds in
  8030. *'~'*)
  8031. # FIXME: we may have to deal with multi-command sequences.
  8032. ;;
  8033. '$CC '*)
  8034. # Test whether the compiler implicitly links with -lc since on some
  8035. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8036. # to ld, don't add -lc before -lgcc.
  8037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8038. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8039. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8040. $as_echo_n "(cached) " >&6
  8041. else
  8042. $RM conftest*
  8043. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8044. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8045. (eval $ac_compile) 2>&5
  8046. ac_status=$?
  8047. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8048. test $ac_status = 0; } 2>conftest.err; then
  8049. soname=conftest
  8050. lib=conftest
  8051. libobjs=conftest.$ac_objext
  8052. deplibs=
  8053. wl=$lt_prog_compiler_wl
  8054. pic_flag=$lt_prog_compiler_pic
  8055. compiler_flags=-v
  8056. linker_flags=-v
  8057. verstring=
  8058. output_objdir=.
  8059. libname=conftest
  8060. lt_save_allow_undefined_flag=$allow_undefined_flag
  8061. allow_undefined_flag=
  8062. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8063. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8064. ac_status=$?
  8065. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8066. test $ac_status = 0; }
  8067. then
  8068. lt_cv_archive_cmds_need_lc=no
  8069. else
  8070. lt_cv_archive_cmds_need_lc=yes
  8071. fi
  8072. allow_undefined_flag=$lt_save_allow_undefined_flag
  8073. else
  8074. cat conftest.err 1>&5
  8075. fi
  8076. $RM conftest*
  8077. fi
  8078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8079. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8080. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8081. ;;
  8082. esac
  8083. fi
  8084. ;;
  8085. esac
  8086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8087. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8088. if test "$GCC" = yes; then
  8089. case $host_os in
  8090. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8091. *) lt_awk_arg="/^libraries:/" ;;
  8092. esac
  8093. case $host_os in
  8094. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8095. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8096. esac
  8097. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8098. case $lt_search_path_spec in
  8099. *\;*)
  8100. # if the path contains ";" then we assume it to be the separator
  8101. # otherwise default to the standard path separator (i.e. ":") - it is
  8102. # assumed that no part of a normal pathname contains ";" but that should
  8103. # okay in the real world where ";" in dirpaths is itself problematic.
  8104. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8105. ;;
  8106. *)
  8107. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8108. ;;
  8109. esac
  8110. # Ok, now we have the path, separated by spaces, we can step through it
  8111. # and add multilib dir if necessary.
  8112. lt_tmp_lt_search_path_spec=
  8113. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8114. for lt_sys_path in $lt_search_path_spec; do
  8115. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8116. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8117. else
  8118. test -d "$lt_sys_path" && \
  8119. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8120. fi
  8121. done
  8122. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8123. BEGIN {RS=" "; FS="/|\n";} {
  8124. lt_foo="";
  8125. lt_count=0;
  8126. for (lt_i = NF; lt_i > 0; lt_i--) {
  8127. if ($lt_i != "" && $lt_i != ".") {
  8128. if ($lt_i == "..") {
  8129. lt_count++;
  8130. } else {
  8131. if (lt_count == 0) {
  8132. lt_foo="/" $lt_i lt_foo;
  8133. } else {
  8134. lt_count--;
  8135. }
  8136. }
  8137. }
  8138. }
  8139. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8140. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8141. }'`
  8142. # AWK program above erroneously prepends '/' to C:/dos/paths
  8143. # for these hosts.
  8144. case $host_os in
  8145. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8146. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8147. esac
  8148. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8149. else
  8150. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8151. fi
  8152. library_names_spec=
  8153. libname_spec='lib$name'
  8154. soname_spec=
  8155. shrext_cmds=".so"
  8156. postinstall_cmds=
  8157. postuninstall_cmds=
  8158. finish_cmds=
  8159. finish_eval=
  8160. shlibpath_var=
  8161. shlibpath_overrides_runpath=unknown
  8162. version_type=none
  8163. dynamic_linker="$host_os ld.so"
  8164. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8165. need_lib_prefix=unknown
  8166. hardcode_into_libs=no
  8167. # when you set need_version to no, make sure it does not cause -set_version
  8168. # flags to be left without arguments
  8169. need_version=unknown
  8170. case $host_os in
  8171. aix3*)
  8172. version_type=linux
  8173. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8174. shlibpath_var=LIBPATH
  8175. # AIX 3 has no versioning support, so we append a major version to the name.
  8176. soname_spec='${libname}${release}${shared_ext}$major'
  8177. ;;
  8178. aix[4-9]*)
  8179. version_type=linux
  8180. need_lib_prefix=no
  8181. need_version=no
  8182. hardcode_into_libs=yes
  8183. if test "$host_cpu" = ia64; then
  8184. # AIX 5 supports IA64
  8185. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8186. shlibpath_var=LD_LIBRARY_PATH
  8187. else
  8188. # With GCC up to 2.95.x, collect2 would create an import file
  8189. # for dependence libraries. The import file would start with
  8190. # the line `#! .'. This would cause the generated library to
  8191. # depend on `.', always an invalid library. This was fixed in
  8192. # development snapshots of GCC prior to 3.0.
  8193. case $host_os in
  8194. aix4 | aix4.[01] | aix4.[01].*)
  8195. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8196. echo ' yes '
  8197. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8198. :
  8199. else
  8200. can_build_shared=no
  8201. fi
  8202. ;;
  8203. esac
  8204. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8205. # soname into executable. Probably we can add versioning support to
  8206. # collect2, so additional links can be useful in future.
  8207. if test "$aix_use_runtimelinking" = yes; then
  8208. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8209. # instead of lib<name>.a to let people know that these are not
  8210. # typical AIX shared libraries.
  8211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8212. else
  8213. # We preserve .a as extension for shared libraries through AIX4.2
  8214. # and later when we are not doing run time linking.
  8215. library_names_spec='${libname}${release}.a $libname.a'
  8216. soname_spec='${libname}${release}${shared_ext}$major'
  8217. fi
  8218. shlibpath_var=LIBPATH
  8219. fi
  8220. ;;
  8221. amigaos*)
  8222. case $host_cpu in
  8223. powerpc)
  8224. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8225. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8226. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8227. ;;
  8228. m68k)
  8229. library_names_spec='$libname.ixlibrary $libname.a'
  8230. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8231. 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'
  8232. ;;
  8233. esac
  8234. ;;
  8235. beos*)
  8236. library_names_spec='${libname}${shared_ext}'
  8237. dynamic_linker="$host_os ld.so"
  8238. shlibpath_var=LIBRARY_PATH
  8239. ;;
  8240. bsdi[45]*)
  8241. version_type=linux
  8242. need_version=no
  8243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8244. soname_spec='${libname}${release}${shared_ext}$major'
  8245. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8246. shlibpath_var=LD_LIBRARY_PATH
  8247. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8248. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8249. # the default ld.so.conf also contains /usr/contrib/lib and
  8250. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8251. # libtool to hard-code these into programs
  8252. ;;
  8253. cygwin* | mingw* | pw32* | cegcc*)
  8254. version_type=windows
  8255. shrext_cmds=".dll"
  8256. need_version=no
  8257. need_lib_prefix=no
  8258. case $GCC,$host_os in
  8259. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8260. library_names_spec='$libname.dll.a'
  8261. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8262. postinstall_cmds='base_file=`basename \${file}`~
  8263. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8264. dldir=$destdir/`dirname \$dlpath`~
  8265. test -d \$dldir || mkdir -p \$dldir~
  8266. $install_prog $dir/$dlname \$dldir/$dlname~
  8267. chmod a+x \$dldir/$dlname~
  8268. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8269. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8270. fi'
  8271. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8272. dlpath=$dir/\$dldll~
  8273. $RM \$dlpath'
  8274. shlibpath_overrides_runpath=yes
  8275. case $host_os in
  8276. cygwin*)
  8277. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8278. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8279. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8280. ;;
  8281. mingw* | cegcc*)
  8282. # MinGW DLLs use traditional 'lib' prefix
  8283. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8284. ;;
  8285. pw32*)
  8286. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8287. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8288. ;;
  8289. esac
  8290. ;;
  8291. *)
  8292. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8293. ;;
  8294. esac
  8295. dynamic_linker='Win32 ld.exe'
  8296. # FIXME: first we should search . and the directory the executable is in
  8297. shlibpath_var=PATH
  8298. ;;
  8299. darwin* | rhapsody*)
  8300. dynamic_linker="$host_os dyld"
  8301. version_type=darwin
  8302. need_lib_prefix=no
  8303. need_version=no
  8304. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8305. soname_spec='${libname}${release}${major}$shared_ext'
  8306. shlibpath_overrides_runpath=yes
  8307. shlibpath_var=DYLD_LIBRARY_PATH
  8308. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8309. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8310. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8311. ;;
  8312. dgux*)
  8313. version_type=linux
  8314. need_lib_prefix=no
  8315. need_version=no
  8316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8317. soname_spec='${libname}${release}${shared_ext}$major'
  8318. shlibpath_var=LD_LIBRARY_PATH
  8319. ;;
  8320. freebsd* | dragonfly*)
  8321. # DragonFly does not have aout. When/if they implement a new
  8322. # versioning mechanism, adjust this.
  8323. if test -x /usr/bin/objformat; then
  8324. objformat=`/usr/bin/objformat`
  8325. else
  8326. case $host_os in
  8327. freebsd[23].*) objformat=aout ;;
  8328. *) objformat=elf ;;
  8329. esac
  8330. fi
  8331. version_type=freebsd-$objformat
  8332. case $version_type in
  8333. freebsd-elf*)
  8334. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8335. need_version=no
  8336. need_lib_prefix=no
  8337. ;;
  8338. freebsd-*)
  8339. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8340. need_version=yes
  8341. ;;
  8342. esac
  8343. shlibpath_var=LD_LIBRARY_PATH
  8344. case $host_os in
  8345. freebsd2.*)
  8346. shlibpath_overrides_runpath=yes
  8347. ;;
  8348. freebsd3.[01]* | freebsdelf3.[01]*)
  8349. shlibpath_overrides_runpath=yes
  8350. hardcode_into_libs=yes
  8351. ;;
  8352. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8353. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8354. shlibpath_overrides_runpath=no
  8355. hardcode_into_libs=yes
  8356. ;;
  8357. *) # from 4.6 on, and DragonFly
  8358. shlibpath_overrides_runpath=yes
  8359. hardcode_into_libs=yes
  8360. ;;
  8361. esac
  8362. ;;
  8363. gnu*)
  8364. version_type=linux
  8365. need_lib_prefix=no
  8366. need_version=no
  8367. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8368. soname_spec='${libname}${release}${shared_ext}$major'
  8369. shlibpath_var=LD_LIBRARY_PATH
  8370. hardcode_into_libs=yes
  8371. ;;
  8372. haiku*)
  8373. version_type=linux
  8374. need_lib_prefix=no
  8375. need_version=no
  8376. dynamic_linker="$host_os runtime_loader"
  8377. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8378. soname_spec='${libname}${release}${shared_ext}$major'
  8379. shlibpath_var=LIBRARY_PATH
  8380. shlibpath_overrides_runpath=yes
  8381. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8382. hardcode_into_libs=yes
  8383. ;;
  8384. hpux9* | hpux10* | hpux11*)
  8385. # Give a soname corresponding to the major version so that dld.sl refuses to
  8386. # link against other versions.
  8387. version_type=sunos
  8388. need_lib_prefix=no
  8389. need_version=no
  8390. case $host_cpu in
  8391. ia64*)
  8392. shrext_cmds='.so'
  8393. hardcode_into_libs=yes
  8394. dynamic_linker="$host_os dld.so"
  8395. shlibpath_var=LD_LIBRARY_PATH
  8396. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8397. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8398. soname_spec='${libname}${release}${shared_ext}$major'
  8399. if test "X$HPUX_IA64_MODE" = X32; then
  8400. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8401. else
  8402. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8403. fi
  8404. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8405. ;;
  8406. hppa*64*)
  8407. shrext_cmds='.sl'
  8408. hardcode_into_libs=yes
  8409. dynamic_linker="$host_os dld.sl"
  8410. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8411. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8412. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8413. soname_spec='${libname}${release}${shared_ext}$major'
  8414. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8415. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8416. ;;
  8417. *)
  8418. shrext_cmds='.sl'
  8419. dynamic_linker="$host_os dld.sl"
  8420. shlibpath_var=SHLIB_PATH
  8421. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8422. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8423. soname_spec='${libname}${release}${shared_ext}$major'
  8424. ;;
  8425. esac
  8426. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8427. postinstall_cmds='chmod 555 $lib'
  8428. # or fails outright, so override atomically:
  8429. install_override_mode=555
  8430. ;;
  8431. interix[3-9]*)
  8432. version_type=linux
  8433. need_lib_prefix=no
  8434. need_version=no
  8435. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8436. soname_spec='${libname}${release}${shared_ext}$major'
  8437. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8438. shlibpath_var=LD_LIBRARY_PATH
  8439. shlibpath_overrides_runpath=no
  8440. hardcode_into_libs=yes
  8441. ;;
  8442. irix5* | irix6* | nonstopux*)
  8443. case $host_os in
  8444. nonstopux*) version_type=nonstopux ;;
  8445. *)
  8446. if test "$lt_cv_prog_gnu_ld" = yes; then
  8447. version_type=linux
  8448. else
  8449. version_type=irix
  8450. fi ;;
  8451. esac
  8452. need_lib_prefix=no
  8453. need_version=no
  8454. soname_spec='${libname}${release}${shared_ext}$major'
  8455. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8456. case $host_os in
  8457. irix5* | nonstopux*)
  8458. libsuff= shlibsuff=
  8459. ;;
  8460. *)
  8461. case $LD in # libtool.m4 will add one of these switches to LD
  8462. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8463. libsuff= shlibsuff= libmagic=32-bit;;
  8464. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8465. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8466. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8467. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8468. *) libsuff= shlibsuff= libmagic=never-match;;
  8469. esac
  8470. ;;
  8471. esac
  8472. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8473. shlibpath_overrides_runpath=no
  8474. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8475. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8476. hardcode_into_libs=yes
  8477. ;;
  8478. # No shared lib support for Linux oldld, aout, or coff.
  8479. linux*oldld* | linux*aout* | linux*coff*)
  8480. dynamic_linker=no
  8481. ;;
  8482. # This must be Linux ELF.
  8483. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8484. version_type=linux
  8485. need_lib_prefix=no
  8486. need_version=no
  8487. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8488. soname_spec='${libname}${release}${shared_ext}$major'
  8489. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8490. shlibpath_var=LD_LIBRARY_PATH
  8491. shlibpath_overrides_runpath=no
  8492. # Some binutils ld are patched to set DT_RUNPATH
  8493. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  8494. $as_echo_n "(cached) " >&6
  8495. else
  8496. lt_cv_shlibpath_overrides_runpath=no
  8497. save_LDFLAGS=$LDFLAGS
  8498. save_libdir=$libdir
  8499. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8500. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8502. /* end confdefs.h. */
  8503. int
  8504. main ()
  8505. {
  8506. ;
  8507. return 0;
  8508. }
  8509. _ACEOF
  8510. if ac_fn_c_try_link "$LINENO"; then :
  8511. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8512. lt_cv_shlibpath_overrides_runpath=yes
  8513. fi
  8514. fi
  8515. rm -f core conftest.err conftest.$ac_objext \
  8516. conftest$ac_exeext conftest.$ac_ext
  8517. LDFLAGS=$save_LDFLAGS
  8518. libdir=$save_libdir
  8519. fi
  8520. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8521. # This implies no fast_install, which is unacceptable.
  8522. # Some rework will be needed to allow for fast_install
  8523. # before this can be enabled.
  8524. hardcode_into_libs=yes
  8525. # Append ld.so.conf contents to the search path
  8526. if test -f /etc/ld.so.conf; then
  8527. 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' ' '`
  8528. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8529. fi
  8530. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8531. # powerpc, because MkLinux only supported shared libraries with the
  8532. # GNU dynamic linker. Since this was broken with cross compilers,
  8533. # most powerpc-linux boxes support dynamic linking these days and
  8534. # people can always --disable-shared, the test was removed, and we
  8535. # assume the GNU/Linux dynamic linker is in use.
  8536. dynamic_linker='GNU/Linux ld.so'
  8537. ;;
  8538. netbsd*)
  8539. version_type=sunos
  8540. need_lib_prefix=no
  8541. need_version=no
  8542. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8543. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8544. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8545. dynamic_linker='NetBSD (a.out) ld.so'
  8546. else
  8547. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8548. soname_spec='${libname}${release}${shared_ext}$major'
  8549. dynamic_linker='NetBSD ld.elf_so'
  8550. fi
  8551. shlibpath_var=LD_LIBRARY_PATH
  8552. shlibpath_overrides_runpath=yes
  8553. hardcode_into_libs=yes
  8554. ;;
  8555. newsos6)
  8556. version_type=linux
  8557. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8558. shlibpath_var=LD_LIBRARY_PATH
  8559. shlibpath_overrides_runpath=yes
  8560. ;;
  8561. *nto* | *qnx*)
  8562. version_type=qnx
  8563. need_lib_prefix=no
  8564. need_version=no
  8565. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8566. soname_spec='${libname}${release}${shared_ext}$major'
  8567. shlibpath_var=LD_LIBRARY_PATH
  8568. shlibpath_overrides_runpath=no
  8569. hardcode_into_libs=yes
  8570. dynamic_linker='ldqnx.so'
  8571. ;;
  8572. openbsd*)
  8573. version_type=sunos
  8574. sys_lib_dlsearch_path_spec="/usr/lib"
  8575. need_lib_prefix=no
  8576. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8577. case $host_os in
  8578. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8579. *) need_version=no ;;
  8580. esac
  8581. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8582. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8583. shlibpath_var=LD_LIBRARY_PATH
  8584. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8585. case $host_os in
  8586. openbsd2.[89] | openbsd2.[89].*)
  8587. shlibpath_overrides_runpath=no
  8588. ;;
  8589. *)
  8590. shlibpath_overrides_runpath=yes
  8591. ;;
  8592. esac
  8593. else
  8594. shlibpath_overrides_runpath=yes
  8595. fi
  8596. ;;
  8597. os2*)
  8598. libname_spec='$name'
  8599. shrext_cmds=".dll"
  8600. need_lib_prefix=no
  8601. library_names_spec='$libname${shared_ext} $libname.a'
  8602. dynamic_linker='OS/2 ld.exe'
  8603. shlibpath_var=LIBPATH
  8604. ;;
  8605. osf3* | osf4* | osf5*)
  8606. version_type=osf
  8607. need_lib_prefix=no
  8608. need_version=no
  8609. soname_spec='${libname}${release}${shared_ext}$major'
  8610. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8611. shlibpath_var=LD_LIBRARY_PATH
  8612. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8613. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8614. ;;
  8615. rdos*)
  8616. dynamic_linker=no
  8617. ;;
  8618. solaris*)
  8619. version_type=linux
  8620. need_lib_prefix=no
  8621. need_version=no
  8622. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8623. soname_spec='${libname}${release}${shared_ext}$major'
  8624. shlibpath_var=LD_LIBRARY_PATH
  8625. shlibpath_overrides_runpath=yes
  8626. hardcode_into_libs=yes
  8627. # ldd complains unless libraries are executable
  8628. postinstall_cmds='chmod +x $lib'
  8629. ;;
  8630. sunos4*)
  8631. version_type=sunos
  8632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8633. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8634. shlibpath_var=LD_LIBRARY_PATH
  8635. shlibpath_overrides_runpath=yes
  8636. if test "$with_gnu_ld" = yes; then
  8637. need_lib_prefix=no
  8638. fi
  8639. need_version=yes
  8640. ;;
  8641. sysv4 | sysv4.3*)
  8642. version_type=linux
  8643. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8644. soname_spec='${libname}${release}${shared_ext}$major'
  8645. shlibpath_var=LD_LIBRARY_PATH
  8646. case $host_vendor in
  8647. sni)
  8648. shlibpath_overrides_runpath=no
  8649. need_lib_prefix=no
  8650. runpath_var=LD_RUN_PATH
  8651. ;;
  8652. siemens)
  8653. need_lib_prefix=no
  8654. ;;
  8655. motorola)
  8656. need_lib_prefix=no
  8657. need_version=no
  8658. shlibpath_overrides_runpath=no
  8659. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8660. ;;
  8661. esac
  8662. ;;
  8663. sysv4*MP*)
  8664. if test -d /usr/nec ;then
  8665. version_type=linux
  8666. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8667. soname_spec='$libname${shared_ext}.$major'
  8668. shlibpath_var=LD_LIBRARY_PATH
  8669. fi
  8670. ;;
  8671. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8672. version_type=freebsd-elf
  8673. need_lib_prefix=no
  8674. need_version=no
  8675. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8676. soname_spec='${libname}${release}${shared_ext}$major'
  8677. shlibpath_var=LD_LIBRARY_PATH
  8678. shlibpath_overrides_runpath=yes
  8679. hardcode_into_libs=yes
  8680. if test "$with_gnu_ld" = yes; then
  8681. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8682. else
  8683. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8684. case $host_os in
  8685. sco3.2v5*)
  8686. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8687. ;;
  8688. esac
  8689. fi
  8690. sys_lib_dlsearch_path_spec='/usr/lib'
  8691. ;;
  8692. tpf*)
  8693. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8694. version_type=linux
  8695. need_lib_prefix=no
  8696. need_version=no
  8697. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8698. shlibpath_var=LD_LIBRARY_PATH
  8699. shlibpath_overrides_runpath=no
  8700. hardcode_into_libs=yes
  8701. ;;
  8702. uts4*)
  8703. version_type=linux
  8704. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8705. soname_spec='${libname}${release}${shared_ext}$major'
  8706. shlibpath_var=LD_LIBRARY_PATH
  8707. ;;
  8708. *)
  8709. dynamic_linker=no
  8710. ;;
  8711. esac
  8712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8713. $as_echo "$dynamic_linker" >&6; }
  8714. test "$dynamic_linker" = no && can_build_shared=no
  8715. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8716. if test "$GCC" = yes; then
  8717. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8718. fi
  8719. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8720. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8721. fi
  8722. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8723. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8724. fi
  8725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8726. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8727. hardcode_action=
  8728. if test -n "$hardcode_libdir_flag_spec" ||
  8729. test -n "$runpath_var" ||
  8730. test "X$hardcode_automatic" = "Xyes" ; then
  8731. # We can hardcode non-existent directories.
  8732. if test "$hardcode_direct" != no &&
  8733. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8734. # have to relink, otherwise we might link with an installed library
  8735. # when we should be linking with a yet-to-be-installed one
  8736. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8737. test "$hardcode_minus_L" != no; then
  8738. # Linking always hardcodes the temporary library directory.
  8739. hardcode_action=relink
  8740. else
  8741. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8742. hardcode_action=immediate
  8743. fi
  8744. else
  8745. # We cannot hardcode anything, or else we can only hardcode existing
  8746. # directories.
  8747. hardcode_action=unsupported
  8748. fi
  8749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8750. $as_echo "$hardcode_action" >&6; }
  8751. if test "$hardcode_action" = relink ||
  8752. test "$inherit_rpath" = yes; then
  8753. # Fast installation is not supported
  8754. enable_fast_install=no
  8755. elif test "$shlibpath_overrides_runpath" = yes ||
  8756. test "$enable_shared" = no; then
  8757. # Fast installation is not necessary
  8758. enable_fast_install=needless
  8759. fi
  8760. if test "x$enable_dlopen" != xyes; then
  8761. enable_dlopen=unknown
  8762. enable_dlopen_self=unknown
  8763. enable_dlopen_self_static=unknown
  8764. else
  8765. lt_cv_dlopen=no
  8766. lt_cv_dlopen_libs=
  8767. case $host_os in
  8768. beos*)
  8769. lt_cv_dlopen="load_add_on"
  8770. lt_cv_dlopen_libs=
  8771. lt_cv_dlopen_self=yes
  8772. ;;
  8773. mingw* | pw32* | cegcc*)
  8774. lt_cv_dlopen="LoadLibrary"
  8775. lt_cv_dlopen_libs=
  8776. ;;
  8777. cygwin*)
  8778. lt_cv_dlopen="dlopen"
  8779. lt_cv_dlopen_libs=
  8780. ;;
  8781. darwin*)
  8782. # if libdl is installed we need to link against it
  8783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8784. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8785. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8786. $as_echo_n "(cached) " >&6
  8787. else
  8788. ac_check_lib_save_LIBS=$LIBS
  8789. LIBS="-ldl $LIBS"
  8790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8791. /* end confdefs.h. */
  8792. /* Override any GCC internal prototype to avoid an error.
  8793. Use char because int might match the return type of a GCC
  8794. builtin and then its argument prototype would still apply. */
  8795. #ifdef __cplusplus
  8796. extern "C"
  8797. #endif
  8798. char dlopen ();
  8799. int
  8800. main ()
  8801. {
  8802. return dlopen ();
  8803. ;
  8804. return 0;
  8805. }
  8806. _ACEOF
  8807. if ac_fn_c_try_link "$LINENO"; then :
  8808. ac_cv_lib_dl_dlopen=yes
  8809. else
  8810. ac_cv_lib_dl_dlopen=no
  8811. fi
  8812. rm -f core conftest.err conftest.$ac_objext \
  8813. conftest$ac_exeext conftest.$ac_ext
  8814. LIBS=$ac_check_lib_save_LIBS
  8815. fi
  8816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8817. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8818. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8819. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8820. else
  8821. lt_cv_dlopen="dyld"
  8822. lt_cv_dlopen_libs=
  8823. lt_cv_dlopen_self=yes
  8824. fi
  8825. ;;
  8826. *)
  8827. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8828. if test "x$ac_cv_func_shl_load" = x""yes; then :
  8829. lt_cv_dlopen="shl_load"
  8830. else
  8831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8832. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8833. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  8834. $as_echo_n "(cached) " >&6
  8835. else
  8836. ac_check_lib_save_LIBS=$LIBS
  8837. LIBS="-ldld $LIBS"
  8838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8839. /* end confdefs.h. */
  8840. /* Override any GCC internal prototype to avoid an error.
  8841. Use char because int might match the return type of a GCC
  8842. builtin and then its argument prototype would still apply. */
  8843. #ifdef __cplusplus
  8844. extern "C"
  8845. #endif
  8846. char shl_load ();
  8847. int
  8848. main ()
  8849. {
  8850. return shl_load ();
  8851. ;
  8852. return 0;
  8853. }
  8854. _ACEOF
  8855. if ac_fn_c_try_link "$LINENO"; then :
  8856. ac_cv_lib_dld_shl_load=yes
  8857. else
  8858. ac_cv_lib_dld_shl_load=no
  8859. fi
  8860. rm -f core conftest.err conftest.$ac_objext \
  8861. conftest$ac_exeext conftest.$ac_ext
  8862. LIBS=$ac_check_lib_save_LIBS
  8863. fi
  8864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  8865. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8866. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  8867. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8868. else
  8869. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  8870. if test "x$ac_cv_func_dlopen" = x""yes; then :
  8871. lt_cv_dlopen="dlopen"
  8872. else
  8873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8874. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8875. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8876. $as_echo_n "(cached) " >&6
  8877. else
  8878. ac_check_lib_save_LIBS=$LIBS
  8879. LIBS="-ldl $LIBS"
  8880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8881. /* end confdefs.h. */
  8882. /* Override any GCC internal prototype to avoid an error.
  8883. Use char because int might match the return type of a GCC
  8884. builtin and then its argument prototype would still apply. */
  8885. #ifdef __cplusplus
  8886. extern "C"
  8887. #endif
  8888. char dlopen ();
  8889. int
  8890. main ()
  8891. {
  8892. return dlopen ();
  8893. ;
  8894. return 0;
  8895. }
  8896. _ACEOF
  8897. if ac_fn_c_try_link "$LINENO"; then :
  8898. ac_cv_lib_dl_dlopen=yes
  8899. else
  8900. ac_cv_lib_dl_dlopen=no
  8901. fi
  8902. rm -f core conftest.err conftest.$ac_objext \
  8903. conftest$ac_exeext conftest.$ac_ext
  8904. LIBS=$ac_check_lib_save_LIBS
  8905. fi
  8906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8907. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8908. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8909. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8910. else
  8911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  8912. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8913. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  8914. $as_echo_n "(cached) " >&6
  8915. else
  8916. ac_check_lib_save_LIBS=$LIBS
  8917. LIBS="-lsvld $LIBS"
  8918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8919. /* end confdefs.h. */
  8920. /* Override any GCC internal prototype to avoid an error.
  8921. Use char because int might match the return type of a GCC
  8922. builtin and then its argument prototype would still apply. */
  8923. #ifdef __cplusplus
  8924. extern "C"
  8925. #endif
  8926. char dlopen ();
  8927. int
  8928. main ()
  8929. {
  8930. return dlopen ();
  8931. ;
  8932. return 0;
  8933. }
  8934. _ACEOF
  8935. if ac_fn_c_try_link "$LINENO"; then :
  8936. ac_cv_lib_svld_dlopen=yes
  8937. else
  8938. ac_cv_lib_svld_dlopen=no
  8939. fi
  8940. rm -f core conftest.err conftest.$ac_objext \
  8941. conftest$ac_exeext conftest.$ac_ext
  8942. LIBS=$ac_check_lib_save_LIBS
  8943. fi
  8944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  8945. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  8946. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  8947. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8948. else
  8949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  8950. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  8951. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  8952. $as_echo_n "(cached) " >&6
  8953. else
  8954. ac_check_lib_save_LIBS=$LIBS
  8955. LIBS="-ldld $LIBS"
  8956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8957. /* end confdefs.h. */
  8958. /* Override any GCC internal prototype to avoid an error.
  8959. Use char because int might match the return type of a GCC
  8960. builtin and then its argument prototype would still apply. */
  8961. #ifdef __cplusplus
  8962. extern "C"
  8963. #endif
  8964. char dld_link ();
  8965. int
  8966. main ()
  8967. {
  8968. return dld_link ();
  8969. ;
  8970. return 0;
  8971. }
  8972. _ACEOF
  8973. if ac_fn_c_try_link "$LINENO"; then :
  8974. ac_cv_lib_dld_dld_link=yes
  8975. else
  8976. ac_cv_lib_dld_dld_link=no
  8977. fi
  8978. rm -f core conftest.err conftest.$ac_objext \
  8979. conftest$ac_exeext conftest.$ac_ext
  8980. LIBS=$ac_check_lib_save_LIBS
  8981. fi
  8982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  8983. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  8984. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  8985. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  8986. fi
  8987. fi
  8988. fi
  8989. fi
  8990. fi
  8991. fi
  8992. ;;
  8993. esac
  8994. if test "x$lt_cv_dlopen" != xno; then
  8995. enable_dlopen=yes
  8996. else
  8997. enable_dlopen=no
  8998. fi
  8999. case $lt_cv_dlopen in
  9000. dlopen)
  9001. save_CPPFLAGS="$CPPFLAGS"
  9002. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9003. save_LDFLAGS="$LDFLAGS"
  9004. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9005. save_LIBS="$LIBS"
  9006. LIBS="$lt_cv_dlopen_libs $LIBS"
  9007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9008. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9009. if test "${lt_cv_dlopen_self+set}" = set; then :
  9010. $as_echo_n "(cached) " >&6
  9011. else
  9012. if test "$cross_compiling" = yes; then :
  9013. lt_cv_dlopen_self=cross
  9014. else
  9015. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9016. lt_status=$lt_dlunknown
  9017. cat > conftest.$ac_ext <<_LT_EOF
  9018. #line 10539 "configure"
  9019. #include "confdefs.h"
  9020. #if HAVE_DLFCN_H
  9021. #include <dlfcn.h>
  9022. #endif
  9023. #include <stdio.h>
  9024. #ifdef RTLD_GLOBAL
  9025. # define LT_DLGLOBAL RTLD_GLOBAL
  9026. #else
  9027. # ifdef DL_GLOBAL
  9028. # define LT_DLGLOBAL DL_GLOBAL
  9029. # else
  9030. # define LT_DLGLOBAL 0
  9031. # endif
  9032. #endif
  9033. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9034. find out it does not work in some platform. */
  9035. #ifndef LT_DLLAZY_OR_NOW
  9036. # ifdef RTLD_LAZY
  9037. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9038. # else
  9039. # ifdef DL_LAZY
  9040. # define LT_DLLAZY_OR_NOW DL_LAZY
  9041. # else
  9042. # ifdef RTLD_NOW
  9043. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9044. # else
  9045. # ifdef DL_NOW
  9046. # define LT_DLLAZY_OR_NOW DL_NOW
  9047. # else
  9048. # define LT_DLLAZY_OR_NOW 0
  9049. # endif
  9050. # endif
  9051. # endif
  9052. # endif
  9053. #endif
  9054. /* When -fvisbility=hidden is used, assume the code has been annotated
  9055. correspondingly for the symbols needed. */
  9056. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9057. void fnord () __attribute__((visibility("default")));
  9058. #endif
  9059. void fnord () { int i=42; }
  9060. int main ()
  9061. {
  9062. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9063. int status = $lt_dlunknown;
  9064. if (self)
  9065. {
  9066. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9067. else
  9068. {
  9069. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9070. else puts (dlerror ());
  9071. }
  9072. /* dlclose (self); */
  9073. }
  9074. else
  9075. puts (dlerror ());
  9076. return status;
  9077. }
  9078. _LT_EOF
  9079. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9080. (eval $ac_link) 2>&5
  9081. ac_status=$?
  9082. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9083. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9084. (./conftest; exit; ) >&5 2>/dev/null
  9085. lt_status=$?
  9086. case x$lt_status in
  9087. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9088. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9089. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9090. esac
  9091. else :
  9092. # compilation failed
  9093. lt_cv_dlopen_self=no
  9094. fi
  9095. fi
  9096. rm -fr conftest*
  9097. fi
  9098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9099. $as_echo "$lt_cv_dlopen_self" >&6; }
  9100. if test "x$lt_cv_dlopen_self" = xyes; then
  9101. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9103. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9104. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9105. $as_echo_n "(cached) " >&6
  9106. else
  9107. if test "$cross_compiling" = yes; then :
  9108. lt_cv_dlopen_self_static=cross
  9109. else
  9110. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9111. lt_status=$lt_dlunknown
  9112. cat > conftest.$ac_ext <<_LT_EOF
  9113. #line 10645 "configure"
  9114. #include "confdefs.h"
  9115. #if HAVE_DLFCN_H
  9116. #include <dlfcn.h>
  9117. #endif
  9118. #include <stdio.h>
  9119. #ifdef RTLD_GLOBAL
  9120. # define LT_DLGLOBAL RTLD_GLOBAL
  9121. #else
  9122. # ifdef DL_GLOBAL
  9123. # define LT_DLGLOBAL DL_GLOBAL
  9124. # else
  9125. # define LT_DLGLOBAL 0
  9126. # endif
  9127. #endif
  9128. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9129. find out it does not work in some platform. */
  9130. #ifndef LT_DLLAZY_OR_NOW
  9131. # ifdef RTLD_LAZY
  9132. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9133. # else
  9134. # ifdef DL_LAZY
  9135. # define LT_DLLAZY_OR_NOW DL_LAZY
  9136. # else
  9137. # ifdef RTLD_NOW
  9138. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9139. # else
  9140. # ifdef DL_NOW
  9141. # define LT_DLLAZY_OR_NOW DL_NOW
  9142. # else
  9143. # define LT_DLLAZY_OR_NOW 0
  9144. # endif
  9145. # endif
  9146. # endif
  9147. # endif
  9148. #endif
  9149. /* When -fvisbility=hidden is used, assume the code has been annotated
  9150. correspondingly for the symbols needed. */
  9151. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9152. void fnord () __attribute__((visibility("default")));
  9153. #endif
  9154. void fnord () { int i=42; }
  9155. int main ()
  9156. {
  9157. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9158. int status = $lt_dlunknown;
  9159. if (self)
  9160. {
  9161. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9162. else
  9163. {
  9164. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9165. else puts (dlerror ());
  9166. }
  9167. /* dlclose (self); */
  9168. }
  9169. else
  9170. puts (dlerror ());
  9171. return status;
  9172. }
  9173. _LT_EOF
  9174. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9175. (eval $ac_link) 2>&5
  9176. ac_status=$?
  9177. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9178. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9179. (./conftest; exit; ) >&5 2>/dev/null
  9180. lt_status=$?
  9181. case x$lt_status in
  9182. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9183. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9184. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9185. esac
  9186. else :
  9187. # compilation failed
  9188. lt_cv_dlopen_self_static=no
  9189. fi
  9190. fi
  9191. rm -fr conftest*
  9192. fi
  9193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9194. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9195. fi
  9196. CPPFLAGS="$save_CPPFLAGS"
  9197. LDFLAGS="$save_LDFLAGS"
  9198. LIBS="$save_LIBS"
  9199. ;;
  9200. esac
  9201. case $lt_cv_dlopen_self in
  9202. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9203. *) enable_dlopen_self=unknown ;;
  9204. esac
  9205. case $lt_cv_dlopen_self_static in
  9206. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9207. *) enable_dlopen_self_static=unknown ;;
  9208. esac
  9209. fi
  9210. striplib=
  9211. old_striplib=
  9212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9213. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9214. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9215. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9216. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9218. $as_echo "yes" >&6; }
  9219. else
  9220. # FIXME - insert some real tests, host_os isn't really good enough
  9221. case $host_os in
  9222. darwin*)
  9223. if test -n "$STRIP" ; then
  9224. striplib="$STRIP -x"
  9225. old_striplib="$STRIP -S"
  9226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9227. $as_echo "yes" >&6; }
  9228. else
  9229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9230. $as_echo "no" >&6; }
  9231. fi
  9232. ;;
  9233. *)
  9234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9235. $as_echo "no" >&6; }
  9236. ;;
  9237. esac
  9238. fi
  9239. # Report which library types will actually be built
  9240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9241. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9243. $as_echo "$can_build_shared" >&6; }
  9244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9245. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9246. test "$can_build_shared" = "no" && enable_shared=no
  9247. # On AIX, shared libraries and static libraries use the same namespace, and
  9248. # are all built from PIC.
  9249. case $host_os in
  9250. aix3*)
  9251. test "$enable_shared" = yes && enable_static=no
  9252. if test -n "$RANLIB"; then
  9253. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9254. postinstall_cmds='$RANLIB $lib'
  9255. fi
  9256. ;;
  9257. aix[4-9]*)
  9258. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9259. test "$enable_shared" = yes && enable_static=no
  9260. fi
  9261. ;;
  9262. esac
  9263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9264. $as_echo "$enable_shared" >&6; }
  9265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9266. $as_echo_n "checking whether to build static libraries... " >&6; }
  9267. # Make sure either enable_shared or enable_static is yes.
  9268. test "$enable_shared" = yes || enable_static=yes
  9269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9270. $as_echo "$enable_static" >&6; }
  9271. fi
  9272. ac_ext=c
  9273. ac_cpp='$CPP $CPPFLAGS'
  9274. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9275. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9276. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9277. CC="$lt_save_CC"
  9278. ac_config_commands="$ac_config_commands libtool"
  9279. # Only expand once:
  9280. ac_ext=cpp
  9281. ac_cpp='$CXXCPP $CPPFLAGS'
  9282. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9283. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9284. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9285. if test -z "$CXX"; then
  9286. if test -n "$CCC"; then
  9287. CXX=$CCC
  9288. else
  9289. if test -n "$ac_tool_prefix"; then
  9290. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9291. do
  9292. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9293. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9295. $as_echo_n "checking for $ac_word... " >&6; }
  9296. if test "${ac_cv_prog_CXX+set}" = set; then :
  9297. $as_echo_n "(cached) " >&6
  9298. else
  9299. if test -n "$CXX"; then
  9300. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9301. else
  9302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9303. for as_dir in $PATH
  9304. do
  9305. IFS=$as_save_IFS
  9306. test -z "$as_dir" && as_dir=.
  9307. for ac_exec_ext in '' $ac_executable_extensions; do
  9308. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9309. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  9310. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9311. break 2
  9312. fi
  9313. done
  9314. done
  9315. IFS=$as_save_IFS
  9316. fi
  9317. fi
  9318. CXX=$ac_cv_prog_CXX
  9319. if test -n "$CXX"; then
  9320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  9321. $as_echo "$CXX" >&6; }
  9322. else
  9323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9324. $as_echo "no" >&6; }
  9325. fi
  9326. test -n "$CXX" && break
  9327. done
  9328. fi
  9329. if test -z "$CXX"; then
  9330. ac_ct_CXX=$CXX
  9331. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9332. do
  9333. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9334. set dummy $ac_prog; ac_word=$2
  9335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9336. $as_echo_n "checking for $ac_word... " >&6; }
  9337. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  9338. $as_echo_n "(cached) " >&6
  9339. else
  9340. if test -n "$ac_ct_CXX"; then
  9341. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  9342. else
  9343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9344. for as_dir in $PATH
  9345. do
  9346. IFS=$as_save_IFS
  9347. test -z "$as_dir" && as_dir=.
  9348. for ac_exec_ext in '' $ac_executable_extensions; do
  9349. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9350. ac_cv_prog_ac_ct_CXX="$ac_prog"
  9351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9352. break 2
  9353. fi
  9354. done
  9355. done
  9356. IFS=$as_save_IFS
  9357. fi
  9358. fi
  9359. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  9360. if test -n "$ac_ct_CXX"; then
  9361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  9362. $as_echo "$ac_ct_CXX" >&6; }
  9363. else
  9364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9365. $as_echo "no" >&6; }
  9366. fi
  9367. test -n "$ac_ct_CXX" && break
  9368. done
  9369. if test "x$ac_ct_CXX" = x; then
  9370. CXX="g++"
  9371. else
  9372. case $cross_compiling:$ac_tool_warned in
  9373. yes:)
  9374. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9375. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9376. ac_tool_warned=yes ;;
  9377. esac
  9378. CXX=$ac_ct_CXX
  9379. fi
  9380. fi
  9381. fi
  9382. fi
  9383. # Provide some information about the compiler.
  9384. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  9385. set X $ac_compile
  9386. ac_compiler=$2
  9387. for ac_option in --version -v -V -qversion; do
  9388. { { ac_try="$ac_compiler $ac_option >&5"
  9389. case "(($ac_try" in
  9390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9391. *) ac_try_echo=$ac_try;;
  9392. esac
  9393. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9394. $as_echo "$ac_try_echo"; } >&5
  9395. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  9396. ac_status=$?
  9397. if test -s conftest.err; then
  9398. sed '10a\
  9399. ... rest of stderr output deleted ...
  9400. 10q' conftest.err >conftest.er1
  9401. cat conftest.er1 >&5
  9402. rm -f conftest.er1 conftest.err
  9403. fi
  9404. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9405. test $ac_status = 0; }
  9406. done
  9407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  9408. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  9409. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  9410. $as_echo_n "(cached) " >&6
  9411. else
  9412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9413. /* end confdefs.h. */
  9414. int
  9415. main ()
  9416. {
  9417. #ifndef __GNUC__
  9418. choke me
  9419. #endif
  9420. ;
  9421. return 0;
  9422. }
  9423. _ACEOF
  9424. if ac_fn_cxx_try_compile "$LINENO"; then :
  9425. ac_compiler_gnu=yes
  9426. else
  9427. ac_compiler_gnu=no
  9428. fi
  9429. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9430. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  9431. fi
  9432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  9433. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  9434. if test $ac_compiler_gnu = yes; then
  9435. GXX=yes
  9436. else
  9437. GXX=
  9438. fi
  9439. ac_test_CXXFLAGS=${CXXFLAGS+set}
  9440. ac_save_CXXFLAGS=$CXXFLAGS
  9441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  9442. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  9443. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  9444. $as_echo_n "(cached) " >&6
  9445. else
  9446. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  9447. ac_cxx_werror_flag=yes
  9448. ac_cv_prog_cxx_g=no
  9449. CXXFLAGS="-g"
  9450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9451. /* end confdefs.h. */
  9452. int
  9453. main ()
  9454. {
  9455. ;
  9456. return 0;
  9457. }
  9458. _ACEOF
  9459. if ac_fn_cxx_try_compile "$LINENO"; then :
  9460. ac_cv_prog_cxx_g=yes
  9461. else
  9462. CXXFLAGS=""
  9463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9464. /* end confdefs.h. */
  9465. int
  9466. main ()
  9467. {
  9468. ;
  9469. return 0;
  9470. }
  9471. _ACEOF
  9472. if ac_fn_cxx_try_compile "$LINENO"; then :
  9473. else
  9474. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  9475. CXXFLAGS="-g"
  9476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9477. /* end confdefs.h. */
  9478. int
  9479. main ()
  9480. {
  9481. ;
  9482. return 0;
  9483. }
  9484. _ACEOF
  9485. if ac_fn_cxx_try_compile "$LINENO"; then :
  9486. ac_cv_prog_cxx_g=yes
  9487. fi
  9488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9489. fi
  9490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9491. fi
  9492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9493. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  9494. fi
  9495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  9496. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  9497. if test "$ac_test_CXXFLAGS" = set; then
  9498. CXXFLAGS=$ac_save_CXXFLAGS
  9499. elif test $ac_cv_prog_cxx_g = yes; then
  9500. if test "$GXX" = yes; then
  9501. CXXFLAGS="-g -O2"
  9502. else
  9503. CXXFLAGS="-g"
  9504. fi
  9505. else
  9506. if test "$GXX" = yes; then
  9507. CXXFLAGS="-O2"
  9508. else
  9509. CXXFLAGS=
  9510. fi
  9511. fi
  9512. ac_ext=c
  9513. ac_cpp='$CPP $CPPFLAGS'
  9514. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9515. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9516. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9517. depcc="$CXX" am_compiler_list=
  9518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  9519. $as_echo_n "checking dependency style of $depcc... " >&6; }
  9520. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  9521. $as_echo_n "(cached) " >&6
  9522. else
  9523. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  9524. # We make a subdir and do the tests there. Otherwise we can end up
  9525. # making bogus files that we don't know about and never remove. For
  9526. # instance it was reported that on HP-UX the gcc test will end up
  9527. # making a dummy file named `D' -- because `-MD' means `put the output
  9528. # in D'.
  9529. mkdir conftest.dir
  9530. # Copy depcomp to subdir because otherwise we won't find it if we're
  9531. # using a relative directory.
  9532. cp "$am_depcomp" conftest.dir
  9533. cd conftest.dir
  9534. # We will build objects and dependencies in a subdirectory because
  9535. # it helps to detect inapplicable dependency modes. For instance
  9536. # both Tru64's cc and ICC support -MD to output dependencies as a
  9537. # side effect of compilation, but ICC will put the dependencies in
  9538. # the current directory while Tru64 will put them in the object
  9539. # directory.
  9540. mkdir sub
  9541. am_cv_CXX_dependencies_compiler_type=none
  9542. if test "$am_compiler_list" = ""; then
  9543. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  9544. fi
  9545. am__universal=false
  9546. case " $depcc " in #(
  9547. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  9548. esac
  9549. for depmode in $am_compiler_list; do
  9550. # Setup a source with many dependencies, because some compilers
  9551. # like to wrap large dependency lists on column 80 (with \), and
  9552. # we should not choose a depcomp mode which is confused by this.
  9553. #
  9554. # We need to recreate these files for each test, as the compiler may
  9555. # overwrite some of them when testing with obscure command lines.
  9556. # This happens at least with the AIX C compiler.
  9557. : > sub/conftest.c
  9558. for i in 1 2 3 4 5 6; do
  9559. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  9560. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  9561. # Solaris 8's {/usr,}/bin/sh.
  9562. touch sub/conftst$i.h
  9563. done
  9564. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  9565. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  9566. # mode. It turns out that the SunPro C++ compiler does not properly
  9567. # handle `-M -o', and we need to detect this. Also, some Intel
  9568. # versions had trouble with output in subdirs
  9569. am__obj=sub/conftest.${OBJEXT-o}
  9570. am__minus_obj="-o $am__obj"
  9571. case $depmode in
  9572. gcc)
  9573. # This depmode causes a compiler race in universal mode.
  9574. test "$am__universal" = false || continue
  9575. ;;
  9576. nosideeffect)
  9577. # after this tag, mechanisms are not by side-effect, so they'll
  9578. # only be used when explicitly requested
  9579. if test "x$enable_dependency_tracking" = xyes; then
  9580. continue
  9581. else
  9582. break
  9583. fi
  9584. ;;
  9585. msvisualcpp | msvcmsys)
  9586. # This compiler won't grok `-c -o', but also, the minuso test has
  9587. # not run yet. These depmodes are late enough in the game, and
  9588. # so weak that their functioning should not be impacted.
  9589. am__obj=conftest.${OBJEXT-o}
  9590. am__minus_obj=
  9591. ;;
  9592. none) break ;;
  9593. esac
  9594. if depmode=$depmode \
  9595. source=sub/conftest.c object=$am__obj \
  9596. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  9597. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  9598. >/dev/null 2>conftest.err &&
  9599. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  9600. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  9601. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  9602. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  9603. # icc doesn't choke on unknown options, it will just issue warnings
  9604. # or remarks (even with -Werror). So we grep stderr for any message
  9605. # that says an option was ignored or not supported.
  9606. # When given -MP, icc 7.0 and 7.1 complain thusly:
  9607. # icc: Command line warning: ignoring option '-M'; no argument required
  9608. # The diagnosis changed in icc 8.0:
  9609. # icc: Command line remark: option '-MP' not supported
  9610. if (grep 'ignoring option' conftest.err ||
  9611. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  9612. am_cv_CXX_dependencies_compiler_type=$depmode
  9613. break
  9614. fi
  9615. fi
  9616. done
  9617. cd ..
  9618. rm -rf conftest.dir
  9619. else
  9620. am_cv_CXX_dependencies_compiler_type=none
  9621. fi
  9622. fi
  9623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  9624. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  9625. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  9626. if
  9627. test "x$enable_dependency_tracking" != xno \
  9628. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  9629. am__fastdepCXX_TRUE=
  9630. am__fastdepCXX_FALSE='#'
  9631. else
  9632. am__fastdepCXX_TRUE='#'
  9633. am__fastdepCXX_FALSE=
  9634. fi
  9635. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9636. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9637. (test "X$CXX" != "Xg++"))) ; then
  9638. ac_ext=cpp
  9639. ac_cpp='$CXXCPP $CPPFLAGS'
  9640. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9641. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9642. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  9644. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  9645. if test -z "$CXXCPP"; then
  9646. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  9647. $as_echo_n "(cached) " >&6
  9648. else
  9649. # Double quotes because CXXCPP needs to be expanded
  9650. for CXXCPP in "$CXX -E" "/lib/cpp"
  9651. do
  9652. ac_preproc_ok=false
  9653. for ac_cxx_preproc_warn_flag in '' yes
  9654. do
  9655. # Use a header file that comes with gcc, so configuring glibc
  9656. # with a fresh cross-compiler works.
  9657. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9658. # <limits.h> exists even on freestanding compilers.
  9659. # On the NeXT, cc -E runs the code through the compiler's parser,
  9660. # not just through cpp. "Syntax error" is here to catch this case.
  9661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9662. /* end confdefs.h. */
  9663. #ifdef __STDC__
  9664. # include <limits.h>
  9665. #else
  9666. # include <assert.h>
  9667. #endif
  9668. Syntax error
  9669. _ACEOF
  9670. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9671. else
  9672. # Broken: fails on valid input.
  9673. continue
  9674. fi
  9675. rm -f conftest.err conftest.$ac_ext
  9676. # OK, works on sane cases. Now check whether nonexistent headers
  9677. # can be detected and how.
  9678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9679. /* end confdefs.h. */
  9680. #include <ac_nonexistent.h>
  9681. _ACEOF
  9682. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9683. # Broken: success on invalid input.
  9684. continue
  9685. else
  9686. # Passes both tests.
  9687. ac_preproc_ok=:
  9688. break
  9689. fi
  9690. rm -f conftest.err conftest.$ac_ext
  9691. done
  9692. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9693. rm -f conftest.err conftest.$ac_ext
  9694. if $ac_preproc_ok; then :
  9695. break
  9696. fi
  9697. done
  9698. ac_cv_prog_CXXCPP=$CXXCPP
  9699. fi
  9700. CXXCPP=$ac_cv_prog_CXXCPP
  9701. else
  9702. ac_cv_prog_CXXCPP=$CXXCPP
  9703. fi
  9704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  9705. $as_echo "$CXXCPP" >&6; }
  9706. ac_preproc_ok=false
  9707. for ac_cxx_preproc_warn_flag in '' yes
  9708. do
  9709. # Use a header file that comes with gcc, so configuring glibc
  9710. # with a fresh cross-compiler works.
  9711. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9712. # <limits.h> exists even on freestanding compilers.
  9713. # On the NeXT, cc -E runs the code through the compiler's parser,
  9714. # not just through cpp. "Syntax error" is here to catch this case.
  9715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9716. /* end confdefs.h. */
  9717. #ifdef __STDC__
  9718. # include <limits.h>
  9719. #else
  9720. # include <assert.h>
  9721. #endif
  9722. Syntax error
  9723. _ACEOF
  9724. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9725. else
  9726. # Broken: fails on valid input.
  9727. continue
  9728. fi
  9729. rm -f conftest.err conftest.$ac_ext
  9730. # OK, works on sane cases. Now check whether nonexistent headers
  9731. # can be detected and how.
  9732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9733. /* end confdefs.h. */
  9734. #include <ac_nonexistent.h>
  9735. _ACEOF
  9736. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9737. # Broken: success on invalid input.
  9738. continue
  9739. else
  9740. # Passes both tests.
  9741. ac_preproc_ok=:
  9742. break
  9743. fi
  9744. rm -f conftest.err conftest.$ac_ext
  9745. done
  9746. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9747. rm -f conftest.err conftest.$ac_ext
  9748. if $ac_preproc_ok; then :
  9749. else
  9750. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9751. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9752. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  9753. See \`config.log' for more details." "$LINENO" 5; }
  9754. fi
  9755. ac_ext=c
  9756. ac_cpp='$CPP $CPPFLAGS'
  9757. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9758. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9759. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9760. else
  9761. _lt_caught_CXX_error=yes
  9762. fi
  9763. ac_ext=cpp
  9764. ac_cpp='$CXXCPP $CPPFLAGS'
  9765. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9766. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9767. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9768. archive_cmds_need_lc_CXX=no
  9769. allow_undefined_flag_CXX=
  9770. always_export_symbols_CXX=no
  9771. archive_expsym_cmds_CXX=
  9772. compiler_needs_object_CXX=no
  9773. export_dynamic_flag_spec_CXX=
  9774. hardcode_direct_CXX=no
  9775. hardcode_direct_absolute_CXX=no
  9776. hardcode_libdir_flag_spec_CXX=
  9777. hardcode_libdir_flag_spec_ld_CXX=
  9778. hardcode_libdir_separator_CXX=
  9779. hardcode_minus_L_CXX=no
  9780. hardcode_shlibpath_var_CXX=unsupported
  9781. hardcode_automatic_CXX=no
  9782. inherit_rpath_CXX=no
  9783. module_cmds_CXX=
  9784. module_expsym_cmds_CXX=
  9785. link_all_deplibs_CXX=unknown
  9786. old_archive_cmds_CXX=$old_archive_cmds
  9787. reload_flag_CXX=$reload_flag
  9788. reload_cmds_CXX=$reload_cmds
  9789. no_undefined_flag_CXX=
  9790. whole_archive_flag_spec_CXX=
  9791. enable_shared_with_static_runtimes_CXX=no
  9792. # Source file extension for C++ test sources.
  9793. ac_ext=cpp
  9794. # Object file extension for compiled C++ test sources.
  9795. objext=o
  9796. objext_CXX=$objext
  9797. # No sense in running all these tests if we already determined that
  9798. # the CXX compiler isn't working. Some variables (like enable_shared)
  9799. # are currently assumed to apply to all compilers on this platform,
  9800. # and will be corrupted by setting them based on a non-working compiler.
  9801. if test "$_lt_caught_CXX_error" != yes; then
  9802. # Code to be used in simple compile tests
  9803. lt_simple_compile_test_code="int some_variable = 0;"
  9804. # Code to be used in simple link tests
  9805. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9806. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9807. # If no C compiler was specified, use CC.
  9808. LTCC=${LTCC-"$CC"}
  9809. # If no C compiler flags were specified, use CFLAGS.
  9810. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9811. # Allow CC to be a program name with arguments.
  9812. compiler=$CC
  9813. # save warnings/boilerplate of simple test code
  9814. ac_outfile=conftest.$ac_objext
  9815. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9816. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9817. _lt_compiler_boilerplate=`cat conftest.err`
  9818. $RM conftest*
  9819. ac_outfile=conftest.$ac_objext
  9820. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9821. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9822. _lt_linker_boilerplate=`cat conftest.err`
  9823. $RM -r conftest*
  9824. # Allow CC to be a program name with arguments.
  9825. lt_save_CC=$CC
  9826. lt_save_LD=$LD
  9827. lt_save_GCC=$GCC
  9828. GCC=$GXX
  9829. lt_save_with_gnu_ld=$with_gnu_ld
  9830. lt_save_path_LD=$lt_cv_path_LD
  9831. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9832. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9833. else
  9834. $as_unset lt_cv_prog_gnu_ld
  9835. fi
  9836. if test -n "${lt_cv_path_LDCXX+set}"; then
  9837. lt_cv_path_LD=$lt_cv_path_LDCXX
  9838. else
  9839. $as_unset lt_cv_path_LD
  9840. fi
  9841. test -z "${LDCXX+set}" || LD=$LDCXX
  9842. CC=${CXX-"c++"}
  9843. compiler=$CC
  9844. compiler_CXX=$CC
  9845. for cc_temp in $compiler""; do
  9846. case $cc_temp in
  9847. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9848. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9849. \-*) ;;
  9850. *) break;;
  9851. esac
  9852. done
  9853. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  9854. if test -n "$compiler"; then
  9855. # We don't want -fno-exception when compiling C++ code, so set the
  9856. # no_builtin_flag separately
  9857. if test "$GXX" = yes; then
  9858. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9859. else
  9860. lt_prog_compiler_no_builtin_flag_CXX=
  9861. fi
  9862. if test "$GXX" = yes; then
  9863. # Set up default GNU C++ configuration
  9864. # Check whether --with-gnu-ld was given.
  9865. if test "${with_gnu_ld+set}" = set; then :
  9866. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9867. else
  9868. with_gnu_ld=no
  9869. fi
  9870. ac_prog=ld
  9871. if test "$GCC" = yes; then
  9872. # Check if gcc -print-prog-name=ld gives a path.
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  9874. $as_echo_n "checking for ld used by $CC... " >&6; }
  9875. case $host in
  9876. *-*-mingw*)
  9877. # gcc leaves a trailing carriage return which upsets mingw
  9878. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9879. *)
  9880. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9881. esac
  9882. case $ac_prog in
  9883. # Accept absolute paths.
  9884. [\\/]* | ?:[\\/]*)
  9885. re_direlt='/[^/][^/]*/\.\./'
  9886. # Canonicalize the pathname of ld
  9887. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  9888. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  9889. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  9890. done
  9891. test -z "$LD" && LD="$ac_prog"
  9892. ;;
  9893. "")
  9894. # If it fails, then pretend we aren't using GCC.
  9895. ac_prog=ld
  9896. ;;
  9897. *)
  9898. # If it is relative, then search for the first ld in PATH.
  9899. with_gnu_ld=unknown
  9900. ;;
  9901. esac
  9902. elif test "$with_gnu_ld" = yes; then
  9903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  9904. $as_echo_n "checking for GNU ld... " >&6; }
  9905. else
  9906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  9907. $as_echo_n "checking for non-GNU ld... " >&6; }
  9908. fi
  9909. if test "${lt_cv_path_LD+set}" = set; then :
  9910. $as_echo_n "(cached) " >&6
  9911. else
  9912. if test -z "$LD"; then
  9913. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9914. for ac_dir in $PATH; do
  9915. IFS="$lt_save_ifs"
  9916. test -z "$ac_dir" && ac_dir=.
  9917. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9918. lt_cv_path_LD="$ac_dir/$ac_prog"
  9919. # Check to see if the program is GNU ld. I'd rather use --version,
  9920. # but apparently some variants of GNU ld only accept -v.
  9921. # Break only if it was the GNU/non-GNU ld that we prefer.
  9922. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9923. *GNU* | *'with BFD'*)
  9924. test "$with_gnu_ld" != no && break
  9925. ;;
  9926. *)
  9927. test "$with_gnu_ld" != yes && break
  9928. ;;
  9929. esac
  9930. fi
  9931. done
  9932. IFS="$lt_save_ifs"
  9933. else
  9934. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9935. fi
  9936. fi
  9937. LD="$lt_cv_path_LD"
  9938. if test -n "$LD"; then
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  9940. $as_echo "$LD" >&6; }
  9941. else
  9942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9943. $as_echo "no" >&6; }
  9944. fi
  9945. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  9946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  9947. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  9948. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  9949. $as_echo_n "(cached) " >&6
  9950. else
  9951. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9952. case `$LD -v 2>&1 </dev/null` in
  9953. *GNU* | *'with BFD'*)
  9954. lt_cv_prog_gnu_ld=yes
  9955. ;;
  9956. *)
  9957. lt_cv_prog_gnu_ld=no
  9958. ;;
  9959. esac
  9960. fi
  9961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  9962. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  9963. with_gnu_ld=$lt_cv_prog_gnu_ld
  9964. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9965. # archiving commands below assume that GNU ld is being used.
  9966. if test "$with_gnu_ld" = yes; then
  9967. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9968. 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'
  9969. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9970. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9971. # If archive_cmds runs LD, not CC, wlarc should be empty
  9972. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9973. # investigate it a little bit more. (MM)
  9974. wlarc='${wl}'
  9975. # ancient GNU ld didn't support --whole-archive et. al.
  9976. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9977. $GREP 'no-whole-archive' > /dev/null; then
  9978. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9979. else
  9980. whole_archive_flag_spec_CXX=
  9981. fi
  9982. else
  9983. with_gnu_ld=no
  9984. wlarc=
  9985. # A generic and very simple default shared library creation
  9986. # command for GNU C++ for the case where it uses the native
  9987. # linker, instead of GNU ld. If possible, this setting should
  9988. # overridden to take advantage of the native linker features on
  9989. # the platform it is being used on.
  9990. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9991. fi
  9992. # Commands to make compiler produce verbose output that lists
  9993. # what "hidden" libraries, object files and flags are used when
  9994. # linking a shared library.
  9995. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  9996. else
  9997. GXX=no
  9998. with_gnu_ld=no
  9999. wlarc=
  10000. fi
  10001. # PORTME: fill in a description of your system's C++ link characteristics
  10002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10003. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10004. ld_shlibs_CXX=yes
  10005. case $host_os in
  10006. aix3*)
  10007. # FIXME: insert proper C++ library support
  10008. ld_shlibs_CXX=no
  10009. ;;
  10010. aix[4-9]*)
  10011. if test "$host_cpu" = ia64; then
  10012. # On IA64, the linker does run time linking by default, so we don't
  10013. # have to do anything special.
  10014. aix_use_runtimelinking=no
  10015. exp_sym_flag='-Bexport'
  10016. no_entry_flag=""
  10017. else
  10018. aix_use_runtimelinking=no
  10019. # Test if we are trying to use run time linking or normal
  10020. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10021. # need to do runtime linking.
  10022. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10023. for ld_flag in $LDFLAGS; do
  10024. case $ld_flag in
  10025. *-brtl*)
  10026. aix_use_runtimelinking=yes
  10027. break
  10028. ;;
  10029. esac
  10030. done
  10031. ;;
  10032. esac
  10033. exp_sym_flag='-bexport'
  10034. no_entry_flag='-bnoentry'
  10035. fi
  10036. # When large executables or shared objects are built, AIX ld can
  10037. # have problems creating the table of contents. If linking a library
  10038. # or program results in "error TOC overflow" add -mminimal-toc to
  10039. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10040. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10041. archive_cmds_CXX=''
  10042. hardcode_direct_CXX=yes
  10043. hardcode_direct_absolute_CXX=yes
  10044. hardcode_libdir_separator_CXX=':'
  10045. link_all_deplibs_CXX=yes
  10046. file_list_spec_CXX='${wl}-f,'
  10047. if test "$GXX" = yes; then
  10048. case $host_os in aix4.[012]|aix4.[012].*)
  10049. # We only want to do this on AIX 4.2 and lower, the check
  10050. # below for broken collect2 doesn't work under 4.3+
  10051. collect2name=`${CC} -print-prog-name=collect2`
  10052. if test -f "$collect2name" &&
  10053. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10054. then
  10055. # We have reworked collect2
  10056. :
  10057. else
  10058. # We have old collect2
  10059. hardcode_direct_CXX=unsupported
  10060. # It fails to find uninstalled libraries when the uninstalled
  10061. # path is not listed in the libpath. Setting hardcode_minus_L
  10062. # to unsupported forces relinking
  10063. hardcode_minus_L_CXX=yes
  10064. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10065. hardcode_libdir_separator_CXX=
  10066. fi
  10067. esac
  10068. shared_flag='-shared'
  10069. if test "$aix_use_runtimelinking" = yes; then
  10070. shared_flag="$shared_flag "'${wl}-G'
  10071. fi
  10072. else
  10073. # not using gcc
  10074. if test "$host_cpu" = ia64; then
  10075. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10076. # chokes on -Wl,-G. The following line is correct:
  10077. shared_flag='-G'
  10078. else
  10079. if test "$aix_use_runtimelinking" = yes; then
  10080. shared_flag='${wl}-G'
  10081. else
  10082. shared_flag='${wl}-bM:SRE'
  10083. fi
  10084. fi
  10085. fi
  10086. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10087. # It seems that -bexpall does not export symbols beginning with
  10088. # underscore (_), so it is better to generate a list of symbols to
  10089. # export.
  10090. always_export_symbols_CXX=yes
  10091. if test "$aix_use_runtimelinking" = yes; then
  10092. # Warning - without using the other runtime loading flags (-brtl),
  10093. # -berok will link without error, but may produce a broken library.
  10094. allow_undefined_flag_CXX='-berok'
  10095. # Determine the default libpath from the value encoded in an empty
  10096. # executable.
  10097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10098. /* end confdefs.h. */
  10099. int
  10100. main ()
  10101. {
  10102. ;
  10103. return 0;
  10104. }
  10105. _ACEOF
  10106. if ac_fn_cxx_try_link "$LINENO"; then :
  10107. lt_aix_libpath_sed='
  10108. /Import File Strings/,/^$/ {
  10109. /^0/ {
  10110. s/^0 *\(.*\)$/\1/
  10111. p
  10112. }
  10113. }'
  10114. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10115. # Check for a 64-bit object if we didn't find anything.
  10116. if test -z "$aix_libpath"; then
  10117. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10118. fi
  10119. fi
  10120. rm -f core conftest.err conftest.$ac_objext \
  10121. conftest$ac_exeext conftest.$ac_ext
  10122. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10123. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10124. 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"
  10125. else
  10126. if test "$host_cpu" = ia64; then
  10127. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10128. allow_undefined_flag_CXX="-z nodefs"
  10129. 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"
  10130. else
  10131. # Determine the default libpath from the value encoded in an
  10132. # empty executable.
  10133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10134. /* end confdefs.h. */
  10135. int
  10136. main ()
  10137. {
  10138. ;
  10139. return 0;
  10140. }
  10141. _ACEOF
  10142. if ac_fn_cxx_try_link "$LINENO"; then :
  10143. lt_aix_libpath_sed='
  10144. /Import File Strings/,/^$/ {
  10145. /^0/ {
  10146. s/^0 *\(.*\)$/\1/
  10147. p
  10148. }
  10149. }'
  10150. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10151. # Check for a 64-bit object if we didn't find anything.
  10152. if test -z "$aix_libpath"; then
  10153. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10154. fi
  10155. fi
  10156. rm -f core conftest.err conftest.$ac_objext \
  10157. conftest$ac_exeext conftest.$ac_ext
  10158. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10159. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10160. # Warning - without using the other run time loading flags,
  10161. # -berok will link without error, but may produce a broken library.
  10162. no_undefined_flag_CXX=' ${wl}-bernotok'
  10163. allow_undefined_flag_CXX=' ${wl}-berok'
  10164. if test "$with_gnu_ld" = yes; then
  10165. # We only use this code for GNU lds that support --whole-archive.
  10166. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10167. else
  10168. # Exported symbols can be pulled into shared objects from archives
  10169. whole_archive_flag_spec_CXX='$convenience'
  10170. fi
  10171. archive_cmds_need_lc_CXX=yes
  10172. # This is similar to how AIX traditionally builds its shared
  10173. # libraries.
  10174. 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'
  10175. fi
  10176. fi
  10177. ;;
  10178. beos*)
  10179. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10180. allow_undefined_flag_CXX=unsupported
  10181. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10182. # support --undefined. This deserves some investigation. FIXME
  10183. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10184. else
  10185. ld_shlibs_CXX=no
  10186. fi
  10187. ;;
  10188. chorus*)
  10189. case $cc_basename in
  10190. *)
  10191. # FIXME: insert proper C++ library support
  10192. ld_shlibs_CXX=no
  10193. ;;
  10194. esac
  10195. ;;
  10196. cygwin* | mingw* | pw32* | cegcc*)
  10197. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10198. # as there is no search path for DLLs.
  10199. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10200. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10201. allow_undefined_flag_CXX=unsupported
  10202. always_export_symbols_CXX=no
  10203. enable_shared_with_static_runtimes_CXX=yes
  10204. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10205. 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'
  10206. # If the export-symbols file already is a .def file (1st line
  10207. # is EXPORTS), use it as is; otherwise, prepend...
  10208. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10209. cp $export_symbols $output_objdir/$soname.def;
  10210. else
  10211. echo EXPORTS > $output_objdir/$soname.def;
  10212. cat $export_symbols >> $output_objdir/$soname.def;
  10213. fi~
  10214. $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'
  10215. else
  10216. ld_shlibs_CXX=no
  10217. fi
  10218. ;;
  10219. darwin* | rhapsody*)
  10220. archive_cmds_need_lc_CXX=no
  10221. hardcode_direct_CXX=no
  10222. hardcode_automatic_CXX=yes
  10223. hardcode_shlibpath_var_CXX=unsupported
  10224. if test "$lt_cv_ld_force_load" = "yes"; then
  10225. 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\"`'
  10226. else
  10227. whole_archive_flag_spec_CXX=''
  10228. fi
  10229. link_all_deplibs_CXX=yes
  10230. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10231. case $cc_basename in
  10232. ifort*) _lt_dar_can_shared=yes ;;
  10233. *) _lt_dar_can_shared=$GCC ;;
  10234. esac
  10235. if test "$_lt_dar_can_shared" = "yes"; then
  10236. output_verbose_link_cmd=func_echo_all
  10237. 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}"
  10238. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10239. 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}"
  10240. 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}"
  10241. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10242. 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}"
  10243. 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}"
  10244. fi
  10245. else
  10246. ld_shlibs_CXX=no
  10247. fi
  10248. ;;
  10249. dgux*)
  10250. case $cc_basename in
  10251. ec++*)
  10252. # FIXME: insert proper C++ library support
  10253. ld_shlibs_CXX=no
  10254. ;;
  10255. ghcx*)
  10256. # Green Hills C++ Compiler
  10257. # FIXME: insert proper C++ library support
  10258. ld_shlibs_CXX=no
  10259. ;;
  10260. *)
  10261. # FIXME: insert proper C++ library support
  10262. ld_shlibs_CXX=no
  10263. ;;
  10264. esac
  10265. ;;
  10266. freebsd2.*)
  10267. # C++ shared libraries reported to be fairly broken before
  10268. # switch to ELF
  10269. ld_shlibs_CXX=no
  10270. ;;
  10271. freebsd-elf*)
  10272. archive_cmds_need_lc_CXX=no
  10273. ;;
  10274. freebsd* | dragonfly*)
  10275. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10276. # conventions
  10277. ld_shlibs_CXX=yes
  10278. ;;
  10279. gnu*)
  10280. ;;
  10281. haiku*)
  10282. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10283. link_all_deplibs_CXX=yes
  10284. ;;
  10285. hpux9*)
  10286. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10287. hardcode_libdir_separator_CXX=:
  10288. export_dynamic_flag_spec_CXX='${wl}-E'
  10289. hardcode_direct_CXX=yes
  10290. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10291. # but as the default
  10292. # location of the library.
  10293. case $cc_basename in
  10294. CC*)
  10295. # FIXME: insert proper C++ library support
  10296. ld_shlibs_CXX=no
  10297. ;;
  10298. aCC*)
  10299. 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'
  10300. # Commands to make compiler produce verbose output that lists
  10301. # what "hidden" libraries, object files and flags are used when
  10302. # linking a shared library.
  10303. #
  10304. # There doesn't appear to be a way to prevent this compiler from
  10305. # explicitly linking system object files so we need to strip them
  10306. # from the output so that they don't get included in the library
  10307. # dependencies.
  10308. 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"'
  10309. ;;
  10310. *)
  10311. if test "$GXX" = yes; then
  10312. 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'
  10313. else
  10314. # FIXME: insert proper C++ library support
  10315. ld_shlibs_CXX=no
  10316. fi
  10317. ;;
  10318. esac
  10319. ;;
  10320. hpux10*|hpux11*)
  10321. if test $with_gnu_ld = no; then
  10322. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10323. hardcode_libdir_separator_CXX=:
  10324. case $host_cpu in
  10325. hppa*64*|ia64*)
  10326. ;;
  10327. *)
  10328. export_dynamic_flag_spec_CXX='${wl}-E'
  10329. ;;
  10330. esac
  10331. fi
  10332. case $host_cpu in
  10333. hppa*64*|ia64*)
  10334. hardcode_direct_CXX=no
  10335. hardcode_shlibpath_var_CXX=no
  10336. ;;
  10337. *)
  10338. hardcode_direct_CXX=yes
  10339. hardcode_direct_absolute_CXX=yes
  10340. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10341. # but as the default
  10342. # location of the library.
  10343. ;;
  10344. esac
  10345. case $cc_basename in
  10346. CC*)
  10347. # FIXME: insert proper C++ library support
  10348. ld_shlibs_CXX=no
  10349. ;;
  10350. aCC*)
  10351. case $host_cpu in
  10352. hppa*64*)
  10353. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10354. ;;
  10355. ia64*)
  10356. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10357. ;;
  10358. *)
  10359. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10360. ;;
  10361. esac
  10362. # Commands to make compiler produce verbose output that lists
  10363. # what "hidden" libraries, object files and flags are used when
  10364. # linking a shared library.
  10365. #
  10366. # There doesn't appear to be a way to prevent this compiler from
  10367. # explicitly linking system object files so we need to strip them
  10368. # from the output so that they don't get included in the library
  10369. # dependencies.
  10370. 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"'
  10371. ;;
  10372. *)
  10373. if test "$GXX" = yes; then
  10374. if test $with_gnu_ld = no; then
  10375. case $host_cpu in
  10376. hppa*64*)
  10377. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10378. ;;
  10379. ia64*)
  10380. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10381. ;;
  10382. *)
  10383. 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'
  10384. ;;
  10385. esac
  10386. fi
  10387. else
  10388. # FIXME: insert proper C++ library support
  10389. ld_shlibs_CXX=no
  10390. fi
  10391. ;;
  10392. esac
  10393. ;;
  10394. interix[3-9]*)
  10395. hardcode_direct_CXX=no
  10396. hardcode_shlibpath_var_CXX=no
  10397. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10398. export_dynamic_flag_spec_CXX='${wl}-E'
  10399. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10400. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10401. # default) and relocated if they conflict, which is a slow very memory
  10402. # consuming and fragmenting process. To avoid this, we pick a random,
  10403. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10404. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10405. 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'
  10406. 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'
  10407. ;;
  10408. irix5* | irix6*)
  10409. case $cc_basename in
  10410. CC*)
  10411. # SGI C++
  10412. 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'
  10413. # Archives containing C++ object files must be created using
  10414. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10415. # necessary to make sure instantiated templates are included
  10416. # in the archive.
  10417. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10418. ;;
  10419. *)
  10420. if test "$GXX" = yes; then
  10421. if test "$with_gnu_ld" = no; then
  10422. 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'
  10423. else
  10424. 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'
  10425. fi
  10426. fi
  10427. link_all_deplibs_CXX=yes
  10428. ;;
  10429. esac
  10430. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10431. hardcode_libdir_separator_CXX=:
  10432. inherit_rpath_CXX=yes
  10433. ;;
  10434. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10435. case $cc_basename in
  10436. KCC*)
  10437. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10438. # KCC will only create a shared library if the output file
  10439. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10440. # to its proper name (with version) after linking.
  10441. 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'
  10442. 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'
  10443. # Commands to make compiler produce verbose output that lists
  10444. # what "hidden" libraries, object files and flags are used when
  10445. # linking a shared library.
  10446. #
  10447. # There doesn't appear to be a way to prevent this compiler from
  10448. # explicitly linking system object files so we need to strip them
  10449. # from the output so that they don't get included in the library
  10450. # dependencies.
  10451. 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"'
  10452. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10453. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10454. # Archives containing C++ object files must be created using
  10455. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10456. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10457. ;;
  10458. icpc* | ecpc* )
  10459. # Intel C++
  10460. with_gnu_ld=yes
  10461. # version 8.0 and above of icpc choke on multiply defined symbols
  10462. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10463. # earlier do not add the objects themselves.
  10464. case `$CC -V 2>&1` in
  10465. *"Version 7."*)
  10466. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10467. 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'
  10468. ;;
  10469. *) # Version 8.0 or newer
  10470. tmp_idyn=
  10471. case $host_cpu in
  10472. ia64*) tmp_idyn=' -i_dynamic';;
  10473. esac
  10474. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10475. 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'
  10476. ;;
  10477. esac
  10478. archive_cmds_need_lc_CXX=no
  10479. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10480. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10481. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10482. ;;
  10483. pgCC* | pgcpp*)
  10484. # Portland Group C++ compiler
  10485. case `$CC -V` in
  10486. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  10487. prelink_cmds_CXX='tpldir=Template.dir~
  10488. rm -rf $tpldir~
  10489. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10490. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10491. old_archive_cmds_CXX='tpldir=Template.dir~
  10492. rm -rf $tpldir~
  10493. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10494. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10495. $RANLIB $oldlib'
  10496. archive_cmds_CXX='tpldir=Template.dir~
  10497. rm -rf $tpldir~
  10498. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10499. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10500. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10501. rm -rf $tpldir~
  10502. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10503. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10504. ;;
  10505. *) # Version 6 and above use weak symbols
  10506. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10507. 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'
  10508. ;;
  10509. esac
  10510. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10511. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10512. 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'
  10513. ;;
  10514. cxx*)
  10515. # Compaq C++
  10516. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10517. 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'
  10518. runpath_var=LD_RUN_PATH
  10519. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10520. hardcode_libdir_separator_CXX=:
  10521. # Commands to make compiler produce verbose output that lists
  10522. # what "hidden" libraries, object files and flags are used when
  10523. # linking a shared library.
  10524. #
  10525. # There doesn't appear to be a way to prevent this compiler from
  10526. # explicitly linking system object files so we need to strip them
  10527. # from the output so that they don't get included in the library
  10528. # dependencies.
  10529. 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'
  10530. ;;
  10531. xl* | mpixl* | bgxl*)
  10532. # IBM XL 8.0 on PPC, with GNU ld
  10533. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10534. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10535. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10536. if test "x$supports_anon_versioning" = xyes; then
  10537. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10538. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10539. echo "local: *; };" >> $output_objdir/$libname.ver~
  10540. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10541. fi
  10542. ;;
  10543. *)
  10544. case `$CC -V 2>&1 | sed 5q` in
  10545. *Sun\ C*)
  10546. # Sun C++ 5.9
  10547. no_undefined_flag_CXX=' -zdefs'
  10548. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10549. 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'
  10550. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10551. 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'
  10552. compiler_needs_object_CXX=yes
  10553. # Not sure whether something based on
  10554. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10555. # would be better.
  10556. output_verbose_link_cmd='func_echo_all'
  10557. # Archives containing C++ object files must be created using
  10558. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10559. # necessary to make sure instantiated templates are included
  10560. # in the archive.
  10561. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10562. ;;
  10563. esac
  10564. ;;
  10565. esac
  10566. ;;
  10567. lynxos*)
  10568. # FIXME: insert proper C++ library support
  10569. ld_shlibs_CXX=no
  10570. ;;
  10571. m88k*)
  10572. # FIXME: insert proper C++ library support
  10573. ld_shlibs_CXX=no
  10574. ;;
  10575. mvs*)
  10576. case $cc_basename in
  10577. cxx*)
  10578. # FIXME: insert proper C++ library support
  10579. ld_shlibs_CXX=no
  10580. ;;
  10581. *)
  10582. # FIXME: insert proper C++ library support
  10583. ld_shlibs_CXX=no
  10584. ;;
  10585. esac
  10586. ;;
  10587. netbsd*)
  10588. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10589. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10590. wlarc=
  10591. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10592. hardcode_direct_CXX=yes
  10593. hardcode_shlibpath_var_CXX=no
  10594. fi
  10595. # Workaround some broken pre-1.5 toolchains
  10596. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10597. ;;
  10598. *nto* | *qnx*)
  10599. ld_shlibs_CXX=yes
  10600. ;;
  10601. openbsd2*)
  10602. # C++ shared libraries are fairly broken
  10603. ld_shlibs_CXX=no
  10604. ;;
  10605. openbsd*)
  10606. if test -f /usr/libexec/ld.so; then
  10607. hardcode_direct_CXX=yes
  10608. hardcode_shlibpath_var_CXX=no
  10609. hardcode_direct_absolute_CXX=yes
  10610. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10611. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10612. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10613. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10614. export_dynamic_flag_spec_CXX='${wl}-E'
  10615. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10616. fi
  10617. output_verbose_link_cmd=func_echo_all
  10618. else
  10619. ld_shlibs_CXX=no
  10620. fi
  10621. ;;
  10622. osf3* | osf4* | osf5*)
  10623. case $cc_basename in
  10624. KCC*)
  10625. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10626. # KCC will only create a shared library if the output file
  10627. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10628. # to its proper name (with version) after linking.
  10629. 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'
  10630. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10631. hardcode_libdir_separator_CXX=:
  10632. # Archives containing C++ object files must be created using
  10633. # the KAI C++ compiler.
  10634. case $host in
  10635. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10636. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10637. esac
  10638. ;;
  10639. RCC*)
  10640. # Rational C++ 2.4.1
  10641. # FIXME: insert proper C++ library support
  10642. ld_shlibs_CXX=no
  10643. ;;
  10644. cxx*)
  10645. case $host in
  10646. osf3*)
  10647. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10648. 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'
  10649. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10650. ;;
  10651. *)
  10652. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10653. 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'
  10654. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10655. echo "-hidden">> $lib.exp~
  10656. $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~
  10657. $RM $lib.exp'
  10658. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10659. ;;
  10660. esac
  10661. hardcode_libdir_separator_CXX=:
  10662. # Commands to make compiler produce verbose output that lists
  10663. # what "hidden" libraries, object files and flags are used when
  10664. # linking a shared library.
  10665. #
  10666. # There doesn't appear to be a way to prevent this compiler from
  10667. # explicitly linking system object files so we need to strip them
  10668. # from the output so that they don't get included in the library
  10669. # dependencies.
  10670. 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"'
  10671. ;;
  10672. *)
  10673. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10674. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10675. case $host in
  10676. osf3*)
  10677. 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'
  10678. ;;
  10679. *)
  10680. 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'
  10681. ;;
  10682. esac
  10683. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10684. hardcode_libdir_separator_CXX=:
  10685. # Commands to make compiler produce verbose output that lists
  10686. # what "hidden" libraries, object files and flags are used when
  10687. # linking a shared library.
  10688. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10689. else
  10690. # FIXME: insert proper C++ library support
  10691. ld_shlibs_CXX=no
  10692. fi
  10693. ;;
  10694. esac
  10695. ;;
  10696. psos*)
  10697. # FIXME: insert proper C++ library support
  10698. ld_shlibs_CXX=no
  10699. ;;
  10700. sunos4*)
  10701. case $cc_basename in
  10702. CC*)
  10703. # Sun C++ 4.x
  10704. # FIXME: insert proper C++ library support
  10705. ld_shlibs_CXX=no
  10706. ;;
  10707. lcc*)
  10708. # Lucid
  10709. # FIXME: insert proper C++ library support
  10710. ld_shlibs_CXX=no
  10711. ;;
  10712. *)
  10713. # FIXME: insert proper C++ library support
  10714. ld_shlibs_CXX=no
  10715. ;;
  10716. esac
  10717. ;;
  10718. solaris*)
  10719. case $cc_basename in
  10720. CC*)
  10721. # Sun C++ 4.2, 5.x and Centerline C++
  10722. archive_cmds_need_lc_CXX=yes
  10723. no_undefined_flag_CXX=' -zdefs'
  10724. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10725. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10726. $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'
  10727. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10728. hardcode_shlibpath_var_CXX=no
  10729. case $host_os in
  10730. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10731. *)
  10732. # The compiler driver will combine and reorder linker options,
  10733. # but understands `-z linker_flag'.
  10734. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10735. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10736. ;;
  10737. esac
  10738. link_all_deplibs_CXX=yes
  10739. output_verbose_link_cmd='func_echo_all'
  10740. # Archives containing C++ object files must be created using
  10741. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10742. # necessary to make sure instantiated templates are included
  10743. # in the archive.
  10744. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10745. ;;
  10746. gcx*)
  10747. # Green Hills C++ Compiler
  10748. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10749. # The C++ compiler must be used to create the archive.
  10750. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10751. ;;
  10752. *)
  10753. # GNU C++ compiler with Solaris linker
  10754. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10755. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10756. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10757. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10758. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10759. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10760. # Commands to make compiler produce verbose output that lists
  10761. # what "hidden" libraries, object files and flags are used when
  10762. # linking a shared library.
  10763. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10764. else
  10765. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10766. # platform.
  10767. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10768. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10769. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10770. # Commands to make compiler produce verbose output that lists
  10771. # what "hidden" libraries, object files and flags are used when
  10772. # linking a shared library.
  10773. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10774. fi
  10775. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10776. case $host_os in
  10777. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10778. *)
  10779. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10780. ;;
  10781. esac
  10782. fi
  10783. ;;
  10784. esac
  10785. ;;
  10786. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10787. no_undefined_flag_CXX='${wl}-z,text'
  10788. archive_cmds_need_lc_CXX=no
  10789. hardcode_shlibpath_var_CXX=no
  10790. runpath_var='LD_RUN_PATH'
  10791. case $cc_basename in
  10792. CC*)
  10793. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10794. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10795. ;;
  10796. *)
  10797. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10798. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10799. ;;
  10800. esac
  10801. ;;
  10802. sysv5* | sco3.2v5* | sco5v6*)
  10803. # Note: We can NOT use -z defs as we might desire, because we do not
  10804. # link with -lc, and that would cause any symbols used from libc to
  10805. # always be unresolved, which means just about no library would
  10806. # ever link correctly. If we're not using GNU ld we use -z text
  10807. # though, which does catch some bad symbols but isn't as heavy-handed
  10808. # as -z defs.
  10809. no_undefined_flag_CXX='${wl}-z,text'
  10810. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10811. archive_cmds_need_lc_CXX=no
  10812. hardcode_shlibpath_var_CXX=no
  10813. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  10814. hardcode_libdir_separator_CXX=':'
  10815. link_all_deplibs_CXX=yes
  10816. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10817. runpath_var='LD_RUN_PATH'
  10818. case $cc_basename in
  10819. CC*)
  10820. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10821. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10822. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  10823. '"$old_archive_cmds_CXX"
  10824. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  10825. '"$reload_cmds_CXX"
  10826. ;;
  10827. *)
  10828. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10829. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10830. ;;
  10831. esac
  10832. ;;
  10833. tandem*)
  10834. case $cc_basename in
  10835. NCC*)
  10836. # NonStop-UX NCC 3.20
  10837. # FIXME: insert proper C++ library support
  10838. ld_shlibs_CXX=no
  10839. ;;
  10840. *)
  10841. # FIXME: insert proper C++ library support
  10842. ld_shlibs_CXX=no
  10843. ;;
  10844. esac
  10845. ;;
  10846. vxworks*)
  10847. # FIXME: insert proper C++ library support
  10848. ld_shlibs_CXX=no
  10849. ;;
  10850. *)
  10851. # FIXME: insert proper C++ library support
  10852. ld_shlibs_CXX=no
  10853. ;;
  10854. esac
  10855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  10856. $as_echo "$ld_shlibs_CXX" >&6; }
  10857. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10858. GCC_CXX="$GXX"
  10859. LD_CXX="$LD"
  10860. ## CAVEAT EMPTOR:
  10861. ## There is no encapsulation within the following macros, do not change
  10862. ## the running order or otherwise move them around unless you know exactly
  10863. ## what you are doing...
  10864. # Dependencies to place before and after the object being linked:
  10865. predep_objects_CXX=
  10866. postdep_objects_CXX=
  10867. predeps_CXX=
  10868. postdeps_CXX=
  10869. compiler_lib_search_path_CXX=
  10870. cat > conftest.$ac_ext <<_LT_EOF
  10871. class Foo
  10872. {
  10873. public:
  10874. Foo (void) { a = 0; }
  10875. private:
  10876. int a;
  10877. };
  10878. _LT_EOF
  10879. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10880. (eval $ac_compile) 2>&5
  10881. ac_status=$?
  10882. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10883. test $ac_status = 0; }; then
  10884. # Parse the compiler output and extract the necessary
  10885. # objects, libraries and library flags.
  10886. # Sentinel used to keep track of whether or not we are before
  10887. # the conftest object file.
  10888. pre_test_object_deps_done=no
  10889. for p in `eval "$output_verbose_link_cmd"`; do
  10890. case $p in
  10891. -L* | -R* | -l*)
  10892. # Some compilers place space between "-{L,R}" and the path.
  10893. # Remove the space.
  10894. if test $p = "-L" ||
  10895. test $p = "-R"; then
  10896. prev=$p
  10897. continue
  10898. else
  10899. prev=
  10900. fi
  10901. if test "$pre_test_object_deps_done" = no; then
  10902. case $p in
  10903. -L* | -R*)
  10904. # Internal compiler library paths should come after those
  10905. # provided the user. The postdeps already come after the
  10906. # user supplied libs so there is no need to process them.
  10907. if test -z "$compiler_lib_search_path_CXX"; then
  10908. compiler_lib_search_path_CXX="${prev}${p}"
  10909. else
  10910. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10911. fi
  10912. ;;
  10913. # The "-l" case would never come before the object being
  10914. # linked, so don't bother handling this case.
  10915. esac
  10916. else
  10917. if test -z "$postdeps_CXX"; then
  10918. postdeps_CXX="${prev}${p}"
  10919. else
  10920. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10921. fi
  10922. fi
  10923. ;;
  10924. *.$objext)
  10925. # This assumes that the test object file only shows up
  10926. # once in the compiler output.
  10927. if test "$p" = "conftest.$objext"; then
  10928. pre_test_object_deps_done=yes
  10929. continue
  10930. fi
  10931. if test "$pre_test_object_deps_done" = no; then
  10932. if test -z "$predep_objects_CXX"; then
  10933. predep_objects_CXX="$p"
  10934. else
  10935. predep_objects_CXX="$predep_objects_CXX $p"
  10936. fi
  10937. else
  10938. if test -z "$postdep_objects_CXX"; then
  10939. postdep_objects_CXX="$p"
  10940. else
  10941. postdep_objects_CXX="$postdep_objects_CXX $p"
  10942. fi
  10943. fi
  10944. ;;
  10945. *) ;; # Ignore the rest.
  10946. esac
  10947. done
  10948. # Clean up.
  10949. rm -f a.out a.exe
  10950. else
  10951. echo "libtool.m4: error: problem compiling CXX test program"
  10952. fi
  10953. $RM -f confest.$objext
  10954. # PORTME: override above test on systems where it is broken
  10955. case $host_os in
  10956. interix[3-9]*)
  10957. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10958. # hack all around it, let's just trust "g++" to DTRT.
  10959. predep_objects_CXX=
  10960. postdep_objects_CXX=
  10961. postdeps_CXX=
  10962. ;;
  10963. linux*)
  10964. case `$CC -V 2>&1 | sed 5q` in
  10965. *Sun\ C*)
  10966. # Sun C++ 5.9
  10967. # The more standards-conforming stlport4 library is
  10968. # incompatible with the Cstd library. Avoid specifying
  10969. # it if it's in CXXFLAGS. Ignore libCrun as
  10970. # -library=stlport4 depends on it.
  10971. case " $CXX $CXXFLAGS " in
  10972. *" -library=stlport4 "*)
  10973. solaris_use_stlport4=yes
  10974. ;;
  10975. esac
  10976. if test "$solaris_use_stlport4" != yes; then
  10977. postdeps_CXX='-library=Cstd -library=Crun'
  10978. fi
  10979. ;;
  10980. esac
  10981. ;;
  10982. solaris*)
  10983. case $cc_basename in
  10984. CC*)
  10985. # The more standards-conforming stlport4 library is
  10986. # incompatible with the Cstd library. Avoid specifying
  10987. # it if it's in CXXFLAGS. Ignore libCrun as
  10988. # -library=stlport4 depends on it.
  10989. case " $CXX $CXXFLAGS " in
  10990. *" -library=stlport4 "*)
  10991. solaris_use_stlport4=yes
  10992. ;;
  10993. esac
  10994. # Adding this requires a known-good setup of shared libraries for
  10995. # Sun compiler versions before 5.6, else PIC objects from an old
  10996. # archive will be linked into the output, leading to subtle bugs.
  10997. if test "$solaris_use_stlport4" != yes; then
  10998. postdeps_CXX='-library=Cstd -library=Crun'
  10999. fi
  11000. ;;
  11001. esac
  11002. ;;
  11003. esac
  11004. case " $postdeps_CXX " in
  11005. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11006. esac
  11007. compiler_lib_search_dirs_CXX=
  11008. if test -n "${compiler_lib_search_path_CXX}"; then
  11009. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11010. fi
  11011. lt_prog_compiler_wl_CXX=
  11012. lt_prog_compiler_pic_CXX=
  11013. lt_prog_compiler_static_CXX=
  11014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11015. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11016. # C++ specific cases for pic, static, wl, etc.
  11017. if test "$GXX" = yes; then
  11018. lt_prog_compiler_wl_CXX='-Wl,'
  11019. lt_prog_compiler_static_CXX='-static'
  11020. case $host_os in
  11021. aix*)
  11022. # All AIX code is PIC.
  11023. if test "$host_cpu" = ia64; then
  11024. # AIX 5 now supports IA64 processor
  11025. lt_prog_compiler_static_CXX='-Bstatic'
  11026. fi
  11027. lt_prog_compiler_pic_CXX='-fPIC'
  11028. ;;
  11029. amigaos*)
  11030. case $host_cpu in
  11031. powerpc)
  11032. # see comment about AmigaOS4 .so support
  11033. lt_prog_compiler_pic_CXX='-fPIC'
  11034. ;;
  11035. m68k)
  11036. # FIXME: we need at least 68020 code to build shared libraries, but
  11037. # adding the `-m68020' flag to GCC prevents building anything better,
  11038. # like `-m68040'.
  11039. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11040. ;;
  11041. esac
  11042. ;;
  11043. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11044. # PIC is the default for these OSes.
  11045. ;;
  11046. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11047. # This hack is so that the source file can tell whether it is being
  11048. # built for inclusion in a dll (and should export symbols for example).
  11049. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11050. # (--disable-auto-import) libraries
  11051. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11052. ;;
  11053. darwin* | rhapsody*)
  11054. # PIC is the default on this platform
  11055. # Common symbols not allowed in MH_DYLIB files
  11056. lt_prog_compiler_pic_CXX='-fno-common'
  11057. ;;
  11058. *djgpp*)
  11059. # DJGPP does not support shared libraries at all
  11060. lt_prog_compiler_pic_CXX=
  11061. ;;
  11062. haiku*)
  11063. # PIC is the default for Haiku.
  11064. # The "-static" flag exists, but is broken.
  11065. lt_prog_compiler_static_CXX=
  11066. ;;
  11067. interix[3-9]*)
  11068. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11069. # Instead, we relocate shared libraries at runtime.
  11070. ;;
  11071. sysv4*MP*)
  11072. if test -d /usr/nec; then
  11073. lt_prog_compiler_pic_CXX=-Kconform_pic
  11074. fi
  11075. ;;
  11076. hpux*)
  11077. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11078. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11079. # sets the default TLS model and affects inlining.
  11080. case $host_cpu in
  11081. hppa*64*)
  11082. ;;
  11083. *)
  11084. lt_prog_compiler_pic_CXX='-fPIC'
  11085. ;;
  11086. esac
  11087. ;;
  11088. *qnx* | *nto*)
  11089. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11090. # it will coredump.
  11091. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11092. ;;
  11093. *)
  11094. lt_prog_compiler_pic_CXX='-fPIC'
  11095. ;;
  11096. esac
  11097. else
  11098. case $host_os in
  11099. aix[4-9]*)
  11100. # All AIX code is PIC.
  11101. if test "$host_cpu" = ia64; then
  11102. # AIX 5 now supports IA64 processor
  11103. lt_prog_compiler_static_CXX='-Bstatic'
  11104. else
  11105. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11106. fi
  11107. ;;
  11108. chorus*)
  11109. case $cc_basename in
  11110. cxch68*)
  11111. # Green Hills C++ Compiler
  11112. # _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"
  11113. ;;
  11114. esac
  11115. ;;
  11116. dgux*)
  11117. case $cc_basename in
  11118. ec++*)
  11119. lt_prog_compiler_pic_CXX='-KPIC'
  11120. ;;
  11121. ghcx*)
  11122. # Green Hills C++ Compiler
  11123. lt_prog_compiler_pic_CXX='-pic'
  11124. ;;
  11125. *)
  11126. ;;
  11127. esac
  11128. ;;
  11129. freebsd* | dragonfly*)
  11130. # FreeBSD uses GNU C++
  11131. ;;
  11132. hpux9* | hpux10* | hpux11*)
  11133. case $cc_basename in
  11134. CC*)
  11135. lt_prog_compiler_wl_CXX='-Wl,'
  11136. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11137. if test "$host_cpu" != ia64; then
  11138. lt_prog_compiler_pic_CXX='+Z'
  11139. fi
  11140. ;;
  11141. aCC*)
  11142. lt_prog_compiler_wl_CXX='-Wl,'
  11143. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11144. case $host_cpu in
  11145. hppa*64*|ia64*)
  11146. # +Z the default
  11147. ;;
  11148. *)
  11149. lt_prog_compiler_pic_CXX='+Z'
  11150. ;;
  11151. esac
  11152. ;;
  11153. *)
  11154. ;;
  11155. esac
  11156. ;;
  11157. interix*)
  11158. # This is c89, which is MS Visual C++ (no shared libs)
  11159. # Anyone wants to do a port?
  11160. ;;
  11161. irix5* | irix6* | nonstopux*)
  11162. case $cc_basename in
  11163. CC*)
  11164. lt_prog_compiler_wl_CXX='-Wl,'
  11165. lt_prog_compiler_static_CXX='-non_shared'
  11166. # CC pic flag -KPIC is the default.
  11167. ;;
  11168. *)
  11169. ;;
  11170. esac
  11171. ;;
  11172. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11173. case $cc_basename in
  11174. KCC*)
  11175. # KAI C++ Compiler
  11176. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11177. lt_prog_compiler_pic_CXX='-fPIC'
  11178. ;;
  11179. ecpc* )
  11180. # old Intel C++ for x86_64 which still supported -KPIC.
  11181. lt_prog_compiler_wl_CXX='-Wl,'
  11182. lt_prog_compiler_pic_CXX='-KPIC'
  11183. lt_prog_compiler_static_CXX='-static'
  11184. ;;
  11185. icpc* )
  11186. # Intel C++, used to be incompatible with GCC.
  11187. # ICC 10 doesn't accept -KPIC any more.
  11188. lt_prog_compiler_wl_CXX='-Wl,'
  11189. lt_prog_compiler_pic_CXX='-fPIC'
  11190. lt_prog_compiler_static_CXX='-static'
  11191. ;;
  11192. pgCC* | pgcpp*)
  11193. # Portland Group C++ compiler
  11194. lt_prog_compiler_wl_CXX='-Wl,'
  11195. lt_prog_compiler_pic_CXX='-fpic'
  11196. lt_prog_compiler_static_CXX='-Bstatic'
  11197. ;;
  11198. cxx*)
  11199. # Compaq C++
  11200. # Make sure the PIC flag is empty. It appears that all Alpha
  11201. # Linux and Compaq Tru64 Unix objects are PIC.
  11202. lt_prog_compiler_pic_CXX=
  11203. lt_prog_compiler_static_CXX='-non_shared'
  11204. ;;
  11205. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11206. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11207. lt_prog_compiler_wl_CXX='-Wl,'
  11208. lt_prog_compiler_pic_CXX='-qpic'
  11209. lt_prog_compiler_static_CXX='-qstaticlink'
  11210. ;;
  11211. *)
  11212. case `$CC -V 2>&1 | sed 5q` in
  11213. *Sun\ C*)
  11214. # Sun C++ 5.9
  11215. lt_prog_compiler_pic_CXX='-KPIC'
  11216. lt_prog_compiler_static_CXX='-Bstatic'
  11217. lt_prog_compiler_wl_CXX='-Qoption ld '
  11218. ;;
  11219. esac
  11220. ;;
  11221. esac
  11222. ;;
  11223. lynxos*)
  11224. ;;
  11225. m88k*)
  11226. ;;
  11227. mvs*)
  11228. case $cc_basename in
  11229. cxx*)
  11230. lt_prog_compiler_pic_CXX='-W c,exportall'
  11231. ;;
  11232. *)
  11233. ;;
  11234. esac
  11235. ;;
  11236. netbsd*)
  11237. ;;
  11238. *qnx* | *nto*)
  11239. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11240. # it will coredump.
  11241. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11242. ;;
  11243. osf3* | osf4* | osf5*)
  11244. case $cc_basename in
  11245. KCC*)
  11246. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11247. ;;
  11248. RCC*)
  11249. # Rational C++ 2.4.1
  11250. lt_prog_compiler_pic_CXX='-pic'
  11251. ;;
  11252. cxx*)
  11253. # Digital/Compaq C++
  11254. lt_prog_compiler_wl_CXX='-Wl,'
  11255. # Make sure the PIC flag is empty. It appears that all Alpha
  11256. # Linux and Compaq Tru64 Unix objects are PIC.
  11257. lt_prog_compiler_pic_CXX=
  11258. lt_prog_compiler_static_CXX='-non_shared'
  11259. ;;
  11260. *)
  11261. ;;
  11262. esac
  11263. ;;
  11264. psos*)
  11265. ;;
  11266. solaris*)
  11267. case $cc_basename in
  11268. CC*)
  11269. # Sun C++ 4.2, 5.x and Centerline C++
  11270. lt_prog_compiler_pic_CXX='-KPIC'
  11271. lt_prog_compiler_static_CXX='-Bstatic'
  11272. lt_prog_compiler_wl_CXX='-Qoption ld '
  11273. ;;
  11274. gcx*)
  11275. # Green Hills C++ Compiler
  11276. lt_prog_compiler_pic_CXX='-PIC'
  11277. ;;
  11278. *)
  11279. ;;
  11280. esac
  11281. ;;
  11282. sunos4*)
  11283. case $cc_basename in
  11284. CC*)
  11285. # Sun C++ 4.x
  11286. lt_prog_compiler_pic_CXX='-pic'
  11287. lt_prog_compiler_static_CXX='-Bstatic'
  11288. ;;
  11289. lcc*)
  11290. # Lucid
  11291. lt_prog_compiler_pic_CXX='-pic'
  11292. ;;
  11293. *)
  11294. ;;
  11295. esac
  11296. ;;
  11297. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11298. case $cc_basename in
  11299. CC*)
  11300. lt_prog_compiler_wl_CXX='-Wl,'
  11301. lt_prog_compiler_pic_CXX='-KPIC'
  11302. lt_prog_compiler_static_CXX='-Bstatic'
  11303. ;;
  11304. esac
  11305. ;;
  11306. tandem*)
  11307. case $cc_basename in
  11308. NCC*)
  11309. # NonStop-UX NCC 3.20
  11310. lt_prog_compiler_pic_CXX='-KPIC'
  11311. ;;
  11312. *)
  11313. ;;
  11314. esac
  11315. ;;
  11316. vxworks*)
  11317. ;;
  11318. *)
  11319. lt_prog_compiler_can_build_shared_CXX=no
  11320. ;;
  11321. esac
  11322. fi
  11323. case $host_os in
  11324. # For platforms which do not support PIC, -DPIC is meaningless:
  11325. *djgpp*)
  11326. lt_prog_compiler_pic_CXX=
  11327. ;;
  11328. *)
  11329. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11330. ;;
  11331. esac
  11332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11333. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11334. #
  11335. # Check to make sure the PIC flag actually works.
  11336. #
  11337. if test -n "$lt_prog_compiler_pic_CXX"; then
  11338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11339. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11340. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11341. $as_echo_n "(cached) " >&6
  11342. else
  11343. lt_cv_prog_compiler_pic_works_CXX=no
  11344. ac_outfile=conftest.$ac_objext
  11345. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11346. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11347. # Insert the option either (1) after the last *FLAGS variable, or
  11348. # (2) before a word containing "conftest.", or (3) at the end.
  11349. # Note that $ac_compile itself does not contain backslashes and begins
  11350. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11351. # The option is referenced via a variable to avoid confusing sed.
  11352. lt_compile=`echo "$ac_compile" | $SED \
  11353. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11354. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11355. -e 's:$: $lt_compiler_flag:'`
  11356. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11357. (eval "$lt_compile" 2>conftest.err)
  11358. ac_status=$?
  11359. cat conftest.err >&5
  11360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11361. if (exit $ac_status) && test -s "$ac_outfile"; then
  11362. # The compiler can only warn and ignore the option if not recognized
  11363. # So say no if there are warnings other than the usual output.
  11364. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11365. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11366. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11367. lt_cv_prog_compiler_pic_works_CXX=yes
  11368. fi
  11369. fi
  11370. $RM conftest*
  11371. fi
  11372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11373. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11374. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11375. case $lt_prog_compiler_pic_CXX in
  11376. "" | " "*) ;;
  11377. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11378. esac
  11379. else
  11380. lt_prog_compiler_pic_CXX=
  11381. lt_prog_compiler_can_build_shared_CXX=no
  11382. fi
  11383. fi
  11384. #
  11385. # Check to make sure the static flag actually works.
  11386. #
  11387. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11389. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11390. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11391. $as_echo_n "(cached) " >&6
  11392. else
  11393. lt_cv_prog_compiler_static_works_CXX=no
  11394. save_LDFLAGS="$LDFLAGS"
  11395. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11396. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11397. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11398. # The linker can only warn and ignore the option if not recognized
  11399. # So say no if there are warnings
  11400. if test -s conftest.err; then
  11401. # Append any errors to the config.log.
  11402. cat conftest.err 1>&5
  11403. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11404. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11405. if diff conftest.exp conftest.er2 >/dev/null; then
  11406. lt_cv_prog_compiler_static_works_CXX=yes
  11407. fi
  11408. else
  11409. lt_cv_prog_compiler_static_works_CXX=yes
  11410. fi
  11411. fi
  11412. $RM -r conftest*
  11413. LDFLAGS="$save_LDFLAGS"
  11414. fi
  11415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11416. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11417. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11418. :
  11419. else
  11420. lt_prog_compiler_static_CXX=
  11421. fi
  11422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11423. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11424. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11425. $as_echo_n "(cached) " >&6
  11426. else
  11427. lt_cv_prog_compiler_c_o_CXX=no
  11428. $RM -r conftest 2>/dev/null
  11429. mkdir conftest
  11430. cd conftest
  11431. mkdir out
  11432. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11433. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11434. # Insert the option either (1) after the last *FLAGS variable, or
  11435. # (2) before a word containing "conftest.", or (3) at the end.
  11436. # Note that $ac_compile itself does not contain backslashes and begins
  11437. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11438. lt_compile=`echo "$ac_compile" | $SED \
  11439. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11440. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11441. -e 's:$: $lt_compiler_flag:'`
  11442. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11443. (eval "$lt_compile" 2>out/conftest.err)
  11444. ac_status=$?
  11445. cat out/conftest.err >&5
  11446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11447. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11448. then
  11449. # The compiler can only warn and ignore the option if not recognized
  11450. # So say no if there are warnings
  11451. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11452. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11453. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11454. lt_cv_prog_compiler_c_o_CXX=yes
  11455. fi
  11456. fi
  11457. chmod u+w . 2>&5
  11458. $RM conftest*
  11459. # SGI C++ compiler will create directory out/ii_files/ for
  11460. # template instantiation
  11461. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11462. $RM out/* && rmdir out
  11463. cd ..
  11464. $RM -r conftest
  11465. $RM conftest*
  11466. fi
  11467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11468. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11470. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11471. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11472. $as_echo_n "(cached) " >&6
  11473. else
  11474. lt_cv_prog_compiler_c_o_CXX=no
  11475. $RM -r conftest 2>/dev/null
  11476. mkdir conftest
  11477. cd conftest
  11478. mkdir out
  11479. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11480. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11481. # Insert the option either (1) after the last *FLAGS variable, or
  11482. # (2) before a word containing "conftest.", or (3) at the end.
  11483. # Note that $ac_compile itself does not contain backslashes and begins
  11484. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11485. lt_compile=`echo "$ac_compile" | $SED \
  11486. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11487. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11488. -e 's:$: $lt_compiler_flag:'`
  11489. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11490. (eval "$lt_compile" 2>out/conftest.err)
  11491. ac_status=$?
  11492. cat out/conftest.err >&5
  11493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11494. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11495. then
  11496. # The compiler can only warn and ignore the option if not recognized
  11497. # So say no if there are warnings
  11498. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11499. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11500. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11501. lt_cv_prog_compiler_c_o_CXX=yes
  11502. fi
  11503. fi
  11504. chmod u+w . 2>&5
  11505. $RM conftest*
  11506. # SGI C++ compiler will create directory out/ii_files/ for
  11507. # template instantiation
  11508. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11509. $RM out/* && rmdir out
  11510. cd ..
  11511. $RM -r conftest
  11512. $RM conftest*
  11513. fi
  11514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11515. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11516. hard_links="nottested"
  11517. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11518. # do not overwrite the value of need_locks provided by the user
  11519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11520. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11521. hard_links=yes
  11522. $RM conftest*
  11523. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11524. touch conftest.a
  11525. ln conftest.a conftest.b 2>&5 || hard_links=no
  11526. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11528. $as_echo "$hard_links" >&6; }
  11529. if test "$hard_links" = no; then
  11530. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11531. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11532. need_locks=warn
  11533. fi
  11534. else
  11535. need_locks=no
  11536. fi
  11537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11538. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11539. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11540. case $host_os in
  11541. aix[4-9]*)
  11542. # If we're using GNU nm, then we don't want the "-C" option.
  11543. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11544. # Also, AIX nm treats weak defined symbols like other global defined
  11545. # symbols, whereas GNU nm marks them as "W".
  11546. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11547. 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'
  11548. else
  11549. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11550. fi
  11551. ;;
  11552. pw32*)
  11553. export_symbols_cmds_CXX="$ltdll_cmds"
  11554. ;;
  11555. cygwin* | mingw* | cegcc*)
  11556. 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'
  11557. ;;
  11558. *)
  11559. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11560. ;;
  11561. esac
  11562. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11564. $as_echo "$ld_shlibs_CXX" >&6; }
  11565. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11566. with_gnu_ld_CXX=$with_gnu_ld
  11567. #
  11568. # Do we need to explicitly link libc?
  11569. #
  11570. case "x$archive_cmds_need_lc_CXX" in
  11571. x|xyes)
  11572. # Assume -lc should be added
  11573. archive_cmds_need_lc_CXX=yes
  11574. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11575. case $archive_cmds_CXX in
  11576. *'~'*)
  11577. # FIXME: we may have to deal with multi-command sequences.
  11578. ;;
  11579. '$CC '*)
  11580. # Test whether the compiler implicitly links with -lc since on some
  11581. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11582. # to ld, don't add -lc before -lgcc.
  11583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11584. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11585. if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
  11586. $as_echo_n "(cached) " >&6
  11587. else
  11588. $RM conftest*
  11589. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11590. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11591. (eval $ac_compile) 2>&5
  11592. ac_status=$?
  11593. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11594. test $ac_status = 0; } 2>conftest.err; then
  11595. soname=conftest
  11596. lib=conftest
  11597. libobjs=conftest.$ac_objext
  11598. deplibs=
  11599. wl=$lt_prog_compiler_wl_CXX
  11600. pic_flag=$lt_prog_compiler_pic_CXX
  11601. compiler_flags=-v
  11602. linker_flags=-v
  11603. verstring=
  11604. output_objdir=.
  11605. libname=conftest
  11606. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11607. allow_undefined_flag_CXX=
  11608. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11609. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11610. ac_status=$?
  11611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11612. test $ac_status = 0; }
  11613. then
  11614. lt_cv_archive_cmds_need_lc_CXX=no
  11615. else
  11616. lt_cv_archive_cmds_need_lc_CXX=yes
  11617. fi
  11618. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11619. else
  11620. cat conftest.err 1>&5
  11621. fi
  11622. $RM conftest*
  11623. fi
  11624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  11625. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  11626. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  11627. ;;
  11628. esac
  11629. fi
  11630. ;;
  11631. esac
  11632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11633. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11634. library_names_spec=
  11635. libname_spec='lib$name'
  11636. soname_spec=
  11637. shrext_cmds=".so"
  11638. postinstall_cmds=
  11639. postuninstall_cmds=
  11640. finish_cmds=
  11641. finish_eval=
  11642. shlibpath_var=
  11643. shlibpath_overrides_runpath=unknown
  11644. version_type=none
  11645. dynamic_linker="$host_os ld.so"
  11646. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11647. need_lib_prefix=unknown
  11648. hardcode_into_libs=no
  11649. # when you set need_version to no, make sure it does not cause -set_version
  11650. # flags to be left without arguments
  11651. need_version=unknown
  11652. case $host_os in
  11653. aix3*)
  11654. version_type=linux
  11655. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11656. shlibpath_var=LIBPATH
  11657. # AIX 3 has no versioning support, so we append a major version to the name.
  11658. soname_spec='${libname}${release}${shared_ext}$major'
  11659. ;;
  11660. aix[4-9]*)
  11661. version_type=linux
  11662. need_lib_prefix=no
  11663. need_version=no
  11664. hardcode_into_libs=yes
  11665. if test "$host_cpu" = ia64; then
  11666. # AIX 5 supports IA64
  11667. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11668. shlibpath_var=LD_LIBRARY_PATH
  11669. else
  11670. # With GCC up to 2.95.x, collect2 would create an import file
  11671. # for dependence libraries. The import file would start with
  11672. # the line `#! .'. This would cause the generated library to
  11673. # depend on `.', always an invalid library. This was fixed in
  11674. # development snapshots of GCC prior to 3.0.
  11675. case $host_os in
  11676. aix4 | aix4.[01] | aix4.[01].*)
  11677. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11678. echo ' yes '
  11679. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11680. :
  11681. else
  11682. can_build_shared=no
  11683. fi
  11684. ;;
  11685. esac
  11686. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11687. # soname into executable. Probably we can add versioning support to
  11688. # collect2, so additional links can be useful in future.
  11689. if test "$aix_use_runtimelinking" = yes; then
  11690. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11691. # instead of lib<name>.a to let people know that these are not
  11692. # typical AIX shared libraries.
  11693. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11694. else
  11695. # We preserve .a as extension for shared libraries through AIX4.2
  11696. # and later when we are not doing run time linking.
  11697. library_names_spec='${libname}${release}.a $libname.a'
  11698. soname_spec='${libname}${release}${shared_ext}$major'
  11699. fi
  11700. shlibpath_var=LIBPATH
  11701. fi
  11702. ;;
  11703. amigaos*)
  11704. case $host_cpu in
  11705. powerpc)
  11706. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11707. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11708. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11709. ;;
  11710. m68k)
  11711. library_names_spec='$libname.ixlibrary $libname.a'
  11712. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11713. 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'
  11714. ;;
  11715. esac
  11716. ;;
  11717. beos*)
  11718. library_names_spec='${libname}${shared_ext}'
  11719. dynamic_linker="$host_os ld.so"
  11720. shlibpath_var=LIBRARY_PATH
  11721. ;;
  11722. bsdi[45]*)
  11723. version_type=linux
  11724. need_version=no
  11725. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11726. soname_spec='${libname}${release}${shared_ext}$major'
  11727. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11728. shlibpath_var=LD_LIBRARY_PATH
  11729. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11730. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11731. # the default ld.so.conf also contains /usr/contrib/lib and
  11732. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11733. # libtool to hard-code these into programs
  11734. ;;
  11735. cygwin* | mingw* | pw32* | cegcc*)
  11736. version_type=windows
  11737. shrext_cmds=".dll"
  11738. need_version=no
  11739. need_lib_prefix=no
  11740. case $GCC,$host_os in
  11741. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11742. library_names_spec='$libname.dll.a'
  11743. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11744. postinstall_cmds='base_file=`basename \${file}`~
  11745. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11746. dldir=$destdir/`dirname \$dlpath`~
  11747. test -d \$dldir || mkdir -p \$dldir~
  11748. $install_prog $dir/$dlname \$dldir/$dlname~
  11749. chmod a+x \$dldir/$dlname~
  11750. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11751. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11752. fi'
  11753. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11754. dlpath=$dir/\$dldll~
  11755. $RM \$dlpath'
  11756. shlibpath_overrides_runpath=yes
  11757. case $host_os in
  11758. cygwin*)
  11759. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11760. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11761. ;;
  11762. mingw* | cegcc*)
  11763. # MinGW DLLs use traditional 'lib' prefix
  11764. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11765. ;;
  11766. pw32*)
  11767. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11768. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11769. ;;
  11770. esac
  11771. ;;
  11772. *)
  11773. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11774. ;;
  11775. esac
  11776. dynamic_linker='Win32 ld.exe'
  11777. # FIXME: first we should search . and the directory the executable is in
  11778. shlibpath_var=PATH
  11779. ;;
  11780. darwin* | rhapsody*)
  11781. dynamic_linker="$host_os dyld"
  11782. version_type=darwin
  11783. need_lib_prefix=no
  11784. need_version=no
  11785. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11786. soname_spec='${libname}${release}${major}$shared_ext'
  11787. shlibpath_overrides_runpath=yes
  11788. shlibpath_var=DYLD_LIBRARY_PATH
  11789. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11790. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11791. ;;
  11792. dgux*)
  11793. version_type=linux
  11794. need_lib_prefix=no
  11795. need_version=no
  11796. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11797. soname_spec='${libname}${release}${shared_ext}$major'
  11798. shlibpath_var=LD_LIBRARY_PATH
  11799. ;;
  11800. freebsd* | dragonfly*)
  11801. # DragonFly does not have aout. When/if they implement a new
  11802. # versioning mechanism, adjust this.
  11803. if test -x /usr/bin/objformat; then
  11804. objformat=`/usr/bin/objformat`
  11805. else
  11806. case $host_os in
  11807. freebsd[23].*) objformat=aout ;;
  11808. *) objformat=elf ;;
  11809. esac
  11810. fi
  11811. version_type=freebsd-$objformat
  11812. case $version_type in
  11813. freebsd-elf*)
  11814. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11815. need_version=no
  11816. need_lib_prefix=no
  11817. ;;
  11818. freebsd-*)
  11819. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11820. need_version=yes
  11821. ;;
  11822. esac
  11823. shlibpath_var=LD_LIBRARY_PATH
  11824. case $host_os in
  11825. freebsd2.*)
  11826. shlibpath_overrides_runpath=yes
  11827. ;;
  11828. freebsd3.[01]* | freebsdelf3.[01]*)
  11829. shlibpath_overrides_runpath=yes
  11830. hardcode_into_libs=yes
  11831. ;;
  11832. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11833. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11834. shlibpath_overrides_runpath=no
  11835. hardcode_into_libs=yes
  11836. ;;
  11837. *) # from 4.6 on, and DragonFly
  11838. shlibpath_overrides_runpath=yes
  11839. hardcode_into_libs=yes
  11840. ;;
  11841. esac
  11842. ;;
  11843. gnu*)
  11844. version_type=linux
  11845. need_lib_prefix=no
  11846. need_version=no
  11847. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11848. soname_spec='${libname}${release}${shared_ext}$major'
  11849. shlibpath_var=LD_LIBRARY_PATH
  11850. hardcode_into_libs=yes
  11851. ;;
  11852. haiku*)
  11853. version_type=linux
  11854. need_lib_prefix=no
  11855. need_version=no
  11856. dynamic_linker="$host_os runtime_loader"
  11857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11858. soname_spec='${libname}${release}${shared_ext}$major'
  11859. shlibpath_var=LIBRARY_PATH
  11860. shlibpath_overrides_runpath=yes
  11861. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  11862. hardcode_into_libs=yes
  11863. ;;
  11864. hpux9* | hpux10* | hpux11*)
  11865. # Give a soname corresponding to the major version so that dld.sl refuses to
  11866. # link against other versions.
  11867. version_type=sunos
  11868. need_lib_prefix=no
  11869. need_version=no
  11870. case $host_cpu in
  11871. ia64*)
  11872. shrext_cmds='.so'
  11873. hardcode_into_libs=yes
  11874. dynamic_linker="$host_os dld.so"
  11875. shlibpath_var=LD_LIBRARY_PATH
  11876. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11877. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11878. soname_spec='${libname}${release}${shared_ext}$major'
  11879. if test "X$HPUX_IA64_MODE" = X32; then
  11880. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11881. else
  11882. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11883. fi
  11884. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11885. ;;
  11886. hppa*64*)
  11887. shrext_cmds='.sl'
  11888. hardcode_into_libs=yes
  11889. dynamic_linker="$host_os dld.sl"
  11890. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11891. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11892. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11893. soname_spec='${libname}${release}${shared_ext}$major'
  11894. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11895. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11896. ;;
  11897. *)
  11898. shrext_cmds='.sl'
  11899. dynamic_linker="$host_os dld.sl"
  11900. shlibpath_var=SHLIB_PATH
  11901. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11903. soname_spec='${libname}${release}${shared_ext}$major'
  11904. ;;
  11905. esac
  11906. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11907. postinstall_cmds='chmod 555 $lib'
  11908. # or fails outright, so override atomically:
  11909. install_override_mode=555
  11910. ;;
  11911. interix[3-9]*)
  11912. version_type=linux
  11913. need_lib_prefix=no
  11914. need_version=no
  11915. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11916. soname_spec='${libname}${release}${shared_ext}$major'
  11917. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11918. shlibpath_var=LD_LIBRARY_PATH
  11919. shlibpath_overrides_runpath=no
  11920. hardcode_into_libs=yes
  11921. ;;
  11922. irix5* | irix6* | nonstopux*)
  11923. case $host_os in
  11924. nonstopux*) version_type=nonstopux ;;
  11925. *)
  11926. if test "$lt_cv_prog_gnu_ld" = yes; then
  11927. version_type=linux
  11928. else
  11929. version_type=irix
  11930. fi ;;
  11931. esac
  11932. need_lib_prefix=no
  11933. need_version=no
  11934. soname_spec='${libname}${release}${shared_ext}$major'
  11935. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11936. case $host_os in
  11937. irix5* | nonstopux*)
  11938. libsuff= shlibsuff=
  11939. ;;
  11940. *)
  11941. case $LD in # libtool.m4 will add one of these switches to LD
  11942. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11943. libsuff= shlibsuff= libmagic=32-bit;;
  11944. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11945. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11946. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11947. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11948. *) libsuff= shlibsuff= libmagic=never-match;;
  11949. esac
  11950. ;;
  11951. esac
  11952. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11953. shlibpath_overrides_runpath=no
  11954. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11955. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11956. hardcode_into_libs=yes
  11957. ;;
  11958. # No shared lib support for Linux oldld, aout, or coff.
  11959. linux*oldld* | linux*aout* | linux*coff*)
  11960. dynamic_linker=no
  11961. ;;
  11962. # This must be Linux ELF.
  11963. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11964. version_type=linux
  11965. need_lib_prefix=no
  11966. need_version=no
  11967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11968. soname_spec='${libname}${release}${shared_ext}$major'
  11969. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11970. shlibpath_var=LD_LIBRARY_PATH
  11971. shlibpath_overrides_runpath=no
  11972. # Some binutils ld are patched to set DT_RUNPATH
  11973. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  11974. $as_echo_n "(cached) " >&6
  11975. else
  11976. lt_cv_shlibpath_overrides_runpath=no
  11977. save_LDFLAGS=$LDFLAGS
  11978. save_libdir=$libdir
  11979. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  11980. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  11981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11982. /* end confdefs.h. */
  11983. int
  11984. main ()
  11985. {
  11986. ;
  11987. return 0;
  11988. }
  11989. _ACEOF
  11990. if ac_fn_cxx_try_link "$LINENO"; then :
  11991. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11992. lt_cv_shlibpath_overrides_runpath=yes
  11993. fi
  11994. fi
  11995. rm -f core conftest.err conftest.$ac_objext \
  11996. conftest$ac_exeext conftest.$ac_ext
  11997. LDFLAGS=$save_LDFLAGS
  11998. libdir=$save_libdir
  11999. fi
  12000. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12001. # This implies no fast_install, which is unacceptable.
  12002. # Some rework will be needed to allow for fast_install
  12003. # before this can be enabled.
  12004. hardcode_into_libs=yes
  12005. # Append ld.so.conf contents to the search path
  12006. if test -f /etc/ld.so.conf; then
  12007. 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' ' '`
  12008. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12009. fi
  12010. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12011. # powerpc, because MkLinux only supported shared libraries with the
  12012. # GNU dynamic linker. Since this was broken with cross compilers,
  12013. # most powerpc-linux boxes support dynamic linking these days and
  12014. # people can always --disable-shared, the test was removed, and we
  12015. # assume the GNU/Linux dynamic linker is in use.
  12016. dynamic_linker='GNU/Linux ld.so'
  12017. ;;
  12018. netbsd*)
  12019. version_type=sunos
  12020. need_lib_prefix=no
  12021. need_version=no
  12022. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12024. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12025. dynamic_linker='NetBSD (a.out) ld.so'
  12026. else
  12027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12028. soname_spec='${libname}${release}${shared_ext}$major'
  12029. dynamic_linker='NetBSD ld.elf_so'
  12030. fi
  12031. shlibpath_var=LD_LIBRARY_PATH
  12032. shlibpath_overrides_runpath=yes
  12033. hardcode_into_libs=yes
  12034. ;;
  12035. newsos6)
  12036. version_type=linux
  12037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12038. shlibpath_var=LD_LIBRARY_PATH
  12039. shlibpath_overrides_runpath=yes
  12040. ;;
  12041. *nto* | *qnx*)
  12042. version_type=qnx
  12043. need_lib_prefix=no
  12044. need_version=no
  12045. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12046. soname_spec='${libname}${release}${shared_ext}$major'
  12047. shlibpath_var=LD_LIBRARY_PATH
  12048. shlibpath_overrides_runpath=no
  12049. hardcode_into_libs=yes
  12050. dynamic_linker='ldqnx.so'
  12051. ;;
  12052. openbsd*)
  12053. version_type=sunos
  12054. sys_lib_dlsearch_path_spec="/usr/lib"
  12055. need_lib_prefix=no
  12056. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12057. case $host_os in
  12058. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12059. *) need_version=no ;;
  12060. esac
  12061. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12062. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12063. shlibpath_var=LD_LIBRARY_PATH
  12064. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12065. case $host_os in
  12066. openbsd2.[89] | openbsd2.[89].*)
  12067. shlibpath_overrides_runpath=no
  12068. ;;
  12069. *)
  12070. shlibpath_overrides_runpath=yes
  12071. ;;
  12072. esac
  12073. else
  12074. shlibpath_overrides_runpath=yes
  12075. fi
  12076. ;;
  12077. os2*)
  12078. libname_spec='$name'
  12079. shrext_cmds=".dll"
  12080. need_lib_prefix=no
  12081. library_names_spec='$libname${shared_ext} $libname.a'
  12082. dynamic_linker='OS/2 ld.exe'
  12083. shlibpath_var=LIBPATH
  12084. ;;
  12085. osf3* | osf4* | osf5*)
  12086. version_type=osf
  12087. need_lib_prefix=no
  12088. need_version=no
  12089. soname_spec='${libname}${release}${shared_ext}$major'
  12090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12091. shlibpath_var=LD_LIBRARY_PATH
  12092. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12093. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12094. ;;
  12095. rdos*)
  12096. dynamic_linker=no
  12097. ;;
  12098. solaris*)
  12099. version_type=linux
  12100. need_lib_prefix=no
  12101. need_version=no
  12102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12103. soname_spec='${libname}${release}${shared_ext}$major'
  12104. shlibpath_var=LD_LIBRARY_PATH
  12105. shlibpath_overrides_runpath=yes
  12106. hardcode_into_libs=yes
  12107. # ldd complains unless libraries are executable
  12108. postinstall_cmds='chmod +x $lib'
  12109. ;;
  12110. sunos4*)
  12111. version_type=sunos
  12112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12113. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12114. shlibpath_var=LD_LIBRARY_PATH
  12115. shlibpath_overrides_runpath=yes
  12116. if test "$with_gnu_ld" = yes; then
  12117. need_lib_prefix=no
  12118. fi
  12119. need_version=yes
  12120. ;;
  12121. sysv4 | sysv4.3*)
  12122. version_type=linux
  12123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12124. soname_spec='${libname}${release}${shared_ext}$major'
  12125. shlibpath_var=LD_LIBRARY_PATH
  12126. case $host_vendor in
  12127. sni)
  12128. shlibpath_overrides_runpath=no
  12129. need_lib_prefix=no
  12130. runpath_var=LD_RUN_PATH
  12131. ;;
  12132. siemens)
  12133. need_lib_prefix=no
  12134. ;;
  12135. motorola)
  12136. need_lib_prefix=no
  12137. need_version=no
  12138. shlibpath_overrides_runpath=no
  12139. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12140. ;;
  12141. esac
  12142. ;;
  12143. sysv4*MP*)
  12144. if test -d /usr/nec ;then
  12145. version_type=linux
  12146. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12147. soname_spec='$libname${shared_ext}.$major'
  12148. shlibpath_var=LD_LIBRARY_PATH
  12149. fi
  12150. ;;
  12151. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12152. version_type=freebsd-elf
  12153. need_lib_prefix=no
  12154. need_version=no
  12155. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12156. soname_spec='${libname}${release}${shared_ext}$major'
  12157. shlibpath_var=LD_LIBRARY_PATH
  12158. shlibpath_overrides_runpath=yes
  12159. hardcode_into_libs=yes
  12160. if test "$with_gnu_ld" = yes; then
  12161. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12162. else
  12163. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12164. case $host_os in
  12165. sco3.2v5*)
  12166. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12167. ;;
  12168. esac
  12169. fi
  12170. sys_lib_dlsearch_path_spec='/usr/lib'
  12171. ;;
  12172. tpf*)
  12173. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12174. version_type=linux
  12175. need_lib_prefix=no
  12176. need_version=no
  12177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12178. shlibpath_var=LD_LIBRARY_PATH
  12179. shlibpath_overrides_runpath=no
  12180. hardcode_into_libs=yes
  12181. ;;
  12182. uts4*)
  12183. version_type=linux
  12184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12185. soname_spec='${libname}${release}${shared_ext}$major'
  12186. shlibpath_var=LD_LIBRARY_PATH
  12187. ;;
  12188. *)
  12189. dynamic_linker=no
  12190. ;;
  12191. esac
  12192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12193. $as_echo "$dynamic_linker" >&6; }
  12194. test "$dynamic_linker" = no && can_build_shared=no
  12195. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12196. if test "$GCC" = yes; then
  12197. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12198. fi
  12199. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12200. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12201. fi
  12202. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12203. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12204. fi
  12205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12206. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12207. hardcode_action_CXX=
  12208. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12209. test -n "$runpath_var_CXX" ||
  12210. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12211. # We can hardcode non-existent directories.
  12212. if test "$hardcode_direct_CXX" != no &&
  12213. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12214. # have to relink, otherwise we might link with an installed library
  12215. # when we should be linking with a yet-to-be-installed one
  12216. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12217. test "$hardcode_minus_L_CXX" != no; then
  12218. # Linking always hardcodes the temporary library directory.
  12219. hardcode_action_CXX=relink
  12220. else
  12221. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12222. hardcode_action_CXX=immediate
  12223. fi
  12224. else
  12225. # We cannot hardcode anything, or else we can only hardcode existing
  12226. # directories.
  12227. hardcode_action_CXX=unsupported
  12228. fi
  12229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12230. $as_echo "$hardcode_action_CXX" >&6; }
  12231. if test "$hardcode_action_CXX" = relink ||
  12232. test "$inherit_rpath_CXX" = yes; then
  12233. # Fast installation is not supported
  12234. enable_fast_install=no
  12235. elif test "$shlibpath_overrides_runpath" = yes ||
  12236. test "$enable_shared" = no; then
  12237. # Fast installation is not necessary
  12238. enable_fast_install=needless
  12239. fi
  12240. fi # test -n "$compiler"
  12241. CC=$lt_save_CC
  12242. LDCXX=$LD
  12243. LD=$lt_save_LD
  12244. GCC=$lt_save_GCC
  12245. with_gnu_ld=$lt_save_with_gnu_ld
  12246. lt_cv_path_LDCXX=$lt_cv_path_LD
  12247. lt_cv_path_LD=$lt_save_path_LD
  12248. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12249. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12250. fi # test "$_lt_caught_CXX_error" != yes
  12251. ac_ext=c
  12252. ac_cpp='$CPP $CPPFLAGS'
  12253. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12254. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12255. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12256. visibility=
  12257. if test "$GXX" = yes; then
  12258. visibility=-fvisibility=hidden
  12259. fi
  12260. ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
  12261. if test "x$ac_cv_have_decl_basename" = x""yes; then :
  12262. ac_have_decl=1
  12263. else
  12264. ac_have_decl=0
  12265. fi
  12266. cat >>confdefs.h <<_ACEOF
  12267. #define HAVE_DECL_BASENAME $ac_have_decl
  12268. _ACEOF
  12269. gcc_version=`cat $srcdir/../gcc/BASE-VER`
  12270. WARN_FLAGS=
  12271. save_CFLAGS="$CFLAGS"
  12272. for real_option in -W -Wall; do
  12273. # Do the check with the no- prefix removed since gcc silently
  12274. # accepts any -Wno-* option on purpose
  12275. case $real_option in
  12276. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  12277. *) option=$real_option ;;
  12278. esac
  12279. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  12280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  12281. $as_echo_n "checking whether $CC supports $option... " >&6; }
  12282. if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
  12283. $as_echo_n "(cached) " >&6
  12284. else
  12285. CFLAGS="$option"
  12286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12287. /* end confdefs.h. */
  12288. int
  12289. main ()
  12290. {
  12291. ;
  12292. return 0;
  12293. }
  12294. _ACEOF
  12295. if ac_fn_c_try_compile "$LINENO"; then :
  12296. eval "$as_acx_Woption=yes"
  12297. else
  12298. eval "$as_acx_Woption=no"
  12299. fi
  12300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12301. fi
  12302. eval ac_res=\$$as_acx_Woption
  12303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12304. $as_echo "$ac_res" >&6; }
  12305. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  12306. WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
  12307. fi
  12308. done
  12309. CFLAGS="$save_CFLAGS"
  12310. WERROR=
  12311. # Check whether --enable-werror-always was given.
  12312. if test "${enable_werror_always+set}" = set; then :
  12313. enableval=$enable_werror_always;
  12314. else
  12315. enable_werror_always=no
  12316. fi
  12317. if test $enable_werror_always = yes; then :
  12318. WERROR="$WERROR${WERROR:+ }-Werror"
  12319. fi
  12320. libsuffix=
  12321. if test "$GXX" = yes; then
  12322. libsuffix=`$CXX -print-multi-os-directory`
  12323. fi
  12324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
  12325. $as_echo_n "checking for socket libraries... " >&6; }
  12326. if test "${libcc1_cv_lib_sockets+set}" = set; then :
  12327. $as_echo_n "(cached) " >&6
  12328. else
  12329. libcc1_cv_lib_sockets=
  12330. libcc1_check_both=no
  12331. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  12332. if test "x$ac_cv_func_connect" = x""yes; then :
  12333. libcc1_check_socket=no
  12334. else
  12335. libcc1_check_socket=yes
  12336. fi
  12337. if test "$libcc1_check_socket" = "yes"; then
  12338. unset ac_cv_func_connect
  12339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  12340. $as_echo_n "checking for main in -lsocket... " >&6; }
  12341. if test "${ac_cv_lib_socket_main+set}" = set; then :
  12342. $as_echo_n "(cached) " >&6
  12343. else
  12344. ac_check_lib_save_LIBS=$LIBS
  12345. LIBS="-lsocket $LIBS"
  12346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12347. /* end confdefs.h. */
  12348. int
  12349. main ()
  12350. {
  12351. return main ();
  12352. ;
  12353. return 0;
  12354. }
  12355. _ACEOF
  12356. if ac_fn_c_try_link "$LINENO"; then :
  12357. ac_cv_lib_socket_main=yes
  12358. else
  12359. ac_cv_lib_socket_main=no
  12360. fi
  12361. rm -f core conftest.err conftest.$ac_objext \
  12362. conftest$ac_exeext conftest.$ac_ext
  12363. LIBS=$ac_check_lib_save_LIBS
  12364. fi
  12365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  12366. $as_echo "$ac_cv_lib_socket_main" >&6; }
  12367. if test "x$ac_cv_lib_socket_main" = x""yes; then :
  12368. libcc1_cv_lib_sockets="-lsocket"
  12369. else
  12370. libcc1_check_both=yes
  12371. fi
  12372. fi
  12373. if test "$libcc1_check_both" = "yes"; then
  12374. libcc1_old_libs=$LIBS
  12375. LIBS="$LIBS -lsocket -lnsl"
  12376. unset ac_cv_func_accept
  12377. ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
  12378. if test "x$ac_cv_func_accept" = x""yes; then :
  12379. libcc1_check_nsl=no
  12380. libcc1_cv_lib_sockets="-lsocket -lnsl"
  12381. fi
  12382. unset ac_cv_func_accept
  12383. LIBS=$libcc1_old_libs
  12384. fi
  12385. unset ac_cv_func_gethostbyname
  12386. libcc1_old_libs="$LIBS"
  12387. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  12388. if test "x$ac_cv_func_gethostbyname" = x""yes; then :
  12389. else
  12390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  12391. $as_echo_n "checking for main in -lnsl... " >&6; }
  12392. if test "${ac_cv_lib_nsl_main+set}" = set; then :
  12393. $as_echo_n "(cached) " >&6
  12394. else
  12395. ac_check_lib_save_LIBS=$LIBS
  12396. LIBS="-lnsl $LIBS"
  12397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12398. /* end confdefs.h. */
  12399. int
  12400. main ()
  12401. {
  12402. return main ();
  12403. ;
  12404. return 0;
  12405. }
  12406. _ACEOF
  12407. if ac_fn_c_try_link "$LINENO"; then :
  12408. ac_cv_lib_nsl_main=yes
  12409. else
  12410. ac_cv_lib_nsl_main=no
  12411. fi
  12412. rm -f core conftest.err conftest.$ac_objext \
  12413. conftest$ac_exeext conftest.$ac_ext
  12414. LIBS=$ac_check_lib_save_LIBS
  12415. fi
  12416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  12417. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  12418. if test "x$ac_cv_lib_nsl_main" = x""yes; then :
  12419. libcc1_cv_lib_sockets="$libcc1_cv_lib_sockets -lnsl"
  12420. fi
  12421. fi
  12422. unset ac_cv_func_gethostbyname
  12423. LIBS=$libcc1_old_libs
  12424. fi
  12425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcc1_cv_lib_sockets" >&5
  12426. $as_echo "$libcc1_cv_lib_sockets" >&6; }
  12427. LIBS="$LIBS $libcc1_cv_lib_sockets"
  12428. # If any of these functions are missing, simply don't bother building
  12429. # this plugin.
  12430. # Check for plugin support
  12431. # Check whether --enable-plugin was given.
  12432. if test "${enable_plugin+set}" = set; then :
  12433. enableval=$enable_plugin; enable_plugin=$enableval
  12434. else
  12435. enable_plugin=yes; default_plugin=yes
  12436. fi
  12437. pluginlibs=
  12438. case "${host}" in
  12439. *-*-darwin*)
  12440. if test x$build = x$host; then
  12441. export_sym_check="nm${exeext} -g"
  12442. elif test x$host = x$target; then
  12443. export_sym_check="$gcc_cv_nm -g"
  12444. else
  12445. export_sym_check=
  12446. fi
  12447. ;;
  12448. *)
  12449. if test x$build = x$host; then
  12450. export_sym_check="objdump${exeext} -T"
  12451. elif test x$host = x$target; then
  12452. export_sym_check="$gcc_cv_objdump -T"
  12453. else
  12454. export_sym_check=
  12455. fi
  12456. ;;
  12457. esac
  12458. if test x"$enable_plugin" = x"yes"; then
  12459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
  12460. $as_echo_n "checking for exported symbols... " >&6; }
  12461. if test "x$export_sym_check" != x; then
  12462. echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
  12463. ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
  12464. if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
  12465. : # No need to use a flag
  12466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12467. $as_echo "yes" >&6; }
  12468. else
  12469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12470. $as_echo "yes" >&6; }
  12471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
  12472. $as_echo_n "checking for -rdynamic... " >&6; }
  12473. ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
  12474. if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
  12475. plugin_rdynamic=yes
  12476. pluginlibs="-rdynamic"
  12477. else
  12478. plugin_rdynamic=no
  12479. enable_plugin=no
  12480. fi
  12481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
  12482. $as_echo "$plugin_rdynamic" >&6; }
  12483. fi
  12484. else
  12485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
  12486. $as_echo "unable to check" >&6; }
  12487. fi
  12488. # Check -ldl
  12489. saved_LIBS="$LIBS"
  12490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  12491. $as_echo_n "checking for library containing dlopen... " >&6; }
  12492. if test "${ac_cv_search_dlopen+set}" = set; then :
  12493. $as_echo_n "(cached) " >&6
  12494. else
  12495. ac_func_search_save_LIBS=$LIBS
  12496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12497. /* end confdefs.h. */
  12498. /* Override any GCC internal prototype to avoid an error.
  12499. Use char because int might match the return type of a GCC
  12500. builtin and then its argument prototype would still apply. */
  12501. #ifdef __cplusplus
  12502. extern "C"
  12503. #endif
  12504. char dlopen ();
  12505. int
  12506. main ()
  12507. {
  12508. return dlopen ();
  12509. ;
  12510. return 0;
  12511. }
  12512. _ACEOF
  12513. for ac_lib in '' dl; do
  12514. if test -z "$ac_lib"; then
  12515. ac_res="none required"
  12516. else
  12517. ac_res=-l$ac_lib
  12518. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12519. fi
  12520. if ac_fn_c_try_link "$LINENO"; then :
  12521. ac_cv_search_dlopen=$ac_res
  12522. fi
  12523. rm -f core conftest.err conftest.$ac_objext \
  12524. conftest$ac_exeext
  12525. if test "${ac_cv_search_dlopen+set}" = set; then :
  12526. break
  12527. fi
  12528. done
  12529. if test "${ac_cv_search_dlopen+set}" = set; then :
  12530. else
  12531. ac_cv_search_dlopen=no
  12532. fi
  12533. rm conftest.$ac_ext
  12534. LIBS=$ac_func_search_save_LIBS
  12535. fi
  12536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  12537. $as_echo "$ac_cv_search_dlopen" >&6; }
  12538. ac_res=$ac_cv_search_dlopen
  12539. if test "$ac_res" != no; then :
  12540. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12541. fi
  12542. if test x"$ac_cv_search_dlopen" = x"-ldl"; then
  12543. pluginlibs="$pluginlibs -ldl"
  12544. fi
  12545. LIBS="$saved_LIBS"
  12546. # Check that we can build shared objects with -fPIC -shared
  12547. saved_LDFLAGS="$LDFLAGS"
  12548. saved_CFLAGS="$CFLAGS"
  12549. case "${host}" in
  12550. *-*-darwin*)
  12551. CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
  12552. CFLAGS="$CFLAGS -fPIC"
  12553. LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
  12554. ;;
  12555. *)
  12556. CFLAGS="$CFLAGS -fPIC"
  12557. LDFLAGS="$LDFLAGS -fPIC -shared"
  12558. ;;
  12559. esac
  12560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
  12561. $as_echo_n "checking for -fPIC -shared... " >&6; }
  12562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12563. /* end confdefs.h. */
  12564. extern int X;
  12565. int
  12566. main ()
  12567. {
  12568. return X == 0;
  12569. ;
  12570. return 0;
  12571. }
  12572. _ACEOF
  12573. if ac_fn_c_try_link "$LINENO"; then :
  12574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12575. $as_echo "yes" >&6; }; have_pic_shared=yes
  12576. else
  12577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12578. $as_echo "no" >&6; }; have_pic_shared=no
  12579. fi
  12580. rm -f core conftest.err conftest.$ac_objext \
  12581. conftest$ac_exeext conftest.$ac_ext
  12582. if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
  12583. pluginlibs=
  12584. enable_plugin=no
  12585. fi
  12586. LDFLAGS="$saved_LDFLAGS"
  12587. CFLAGS="$saved_CFLAGS"
  12588. # If plugin support had been requested but not available, fail.
  12589. if test x"$enable_plugin" = x"no" ; then
  12590. if test x"$default_plugin" != x"yes"; then
  12591. as_fn_error "
  12592. Building GCC with plugin support requires a host that supports
  12593. -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
  12594. fi
  12595. fi
  12596. fi
  12597. ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
  12598. if test "x$ac_cv_func_socketpair" = x""yes; then :
  12599. else
  12600. enable_plugin=no
  12601. fi
  12602. ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
  12603. if test "x$ac_cv_func_select" = x""yes; then :
  12604. else
  12605. enable_plugin=no
  12606. fi
  12607. ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
  12608. if test "x$ac_cv_func_fork" = x""yes; then :
  12609. else
  12610. enable_plugin=no
  12611. fi
  12612. if test $enable_plugin = yes; then
  12613. ENABLE_PLUGIN_TRUE=
  12614. ENABLE_PLUGIN_FALSE='#'
  12615. else
  12616. ENABLE_PLUGIN_TRUE='#'
  12617. ENABLE_PLUGIN_FALSE=
  12618. fi
  12619. ac_config_files="$ac_config_files Makefile"
  12620. cat >confcache <<\_ACEOF
  12621. # This file is a shell script that caches the results of configure
  12622. # tests run on this system so they can be shared between configure
  12623. # scripts and configure runs, see configure's option --config-cache.
  12624. # It is not useful on other systems. If it contains results you don't
  12625. # want to keep, you may remove or edit it.
  12626. #
  12627. # config.status only pays attention to the cache file if you give it
  12628. # the --recheck option to rerun configure.
  12629. #
  12630. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12631. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12632. # following values.
  12633. _ACEOF
  12634. # The following way of writing the cache mishandles newlines in values,
  12635. # but we know of no workaround that is simple, portable, and efficient.
  12636. # So, we kill variables containing newlines.
  12637. # Ultrix sh set writes to stderr and can't be redirected directly,
  12638. # and sets the high bit in the cache file unless we assign to the vars.
  12639. (
  12640. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12641. eval ac_val=\$$ac_var
  12642. case $ac_val in #(
  12643. *${as_nl}*)
  12644. case $ac_var in #(
  12645. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12646. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12647. esac
  12648. case $ac_var in #(
  12649. _ | IFS | as_nl) ;; #(
  12650. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12651. *) { eval $ac_var=; unset $ac_var;} ;;
  12652. esac ;;
  12653. esac
  12654. done
  12655. (set) 2>&1 |
  12656. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12657. *${as_nl}ac_space=\ *)
  12658. # `set' does not quote correctly, so add quotes: double-quote
  12659. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12660. sed -n \
  12661. "s/'/'\\\\''/g;
  12662. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12663. ;; #(
  12664. *)
  12665. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12666. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12667. ;;
  12668. esac |
  12669. sort
  12670. ) |
  12671. sed '
  12672. /^ac_cv_env_/b end
  12673. t clear
  12674. :clear
  12675. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12676. t end
  12677. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12678. :end' >>confcache
  12679. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12680. if test -w "$cache_file"; then
  12681. test "x$cache_file" != "x/dev/null" &&
  12682. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12683. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12684. cat confcache >$cache_file
  12685. else
  12686. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12687. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12688. fi
  12689. fi
  12690. rm -f confcache
  12691. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12692. # Let make expand exec_prefix.
  12693. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12694. DEFS=-DHAVE_CONFIG_H
  12695. ac_libobjs=
  12696. ac_ltlibobjs=
  12697. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12698. # 1. Remove the extension, and $U if already installed.
  12699. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12700. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12701. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12702. # will be set to the directory where LIBOBJS objects are built.
  12703. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12704. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12705. done
  12706. LIBOBJS=$ac_libobjs
  12707. LTLIBOBJS=$ac_ltlibobjs
  12708. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12709. as_fn_error "conditional \"AMDEP\" was never defined.
  12710. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12711. fi
  12712. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12713. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  12714. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12715. fi
  12716. if test -n "$EXEEXT"; then
  12717. am__EXEEXT_TRUE=
  12718. am__EXEEXT_FALSE='#'
  12719. else
  12720. am__EXEEXT_TRUE='#'
  12721. am__EXEEXT_FALSE=
  12722. fi
  12723. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  12724. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  12725. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12726. fi
  12727. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12728. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  12729. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12730. fi
  12731. if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
  12732. as_fn_error "conditional \"ENABLE_PLUGIN\" was never defined.
  12733. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12734. fi
  12735. : ${CONFIG_STATUS=./config.status}
  12736. ac_write_fail=0
  12737. ac_clean_files_save=$ac_clean_files
  12738. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12739. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12740. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12741. as_write_fail=0
  12742. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12743. #! $SHELL
  12744. # Generated by $as_me.
  12745. # Run this file to recreate the current configuration.
  12746. # Compiler output produced by configure, useful for debugging
  12747. # configure, is in config.log if it exists.
  12748. debug=false
  12749. ac_cs_recheck=false
  12750. ac_cs_silent=false
  12751. SHELL=\${CONFIG_SHELL-$SHELL}
  12752. export SHELL
  12753. _ASEOF
  12754. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12755. ## -------------------- ##
  12756. ## M4sh Initialization. ##
  12757. ## -------------------- ##
  12758. # Be more Bourne compatible
  12759. DUALCASE=1; export DUALCASE # for MKS sh
  12760. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12761. emulate sh
  12762. NULLCMD=:
  12763. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12764. # is contrary to our usage. Disable this feature.
  12765. alias -g '${1+"$@"}'='"$@"'
  12766. setopt NO_GLOB_SUBST
  12767. else
  12768. case `(set -o) 2>/dev/null` in #(
  12769. *posix*) :
  12770. set -o posix ;; #(
  12771. *) :
  12772. ;;
  12773. esac
  12774. fi
  12775. as_nl='
  12776. '
  12777. export as_nl
  12778. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12779. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12780. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12781. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12782. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12783. # but without wasting forks for bash or zsh.
  12784. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12785. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12786. as_echo='print -r --'
  12787. as_echo_n='print -rn --'
  12788. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12789. as_echo='printf %s\n'
  12790. as_echo_n='printf %s'
  12791. else
  12792. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12793. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12794. as_echo_n='/usr/ucb/echo -n'
  12795. else
  12796. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12797. as_echo_n_body='eval
  12798. arg=$1;
  12799. case $arg in #(
  12800. *"$as_nl"*)
  12801. expr "X$arg" : "X\\(.*\\)$as_nl";
  12802. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12803. esac;
  12804. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12805. '
  12806. export as_echo_n_body
  12807. as_echo_n='sh -c $as_echo_n_body as_echo'
  12808. fi
  12809. export as_echo_body
  12810. as_echo='sh -c $as_echo_body as_echo'
  12811. fi
  12812. # The user is always right.
  12813. if test "${PATH_SEPARATOR+set}" != set; then
  12814. PATH_SEPARATOR=:
  12815. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12816. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12817. PATH_SEPARATOR=';'
  12818. }
  12819. fi
  12820. # IFS
  12821. # We need space, tab and new line, in precisely that order. Quoting is
  12822. # there to prevent editors from complaining about space-tab.
  12823. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12824. # splitting by setting IFS to empty value.)
  12825. IFS=" "" $as_nl"
  12826. # Find who we are. Look in the path if we contain no directory separator.
  12827. case $0 in #((
  12828. *[\\/]* ) as_myself=$0 ;;
  12829. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12830. for as_dir in $PATH
  12831. do
  12832. IFS=$as_save_IFS
  12833. test -z "$as_dir" && as_dir=.
  12834. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12835. done
  12836. IFS=$as_save_IFS
  12837. ;;
  12838. esac
  12839. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12840. # in which case we are not to be found in the path.
  12841. if test "x$as_myself" = x; then
  12842. as_myself=$0
  12843. fi
  12844. if test ! -f "$as_myself"; then
  12845. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12846. exit 1
  12847. fi
  12848. # Unset variables that we do not need and which cause bugs (e.g. in
  12849. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12850. # suppresses any "Segmentation fault" message there. '((' could
  12851. # trigger a bug in pdksh 5.2.14.
  12852. for as_var in BASH_ENV ENV MAIL MAILPATH
  12853. do eval test x\${$as_var+set} = xset \
  12854. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12855. done
  12856. PS1='$ '
  12857. PS2='> '
  12858. PS4='+ '
  12859. # NLS nuisances.
  12860. LC_ALL=C
  12861. export LC_ALL
  12862. LANGUAGE=C
  12863. export LANGUAGE
  12864. # CDPATH.
  12865. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12866. # as_fn_error ERROR [LINENO LOG_FD]
  12867. # ---------------------------------
  12868. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12869. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12870. # script with status $?, using 1 if that was 0.
  12871. as_fn_error ()
  12872. {
  12873. as_status=$?; test $as_status -eq 0 && as_status=1
  12874. if test "$3"; then
  12875. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12876. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  12877. fi
  12878. $as_echo "$as_me: error: $1" >&2
  12879. as_fn_exit $as_status
  12880. } # as_fn_error
  12881. # as_fn_set_status STATUS
  12882. # -----------------------
  12883. # Set $? to STATUS, without forking.
  12884. as_fn_set_status ()
  12885. {
  12886. return $1
  12887. } # as_fn_set_status
  12888. # as_fn_exit STATUS
  12889. # -----------------
  12890. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12891. as_fn_exit ()
  12892. {
  12893. set +e
  12894. as_fn_set_status $1
  12895. exit $1
  12896. } # as_fn_exit
  12897. # as_fn_unset VAR
  12898. # ---------------
  12899. # Portably unset VAR.
  12900. as_fn_unset ()
  12901. {
  12902. { eval $1=; unset $1;}
  12903. }
  12904. as_unset=as_fn_unset
  12905. # as_fn_append VAR VALUE
  12906. # ----------------------
  12907. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12908. # advantage of any shell optimizations that allow amortized linear growth over
  12909. # repeated appends, instead of the typical quadratic growth present in naive
  12910. # implementations.
  12911. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12912. eval 'as_fn_append ()
  12913. {
  12914. eval $1+=\$2
  12915. }'
  12916. else
  12917. as_fn_append ()
  12918. {
  12919. eval $1=\$$1\$2
  12920. }
  12921. fi # as_fn_append
  12922. # as_fn_arith ARG...
  12923. # ------------------
  12924. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12925. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12926. # must be portable across $(()) and expr.
  12927. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12928. eval 'as_fn_arith ()
  12929. {
  12930. as_val=$(( $* ))
  12931. }'
  12932. else
  12933. as_fn_arith ()
  12934. {
  12935. as_val=`expr "$@" || test $? -eq 1`
  12936. }
  12937. fi # as_fn_arith
  12938. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12939. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12940. as_expr=expr
  12941. else
  12942. as_expr=false
  12943. fi
  12944. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12945. as_basename=basename
  12946. else
  12947. as_basename=false
  12948. fi
  12949. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12950. as_dirname=dirname
  12951. else
  12952. as_dirname=false
  12953. fi
  12954. as_me=`$as_basename -- "$0" ||
  12955. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12956. X"$0" : 'X\(//\)$' \| \
  12957. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12958. $as_echo X/"$0" |
  12959. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12960. s//\1/
  12961. q
  12962. }
  12963. /^X\/\(\/\/\)$/{
  12964. s//\1/
  12965. q
  12966. }
  12967. /^X\/\(\/\).*/{
  12968. s//\1/
  12969. q
  12970. }
  12971. s/.*/./; q'`
  12972. # Avoid depending upon Character Ranges.
  12973. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12974. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12975. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12976. as_cr_digits='0123456789'
  12977. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12978. ECHO_C= ECHO_N= ECHO_T=
  12979. case `echo -n x` in #(((((
  12980. -n*)
  12981. case `echo 'xy\c'` in
  12982. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12983. xy) ECHO_C='\c';;
  12984. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12985. ECHO_T=' ';;
  12986. esac;;
  12987. *)
  12988. ECHO_N='-n';;
  12989. esac
  12990. rm -f conf$$ conf$$.exe conf$$.file
  12991. if test -d conf$$.dir; then
  12992. rm -f conf$$.dir/conf$$.file
  12993. else
  12994. rm -f conf$$.dir
  12995. mkdir conf$$.dir 2>/dev/null
  12996. fi
  12997. if (echo >conf$$.file) 2>/dev/null; then
  12998. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12999. as_ln_s='ln -s'
  13000. # ... but there are two gotchas:
  13001. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13002. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13003. # In both cases, we have to default to `cp -p'.
  13004. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13005. as_ln_s='cp -p'
  13006. elif ln conf$$.file conf$$ 2>/dev/null; then
  13007. as_ln_s=ln
  13008. else
  13009. as_ln_s='cp -p'
  13010. fi
  13011. else
  13012. as_ln_s='cp -p'
  13013. fi
  13014. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13015. rmdir conf$$.dir 2>/dev/null
  13016. # as_fn_mkdir_p
  13017. # -------------
  13018. # Create "$as_dir" as a directory, including parents if necessary.
  13019. as_fn_mkdir_p ()
  13020. {
  13021. case $as_dir in #(
  13022. -*) as_dir=./$as_dir;;
  13023. esac
  13024. test -d "$as_dir" || eval $as_mkdir_p || {
  13025. as_dirs=
  13026. while :; do
  13027. case $as_dir in #(
  13028. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13029. *) as_qdir=$as_dir;;
  13030. esac
  13031. as_dirs="'$as_qdir' $as_dirs"
  13032. as_dir=`$as_dirname -- "$as_dir" ||
  13033. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13034. X"$as_dir" : 'X\(//\)[^/]' \| \
  13035. X"$as_dir" : 'X\(//\)$' \| \
  13036. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13037. $as_echo X"$as_dir" |
  13038. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13039. s//\1/
  13040. q
  13041. }
  13042. /^X\(\/\/\)[^/].*/{
  13043. s//\1/
  13044. q
  13045. }
  13046. /^X\(\/\/\)$/{
  13047. s//\1/
  13048. q
  13049. }
  13050. /^X\(\/\).*/{
  13051. s//\1/
  13052. q
  13053. }
  13054. s/.*/./; q'`
  13055. test -d "$as_dir" && break
  13056. done
  13057. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13058. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13059. } # as_fn_mkdir_p
  13060. if mkdir -p . 2>/dev/null; then
  13061. as_mkdir_p='mkdir -p "$as_dir"'
  13062. else
  13063. test -d ./-p && rmdir ./-p
  13064. as_mkdir_p=false
  13065. fi
  13066. if test -x / >/dev/null 2>&1; then
  13067. as_test_x='test -x'
  13068. else
  13069. if ls -dL / >/dev/null 2>&1; then
  13070. as_ls_L_option=L
  13071. else
  13072. as_ls_L_option=
  13073. fi
  13074. as_test_x='
  13075. eval sh -c '\''
  13076. if test -d "$1"; then
  13077. test -d "$1/.";
  13078. else
  13079. case $1 in #(
  13080. -*)set "./$1";;
  13081. esac;
  13082. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13083. ???[sx]*):;;*)false;;esac;fi
  13084. '\'' sh
  13085. '
  13086. fi
  13087. as_executable_p=$as_test_x
  13088. # Sed expression to map a string onto a valid CPP name.
  13089. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13090. # Sed expression to map a string onto a valid variable name.
  13091. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13092. exec 6>&1
  13093. ## ----------------------------------- ##
  13094. ## Main body of $CONFIG_STATUS script. ##
  13095. ## ----------------------------------- ##
  13096. _ASEOF
  13097. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13098. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13099. # Save the log message, to keep $0 and so on meaningful, and to
  13100. # report actual input values of CONFIG_FILES etc. instead of their
  13101. # values after options handling.
  13102. ac_log="
  13103. This file was extended by libcc1 $as_me version-unused, which was
  13104. generated by GNU Autoconf 2.64. Invocation command line was
  13105. CONFIG_FILES = $CONFIG_FILES
  13106. CONFIG_HEADERS = $CONFIG_HEADERS
  13107. CONFIG_LINKS = $CONFIG_LINKS
  13108. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13109. $ $0 $@
  13110. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13111. "
  13112. _ACEOF
  13113. case $ac_config_files in *"
  13114. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13115. esac
  13116. case $ac_config_headers in *"
  13117. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13118. esac
  13119. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13120. # Files that config.status was made for.
  13121. config_files="$ac_config_files"
  13122. config_headers="$ac_config_headers"
  13123. config_commands="$ac_config_commands"
  13124. _ACEOF
  13125. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13126. ac_cs_usage="\
  13127. \`$as_me' instantiates files and other configuration actions
  13128. from templates according to the current configuration. Unless the files
  13129. and actions are specified as TAGs, all are instantiated by default.
  13130. Usage: $0 [OPTION]... [TAG]...
  13131. -h, --help print this help, then exit
  13132. -V, --version print version number and configuration settings, then exit
  13133. -q, --quiet, --silent
  13134. do not print progress messages
  13135. -d, --debug don't remove temporary files
  13136. --recheck update $as_me by reconfiguring in the same conditions
  13137. --file=FILE[:TEMPLATE]
  13138. instantiate the configuration file FILE
  13139. --header=FILE[:TEMPLATE]
  13140. instantiate the configuration header FILE
  13141. Configuration files:
  13142. $config_files
  13143. Configuration headers:
  13144. $config_headers
  13145. Configuration commands:
  13146. $config_commands
  13147. Report bugs to the package provider."
  13148. _ACEOF
  13149. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13150. ac_cs_version="\\
  13151. libcc1 config.status version-unused
  13152. configured by $0, generated by GNU Autoconf 2.64,
  13153. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13154. Copyright (C) 2009 Free Software Foundation, Inc.
  13155. This config.status script is free software; the Free Software Foundation
  13156. gives unlimited permission to copy, distribute and modify it."
  13157. ac_pwd='$ac_pwd'
  13158. srcdir='$srcdir'
  13159. INSTALL='$INSTALL'
  13160. MKDIR_P='$MKDIR_P'
  13161. AWK='$AWK'
  13162. test -n "\$AWK" || AWK=awk
  13163. _ACEOF
  13164. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13165. # The default lists apply if the user does not specify any file.
  13166. ac_need_defaults=:
  13167. while test $# != 0
  13168. do
  13169. case $1 in
  13170. --*=*)
  13171. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13172. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13173. ac_shift=:
  13174. ;;
  13175. *)
  13176. ac_option=$1
  13177. ac_optarg=$2
  13178. ac_shift=shift
  13179. ;;
  13180. esac
  13181. case $ac_option in
  13182. # Handling of the options.
  13183. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13184. ac_cs_recheck=: ;;
  13185. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13186. $as_echo "$ac_cs_version"; exit ;;
  13187. --debug | --debu | --deb | --de | --d | -d )
  13188. debug=: ;;
  13189. --file | --fil | --fi | --f )
  13190. $ac_shift
  13191. case $ac_optarg in
  13192. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13193. esac
  13194. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13195. ac_need_defaults=false;;
  13196. --header | --heade | --head | --hea )
  13197. $ac_shift
  13198. case $ac_optarg in
  13199. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13200. esac
  13201. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13202. ac_need_defaults=false;;
  13203. --he | --h)
  13204. # Conflict between --help and --header
  13205. as_fn_error "ambiguous option: \`$1'
  13206. Try \`$0 --help' for more information.";;
  13207. --help | --hel | -h )
  13208. $as_echo "$ac_cs_usage"; exit ;;
  13209. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13210. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13211. ac_cs_silent=: ;;
  13212. # This is an error.
  13213. -*) as_fn_error "unrecognized option: \`$1'
  13214. Try \`$0 --help' for more information." ;;
  13215. *) as_fn_append ac_config_targets " $1"
  13216. ac_need_defaults=false ;;
  13217. esac
  13218. shift
  13219. done
  13220. ac_configure_extra_args=
  13221. if $ac_cs_silent; then
  13222. exec 6>/dev/null
  13223. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13224. fi
  13225. _ACEOF
  13226. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13227. if \$ac_cs_recheck; then
  13228. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13229. shift
  13230. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13231. CONFIG_SHELL='$SHELL'
  13232. export CONFIG_SHELL
  13233. exec "\$@"
  13234. fi
  13235. _ACEOF
  13236. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13237. exec 5>>config.log
  13238. {
  13239. echo
  13240. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13241. ## Running $as_me. ##
  13242. _ASBOX
  13243. $as_echo "$ac_log"
  13244. } >&5
  13245. _ACEOF
  13246. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13247. #
  13248. # INIT-COMMANDS
  13249. #
  13250. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13251. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13252. # if CDPATH is set.
  13253. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13254. sed_quote_subst='$sed_quote_subst'
  13255. double_quote_subst='$double_quote_subst'
  13256. delay_variable_subst='$delay_variable_subst'
  13257. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13258. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13259. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13260. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13261. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13262. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13263. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13264. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13265. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13266. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13267. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13268. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13269. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13270. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13271. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13272. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13273. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13274. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13275. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13276. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13277. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13278. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13279. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13280. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13281. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13282. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13283. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13284. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13285. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13286. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13287. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13288. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13289. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13290. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13291. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13292. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13293. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13294. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13295. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13296. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13297. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13298. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13299. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13300. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13301. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13302. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13303. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13304. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13305. 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"`'
  13306. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13307. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13308. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13309. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13310. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13311. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13312. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13313. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13314. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13315. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13316. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13317. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13318. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13319. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13320. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13321. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13322. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13323. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13324. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13325. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13326. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13327. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13328. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13329. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13330. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13331. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13332. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13333. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13334. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13335. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13336. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13337. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  13338. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13339. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13340. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13341. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13342. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13343. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13344. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13345. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13346. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  13347. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13348. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13349. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13350. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13351. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13352. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13353. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13354. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13355. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13356. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13357. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13358. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13359. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13360. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13361. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13362. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13363. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13364. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13365. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13366. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13367. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13368. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13369. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13370. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13371. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13372. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13373. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13374. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13375. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13376. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13377. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  13378. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  13379. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  13380. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  13381. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  13382. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  13383. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  13384. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13385. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13386. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13387. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  13388. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  13389. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13390. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  13391. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  13392. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  13393. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  13394. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  13395. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  13396. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13397. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13398. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  13399. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13400. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13401. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13402. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13403. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13404. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13405. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  13406. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13407. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13408. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13409. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  13410. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  13411. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  13412. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  13413. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  13414. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  13415. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  13416. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  13417. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  13418. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  13419. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  13420. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13421. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  13422. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  13423. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13424. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13425. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  13426. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  13427. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  13428. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  13429. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  13430. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  13431. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  13432. LTCC='$LTCC'
  13433. LTCFLAGS='$LTCFLAGS'
  13434. compiler='$compiler_DEFAULT'
  13435. # A function that is used when there is no print builtin or printf.
  13436. func_fallback_echo ()
  13437. {
  13438. eval 'cat <<_LTECHO_EOF
  13439. \$1
  13440. _LTECHO_EOF'
  13441. }
  13442. # Quote evaled strings.
  13443. for var in SHELL \
  13444. ECHO \
  13445. SED \
  13446. GREP \
  13447. EGREP \
  13448. FGREP \
  13449. LD \
  13450. NM \
  13451. LN_S \
  13452. lt_SP2NL \
  13453. lt_NL2SP \
  13454. reload_flag \
  13455. OBJDUMP \
  13456. deplibs_check_method \
  13457. file_magic_cmd \
  13458. AR \
  13459. AR_FLAGS \
  13460. STRIP \
  13461. RANLIB \
  13462. CC \
  13463. CFLAGS \
  13464. compiler \
  13465. lt_cv_sys_global_symbol_pipe \
  13466. lt_cv_sys_global_symbol_to_cdecl \
  13467. lt_cv_sys_global_symbol_to_c_name_address \
  13468. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13469. lt_prog_compiler_no_builtin_flag \
  13470. lt_prog_compiler_wl \
  13471. lt_prog_compiler_pic \
  13472. lt_prog_compiler_static \
  13473. lt_cv_prog_compiler_c_o \
  13474. need_locks \
  13475. DSYMUTIL \
  13476. NMEDIT \
  13477. LIPO \
  13478. OTOOL \
  13479. OTOOL64 \
  13480. shrext_cmds \
  13481. export_dynamic_flag_spec \
  13482. whole_archive_flag_spec \
  13483. compiler_needs_object \
  13484. with_gnu_ld \
  13485. allow_undefined_flag \
  13486. no_undefined_flag \
  13487. hardcode_libdir_flag_spec \
  13488. hardcode_libdir_flag_spec_ld \
  13489. hardcode_libdir_separator \
  13490. fix_srcfile_path \
  13491. exclude_expsyms \
  13492. include_expsyms \
  13493. file_list_spec \
  13494. variables_saved_for_relink \
  13495. libname_spec \
  13496. library_names_spec \
  13497. soname_spec \
  13498. install_override_mode \
  13499. finish_eval \
  13500. old_striplib \
  13501. striplib \
  13502. compiler_lib_search_dirs \
  13503. predep_objects \
  13504. postdep_objects \
  13505. predeps \
  13506. postdeps \
  13507. compiler_lib_search_path \
  13508. LD_CXX \
  13509. reload_flag_CXX \
  13510. compiler_CXX \
  13511. lt_prog_compiler_no_builtin_flag_CXX \
  13512. lt_prog_compiler_wl_CXX \
  13513. lt_prog_compiler_pic_CXX \
  13514. lt_prog_compiler_static_CXX \
  13515. lt_cv_prog_compiler_c_o_CXX \
  13516. export_dynamic_flag_spec_CXX \
  13517. whole_archive_flag_spec_CXX \
  13518. compiler_needs_object_CXX \
  13519. with_gnu_ld_CXX \
  13520. allow_undefined_flag_CXX \
  13521. no_undefined_flag_CXX \
  13522. hardcode_libdir_flag_spec_CXX \
  13523. hardcode_libdir_flag_spec_ld_CXX \
  13524. hardcode_libdir_separator_CXX \
  13525. fix_srcfile_path_CXX \
  13526. exclude_expsyms_CXX \
  13527. include_expsyms_CXX \
  13528. file_list_spec_CXX \
  13529. compiler_lib_search_dirs_CXX \
  13530. predep_objects_CXX \
  13531. postdep_objects_CXX \
  13532. predeps_CXX \
  13533. postdeps_CXX \
  13534. compiler_lib_search_path_CXX; do
  13535. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13536. *[\\\\\\\`\\"\\\$]*)
  13537. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13538. ;;
  13539. *)
  13540. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13541. ;;
  13542. esac
  13543. done
  13544. # Double-quote double-evaled strings.
  13545. for var in reload_cmds \
  13546. old_postinstall_cmds \
  13547. old_postuninstall_cmds \
  13548. old_archive_cmds \
  13549. extract_expsyms_cmds \
  13550. old_archive_from_new_cmds \
  13551. old_archive_from_expsyms_cmds \
  13552. archive_cmds \
  13553. archive_expsym_cmds \
  13554. module_cmds \
  13555. module_expsym_cmds \
  13556. export_symbols_cmds \
  13557. prelink_cmds \
  13558. postinstall_cmds \
  13559. postuninstall_cmds \
  13560. finish_cmds \
  13561. sys_lib_search_path_spec \
  13562. sys_lib_dlsearch_path_spec \
  13563. reload_cmds_CXX \
  13564. old_archive_cmds_CXX \
  13565. old_archive_from_new_cmds_CXX \
  13566. old_archive_from_expsyms_cmds_CXX \
  13567. archive_cmds_CXX \
  13568. archive_expsym_cmds_CXX \
  13569. module_cmds_CXX \
  13570. module_expsym_cmds_CXX \
  13571. export_symbols_cmds_CXX \
  13572. prelink_cmds_CXX; do
  13573. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13574. *[\\\\\\\`\\"\\\$]*)
  13575. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13576. ;;
  13577. *)
  13578. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13579. ;;
  13580. esac
  13581. done
  13582. ac_aux_dir='$ac_aux_dir'
  13583. xsi_shell='$xsi_shell'
  13584. lt_shell_append='$lt_shell_append'
  13585. # See if we are running on zsh, and set the options which allow our
  13586. # commands through without removal of \ escapes INIT.
  13587. if test -n "\${ZSH_VERSION+set}" ; then
  13588. setopt NO_GLOB_SUBST
  13589. fi
  13590. PACKAGE='$PACKAGE'
  13591. VERSION='$VERSION'
  13592. TIMESTAMP='$TIMESTAMP'
  13593. RM='$RM'
  13594. ofile='$ofile'
  13595. _ACEOF
  13596. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13597. # Handling of arguments.
  13598. for ac_config_target in $ac_config_targets
  13599. do
  13600. case $ac_config_target in
  13601. "cc1plugin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cc1plugin-config.h" ;;
  13602. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13603. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13604. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13605. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13606. esac
  13607. done
  13608. # If the user did not use the arguments to specify the items to instantiate,
  13609. # then the envvar interface is used. Set only those that are not.
  13610. # We use the long form for the default assignment because of an extremely
  13611. # bizarre bug on SunOS 4.1.3.
  13612. if $ac_need_defaults; then
  13613. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13614. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13615. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13616. fi
  13617. # Have a temporary directory for convenience. Make it in the build tree
  13618. # simply because there is no reason against having it here, and in addition,
  13619. # creating and moving files from /tmp can sometimes cause problems.
  13620. # Hook for its removal unless debugging.
  13621. # Note that there is a small window in which the directory will not be cleaned:
  13622. # after its creation but before its name has been assigned to `$tmp'.
  13623. $debug ||
  13624. {
  13625. tmp=
  13626. trap 'exit_status=$?
  13627. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13628. ' 0
  13629. trap 'as_fn_exit 1' 1 2 13 15
  13630. }
  13631. # Create a (secure) tmp directory for tmp files.
  13632. {
  13633. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13634. test -n "$tmp" && test -d "$tmp"
  13635. } ||
  13636. {
  13637. tmp=./conf$$-$RANDOM
  13638. (umask 077 && mkdir "$tmp")
  13639. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13640. # Set up the scripts for CONFIG_FILES section.
  13641. # No need to generate them if there are no CONFIG_FILES.
  13642. # This happens for instance with `./config.status config.h'.
  13643. if test -n "$CONFIG_FILES"; then
  13644. ac_cr=`echo X | tr X '\015'`
  13645. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13646. # But we know of no other shell where ac_cr would be empty at this
  13647. # point, so we can use a bashism as a fallback.
  13648. if test "x$ac_cr" = x; then
  13649. eval ac_cr=\$\'\\r\'
  13650. fi
  13651. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13652. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13653. ac_cs_awk_cr='\r'
  13654. else
  13655. ac_cs_awk_cr=$ac_cr
  13656. fi
  13657. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13658. _ACEOF
  13659. {
  13660. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13661. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13662. echo "_ACEOF"
  13663. } >conf$$subs.sh ||
  13664. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13665. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13666. ac_delim='%!_!# '
  13667. for ac_last_try in false false false false false :; do
  13668. . ./conf$$subs.sh ||
  13669. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13670. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13671. if test $ac_delim_n = $ac_delim_num; then
  13672. break
  13673. elif $ac_last_try; then
  13674. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13675. else
  13676. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13677. fi
  13678. done
  13679. rm -f conf$$subs.sh
  13680. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13681. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13682. _ACEOF
  13683. sed -n '
  13684. h
  13685. s/^/S["/; s/!.*/"]=/
  13686. p
  13687. g
  13688. s/^[^!]*!//
  13689. :repl
  13690. t repl
  13691. s/'"$ac_delim"'$//
  13692. t delim
  13693. :nl
  13694. h
  13695. s/\(.\{148\}\).*/\1/
  13696. t more1
  13697. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13698. p
  13699. n
  13700. b repl
  13701. :more1
  13702. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13703. p
  13704. g
  13705. s/.\{148\}//
  13706. t nl
  13707. :delim
  13708. h
  13709. s/\(.\{148\}\).*/\1/
  13710. t more2
  13711. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13712. p
  13713. b
  13714. :more2
  13715. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13716. p
  13717. g
  13718. s/.\{148\}//
  13719. t delim
  13720. ' <conf$$subs.awk | sed '
  13721. /^[^""]/{
  13722. N
  13723. s/\n//
  13724. }
  13725. ' >>$CONFIG_STATUS || ac_write_fail=1
  13726. rm -f conf$$subs.awk
  13727. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13728. _ACAWK
  13729. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13730. for (key in S) S_is_set[key] = 1
  13731. FS = ""
  13732. }
  13733. {
  13734. line = $ 0
  13735. nfields = split(line, field, "@")
  13736. substed = 0
  13737. len = length(field[1])
  13738. for (i = 2; i < nfields; i++) {
  13739. key = field[i]
  13740. keylen = length(key)
  13741. if (S_is_set[key]) {
  13742. value = S[key]
  13743. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13744. len += length(value) + length(field[++i])
  13745. substed = 1
  13746. } else
  13747. len += 1 + keylen
  13748. }
  13749. print line
  13750. }
  13751. _ACAWK
  13752. _ACEOF
  13753. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13754. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13755. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13756. else
  13757. cat
  13758. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13759. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  13760. _ACEOF
  13761. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13762. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13763. # trailing colons and then remove the whole line if VPATH becomes empty
  13764. # (actually we leave an empty line to preserve line numbers).
  13765. if test "x$srcdir" = x.; then
  13766. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13767. s/:*\$(srcdir):*/:/
  13768. s/:*\${srcdir}:*/:/
  13769. s/:*@srcdir@:*/:/
  13770. s/^\([^=]*=[ ]*\):*/\1/
  13771. s/:*$//
  13772. s/^[^=]*=[ ]*$//
  13773. }'
  13774. fi
  13775. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13776. fi # test -n "$CONFIG_FILES"
  13777. # Set up the scripts for CONFIG_HEADERS section.
  13778. # No need to generate them if there are no CONFIG_HEADERS.
  13779. # This happens for instance with `./config.status Makefile'.
  13780. if test -n "$CONFIG_HEADERS"; then
  13781. cat >"$tmp/defines.awk" <<\_ACAWK ||
  13782. BEGIN {
  13783. _ACEOF
  13784. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13785. # here-document in config.status, that substitutes the proper values into
  13786. # config.h.in to produce config.h.
  13787. # Create a delimiter string that does not exist in confdefs.h, to ease
  13788. # handling of long lines.
  13789. ac_delim='%!_!# '
  13790. for ac_last_try in false false :; do
  13791. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  13792. if test -z "$ac_t"; then
  13793. break
  13794. elif $ac_last_try; then
  13795. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  13796. else
  13797. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13798. fi
  13799. done
  13800. # For the awk script, D is an array of macro values keyed by name,
  13801. # likewise P contains macro parameters if any. Preserve backslash
  13802. # newline sequences.
  13803. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13804. sed -n '
  13805. s/.\{148\}/&'"$ac_delim"'/g
  13806. t rset
  13807. :rset
  13808. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13809. t def
  13810. d
  13811. :def
  13812. s/\\$//
  13813. t bsnl
  13814. s/["\\]/\\&/g
  13815. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13816. D["\1"]=" \3"/p
  13817. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13818. d
  13819. :bsnl
  13820. s/["\\]/\\&/g
  13821. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13822. D["\1"]=" \3\\\\\\n"\\/p
  13823. t cont
  13824. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13825. t cont
  13826. d
  13827. :cont
  13828. n
  13829. s/.\{148\}/&'"$ac_delim"'/g
  13830. t clear
  13831. :clear
  13832. s/\\$//
  13833. t bsnlc
  13834. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13835. d
  13836. :bsnlc
  13837. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13838. b cont
  13839. ' <confdefs.h | sed '
  13840. s/'"$ac_delim"'/"\\\
  13841. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13842. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13843. for (key in D) D_is_set[key] = 1
  13844. FS = ""
  13845. }
  13846. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13847. line = \$ 0
  13848. split(line, arg, " ")
  13849. if (arg[1] == "#") {
  13850. defundef = arg[2]
  13851. mac1 = arg[3]
  13852. } else {
  13853. defundef = substr(arg[1], 2)
  13854. mac1 = arg[2]
  13855. }
  13856. split(mac1, mac2, "(") #)
  13857. macro = mac2[1]
  13858. prefix = substr(line, 1, index(line, defundef) - 1)
  13859. if (D_is_set[macro]) {
  13860. # Preserve the white space surrounding the "#".
  13861. print prefix "define", macro P[macro] D[macro]
  13862. next
  13863. } else {
  13864. # Replace #undef with comments. This is necessary, for example,
  13865. # in the case of _POSIX_SOURCE, which is predefined and required
  13866. # on some systems where configure will not decide to define it.
  13867. if (defundef == "undef") {
  13868. print "/*", prefix defundef, macro, "*/"
  13869. next
  13870. }
  13871. }
  13872. }
  13873. { print }
  13874. _ACAWK
  13875. _ACEOF
  13876. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13877. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  13878. fi # test -n "$CONFIG_HEADERS"
  13879. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13880. shift
  13881. for ac_tag
  13882. do
  13883. case $ac_tag in
  13884. :[FHLC]) ac_mode=$ac_tag; continue;;
  13885. esac
  13886. case $ac_mode$ac_tag in
  13887. :[FHL]*:*);;
  13888. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13889. :[FH]-) ac_tag=-:-;;
  13890. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13891. esac
  13892. ac_save_IFS=$IFS
  13893. IFS=:
  13894. set x $ac_tag
  13895. IFS=$ac_save_IFS
  13896. shift
  13897. ac_file=$1
  13898. shift
  13899. case $ac_mode in
  13900. :L) ac_source=$1;;
  13901. :[FH])
  13902. ac_file_inputs=
  13903. for ac_f
  13904. do
  13905. case $ac_f in
  13906. -) ac_f="$tmp/stdin";;
  13907. *) # Look for the file first in the build tree, then in the source tree
  13908. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13909. # because $ac_f cannot contain `:'.
  13910. test -f "$ac_f" ||
  13911. case $ac_f in
  13912. [\\/$]*) false;;
  13913. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13914. esac ||
  13915. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13916. esac
  13917. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13918. as_fn_append ac_file_inputs " '$ac_f'"
  13919. done
  13920. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13921. # use $as_me), people would be surprised to read:
  13922. # /* config.h. Generated by config.status. */
  13923. configure_input='Generated from '`
  13924. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13925. `' by configure.'
  13926. if test x"$ac_file" != x-; then
  13927. configure_input="$ac_file. $configure_input"
  13928. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13929. $as_echo "$as_me: creating $ac_file" >&6;}
  13930. fi
  13931. # Neutralize special characters interpreted by sed in replacement strings.
  13932. case $configure_input in #(
  13933. *\&* | *\|* | *\\* )
  13934. ac_sed_conf_input=`$as_echo "$configure_input" |
  13935. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13936. *) ac_sed_conf_input=$configure_input;;
  13937. esac
  13938. case $ac_tag in
  13939. *:-:* | *:-) cat >"$tmp/stdin" \
  13940. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  13941. esac
  13942. ;;
  13943. esac
  13944. ac_dir=`$as_dirname -- "$ac_file" ||
  13945. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13946. X"$ac_file" : 'X\(//\)[^/]' \| \
  13947. X"$ac_file" : 'X\(//\)$' \| \
  13948. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13949. $as_echo X"$ac_file" |
  13950. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13951. s//\1/
  13952. q
  13953. }
  13954. /^X\(\/\/\)[^/].*/{
  13955. s//\1/
  13956. q
  13957. }
  13958. /^X\(\/\/\)$/{
  13959. s//\1/
  13960. q
  13961. }
  13962. /^X\(\/\).*/{
  13963. s//\1/
  13964. q
  13965. }
  13966. s/.*/./; q'`
  13967. as_dir="$ac_dir"; as_fn_mkdir_p
  13968. ac_builddir=.
  13969. case "$ac_dir" in
  13970. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13971. *)
  13972. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13973. # A ".." for each directory in $ac_dir_suffix.
  13974. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13975. case $ac_top_builddir_sub in
  13976. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13977. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13978. esac ;;
  13979. esac
  13980. ac_abs_top_builddir=$ac_pwd
  13981. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13982. # for backward compatibility:
  13983. ac_top_builddir=$ac_top_build_prefix
  13984. case $srcdir in
  13985. .) # We are building in place.
  13986. ac_srcdir=.
  13987. ac_top_srcdir=$ac_top_builddir_sub
  13988. ac_abs_top_srcdir=$ac_pwd ;;
  13989. [\\/]* | ?:[\\/]* ) # Absolute name.
  13990. ac_srcdir=$srcdir$ac_dir_suffix;
  13991. ac_top_srcdir=$srcdir
  13992. ac_abs_top_srcdir=$srcdir ;;
  13993. *) # Relative name.
  13994. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13995. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13996. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13997. esac
  13998. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13999. case $ac_mode in
  14000. :F)
  14001. #
  14002. # CONFIG_FILE
  14003. #
  14004. case $INSTALL in
  14005. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14006. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14007. esac
  14008. ac_MKDIR_P=$MKDIR_P
  14009. case $MKDIR_P in
  14010. [\\/$]* | ?:[\\/]* ) ;;
  14011. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14012. esac
  14013. _ACEOF
  14014. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14015. # If the template does not know about datarootdir, expand it.
  14016. # FIXME: This hack should be removed a few years after 2.60.
  14017. ac_datarootdir_hack=; ac_datarootdir_seen=
  14018. ac_sed_dataroot='
  14019. /datarootdir/ {
  14020. p
  14021. q
  14022. }
  14023. /@datadir@/p
  14024. /@docdir@/p
  14025. /@infodir@/p
  14026. /@localedir@/p
  14027. /@mandir@/p'
  14028. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14029. *datarootdir*) ac_datarootdir_seen=yes;;
  14030. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14031. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14032. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14033. _ACEOF
  14034. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14035. ac_datarootdir_hack='
  14036. s&@datadir@&$datadir&g
  14037. s&@docdir@&$docdir&g
  14038. s&@infodir@&$infodir&g
  14039. s&@localedir@&$localedir&g
  14040. s&@mandir@&$mandir&g
  14041. s&\\\${datarootdir}&$datarootdir&g' ;;
  14042. esac
  14043. _ACEOF
  14044. # Neutralize VPATH when `$srcdir' = `.'.
  14045. # Shell code in configure.ac might set extrasub.
  14046. # FIXME: do we really want to maintain this feature?
  14047. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14048. ac_sed_extra="$ac_vpsub
  14049. $extrasub
  14050. _ACEOF
  14051. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14052. :t
  14053. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14054. s|@configure_input@|$ac_sed_conf_input|;t t
  14055. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14056. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14057. s&@srcdir@&$ac_srcdir&;t t
  14058. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14059. s&@top_srcdir@&$ac_top_srcdir&;t t
  14060. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14061. s&@builddir@&$ac_builddir&;t t
  14062. s&@abs_builddir@&$ac_abs_builddir&;t t
  14063. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14064. s&@INSTALL@&$ac_INSTALL&;t t
  14065. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14066. $ac_datarootdir_hack
  14067. "
  14068. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14069. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14070. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14071. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14072. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14073. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14074. which seems to be undefined. Please make sure it is defined." >&5
  14075. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14076. which seems to be undefined. Please make sure it is defined." >&2;}
  14077. rm -f "$tmp/stdin"
  14078. case $ac_file in
  14079. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14080. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14081. esac \
  14082. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14083. ;;
  14084. :H)
  14085. #
  14086. # CONFIG_HEADER
  14087. #
  14088. if test x"$ac_file" != x-; then
  14089. {
  14090. $as_echo "/* $configure_input */" \
  14091. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14092. } >"$tmp/config.h" \
  14093. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14094. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14095. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14096. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14097. else
  14098. rm -f "$ac_file"
  14099. mv "$tmp/config.h" "$ac_file" \
  14100. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14101. fi
  14102. else
  14103. $as_echo "/* $configure_input */" \
  14104. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14105. || as_fn_error "could not create -" "$LINENO" 5
  14106. fi
  14107. # Compute "$ac_file"'s index in $config_headers.
  14108. _am_arg="$ac_file"
  14109. _am_stamp_count=1
  14110. for _am_header in $config_headers :; do
  14111. case $_am_header in
  14112. $_am_arg | $_am_arg:* )
  14113. break ;;
  14114. * )
  14115. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14116. esac
  14117. done
  14118. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14119. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14120. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14121. X"$_am_arg" : 'X\(//\)$' \| \
  14122. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14123. $as_echo X"$_am_arg" |
  14124. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14125. s//\1/
  14126. q
  14127. }
  14128. /^X\(\/\/\)[^/].*/{
  14129. s//\1/
  14130. q
  14131. }
  14132. /^X\(\/\/\)$/{
  14133. s//\1/
  14134. q
  14135. }
  14136. /^X\(\/\).*/{
  14137. s//\1/
  14138. q
  14139. }
  14140. s/.*/./; q'`/stamp-h$_am_stamp_count
  14141. ;;
  14142. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14143. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14144. ;;
  14145. esac
  14146. case $ac_file$ac_mode in
  14147. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14148. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14149. # are listed without --file. Let's play safe and only enable the eval
  14150. # if we detect the quoting.
  14151. case $CONFIG_FILES in
  14152. *\'*) eval set x "$CONFIG_FILES" ;;
  14153. *) set x $CONFIG_FILES ;;
  14154. esac
  14155. shift
  14156. for mf
  14157. do
  14158. # Strip MF so we end up with the name of the file.
  14159. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14160. # Check whether this is an Automake generated Makefile or not.
  14161. # We used to match only the files named `Makefile.in', but
  14162. # some people rename them; so instead we look at the file content.
  14163. # Grep'ing the first line is not enough: some people post-process
  14164. # each Makefile.in and add a new line on top of each file to say so.
  14165. # Grep'ing the whole file is not good either: AIX grep has a line
  14166. # limit of 2048, but all sed's we know have understand at least 4000.
  14167. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14168. dirpart=`$as_dirname -- "$mf" ||
  14169. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14170. X"$mf" : 'X\(//\)[^/]' \| \
  14171. X"$mf" : 'X\(//\)$' \| \
  14172. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14173. $as_echo X"$mf" |
  14174. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14175. s//\1/
  14176. q
  14177. }
  14178. /^X\(\/\/\)[^/].*/{
  14179. s//\1/
  14180. q
  14181. }
  14182. /^X\(\/\/\)$/{
  14183. s//\1/
  14184. q
  14185. }
  14186. /^X\(\/\).*/{
  14187. s//\1/
  14188. q
  14189. }
  14190. s/.*/./; q'`
  14191. else
  14192. continue
  14193. fi
  14194. # Extract the definition of DEPDIR, am__include, and am__quote
  14195. # from the Makefile without running `make'.
  14196. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14197. test -z "$DEPDIR" && continue
  14198. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14199. test -z "am__include" && continue
  14200. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14201. # When using ansi2knr, U may be empty or an underscore; expand it
  14202. U=`sed -n 's/^U = //p' < "$mf"`
  14203. # Find all dependency output files, they are included files with
  14204. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14205. # simplest approach to changing $(DEPDIR) to its actual value in the
  14206. # expansion.
  14207. for file in `sed -n "
  14208. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14209. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14210. # Make sure the directory exists.
  14211. test -f "$dirpart/$file" && continue
  14212. fdir=`$as_dirname -- "$file" ||
  14213. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14214. X"$file" : 'X\(//\)[^/]' \| \
  14215. X"$file" : 'X\(//\)$' \| \
  14216. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14217. $as_echo X"$file" |
  14218. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14219. s//\1/
  14220. q
  14221. }
  14222. /^X\(\/\/\)[^/].*/{
  14223. s//\1/
  14224. q
  14225. }
  14226. /^X\(\/\/\)$/{
  14227. s//\1/
  14228. q
  14229. }
  14230. /^X\(\/\).*/{
  14231. s//\1/
  14232. q
  14233. }
  14234. s/.*/./; q'`
  14235. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14236. # echo "creating $dirpart/$file"
  14237. echo '# dummy' > "$dirpart/$file"
  14238. done
  14239. done
  14240. }
  14241. ;;
  14242. "libtool":C)
  14243. # See if we are running on zsh, and set the options which allow our
  14244. # commands through without removal of \ escapes.
  14245. if test -n "${ZSH_VERSION+set}" ; then
  14246. setopt NO_GLOB_SUBST
  14247. fi
  14248. cfgfile="${ofile}T"
  14249. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14250. $RM "$cfgfile"
  14251. cat <<_LT_EOF >> "$cfgfile"
  14252. #! $SHELL
  14253. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14254. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14255. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14256. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14257. #
  14258. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14259. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  14260. # Written by Gordon Matzigkeit, 1996
  14261. #
  14262. # This file is part of GNU Libtool.
  14263. #
  14264. # GNU Libtool is free software; you can redistribute it and/or
  14265. # modify it under the terms of the GNU General Public License as
  14266. # published by the Free Software Foundation; either version 2 of
  14267. # the License, or (at your option) any later version.
  14268. #
  14269. # As a special exception to the GNU General Public License,
  14270. # if you distribute this file as part of a program or library that
  14271. # is built using GNU Libtool, you may include this file under the
  14272. # same distribution terms that you use for the rest of that program.
  14273. #
  14274. # GNU Libtool is distributed in the hope that it will be useful,
  14275. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14276. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14277. # GNU General Public License for more details.
  14278. #
  14279. # You should have received a copy of the GNU General Public License
  14280. # along with GNU Libtool; see the file COPYING. If not, a copy
  14281. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14282. # obtained by writing to the Free Software Foundation, Inc.,
  14283. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14284. # The names of the tagged configurations supported by this script.
  14285. available_tags="CXX "
  14286. # ### BEGIN LIBTOOL CONFIG
  14287. # Which release of libtool.m4 was used?
  14288. macro_version=$macro_version
  14289. macro_revision=$macro_revision
  14290. # Whether or not to build static libraries.
  14291. build_old_libs=$enable_static
  14292. # Whether or not to build shared libraries.
  14293. build_libtool_libs=$enable_shared
  14294. # What type of objects to build.
  14295. pic_mode=$pic_mode
  14296. # Whether or not to optimize for fast installation.
  14297. fast_install=$enable_fast_install
  14298. # Shell to use when invoking shell scripts.
  14299. SHELL=$lt_SHELL
  14300. # An echo program that protects backslashes.
  14301. ECHO=$lt_ECHO
  14302. # The host system.
  14303. host_alias=$host_alias
  14304. host=$host
  14305. host_os=$host_os
  14306. # The build system.
  14307. build_alias=$build_alias
  14308. build=$build
  14309. build_os=$build_os
  14310. # A sed program that does not truncate output.
  14311. SED=$lt_SED
  14312. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14313. Xsed="\$SED -e 1s/^X//"
  14314. # A grep program that handles long lines.
  14315. GREP=$lt_GREP
  14316. # An ERE matcher.
  14317. EGREP=$lt_EGREP
  14318. # A literal string matcher.
  14319. FGREP=$lt_FGREP
  14320. # A BSD- or MS-compatible name lister.
  14321. NM=$lt_NM
  14322. # Whether we need soft or hard links.
  14323. LN_S=$lt_LN_S
  14324. # What is the maximum length of a command?
  14325. max_cmd_len=$max_cmd_len
  14326. # Object file suffix (normally "o").
  14327. objext=$ac_objext
  14328. # Executable file suffix (normally "").
  14329. exeext=$exeext
  14330. # whether the shell understands "unset".
  14331. lt_unset=$lt_unset
  14332. # turn spaces into newlines.
  14333. SP2NL=$lt_lt_SP2NL
  14334. # turn newlines into spaces.
  14335. NL2SP=$lt_lt_NL2SP
  14336. # An object symbol dumper.
  14337. OBJDUMP=$lt_OBJDUMP
  14338. # Method to check whether dependent libraries are shared objects.
  14339. deplibs_check_method=$lt_deplibs_check_method
  14340. # Command to use when deplibs_check_method == "file_magic".
  14341. file_magic_cmd=$lt_file_magic_cmd
  14342. # The archiver.
  14343. AR=$lt_AR
  14344. AR_FLAGS=$lt_AR_FLAGS
  14345. # A symbol stripping program.
  14346. STRIP=$lt_STRIP
  14347. # Commands used to install an old-style archive.
  14348. RANLIB=$lt_RANLIB
  14349. old_postinstall_cmds=$lt_old_postinstall_cmds
  14350. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14351. # Whether to use a lock for old archive extraction.
  14352. lock_old_archive_extraction=$lock_old_archive_extraction
  14353. # A C compiler.
  14354. LTCC=$lt_CC
  14355. # LTCC compiler flags.
  14356. LTCFLAGS=$lt_CFLAGS
  14357. # Take the output of nm and produce a listing of raw symbols and C names.
  14358. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14359. # Transform the output of nm in a proper C declaration.
  14360. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14361. # Transform the output of nm in a C name address pair.
  14362. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14363. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14364. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14365. # The name of the directory that contains temporary libtool files.
  14366. objdir=$objdir
  14367. # Used to examine libraries when file_magic_cmd begins with "file".
  14368. MAGIC_CMD=$MAGIC_CMD
  14369. # Must we lock files when doing compilation?
  14370. need_locks=$lt_need_locks
  14371. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14372. DSYMUTIL=$lt_DSYMUTIL
  14373. # Tool to change global to local symbols on Mac OS X.
  14374. NMEDIT=$lt_NMEDIT
  14375. # Tool to manipulate fat objects and archives on Mac OS X.
  14376. LIPO=$lt_LIPO
  14377. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14378. OTOOL=$lt_OTOOL
  14379. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14380. OTOOL64=$lt_OTOOL64
  14381. # Old archive suffix (normally "a").
  14382. libext=$libext
  14383. # Shared library suffix (normally ".so").
  14384. shrext_cmds=$lt_shrext_cmds
  14385. # The commands to extract the exported symbol list from a shared archive.
  14386. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14387. # Variables whose values should be saved in libtool wrapper scripts and
  14388. # restored at link time.
  14389. variables_saved_for_relink=$lt_variables_saved_for_relink
  14390. # Do we need the "lib" prefix for modules?
  14391. need_lib_prefix=$need_lib_prefix
  14392. # Do we need a version for libraries?
  14393. need_version=$need_version
  14394. # Library versioning type.
  14395. version_type=$version_type
  14396. # Shared library runtime path variable.
  14397. runpath_var=$runpath_var
  14398. # Shared library path variable.
  14399. shlibpath_var=$shlibpath_var
  14400. # Is shlibpath searched before the hard-coded library search path?
  14401. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14402. # Format of library name prefix.
  14403. libname_spec=$lt_libname_spec
  14404. # List of archive names. First name is the real one, the rest are links.
  14405. # The last name is the one that the linker finds with -lNAME
  14406. library_names_spec=$lt_library_names_spec
  14407. # The coded name of the library, if different from the real name.
  14408. soname_spec=$lt_soname_spec
  14409. # Permission mode override for installation of shared libraries.
  14410. install_override_mode=$lt_install_override_mode
  14411. # Command to use after installation of a shared archive.
  14412. postinstall_cmds=$lt_postinstall_cmds
  14413. # Command to use after uninstallation of a shared archive.
  14414. postuninstall_cmds=$lt_postuninstall_cmds
  14415. # Commands used to finish a libtool library installation in a directory.
  14416. finish_cmds=$lt_finish_cmds
  14417. # As "finish_cmds", except a single script fragment to be evaled but
  14418. # not shown.
  14419. finish_eval=$lt_finish_eval
  14420. # Whether we should hardcode library paths into libraries.
  14421. hardcode_into_libs=$hardcode_into_libs
  14422. # Compile-time system search path for libraries.
  14423. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14424. # Run-time system search path for libraries.
  14425. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14426. # Whether dlopen is supported.
  14427. dlopen_support=$enable_dlopen
  14428. # Whether dlopen of programs is supported.
  14429. dlopen_self=$enable_dlopen_self
  14430. # Whether dlopen of statically linked programs is supported.
  14431. dlopen_self_static=$enable_dlopen_self_static
  14432. # Commands to strip libraries.
  14433. old_striplib=$lt_old_striplib
  14434. striplib=$lt_striplib
  14435. # The linker used to build libraries.
  14436. LD=$lt_LD
  14437. # How to create reloadable object files.
  14438. reload_flag=$lt_reload_flag
  14439. reload_cmds=$lt_reload_cmds
  14440. # Commands used to build an old-style archive.
  14441. old_archive_cmds=$lt_old_archive_cmds
  14442. # A language specific compiler.
  14443. CC=$lt_compiler
  14444. # Is the compiler the GNU compiler?
  14445. with_gcc=$GCC
  14446. # Compiler flag to turn off builtin functions.
  14447. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14448. # How to pass a linker flag through the compiler.
  14449. wl=$lt_lt_prog_compiler_wl
  14450. # Additional compiler flags for building library objects.
  14451. pic_flag=$lt_lt_prog_compiler_pic
  14452. # Compiler flag to prevent dynamic linking.
  14453. link_static_flag=$lt_lt_prog_compiler_static
  14454. # Does compiler simultaneously support -c and -o options?
  14455. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14456. # Whether or not to add -lc for building shared libraries.
  14457. build_libtool_need_lc=$archive_cmds_need_lc
  14458. # Whether or not to disallow shared libs when runtime libs are static.
  14459. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14460. # Compiler flag to allow reflexive dlopens.
  14461. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14462. # Compiler flag to generate shared objects directly from archives.
  14463. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14464. # Whether the compiler copes with passing no objects directly.
  14465. compiler_needs_object=$lt_compiler_needs_object
  14466. # Create an old-style archive from a shared archive.
  14467. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14468. # Create a temporary old-style archive to link instead of a shared archive.
  14469. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14470. # Commands used to build a shared archive.
  14471. archive_cmds=$lt_archive_cmds
  14472. archive_expsym_cmds=$lt_archive_expsym_cmds
  14473. # Commands used to build a loadable module if different from building
  14474. # a shared archive.
  14475. module_cmds=$lt_module_cmds
  14476. module_expsym_cmds=$lt_module_expsym_cmds
  14477. # Whether we are building with GNU ld or not.
  14478. with_gnu_ld=$lt_with_gnu_ld
  14479. # Flag that allows shared libraries with undefined symbols to be built.
  14480. allow_undefined_flag=$lt_allow_undefined_flag
  14481. # Flag that enforces no undefined symbols.
  14482. no_undefined_flag=$lt_no_undefined_flag
  14483. # Flag to hardcode \$libdir into a binary during linking.
  14484. # This must work even if \$libdir does not exist
  14485. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14486. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14487. # during linking. This must work even if \$libdir does not exist.
  14488. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14489. # Whether we need a single "-rpath" flag with a separated argument.
  14490. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14491. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14492. # DIR into the resulting binary.
  14493. hardcode_direct=$hardcode_direct
  14494. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14495. # DIR into the resulting binary and the resulting library dependency is
  14496. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14497. # library is relocated.
  14498. hardcode_direct_absolute=$hardcode_direct_absolute
  14499. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14500. # into the resulting binary.
  14501. hardcode_minus_L=$hardcode_minus_L
  14502. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14503. # into the resulting binary.
  14504. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14505. # Set to "yes" if building a shared library automatically hardcodes DIR
  14506. # into the library and all subsequent libraries and executables linked
  14507. # against it.
  14508. hardcode_automatic=$hardcode_automatic
  14509. # Set to yes if linker adds runtime paths of dependent libraries
  14510. # to runtime path list.
  14511. inherit_rpath=$inherit_rpath
  14512. # Whether libtool must link a program against all its dependency libraries.
  14513. link_all_deplibs=$link_all_deplibs
  14514. # Fix the shell variable \$srcfile for the compiler.
  14515. fix_srcfile_path=$lt_fix_srcfile_path
  14516. # Set to "yes" if exported symbols are required.
  14517. always_export_symbols=$always_export_symbols
  14518. # The commands to list exported symbols.
  14519. export_symbols_cmds=$lt_export_symbols_cmds
  14520. # Symbols that should not be listed in the preloaded symbols.
  14521. exclude_expsyms=$lt_exclude_expsyms
  14522. # Symbols that must always be exported.
  14523. include_expsyms=$lt_include_expsyms
  14524. # Commands necessary for linking programs (against libraries) with templates.
  14525. prelink_cmds=$lt_prelink_cmds
  14526. # Specify filename containing input files.
  14527. file_list_spec=$lt_file_list_spec
  14528. # How to hardcode a shared library path into an executable.
  14529. hardcode_action=$hardcode_action
  14530. # The directories searched by this compiler when creating a shared library.
  14531. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  14532. # Dependencies to place before and after the objects being linked to
  14533. # create a shared library.
  14534. predep_objects=$lt_predep_objects
  14535. postdep_objects=$lt_postdep_objects
  14536. predeps=$lt_predeps
  14537. postdeps=$lt_postdeps
  14538. # The library search path used internally by the compiler when linking
  14539. # a shared library.
  14540. compiler_lib_search_path=$lt_compiler_lib_search_path
  14541. # ### END LIBTOOL CONFIG
  14542. _LT_EOF
  14543. case $host_os in
  14544. aix3*)
  14545. cat <<\_LT_EOF >> "$cfgfile"
  14546. # AIX sometimes has problems with the GCC collect2 program. For some
  14547. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14548. # vanish in a puff of smoke.
  14549. if test "X${COLLECT_NAMES+set}" != Xset; then
  14550. COLLECT_NAMES=
  14551. export COLLECT_NAMES
  14552. fi
  14553. _LT_EOF
  14554. ;;
  14555. esac
  14556. ltmain="$ac_aux_dir/ltmain.sh"
  14557. # We use sed instead of cat because bash on DJGPP gets confused if
  14558. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14559. # text mode, it properly converts lines to CR/LF. This bash problem
  14560. # is reportedly fixed, but why not run on old versions too?
  14561. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14562. || (rm -f "$cfgfile"; exit 1)
  14563. case $xsi_shell in
  14564. yes)
  14565. cat << \_LT_EOF >> "$cfgfile"
  14566. # func_dirname file append nondir_replacement
  14567. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14568. # otherwise set result to NONDIR_REPLACEMENT.
  14569. func_dirname ()
  14570. {
  14571. case ${1} in
  14572. */*) func_dirname_result="${1%/*}${2}" ;;
  14573. * ) func_dirname_result="${3}" ;;
  14574. esac
  14575. }
  14576. # func_basename file
  14577. func_basename ()
  14578. {
  14579. func_basename_result="${1##*/}"
  14580. }
  14581. # func_dirname_and_basename file append nondir_replacement
  14582. # perform func_basename and func_dirname in a single function
  14583. # call:
  14584. # dirname: Compute the dirname of FILE. If nonempty,
  14585. # add APPEND to the result, otherwise set result
  14586. # to NONDIR_REPLACEMENT.
  14587. # value returned in "$func_dirname_result"
  14588. # basename: Compute filename of FILE.
  14589. # value retuned in "$func_basename_result"
  14590. # Implementation must be kept synchronized with func_dirname
  14591. # and func_basename. For efficiency, we do not delegate to
  14592. # those functions but instead duplicate the functionality here.
  14593. func_dirname_and_basename ()
  14594. {
  14595. case ${1} in
  14596. */*) func_dirname_result="${1%/*}${2}" ;;
  14597. * ) func_dirname_result="${3}" ;;
  14598. esac
  14599. func_basename_result="${1##*/}"
  14600. }
  14601. # func_stripname prefix suffix name
  14602. # strip PREFIX and SUFFIX off of NAME.
  14603. # PREFIX and SUFFIX must not contain globbing or regex special
  14604. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14605. # dot (in which case that matches only a dot).
  14606. func_stripname ()
  14607. {
  14608. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14609. # positional parameters, so assign one to ordinary parameter first.
  14610. func_stripname_result=${3}
  14611. func_stripname_result=${func_stripname_result#"${1}"}
  14612. func_stripname_result=${func_stripname_result%"${2}"}
  14613. }
  14614. # func_opt_split
  14615. func_opt_split ()
  14616. {
  14617. func_opt_split_opt=${1%%=*}
  14618. func_opt_split_arg=${1#*=}
  14619. }
  14620. # func_lo2o object
  14621. func_lo2o ()
  14622. {
  14623. case ${1} in
  14624. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14625. *) func_lo2o_result=${1} ;;
  14626. esac
  14627. }
  14628. # func_xform libobj-or-source
  14629. func_xform ()
  14630. {
  14631. func_xform_result=${1%.*}.lo
  14632. }
  14633. # func_arith arithmetic-term...
  14634. func_arith ()
  14635. {
  14636. func_arith_result=$(( $* ))
  14637. }
  14638. # func_len string
  14639. # STRING may not start with a hyphen.
  14640. func_len ()
  14641. {
  14642. func_len_result=${#1}
  14643. }
  14644. _LT_EOF
  14645. ;;
  14646. *) # Bourne compatible functions.
  14647. cat << \_LT_EOF >> "$cfgfile"
  14648. # func_dirname file append nondir_replacement
  14649. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14650. # otherwise set result to NONDIR_REPLACEMENT.
  14651. func_dirname ()
  14652. {
  14653. # Extract subdirectory from the argument.
  14654. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  14655. if test "X$func_dirname_result" = "X${1}"; then
  14656. func_dirname_result="${3}"
  14657. else
  14658. func_dirname_result="$func_dirname_result${2}"
  14659. fi
  14660. }
  14661. # func_basename file
  14662. func_basename ()
  14663. {
  14664. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  14665. }
  14666. # func_stripname prefix suffix name
  14667. # strip PREFIX and SUFFIX off of NAME.
  14668. # PREFIX and SUFFIX must not contain globbing or regex special
  14669. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14670. # dot (in which case that matches only a dot).
  14671. # func_strip_suffix prefix name
  14672. func_stripname ()
  14673. {
  14674. case ${2} in
  14675. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  14676. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  14677. esac
  14678. }
  14679. # sed scripts:
  14680. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14681. my_sed_long_arg='1s/^-[^=]*=//'
  14682. # func_opt_split
  14683. func_opt_split ()
  14684. {
  14685. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  14686. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  14687. }
  14688. # func_lo2o object
  14689. func_lo2o ()
  14690. {
  14691. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  14692. }
  14693. # func_xform libobj-or-source
  14694. func_xform ()
  14695. {
  14696. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  14697. }
  14698. # func_arith arithmetic-term...
  14699. func_arith ()
  14700. {
  14701. func_arith_result=`expr "$@"`
  14702. }
  14703. # func_len string
  14704. # STRING may not start with a hyphen.
  14705. func_len ()
  14706. {
  14707. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14708. }
  14709. _LT_EOF
  14710. esac
  14711. case $lt_shell_append in
  14712. yes)
  14713. cat << \_LT_EOF >> "$cfgfile"
  14714. # func_append var value
  14715. # Append VALUE to the end of shell variable VAR.
  14716. func_append ()
  14717. {
  14718. eval "$1+=\$2"
  14719. }
  14720. _LT_EOF
  14721. ;;
  14722. *)
  14723. cat << \_LT_EOF >> "$cfgfile"
  14724. # func_append var value
  14725. # Append VALUE to the end of shell variable VAR.
  14726. func_append ()
  14727. {
  14728. eval "$1=\$$1\$2"
  14729. }
  14730. _LT_EOF
  14731. ;;
  14732. esac
  14733. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14734. || (rm -f "$cfgfile"; exit 1)
  14735. mv -f "$cfgfile" "$ofile" ||
  14736. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14737. chmod +x "$ofile"
  14738. cat <<_LT_EOF >> "$ofile"
  14739. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  14740. # The linker used to build libraries.
  14741. LD=$lt_LD_CXX
  14742. # How to create reloadable object files.
  14743. reload_flag=$lt_reload_flag_CXX
  14744. reload_cmds=$lt_reload_cmds_CXX
  14745. # Commands used to build an old-style archive.
  14746. old_archive_cmds=$lt_old_archive_cmds_CXX
  14747. # A language specific compiler.
  14748. CC=$lt_compiler_CXX
  14749. # Is the compiler the GNU compiler?
  14750. with_gcc=$GCC_CXX
  14751. # Compiler flag to turn off builtin functions.
  14752. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  14753. # How to pass a linker flag through the compiler.
  14754. wl=$lt_lt_prog_compiler_wl_CXX
  14755. # Additional compiler flags for building library objects.
  14756. pic_flag=$lt_lt_prog_compiler_pic_CXX
  14757. # Compiler flag to prevent dynamic linking.
  14758. link_static_flag=$lt_lt_prog_compiler_static_CXX
  14759. # Does compiler simultaneously support -c and -o options?
  14760. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  14761. # Whether or not to add -lc for building shared libraries.
  14762. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  14763. # Whether or not to disallow shared libs when runtime libs are static.
  14764. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  14765. # Compiler flag to allow reflexive dlopens.
  14766. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  14767. # Compiler flag to generate shared objects directly from archives.
  14768. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  14769. # Whether the compiler copes with passing no objects directly.
  14770. compiler_needs_object=$lt_compiler_needs_object_CXX
  14771. # Create an old-style archive from a shared archive.
  14772. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  14773. # Create a temporary old-style archive to link instead of a shared archive.
  14774. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  14775. # Commands used to build a shared archive.
  14776. archive_cmds=$lt_archive_cmds_CXX
  14777. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  14778. # Commands used to build a loadable module if different from building
  14779. # a shared archive.
  14780. module_cmds=$lt_module_cmds_CXX
  14781. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  14782. # Whether we are building with GNU ld or not.
  14783. with_gnu_ld=$lt_with_gnu_ld_CXX
  14784. # Flag that allows shared libraries with undefined symbols to be built.
  14785. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  14786. # Flag that enforces no undefined symbols.
  14787. no_undefined_flag=$lt_no_undefined_flag_CXX
  14788. # Flag to hardcode \$libdir into a binary during linking.
  14789. # This must work even if \$libdir does not exist
  14790. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  14791. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14792. # during linking. This must work even if \$libdir does not exist.
  14793. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  14794. # Whether we need a single "-rpath" flag with a separated argument.
  14795. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  14796. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14797. # DIR into the resulting binary.
  14798. hardcode_direct=$hardcode_direct_CXX
  14799. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14800. # DIR into the resulting binary and the resulting library dependency is
  14801. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14802. # library is relocated.
  14803. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  14804. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14805. # into the resulting binary.
  14806. hardcode_minus_L=$hardcode_minus_L_CXX
  14807. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14808. # into the resulting binary.
  14809. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  14810. # Set to "yes" if building a shared library automatically hardcodes DIR
  14811. # into the library and all subsequent libraries and executables linked
  14812. # against it.
  14813. hardcode_automatic=$hardcode_automatic_CXX
  14814. # Set to yes if linker adds runtime paths of dependent libraries
  14815. # to runtime path list.
  14816. inherit_rpath=$inherit_rpath_CXX
  14817. # Whether libtool must link a program against all its dependency libraries.
  14818. link_all_deplibs=$link_all_deplibs_CXX
  14819. # Fix the shell variable \$srcfile for the compiler.
  14820. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  14821. # Set to "yes" if exported symbols are required.
  14822. always_export_symbols=$always_export_symbols_CXX
  14823. # The commands to list exported symbols.
  14824. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  14825. # Symbols that should not be listed in the preloaded symbols.
  14826. exclude_expsyms=$lt_exclude_expsyms_CXX
  14827. # Symbols that must always be exported.
  14828. include_expsyms=$lt_include_expsyms_CXX
  14829. # Commands necessary for linking programs (against libraries) with templates.
  14830. prelink_cmds=$lt_prelink_cmds_CXX
  14831. # Specify filename containing input files.
  14832. file_list_spec=$lt_file_list_spec_CXX
  14833. # How to hardcode a shared library path into an executable.
  14834. hardcode_action=$hardcode_action_CXX
  14835. # The directories searched by this compiler when creating a shared library.
  14836. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  14837. # Dependencies to place before and after the objects being linked to
  14838. # create a shared library.
  14839. predep_objects=$lt_predep_objects_CXX
  14840. postdep_objects=$lt_postdep_objects_CXX
  14841. predeps=$lt_predeps_CXX
  14842. postdeps=$lt_postdeps_CXX
  14843. # The library search path used internally by the compiler when linking
  14844. # a shared library.
  14845. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  14846. # ### END LIBTOOL TAG CONFIG: CXX
  14847. _LT_EOF
  14848. ;;
  14849. esac
  14850. done # for ac_tag
  14851. as_fn_exit 0
  14852. _ACEOF
  14853. ac_clean_files=$ac_clean_files_save
  14854. test $ac_write_fail = 0 ||
  14855. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14856. # configure is writing to config.log, and then calls config.status.
  14857. # config.status does its own redirection, appending to config.log.
  14858. # Unfortunately, on DOS this fails, as config.log is still kept open
  14859. # by configure, so config.status won't be able to write to it; its
  14860. # output is simply discarded. So we exec the FD to /dev/null,
  14861. # effectively closing config.log, so it can be properly (re)opened and
  14862. # appended to by config.status. When coming back to configure, we
  14863. # need to make the FD available again.
  14864. if test "$no_create" != yes; then
  14865. ac_cs_success=:
  14866. ac_config_status_args=
  14867. test "$silent" = yes &&
  14868. ac_config_status_args="$ac_config_status_args --quiet"
  14869. exec 5>/dev/null
  14870. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14871. exec 5>>config.log
  14872. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14873. # would make configure fail if this is the last instruction.
  14874. $ac_cs_success || as_fn_exit $?
  14875. fi
  14876. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14877. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14878. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14879. fi